/* ============================================================
   大气PC端通用样式 - 所有页面共用
   ============================================================ */
.grand-page {
    font-family: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #1a1a1a;
    background: #fff;
    margin: 0;
    padding: 0;
}
.grand-page * { box-sizing: border-box; margin: 0; padding: 0; }
.grand-page a { text-decoration: none; color: inherit; }
.grand-page ul, .grand-page li { list-style: none; }
.grand-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---- 顶部导航 ---- */
.grand-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 40px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all 0.3s; background: transparent;
}
.grand-nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.grand-nav .nav-logo { display: flex; align-items: center; gap: 12px; }
.grand-nav .nav-logo .logo-mark {
    width: 40px; height: 40px; background: #1a1a1a; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #d4af37; font-size: 18px;
}
.grand-nav .nav-logo .logo-text {
    font-size: 20px; font-weight: 700; color: #fff;
}
.grand-nav.scrolled .nav-logo .logo-text { color: #1a1a1a; }
.grand-nav .nav-logo .logo-text small {
    display: block; font-size: 11px; font-weight: 400;
    color: rgba(255,255,255,0.7); margin-top: 1px;
}
.grand-nav.scrolled .nav-logo .logo-text small { color: #999; }
.grand-nav .nav-menu { display: flex; gap: 36px; }
.grand-nav .nav-menu a {
    font-size: 15px; color: rgba(255,255,255,0.9); font-weight: 500;
    padding: 26px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.grand-nav.scrolled .nav-menu a { color: #333; }
.grand-nav .nav-menu a:hover, .grand-nav .nav-menu a.active {
    color: #d4af37; border-bottom-color: #d4af37;
}
.grand-nav .nav-right { display: flex; align-items: center; gap: 16px; }
.grand-nav .nav-search {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px; padding: 8px 16px; width: 220px; transition: all 0.2s;
}
.grand-nav.scrolled .nav-search { background: #f5f5f5; border-color: #eee; }
.grand-nav .nav-search i { color: rgba(255,255,255,0.7); font-size: 14px; }
.grand-nav.scrolled .nav-search i { color: #999; }
.grand-nav .nav-search input {
    border: none; background: transparent; outline: none; flex: 1;
    font-size: 13px; color: #fff;
}
.grand-nav.scrolled .nav-search input { color: #333; }
.grand-nav .nav-search input::placeholder { color: rgba(255,255,255,0.5); }
.grand-nav.scrolled .nav-search input::placeholder { color: #bbb; }
.grand-nav .nav-btn {
    padding: 9px 22px; background: #d4af37; color: #1a1a1a;
    border-radius: 24px; font-size: 14px; font-weight: 600; transition: all 0.2s;
}
.grand-nav .nav-btn:hover { background: #c49a2a; transform: translateY(-1px); }

/* ---- 通用内页顶部间距（因为导航是fixed）---- */
.grand-page .page-content { padding-top: 72px; }

/* ---- 通用区块 ---- */
.grand-section { padding: 80px 0; }
.grand-section.gray { background: #f8f9fa; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .sec-tag {
    display: inline-block; font-size: 13px; color: #d4af37; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.section-header h2 { font-size: 36px; font-weight: 800; color: #1a1a1a; margin-bottom: 12px; }
.section-header p { font-size: 16px; color: #888; max-width: 600px; margin: 0 auto; }

/* ---- 村庄卡片 ---- */
.village-grid-grand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.village-card-grand {
    background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid #eee; transition: all 0.3s; cursor: pointer; display: block;
}
.village-card-grand:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.1); }
.village-card-grand .vc-cover {
    height: 200px; background-size: cover; background-position: center; position: relative;
}
.village-card-grand .vc-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 50%);
}
.village-card-grand .vc-cover .vc-tag {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    padding: 4px 12px; background: rgba(212,175,55,0.9); color: #1a1a1a;
    border-radius: 12px; font-size: 12px; font-weight: 600;
}
.village-card-grand .vc-cover .vc-region {
    position: absolute; bottom: 16px; left: 16px; z-index: 2;
    font-size: 13px; color: #fff; display: flex; align-items: center; gap: 6px;
}
.village-card-grand .vc-cover .vc-region i { color: #d4af37; }
.village-card-grand .vc-body { padding: 24px; }
.village-card-grand .vc-body h3 { font-size: 20px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.village-card-grand .vc-body .vc-desc {
    font-size: 14px; color: #888; line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.village-card-grand .vc-meta { display: flex; gap: 20px; font-size: 13px; color: #666; }
.village-card-grand .vc-meta span { display: flex; align-items: center; gap: 5px; }
.village-card-grand .vc-meta i { color: #d4af37; font-size: 12px; }

/* ---- 路线卡片 ---- */
.route-scroll-grand { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.route-card-grand {
    display: flex; background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid #eee; transition: all 0.3s; cursor: pointer;
}
.route-card-grand:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); border-color: #d4af37; }
.route-card-grand .rc-cover {
    width: 200px; min-height: 180px; background-size: cover; background-position: center;
    position: relative; flex-shrink: 0;
}
.route-card-grand .rc-cover .rc-level {
    position: absolute; top: 12px; left: 12px;
    padding: 3px 10px; background: rgba(0,0,0,0.5); color: #fff;
    border-radius: 10px; font-size: 11px; font-weight: 600; backdrop-filter: blur(4px);
}
.route-card-grand .rc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.route-card-grand .rc-body h3 { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.route-card-grand .rc-body .rc-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 16px; flex: 1; }
.route-card-grand .rc-meta { display: flex; gap: 16px; font-size: 13px; color: #666; }
.route-card-grand .rc-meta span { display: flex; align-items: center; gap: 5px; }
.route-card-grand .rc-meta i { color: #d4af37; font-size: 12px; }
.route-card-grand .rc-rating { color: #d4af37 !important; font-weight: 600; }

/* ---- 专题卡片 ---- */
.topic-grid-grand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.topic-card-grand {
    background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid #eee; transition: all 0.3s; cursor: pointer; display: block;
}
.topic-card-grand:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.topic-card-grand .tc-cover {
    height: 220px; background-size: cover; background-position: center; position: relative;
}
.topic-card-grand .tc-cover::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
}
.topic-card-grand .tc-cover .tc-count {
    position: absolute; bottom: 16px; left: 20px; z-index: 2;
    font-size: 14px; color: #fff; display: flex; align-items: center; gap: 6px;
}
.topic-card-grand .tc-cover .tc-count i { color: #d4af37; }
.topic-card-grand .tc-body { padding: 24px; }
.topic-card-grand .tc-body h3 { font-size: 19px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.topic-card-grand .tc-body p { font-size: 14px; color: #888; line-height: 1.6; }

/* ---- 分页 ---- */
.grand-pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 48px;
}
.grand-pagination a, .grand-pagination span {
    padding: 10px 18px; border-radius: 10px; font-size: 14px;
    background: #f5f5f5; color: #666; transition: all 0.2s;
}
.grand-pagination a:hover { background: #1a1a1a; color: #fff; }
.grand-pagination .current { background: #d4af37; color: #1a1a1a; font-weight: 600; }

/* ---- 页脚 ---- */
.grand-footer {
    background: #0b0f14; color: #888; padding: 64px 0 32px;
}
.grand-footer .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}
.grand-footer .footer-brand .footer-logo {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.grand-footer .footer-brand .footer-logo .logo-mark {
    width: 40px; height: 40px; background: #d4af37; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #1a1a1a; font-size: 18px;
}
.grand-footer .footer-brand .footer-logo span { font-size: 20px; font-weight: 700; color: #fff; }
.grand-footer .footer-brand p { font-size: 14px; line-height: 1.8; color: #666; margin-bottom: 20px; }
.grand-footer .footer-social { display: flex; gap: 12px; }
.grand-footer .footer-social a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center; color: #888;
    font-size: 16px; transition: all 0.2s;
}
.grand-footer .footer-social a:hover { background: #d4af37; color: #1a1a1a; }
.grand-footer .footer-col h4 { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.grand-footer .footer-col li { margin-bottom: 12px; }
.grand-footer .footer-col a { font-size: 14px; color: #666; transition: color 0.2s; }
.grand-footer .footer-col a:hover { color: #d4af37; }
.grand-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px; display: flex; justify-content: space-between;
    font-size: 13px; color: #555;
}

/* ---- 移动端响应式适配 ---- */
@media (max-width: 767px) {
    .grand-page { background: #f4f5f7; }
    .grand-container { padding: 0 16px; }

    /* 导航栏 */
    .grand-nav { height: 56px; padding: 0 16px; }
    .grand-nav .nav-logo .logo-mark { width: 32px; height: 32px; font-size: 14px; }
    .grand-nav .nav-logo .logo-text { font-size: 16px; }
    .grand-nav .nav-logo .logo-text small { display: none; }
    .grand-nav .nav-menu { display: none; }
    .grand-nav .nav-search { width: auto; padding: 6px 10px; }
    .grand-nav .nav-search input { display: none; }
    .grand-nav .nav-btn { padding: 6px 12px; font-size: 12px; }
    .grand-nav.scrolled { background: rgba(255,255,255,0.98); }

    /* 页面内容间距 */
    .page-content { padding-top: 56px; }

    /* Hero区域通用 */
    .page-content > section:first-child { padding: 40px 0 32px !important; }
    .page-content > section:first-child h1 { font-size: 26px !important; margin-bottom: 8px !important; }
    .page-content > section:first-child p { font-size: 14px !important; }
    .page-content > section:first-child form { margin-top: 16px !important; }

    /* 区块 */
    .grand-section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2 { font-size: 24px; }
    .section-header p { font-size: 14px; }
    .section-header .sec-tag { font-size: 11px; }

    /* 网格全部单列 */
    .village-grid-grand { grid-template-columns: 1fr; gap: 16px; }
    .topic-grid-grand { grid-template-columns: 1fr; gap: 16px; }
    .route-scroll-grand { grid-template-columns: 1fr; gap: 16px; }

    /* 村庄卡片 */
    .village-card-grand .vc-cover { height: 160px; }
    .village-card-grand .vc-body { padding: 16px; }
    .village-card-grand .vc-body h3 { font-size: 17px; }
    .village-card-grand .vc-meta { gap: 14px; font-size: 12px; flex-wrap: wrap; }

    /* 路线卡片 */
    .route-card-grand { flex-direction: column; }
    .route-card-grand .rc-cover { width: 100%; min-height: 140px; }
    .route-card-grand .rc-body { padding: 16px; }
    .route-card-grand .rc-meta { flex-wrap: wrap; gap: 12px; }

    /* 专题卡片 */
    .topic-card-grand .tc-cover { height: 160px; }
    .topic-card-grand .tc-body { padding: 16px; }

    /* 详情页 */
    .page-content > section[style*="height:480px"] { height: 320px !important; }
    .page-content > section[style*="height:480px"] h1 { font-size: 28px !important; }
    .page-content > section[style*="height:480px"] p { font-size: 13px !important; }
    .page-content > section[style*="height:480px"] .grand-container { padding-bottom: 24px !important; }

    /* 数据统计条 */
    .page-content > section[style*="padding:40px 0"] > .grand-container > div { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .page-content > section[style*="padding:40px 0"] > .grand-container > div > div > div:first-child { font-size: 24px !important; }

    /* 详情页左右两栏变单列 */
    .grand-section .grand-container > div[style*="grid-template-columns:1fr 340px"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .grand-section .grand-container > div[style*="grid-template-columns:1fr 340px"] > div:last-child {
        position: static !important;
    }
    .grand-section .grand-container > div[style*="grid-template-columns:1fr 340px"] h2 { font-size: 20px; }
    .grand-section .grand-container > div[style*="grid-template-columns:1fr 340px"] > div:first-child > div { margin-bottom: 32px !important; }
    .grand-section .grand-container > div[style*="grid-template-columns:1fr 340px"] > div:first-child > div > div[style*="grid-template-columns:repeat(2,1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* 点位地图 */
    .grand-section div[style*="height:300px"] { height: 200px !important; }

    /* 分页 */
    .grand-pagination { flex-wrap: wrap; justify-content: center; }
    .grand-pagination a, .grand-pagination span { padding: 8px 14px; font-size: 13px; }

    /* 页脚 */
    .grand-footer { padding: 40px 0 24px; }
    .grand-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 28px !important;
    }
    .grand-footer .footer-brand { grid-column: 1 / -1; }
    .grand-footer .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        font-size: 12px;
    }

    /* 投稿页表单 */
    .rural-submit-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .rural-submit-form input[type="text"], .rural-submit-form textarea { font-size: 14px; padding: 10px 14px; }
    .rural-submit-form .btn-submit { padding: 14px; font-size: 15px; }

    /* 归档页筛选栏 */
    .grand-section[style*="padding:32px 0"] { padding: 20px 0 !important; }
    .grand-section[style*="padding:32px 0"] > .grand-container > div { gap: 8px !important; }
    .grand-section[style*="padding:32px 0"] a { padding: 5px 12px !important; font-size: 12px !important; }
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .grand-container { padding: 0 24px; }
    .grand-nav { padding: 0 24px; }
    .grand-nav .nav-menu { gap: 20px; }
    .grand-nav .nav-search { width: 160px; }
    .village-grid-grand { grid-template-columns: repeat(2, 1fr); }
    .topic-grid-grand { grid-template-columns: repeat(2, 1fr); }
    .route-scroll-grand { grid-template-columns: 1fr; }
    .grand-footer .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
