@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* 加载自定义字体 STZhongYuan */
@font-face {
    font-family: 'STZhongYuan';
    src: url('../fonts/xy-suns-web.woff2') format('woff2'),
         url('../fonts/xy-suns-web.woff') format('woff'),
         url('../fonts/xy-suns-web.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --primary: #4a8f7a;
    --primary-light: #5da88f;
    --primary-dark: #3d7566;
    --gold: #b8956b;
    --gold-light: #d4b896;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-cream: #faf9f7;
    --bg-white: #ffffff;
    --border-light: #e8e5e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'STZhongYuan', 'STYuanti', 'Heiti SC', 'Microsoft YaHei', '微软雅黑', 'PingFang SC', '萍方', 'Noto Sans', 'SimHei', '黑体', 'Gill Sans', 'Gill Sans MT', 'Calibri', serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* 全局装饰背景 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(184, 149, 107, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 143, 122, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* 优雅的英文字体 */
.serif {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--border-light) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.navbar.scrolled::after {
    opacity: 1;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    letter-spacing: 3px;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    padding: 10px 0;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* 下拉菜单 */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 2px solid var(--primary);
}

.nav-menu li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.nav-dropdown a {
    padding: 12px 30px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-dropdown a::after {
    display: none;
}

.nav-dropdown a:hover {
    background: var(--bg-cream);
    border-left-color: var(--primary);
    padding-left: 35px;
}

.nav-dropdown a.featured {
    color: var(--gold);
    font-weight: 500;
}

.nav-dropdown a.featured:hover {
    border-left-color: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* 语言切换 */
.nav-lang {
    position: relative;
    cursor: pointer;
}

.nav-lang-current {
    font-size: 0.85rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-lang-current:hover {
    color: var(--primary);
}

.nav-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    min-width: 120px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 2px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-lang:hover .nav-lang-dropdown {
    opacity: 1;
    visibility: visible;
}

.nav-lang-dropdown a {
    display: block;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-lang-dropdown a:hover,
.nav-lang-dropdown a.active {
    background: var(--bg-cream);
    border-left-color: var(--primary);
    color: var(--primary);
}

.nav-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-icon:hover {
    opacity: 1;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

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

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

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

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 999;
    padding: 30px 20px;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-item > a {
    display: block;
    padding: 18px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.mobile-menu-item > a.active {
    color: var(--primary);
}

.mobile-submenu {
    display: none;
    padding: 10px 0 10px 20px;
    background: var(--bg-cream);
    margin: 0 -20px;
    padding: 10px 20px 10px 40px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 12px 0;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.mobile-submenu a:hover,
.mobile-submenu a.active {
    color: var(--primary);
}

.mobile-submenu a.featured {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    cursor: pointer;
}

.mobile-menu-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active svg {
    transform: rotate(180deg);
}

/* 移动端工具栏 */
.mobile-tools {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.mobile-lang-selector {
    margin-bottom: 20px;
}

.mobile-lang-selector label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.mobile-lang-options {
    display: flex;
    gap: 10px;
}

.mobile-lang-options a {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.mobile-lang-options a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.mobile-search {
    display: flex;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    font-family: inherit;
    font-size: 0.9rem;
}

.mobile-search button {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mobile-search button:hover {
    background: var(--primary-dark);
}

/* ==================== 内容模块通用 ==================== */
.section {
    padding: 120px 40px;
}

.section-container {
    max-width: 100%;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.section-label {
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.section-label::after {
    content: '◆';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    opacity: 0.5;
}

.section-label::before {
    content: '◆';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5rem;
    opacity: 0.5;
}

.section-title {
    font-family: 'Cormorant Garamond', 'STZhongYuan', 'Heiti SC', 'Microsoft YaHei', serif;
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* ==================== 页脚 ==================== */
.footer {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: white;
    padding: 80px 40px 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--gold) 50%, transparent 100%);
}

.footer::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(184, 149, 107, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: 100%;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-light);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.8);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }

    .nav-dropdown {
        display: none;
    }

    .nav-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .mobile-tools {
        display: block;
    }
    
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-logo img {
        height: 40px;
    }
    
    .section {
        padding: 80px 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

