/* ================== 1. 全局变量 (Design Tokens) ================== */
:root {
    /* --- 核心色板 --- */
    /* 主题色：神秘紫 */
    --color-brand-main: #8d709e;
    
    /* 强调色：日落橙 */
    --color-sunset: #E65100;
    --color-sunset-hover: #BF360C;
    
    /* 辅助色 */
    --color-lake: #455A64;
    --color-text-body: #424242; /* 深炭灰 */
    
    /* 背景色 */
    --color-bg-light: #FAF9FB;  /* 极淡紫灰白 */
    --color-white: #FFFFFF;
    --color-border: #E0E0E0;    /* 稍微加深一点的边框色 */
    
    /* --- 布局变量 --- */
    --spacing-container: 1100px;
    
    /* --- 字体设置 --- */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

/* ================== 2. 基础重置 (Reset) ================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    line-height: 1.7;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* ================== 3. 通用辅助类 (Utilities) ================== */
.container { max-width: var(--spacing-container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-white-50 { color: rgba(255,255,255,0.8); }

.section-padding { padding: 100px 0; }
.bg-warm { background-color: var(--color-bg-light); }
.bg-brand { background-color: var(--color-brand-main); } 

.mb-50 { margin-bottom: 50px; }
.mt-20 { margin-top: 20px; }

/* 标题样式 */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-brand-main); font-weight: 700; letter-spacing: -0.5px; }
.section-title { font-size: 2.8rem; margin-bottom: 20px; }
.section-desc { font-size: 1.15rem; color: var(--color-lake); margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6;}

/* 按钮系统 */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.2);
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--color-sunset); color: white; }
.btn-primary:hover { background-color: var(--color-sunset-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 81, 0, 0.3); }

.btn-outline { border-color: white; color: white; background: transparent; box-shadow: none;}
.btn-outline:hover { background-color: white; color: var(--color-brand-main); }

.btn-dark { background-color: var(--color-brand-main); color: white; box-shadow: 0 4px 15px rgba(141, 112, 158, 0.3); }
.btn-dark:hover { background-color: #765a85; transform: translateY(-2px); }

.btn-sm { padding: 10px 25px; font-size: 0.8rem; }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.6); color: white; margin-top: 20px; border-radius: 4px; box-shadow: none; }
.btn-outline-white:hover { background: white; color: var(--color-brand-main); border-color: white; }

/* ================== 4. 导航栏 (Navbar) ================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.98); /* 增加不透明度 */
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 1px 0px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--color-brand-main); letter-spacing: -0.5px; }
.logo .dot { color: var(--color-sunset); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.9rem; color: #555; text-transform: uppercase; letter-spacing: 0.5px;}
.nav-links a:hover { color: var(--color-brand-main); }

.lang-switch { margin-left: 20px; font-size: 0.85rem; border: 1px solid #EEE; padding: 6px 12px; border-radius: 20px; }
.lang-switch a { margin: 0 6px; color: #888; }
.lang-switch a.active { color: var(--color-brand-main); font-weight: bold; }

/* ================== 5. 首页 Banner (蒙层优化版) ================== */
.main-banner {
    height: 90vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
    overflow: hidden; 
    background-color: #2c2c2c; /* 兜底深灰 */
}

.banner-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.banner-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
}
.banner-slide.active { opacity: 1; z-index: 1; }

/* 优化点：去脏！
   使用纯黑渐变，而非紫色渐变。
   顶部几乎透明，底部加深以衬托文字。
*/
.overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.7) 100%);
    z-index: 2; pointer-events: none;
}

.banner-content { position: relative; z-index: 3; max-width: 850px; padding: 0 20px;}
.banner-content h1 { color: white; font-size: 3.5rem; margin-bottom: 25px; line-height: 1.1; font-weight: 700; text-shadow: 0 4px 20px rgba(0,0,0,0.3);}
.banner-content .subtitle { font-size: 1.4rem; margin-bottom: 45px; opacity: 1; font-weight: 400; letter-spacing: 0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.banner-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.7); font-size: 2rem; width: 60px; height: 60px;
    cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center;
    transition: 0.3s; background: transparent; border: none; 
}
.slider-btn:hover { color: white; transform: translateY(-50%) scale(1.1); }
.prev-btn { left: 40px; }
.next-btn { right: 40px; }

.slider-dots {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 10;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); border: none;
    cursor: pointer; transition: 0.3s;
}
.dot.active { background: var(--color-sunset); transform: scale(1.3); }

/* ================== 6. 紧急呼吁 ================== */
.urgent-callout { background-color: #FFF3E0; padding: 20px 0; border-bottom: none; }
.urgent-flex { display: flex; justify-content: center; align-items: center; gap: 30px; }
.urgent-text h3 { color: #E65100; font-size: 0.95rem; margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;}
.urgent-text p { font-size: 1rem; margin: 0; color: #5D4037; }

/* ================== 7. 我们的方式 (时间轴 - 设计感回归) ================== */
.timeline { position: relative; max-width: 900px; margin: 0 auto; padding: 40px 0; }

/* 中轴线：稍微加深，更清晰 */
.timeline::after {
    content: ''; position: absolute; width: 2px;
    background-color: var(--color-brand-main);
    top: 0; bottom: 0; left: 50%; margin-left: -1px; opacity: 0.2;
}

.timeline-item { padding: 20px 60px; position: relative; width: 50%; box-sizing: border-box; }
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left;}

/* 轴点：改为精致的空心圆点 */
.timeline-item::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    background-color: white; border: 3px solid var(--color-brand-main);
    top: 35px; border-radius: 50%; z-index: 2;
}
.left::after { right: -8px; }
.right::after { left: -8px; }

/* 优化点：卡片式设计回归！
   白底 + 阴影 + 边框 + 小三角形
*/
.timeline-content { 
    padding: 30px; 
    background: white; 
    border-radius: 8px; 
    /* 增加一个品牌色的顶部边框，增加设计感 */
    border-top: 4px solid var(--color-brand-main); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* 柔和的高级阴影 */
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    position: relative; /* 为了定位三角形 */
    transition: 0.3s;
}

.timeline-content:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }

/* 小三角形指针 */
.timeline-content::before {
    content: ''; position: absolute; top: 38px; width: 0; height: 0; border-style: solid; z-index: 1;
}
/* 左侧卡片的三角形在右边 */
.left .timeline-content::before {
    right: -10px; border-width: 10px 0 10px 10px; border-color: transparent transparent transparent white;
}
/* 右侧卡片的三角形在左边 */
.right .timeline-content::before {
    left: -10px; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent;
}

.timeline-content .tag { 
    display: inline-block; padding: 4px 10px; background: var(--color-bg-light);
    color: var(--color-brand-main); font-size: 0.75rem; font-weight: 700; border-radius: 4px; 
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; 
}
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 10px; }
.timeline-content p { color: #666; font-size: 0.95rem; line-height: 1.6; }


/* ================== 8. 核心项目 ================== */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }

.program-card {
    background: white; padding: 50px 30px; border-radius: 12px;
    border: 1px solid var(--color-border); 
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.program-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
    border-color: transparent;
}

.icon-box { font-size: 2.5rem; color: var(--color-brand-main); margin-bottom: 25px; opacity: 0.8; }
.program-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.program-card .slogan { color: #777; font-size: 0.95rem; margin-bottom: 30px; flex-grow: 1; line-height: 1.6;}
.link-text { color: var(--color-sunset); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; border-bottom: 1px solid transparent; padding-bottom: 2px;}
.link-text:hover { border-bottom-color: var(--color-sunset); }

/* ================== 9. 遇见战士 ================== */
.warrior-scroll-container {
    display: flex; overflow-x: auto; gap: 30px; padding: 40px 0 60px 0;
    scrollbar-width: thin; scrollbar-color: var(--color-sunset) rgba(255,255,255,0.05);
}
.warrior-card {
    min-width: 340px;
    background: #1e1e1e; border: 1px solid #333;
    border-radius: 16px; overflow: hidden; flex-shrink: 0; transition: 0.3s;
}
.warrior-card:hover { border-color: var(--color-brand-main); }
.warrior-img { height: 240px; background-size: cover; background-position: center; filter: grayscale(30%); transition: 0.3s;}
.warrior-card:hover .warrior-img { filter: grayscale(0%); }
.warrior-info { padding: 30px; }
.warrior-info h4 { color: white; margin-bottom: 10px; font-size: 1.5rem;}
.badge { background: var(--color-brand-main); font-size: 0.65rem; padding: 5px 10px; border-radius: 30px; color: white; text-transform: uppercase; letter-spacing: 1px;}
.warrior-info p { font-size: 1.1rem; margin: 20px 0; font-style: italic; color: #ccc; font-family: var(--font-heading); line-height: 1.6;}

/* ================== 10. 加入变革 ================== */
.donate-options { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.donate-option {
    padding: 15px 30px; border: 1px solid #E0E0E0; background: white;
    cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: #555;
    transition: 0.3s; border-radius: 50px; display: flex; align-items: center; gap: 10px;
}
.donate-option:hover { border-color: var(--color-brand-main); color: var(--color-brand-main); }
.donate-option.active { 
    background-color: var(--color-brand-main); color: white; border-color: var(--color-brand-main); 
    box-shadow: 0 10px 20px rgba(141, 112, 158, 0.3);
}
.donate-box {
    max-width: 650px; margin: 0 auto; background: white; padding: 60px;
    border-radius: 20px; 
    box-shadow: 0 20px 60px rgba(0,0,0,0.06); border: 1px solid #F0F0F0;
}
.donate-box h3 { margin-bottom: 20px; font-size: 1.8rem; }
.donate-box p { margin-bottom: 40px; font-size: 1.1rem; color: #666; }

/* ================== 11. 页脚 ================== */
.footer { background: #181818; color: #888; padding: 100px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; }
.footer h3 { color: white; margin-bottom: 25px; font-size: 1.8rem; letter-spacing: -1px;}
.footer h4 { color: white; font-size: 0.9rem; margin-bottom: 30px; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.8;}
.footer-col p, .footer-col a { font-size: 0.95rem; margin-bottom: 15px; }
.footer-col a:hover { color: var(--color-sunset); padding-left: 5px; }
.subscribe-form { display: flex; }
.subscribe-form input { 
    padding: 15px; border: 1px solid #333; background: #222; color: white; 
    flex: 1; border-radius: 4px 0 0 4px; outline: none; transition: 0.3s;
}
.subscribe-form input:focus { border-color: var(--color-brand-main); }
.subscribe-form button { padding: 15px 25px; background: var(--color-sunset); border: none; color: white; cursor: pointer; border-radius: 0 4px 4px 0; }
.footer-bottom { border-top: 1px solid #333; padding-top: 40px; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center;}

/* ================== 12. 移动端适配 ================== */
@media (max-width: 768px) {
    .nav-links { display: none; } 
    .banner-content h1 { font-size: 2.2rem; }
    .slider-btn { display: none; }
    .urgent-flex { flex-direction: column; text-align: center; gap: 15px; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 0; text-align: left; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .left::after, .right::after { left: 13px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px;}
    .program-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 60px 0; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center;}
    
    /* 手机端隐藏三角形，防止位置错乱 */
    .timeline-content::before { display: none; }
}