/* ========================================
   科阔启程 - 全局样式文件
   茶叶轻奢风：金棕 + 墨绿 + 米白
   ======================================== */

/* CSS Reset & 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    color: #2c3e2e;
    background-color: #f5f3ec;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 颜色变量 */
:root {
    --color-gold: #b8956b;
    --color-gold-light: #d4b896;
    --color-green-dark: #2c3e2e;
    --color-green-medium: #3d5242;
    --color-cream: #f5f3ec;
    --color-cream-light: #faf9f6;
    --color-white: #ffffff;
    --color-text: #2c3e2e;
    --color-text-light: #6b7a6e;
    --shadow-soft: 0 4px 20px rgba(44, 62, 46, 0.08);
    --shadow-medium: 0 8px 30px rgba(44, 62, 46, 0.12);
    --border-gold: 1px solid rgba(184, 149, 107, 0.3);
}

/* ========================================
   顶部导航栏 - 横向固定布局
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-medium) 100%);
    transition: all 0.4s ease;
    border-bottom: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(44, 62, 46, 0.98) 0%, rgba(61, 82, 66, 0.98) 100%);
    box-shadow: 0 4px 20px rgba(44, 62, 46, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid var(--color-gold);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    display: inline-block;
}

.nav-link {
    display: block;
    padding: 12px 18px;
    color: var(--color-cream);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
    background-color: rgba(184, 149, 107, 0.1);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-gold);
    border-radius: 2px;
    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(7px, -6px);
}

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px - 200px);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-medium) 100%);
    color: var(--color-cream);
    padding: 60px 0 30px;
    border-top: 3px solid var(--color-gold);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-gold);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-section p,
.footer-section li {
    color: var(--color-cream);
    font-size: 14px;
    line-height: 2;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: var(--border-gold);
    font-size: 14px;
    color: var(--color-cream);
}

/* ========================================
   通用组件
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--color-green-dark);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

.section-title p {
    color: var(--color-text-light);
    font-size: 16px;
    margin-top: 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 100%);
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(184, 149, 107, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
}

.btn-outline:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

/* 卡片样式 */
.card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: var(--border-gold);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 18px;
    color: var(--color-green-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.card-text {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-text-light);
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-medium) 100%);
        flex-direction: column;
        padding: 30px 20px;
        gap: 10px;
        transition: left 0.4s ease;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        font-size: 16px;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .header-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-container {
        height: 70px;
    }
    
    .main-content {
        padding-top: 70px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}
