/* ========================================
   通达领航建站 - 全局样式表
   复古焦糖穿搭风格：焦糖橘 + 米黄 + 深棕
   ======================================== */

/* 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: #5D4037;
    background-color: #FFF8E1;
    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 {
    --caramel-orange: #D2691E;
    --caramel-light: #F4A460;
    --beige: #FFF8E1;
    --beige-dark: #FFE0B2;
    --dark-brown: #3E2723;
    --brown: #5D4037;
    --brown-light: #8D6E63;
    --white: #FFFFFF;
    --cream: #FAF3E0;
}

/* ========================================
   导航栏样式
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(62, 39, 35, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    background: rgba(62, 39, 35, 0.98);
    padding: 12px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--caramel-orange);
    letter-spacing: 2px;
}

.header.scrolled .logo-text {
    color: var(--caramel-light);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--caramel-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--caramel-orange);
}

.header.scrolled .nav-link {
    color: var(--beige);
}

.header.scrolled .nav-link:hover {
    color: var(--caramel-light);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.header.scrolled .hamburger span {
    background: var(--beige);
}

/* ========================================
   页脚样式
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, #4E342E 100%);
    color: var(--beige);
    padding: 60px 0 30px;
}

.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 {
    font-size: 20px;
    color: var(--caramel-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--caramel-orange);
}

.footer-section p,
.footer-section li {
    font-size: 14px;
    line-height: 2;
    color: rgba(255, 248, 225, 0.8);
}

.footer-section ul li a:hover {
    color: var(--caramel-light);
    padding-left: 8px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 248, 225, 0.2);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 248, 225, 0.6);
}

/* ========================================
   通用组件样式
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    color: var(--dark-brown);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--caramel-orange), var(--caramel-light));
}

.section-title p {
    font-size: 18px;
    color: var(--brown-light);
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--caramel-orange) 0%, var(--caramel-light) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--caramel-orange);
    color: var(--caramel-orange);
}

.btn-outline:hover {
    background: var(--caramel-orange);
    color: var(--white);
}

/* 卡片样式 */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    color: var(--dark-brown);
    margin-bottom: 12px;
}

.card-text {
    font-size: 14px;
    color: var(--brown-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--brown-light);
}

/* ========================================
   动画效果
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark-brown);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        transition: left 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .container {
        padding: 0 20px;
    }

    .header-container {
        padding: 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .logo-text {
        font-size: 22px;
    }

    .logo img {
        height: 40px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }

    .card-content {
        padding: 20px;
    }
}
