/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 配色方案
     * 主色调: #FFFFFF (白色)
     * 辅助色: #727053 (橄榄棕色)
     * 强调色: #303133 (深灰黑)
     */

    /* 主色调 - 白色系 */
    --primary-color: #FFFFFF;
    --primary-dark: #f5f5f5;
    --primary-light: #fafafa;

    /* 强调色 - 深灰黑 (用于重要文字和元素) */

    /* 辅助色 - 橄榄棕 (品牌色) */

    /* 强调色 - 深灰黑 (用于重要文字和元素) */
    --accent-dark: #303133;
    --accent-darker: #1a1a1a;
    --accent-light: #4a4a4a;

    /* 辅助色 - 橄榄棕 (品牌色) */
    --secondary-color: #727053;
    --secondary-light: #8f8d6f;
    --secondary-lighter: #a8a68f;
    --secondary-dark: #5a5638;

    /* 品牌色 (用于按钮、高亮等) */
    --brand-color: #727053;
    --brand-light: #8f8d6f;
    --brand-dark: #5a5638;

    /* 文字颜色 */
    --text-primary: #303133;
    --text-secondary: #606266;
    --text-muted: #909399;
    --text-light: #c0c4cc;

    /* 背景色 */
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --bg-offwhite: #fcfcfc;

    /* 边框颜色 */
    --border-color: #e5e7eb;
    --border-light: #f0f0f0;
    --border-brand: rgba(114, 112, 83, 0.2);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-brand: 0 4px 16px rgba(114, 112, 83, 0.2);

    /* 渐变 */
    --gradient-brand: linear-gradient(135deg, #727053 0%, #8f8d6f 100%);
    --gradient-brand-dark: linear-gradient(135deg, #5a5638 0%, #727053 100%);
    --gradient-light: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    --gradient-dark: linear-gradient(135deg, #303133 0%, #1a1a1a 100%);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
        'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: #C0C4CC;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* 按钮样式 */
.btn-primary,
.btn-secondary,
.btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

a.btn-primary,
a.btn-secondary,
a.btn-large {
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    background: var(--gradient-brand-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    border-color: var(--brand-color);
    color: var(--brand-color);
    background: rgba(114, 112, 83, 0.05);
}

.btn-large {
    padding: 18px 56px;
    font-size: 18px;
    font-weight: 700;
    background: #303133;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(48, 49, 51, 0.2);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 49, 51, 0.3);
    background: #4a4a4a;
}

/* 响应式 */
@media (max-width: 768px) {
    .section {
        padding: 48px 0;
    }

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

    .section-subtitle {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

/* ===== 统一 CTA 区域样式 ===== */
.cta-section {
    text-align: center;
    padding: 80px 0;
    background: #F5F7FA;
    color: var(--text-primary);
    position: relative;
    margin-top: 0;
    box-shadow: none;
}

/* CTA 装饰动画背景 */
.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 28px;
    color: var(--text-secondary);
}

/* CTA 区域内的按钮 */
.cta-section .btn-large {
    background: #303133;
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(48, 49, 51, 0.2);
}

.cta-section .btn-large:hover {
    background: #4a4a4a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(48, 49, 51, 0.3);
}

/* CTA 区域响应式 */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-section h2 {
        font-size: 22px;
    }

    .cta-section p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .cta-section .btn-large {
        padding: 14px 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 48px 0;
    }

    .cta-section h2 {
        font-size: 20px;
    }

    .cta-section p {
        font-size: 14px;
    }

    .cta-section .btn-large {
        padding: 12px 32px;
        font-size: 15px;
    }
}

/* ===== 底部装饰元素 ===== */
.page-bottom-decoration {
    position: relative;
    overflow: hidden;
}

/* 页脚顶部波浪装饰 */
.footer-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    clip-path: polygon(0 40%, 5% 35%, 10% 40%, 15% 35%, 20% 40%, 25% 35%, 30% 40%, 35% 35%, 40% 40%, 45% 35%, 50% 40%, 55% 35%, 60% 40%, 65% 35%, 70% 40%, 75% 35%, 80% 40%, 85% 35%, 90% 40%, 95% 35%, 100% 40%, 100% 100%, 0 100%);
    pointer-events: none;
}

/* 页脚底部装饰图案 */
.footer-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.footer-decoration::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-decoration::after {
    content: '';
    position: absolute;
    bottom: 50px;
    right: 100px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(114, 112, 83, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

/* 浮动装饰元素 */
.floating-decoration {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 16px rgba(114, 112, 83, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(114, 112, 83, 0.4);
}

.floating-btn.primary {
    background: var(--gradient-brand);
    color: white;
}

.floating-btn.secondary {
    background: white;
    color: var(--brand-color);
    border: 2px solid var(--brand-color);
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-brand);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* 回到顶部按钮 */
.back-to-top-btn {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 页面背景装饰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(114, 112, 83, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(114, 112, 83, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(114, 112, 83, 0.01) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}
