/* =====================================
   全局样式 - 高级杂志风
   ===================================== */

:root {
    --bg-main: #FDF6E3;
    --bg-card: #FFFAF0;
    --text-main: #3A3A3A;
    --text-heading: #1C1C1C;
    --accent-gold: #C9A96E;
    --accent-gold-hover: #B8860B;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif SC', 'STSong', 'Georgia', serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.9;
    font-size: 16px;
}

/* =====================================
   导航栏样式
   ===================================== */

.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 16px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--text-heading);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Noto Serif SC', 'Georgia', serif;
}

.nav-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    padding: 4px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-heading);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-gold);
}

.nav-link.active::after {
    width: 100%;
    background: var(--accent-gold);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-main);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
}

/* =====================================
   通用页面元素
   ===================================== */

.page-header {
    height: 55vh;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(201, 169, 110, 0.05) 100%), 
                url('https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=1920&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(253, 246, 227, 0.1) 0%, rgba(253, 246, 227, 0.6) 100%);
}

.header-content {
    position: relative;
    z-index: 10;
    padding: 0 24px;
}

.page-title {
    font-size: 3.2rem;
    letter-spacing: 8px;
    color: var(--text-heading);
    margin-bottom: 12px;
    font-weight: 700;
    font-family: 'Noto Serif SC', 'Georgia', serif;
    position: relative;
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--accent-gold);
    margin: 24px auto 0;
}

.page-subtitle {
    color: var(--text-main);
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.main-container {
    max-width: 1100px;
    margin: -50px auto 0;
    position: relative;
    z-index: 20;
    padding: 0 24px 80px;
}

/* =====================================
   卡片与区块
   ===================================== */

.section-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(201, 169, 110, 0.08);
}

.section-title {
    font-size: 1.4rem;
    color: var(--text-heading);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    letter-spacing: 2px;
    font-weight: 600;
}

.section-title span {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent-gold);
}

.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

/* =====================================
   按钮样式
   ===================================== */

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--accent-gold);
    border-radius: 4px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: var(--accent-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.25);
}

.btn-primary {
    background: var(--accent-gold);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-gold-hover);
}

/* =====================================
   搜索与输入框
   ===================================== */

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 24px;
}

.search-input {
    width: 100%;
    padding: 14px 24px 14px 48px;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input::placeholder {
    color: rgba(58, 58, 58, 0.5);
}

.search-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-gold);
}

/* =====================================
   标签与筛选按钮
   ===================================== */

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 4px;
    border: 1px solid rgba(201, 169, 110, 0.25);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.filter-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: white;
}

/* =====================================
   页脚
   ===================================== */

.footer {
    text-align: center;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    color: rgba(58, 58, 58, 0.6);
    font-size: 0.85rem;
}

/* =====================================
   响应式设计 - 移动端自适应配置
   ===================================== */

@media screen and (max-width: 1024px) {
    body {
        font-size: 15px;
    }
    
    .nav-links {
        gap: 24px;
    }
    
    .main-container {
        padding: 0 20px 60px;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        font-size: 14px;
        line-height: 1.8;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .site-navbar {
        padding: 12px 16px;
    }

    .page-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .page-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .section-card {
        padding: 24px 16px;
        margin-bottom: 20px;
    }

    .page-header {
        height: 40vh;
        min-height: 280px;
    }

    .main-container {
        padding: 0 16px 60px;
        width: 100%;
        max-width: 100%;
    }

    .btn {
        padding: 11px 28px;
        font-size: 0.9rem;
    }

    .search-input {
        padding: 12px 20px 12px 44px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    body {
        font-size: 13px;
        line-height: 1.75;
    }

    .site-navbar {
        padding: 10px 12px;
    }

    .page-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .page-subtitle {
        font-size: 0.85rem;
        letter-spacing: 1.5px;
    }

    .section-card {
        padding: 20px 12px;
        border-radius: 6px;
    }

    .page-header {
        height: 35vh;
        min-height: 240px;
    }

    .main-container {
        padding: 0 12px 50px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .search-input {
        padding: 10px 16px 10px 40px;
        font-size: 0.85rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

@media screen and (max-width: 360px) {
    body {
        font-size: 12.5px;
    }

    .page-title {
        font-size: 1.5rem;
        letter-spacing: 1.5px;
    }

    .section-card {
        padding: 16px 10px;
    }

    .main-container {
        padding: 0 10px 40px;
    }
}

@media screen and (orientation: landscape) {
    .page-header {
        height: 55vh;
        min-height: 200px;
    }
    
    .hero-section {
        height: 85vh;
    }
}