/* ===========================================
   公用样式文件 - 企业暖色商务风
   =========================================== */

/* CSS变量定义 - 暖色商务设计系统 */
:root {
    /* 暖色主色调 */
    --accent-color: #F59E0B;
    --accent-hover: #D97706;
    --accent-light: #FEF3C7;
    --accent-bg: #FFFBEB;
    --accent-gradient: linear-gradient(135deg, #F59E0B, #FB923C);

    /* 文字颜色 */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --text-white: #FFFFFF;

    /* 背景颜色 */
    --bg-primary: #FAFAF9;
    --bg-secondary: #F5F5F4;
    --bg-white: #FFFFFF;
    --bg-hover: #F0EDE8;
    --bg-dark: #1F2937;
    --bg-dark-secondary: #374151;

    /* 边框 */
    --border-color: #E5E7EB;
    --border-color-light: #F3F4F6;

    /* 功能色 */
    --success-green: #059669;
    --success-light: #ECFDF5;
    --warning-amber: #D97706;
    --error-red: #DC2626;
    --info-blue: #2563EB;

    /* 阴影 - 暖色柔和 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-accent: 0 4px 14px rgba(245, 158, 11, 0.25);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.05);

    /* 字体 */
    --font-display: "Playfair Display", "Noto Serif SC", Georgia, serif;
    --font-primary: "DM Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;

    /* 间距 */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 64px;
    --space-2xl: 96px;
    --space-3xl: 128px;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===========================================
   全局重置
   =========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-size: 16px;
}

/* ===========================================
   导航栏 - 暖色商务风
   =========================================== */

.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 72px;
    transition: all var(--transition-normal);
}

.main-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.logo-image:hover {
    opacity: 0.85;
}

.logo img {
    height: 38px;
    width: auto;
}

.logo-brand {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 10px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-hover);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 语言切换 */
.language-switch {
    position: relative;
}

.language-switch::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: 999;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    background: transparent;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.dropdown-trigger:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.dropdown-content {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    min-width: 150px;
    z-index: 1000;
    overflow: hidden;
    margin-top: 6px;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.language-switch:hover .dropdown-content,
.language-switch.show .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-color-light);
    font-size: 14px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dropdown-content a.active {
    background: var(--accent-light);
    color: var(--accent-hover);
    font-weight: 600;
}

.lang-text {
    font-weight: 500;
}

.lang-code {
    font-size: 12px;
    opacity: 0.7;
}

/* ===========================================
   页脚 - 深色底暖橙点缀
   =========================================== */

footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px var(--space-lg) 40px;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

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

.footer-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.footer-links-list li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-links-list li a:hover {
    color: var(--text-white);
}

.footer-contact-item {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all var(--transition-normal);
}

.footer-social-link:hover {
    background: var(--accent-color);
    color: var(--text-white);
}

/* ===========================================
   按钮组件 - 药丸形暖色
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 28px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    height: 44px;
    line-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-hover);
    background: var(--accent-light);
}

.btn-large {
    height: 52px;
    line-height: 52px;
    padding: 0 36px;
    font-size: 16px;
}

/* ===========================================
   通用区块样式
   =========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent-light);
    color: var(--accent-hover);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.section-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 全宽暖色CTA区块 */
.cta-section {
    background: var(--accent-gradient);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
}

.cta-section h2,
.cta-section h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
}

.cta-section .btn-primary {
    background: var(--text-white);
    color: var(--accent-hover);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--text-white);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===========================================
   表单组件
   =========================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===========================================
   卡片组件
   =========================================== */

.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color-light);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.card-header {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color-light);
}

.card-body {
    padding: var(--space-md);
}

.card-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border-color-light);
    background: var(--bg-secondary);
}

/* ===========================================
   工具类
   =========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-accent { color: var(--accent-color); }

.m-0 { margin: 0; }
.mt-4 { margin-top: var(--space-md); }
.mb-4 { margin-bottom: var(--space-md); }
.mt-8 { margin-top: var(--space-xl); }
.mb-8 { margin-bottom: var(--space-xl); }

.p-4 { padding: var(--space-md); }
.p-8 { padding: var(--space-xl); }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: var(--space-md); }
.gap-8 { gap: var(--space-xl); }

/* ===========================================
   汉堡菜单
   =========================================== */

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s;
    border-radius: 2px;
}

/* ===========================================
   响应式
   =========================================== */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-sm);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px var(--space-sm);
        border-bottom: 1px solid var(--border-color-light);
        font-size: 16px;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

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

    .main-nav {
        height: 64px;
    }

    .logo img {
        height: 32px;
    }

    .logo-brand {
        font-size: 16px;
    }

    .footer-container {
        padding: 48px var(--space-md) 32px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        height: 48px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section {
        padding: var(--space-xl) var(--space-md);
    }
}

@media (max-width: 480px) {
    .main-nav {
        height: 56px;
    }

    .nav-links {
        top: 56px;
    }
}
