/* ========== 全局重置 & 字体 ========== */
@font-face {
    font-family: 'STKaiti';
    src: url('../font/STKAITI.TTF') format('truetype');
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'STKaiti', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

a {text-decoration: none;}

:root {
    --primary: #b33a2c;
    --primary-dark: #8c2c1f;
    --primary-light: #ffe6e2;
    --primary-soft: #fff2ef;
    --accent-gold: #c9a03d;
    --gray-bg: #faf7f5;
    --text-dark: #2d2a24;
    --text-muted: #6b5e55;
    --card-border: #f0e7e2;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* ========== 头部导航 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    transition: transform 0.2s ease;
}
.logo-img:hover {
    transform: scale(1.02);
}
.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-dark);
    border-left: 2px solid var(--primary);
    padding-left: 12px;
    line-height: 1.2;
}
.logo-text small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #a77c58;
    display: block;
    letter-spacing: 0;
}
@media (max-width: 560px) {
    .logo-text { display: none; }
    .logo-img { height: 40px; }
}

.menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-dark);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s ease;
}
.nav-menu li {
    position: relative;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    color: #3a3530;
}
.nav-menu li a {
    text-decoration: none;
    color: inherit;
}
.nav-menu li:hover { color: var(--primary); }
.nav-menu li.active a {
    color: var(--primary);
    font-weight: 600;
}
.nav-menu li.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* 移动端菜单 */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 24px;
        gap: 20px;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
        transition: left 0.3s;
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.open { left: 0; }
}

/* ========== 公用容器 & 卡片 ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px;
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
    color: #2b2620;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--card-border);
    cursor: pointer;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px -8px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}
.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #ede3db;
}
.card-content {
    padding: 18px 20px 22px;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2d2a24;
}
.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.7rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ========== 页脚 ========== */
.footer {
    background: #2c241e;
    color: #cfc3b8;
    padding: 40px 20px 28px;
    margin-top: 48px;
}
.footer-content {
    max-width: 1280px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}
.footer-col h3 {
    color: #eedbcb;
    font-size: 1.1rem;
    margin-bottom: 16px;
    font-weight: 600;
}
.footer-col p, .footer-col a {
    color: #cfc3b8;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col a:hover { color: white; }
.quick-links { list-style: none; }
.quick-links li { margin-bottom: 10px; }
.qr-code {
    width: 80px;
    height: 80px;
    background: #f3ede8;
    border-radius: 12px;
    margin-top: 8px;
    display: block;
    object-fit: cover;
}
.copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 0.75rem;
    border-top: 1px solid #4f3e34;
    padding-top: 20px;
}
.copyright a {
    color: #cfc3b8;
    text-decoration: none;
}
.copyright a:hover { text-decoration: underline; color: #ffede0; }

@media (max-width: 768px) {
    .container { padding: 32px 16px; }
    .section-title { font-size: 1.5rem; }
    .footer-content { flex-direction: column; gap: 32px; }
}