/* --- CSS 变量定义 --- */
:root {
    --primary-black: #1a1a1a;
    --accent-orange: #ff6600;
    --text-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f9f9f9;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --nav-height: 70px;
}

/* --- 全局重置与基础样式 --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--text-white); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- 导航栏 --- */
.navbar {
    background-color: var(--primary-black);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.logo img { height: 45px; vertical-align: middle; background: #fff; padding: 2px 5px; border-radius: 4px; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-white); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent-orange); }

.btn {
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    border: 2px solid;
    display: inline-block;
    text-align: center;
}

.btn--primary {
    background-color: var(--accent-orange);
    color: var(--text-white);
    border-color: var(--accent-orange);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--accent-orange);
}

.btn--secondary {
    background-color: var(--primary-black);
    color: var(--text-white);
    border-color: var(--primary-black);
}

.btn--secondary:hover {
    background-color: var(--text-white);
    color: var(--accent-orange);
}

/* --- 行情跑马灯 (修正版) --- */
.ticker-wrap {
    background-color: #000000;
    color: white;
    height: 60px; /* 固定高度 */
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    /* 改为相对定位，放入文档流 */
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #333;
    margin-top: var(--nav-height); /* 紧贴在固定导航栏之后 */
}

/* 创建跑马灯动画的关键容器 */
.ticker-content {
    display: inline-block;
    padding-left: 100%; /* 初始位置在屏幕右侧 */
    animation: ticker-scroll 20s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    font-size: 1.1rem;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    border-right: 1px solid #333;
}
.ticker-item:last-child { border-right: none; }
.up { color: #00D084; }
.down { color: #ff4d4d; }

/* 定义从右到左的滚动动画 */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* --- 信任监管条 (同样改为相对定位) --- */
.trust-bar {
    background-color: #f4f6f8;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 改为相对定位 */
    position: relative;
    top: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #eee;
}
.trust-text {
    color: var(--text-gray);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.trust-icons {
    margin-left: 10px;
    font-weight: bold;
    color: #999;
}

/* --- Hero 区域 --- */
.hero {
    background: linear-gradient(to bottom, #ffffff 0%, #f4f6f8 100%);
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,102,0,0.15) 0%, rgba(255,255,255,0) 70%);
    filter: blur(40px);
    z-index: 1;
    animation: breathe 5s infinite ease-in-out;
}
.c1 { width: 300px; height: 300px; top: 10%; left: 10%; animation-delay: 0s; }
.c2 { width: 400px; height: 400px; bottom: 10%; right: 10%; animation-delay: 2s; }

.hero-content { z-index: 2; max-width: 800px; }

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span { color: var(--accent-orange); }

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
}

.hero-btn {
    display: inline-block;
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3);
    animation: pulse-orange 2s infinite;
    border: none;
}

/* --- 通用区块样式 --- */
.section { padding: 90px 10%; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-black); margin-bottom: 15px; }
.section-title .line { width: 60px; height: 4px; background-color: var(--accent-orange); margin: 0 auto; border-radius: 2px; }

.grid--3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(255, 102, 0, 0.1);
    color: var(--accent-orange);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.3s;
}

.card:hover .icon-circle {
    background: var(--accent-orange);
    color: white;
}

/* --- 特色卡片 --- */
.feature-card {}

/* --- 新闻卡片 --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); }

.news-img {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.news-content { padding: 25px; }
.news-date { color: var(--accent-orange); font-weight: bold; font-size: 0.85rem; margin-bottom: 10px; display: block; text-transform: uppercase; }
.news-title { font-size: 1.2rem; color: var(--primary-black); margin-bottom: 15px; line-height: 1.4; }
.news-excerpt { color: var(--text-gray); font-size: 0.95rem; }

/* --- 福利/赠金区块 --- */
.promo-section {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #ff8533 100%);
    color: white;
    padding: 60px 10%;
    text-align: center;
    border-radius: var(--radius);
    margin: 0 5% 60px;
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.3);
}
.promo-section h2 { font-size: 2.5rem; margin-bottom: 15px; color: white; }
.promo-section p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

/* --- 常见问题 (FAQ) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    background-color: var(--primary-black);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #333;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    color: var(--text-gray);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: padding 0.3s ease, max-height 0.3s ease;
}

.faq-item[open] .faq-answer {
    padding: 20px;
    max-height: 1000px; /* 一个足够大的值以容纳内容 */
}

/* --- 评价区块 --- */
.testimonials { background-color: var(--primary-black); color: white; text-align: center; }
.testimonials h2 { color: white; }

.review-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }

.review-card {
    background: #252525;
    padding: 40px;
    border-radius: var(--radius);
    flex: 1 1 300px;
    max-width: 500px;
    position: relative;
}

.review-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-orange);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
    font-family: serif;
}

.stars { color: #FFD700; margin-bottom: 20px; }
.review-text { font-size: 1.05rem; font-style: italic; margin-bottom: 25px; color: #ddd; }
.user-info { font-weight: bold; color: var(--accent-orange); }

/* --- 页脚 --- */
footer { background-color: #111; color: #888; padding: 60px 10% 20px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-col h3 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-orange); padding-left: 5px; }

.risk-warning {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.8;
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .navbar { padding: 1rem 20px; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 60px 20px; }
    .grid--3col { grid-template-columns: 1fr; }
    .promo-section { margin: 0 0 40px; border-radius: 0; }
    /* FAQ 响应式 */
    .faq-question { padding: 15px; font-size: 1rem; }
    .faq-answer { padding: 0 15px; }
    .faq-item[open] .faq-answer { padding: 15px; }
}

/* --- 动画定义 --- */
@keyframes breathe {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

@keyframes pulse-orange {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}