/* ============================================================
   主样式文件
   ============================================================ */

:root {
    --primary-color: #1a6b3c;
    --secondary-color: #134f2c;
    --success-color: #218a4d;
    --info-color: #3b8565;
    --warning-color: #c8a84b;
    --danger-color: #d34848;
    --light-color: #f4f8f3;
    --dark-color: #183026;
    --accent-light: #e8c96a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   通用样式
   ============================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background-color: #f8fbf7;
    line-height: 1.6;
}

.cau-page-header {
    background: linear-gradient(135deg, #0f4229 0%, #1a6b3c 60%, #1f7d49 100%);
    color: #fff;
    margin-top: -56px;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.cau-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(232, 201, 106, 0.24), transparent 35%),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.08), transparent 34%);
}

.cau-page-header .container-lg {
    position: relative;
}

.cau-page-kicker {
    display: inline-block;
    border: 1px solid rgba(232, 201, 106, 0.5);
    background: rgba(232, 201, 106, 0.18);
    color: var(--accent-light);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.85rem;
}

.cau-surface-card {
    background: #fff;
    border: 1px solid #dce8dd;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(20, 75, 45, 0.08);
}

.cau-accent {
    color: var(--primary-color) !important;
}

.cau-soft-block {
    background: linear-gradient(140deg, #f8fcf8 0%, #edf5ea 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 24px;
}

.cau-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cau-list-check li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: #4d5e55;
}

.cau-list-check li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.cau-cta-section {
    background: linear-gradient(135deg, #134f2c 0%, #1a6b3c 55%, #207f4a 100%);
    color: #fff;
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* ============================================================
   导航栏
   ============================================================ */

.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    margin-left: 10px;
    margin-right: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* ============================================================
   卡片
   ============================================================ */

.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============================================================
   按钮
   ============================================================ */

.btn {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(26, 107, 60, 0.35);
}

.btn-light {
    background-color: #fff;
    color: #333;
    border: none;
}

.btn-light:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--primary-color);
}

/* ============================================================
   通用部分
   ============================================================ */

section {
    scroll-margin-top: 56px;
}

/* ============================================================
   页脚
   ============================================================ */

footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

footer a {
    color: #999;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* ============================================================
   文本和排版
   ============================================================ */

.display-4,
.display-5 {
    font-weight: 700;
    letter-spacing: -1px;
}

.lead {
    font-size: 1.15rem;
    font-weight: 300;
}

.section-title {
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

/* ============================================================
   渐变背景
   ============================================================ */

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* ============================================================
   阴影
   ============================================================ */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* ============================================================
   响应式设计
   ============================================================ */

@media (max-width: 768px) {
    .cau-page-header {
        padding-top: 92px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1rem;
    }

    .container-lg {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================================
   徽章
   ============================================================ */

.badge {
    padding: 0.4rem 0.6rem;
    font-weight: 500;
    border-radius: 20px;
}

/* ============================================================
   链接样式
   ============================================================ */

.text-decoration-none:hover {
    text-decoration: underline;
}

/* ============================================================
   其他工具类
   ============================================================ */

.opacity-75 {
    opacity: 0.75;
}

.opacity-50 {
    opacity: 0.5;
}

/* 平滑过渡 */
.transition-all {
    transition: all 0.3s ease;
}

/* 禁用光标 */
.cursor-not-allowed {
    cursor: not-allowed;
}

/* 居中内容 */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   动画
   ============================================================ */

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================================
   实用样式
   ============================================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) 1;
}
