/* ============================================
   DLSM 外汇金融平台 全站样式
   ============================================ */

:root {
    --primary: #1a3a5c;
    --primary-dark: #0d2a45;
    --primary-light: #2a5a8c;
    --accent: #c9a84c;
    --accent-light: #e0c878;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5e;
    --text-light: #8b8b9b;
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    --bg-gray: #eef0f4;
    --border: #e0e4e8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
    line-height: 1.5;
}
.btn-primary {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); }
.btn-outline {
    background: transparent;
    color: var(--primary) !important;
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff !important; }
.btn-outline-light {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--primary) !important; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ========== 头部 ========== */
.site-header { background: var(--bg-white); box-shadow: 0 2px 12px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--bg-white); }
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
    flex-wrap: wrap;
}
.logo { display: flex; align-items: center; }
.logo-text { font-size: 28px; font-weight: 800; color: var(--primary); letter-spacing: 2px; }
.logo img { max-height: 50px; }
.main-nav ul { display: flex; list-style: none; gap: 8px; flex-wrap: wrap; }
.main-nav a {
    padding: 8px 16px;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-nav a:hover { color: var(--primary); background: var(--bg-gray); }
.main-nav a.active { color: var(--primary); background: var(--bg-gray); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--primary); cursor: pointer; }
.header-customer-service {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.header-customer-service .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-divider { color: rgba(255,255,255,0.4); }

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(201,168,76,0.15);
}
.hero::before {
    content: '';
    position: absolute;
    left: -50px;
    bottom: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.hero-content { position: relative; z-index: 2; color: #fff; padding: 80px 20px; max-width: 700px; }
.hero-content h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; line-height: 1.3; }
.hero-content p { font-size: 18px; margin-bottom: 8px; color: rgba(255,255,255,0.85); }
.hero-sub { font-size: 20px; font-weight: 600; color: var(--accent-light); letter-spacing: 4px; }
.hero-buttons { margin-top: 30px; display: flex; gap: 15px; flex-wrap: wrap; }

/* ========== 通用Section ========== */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ========== Features ========== */
.features { padding: 70px 0; background: var(--bg-white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 25px; }
.feature-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px 25px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--primary); }
.feature-card p { font-size: 14px; color: var(--text-medium); }

/* ========== 新闻卡片 ========== */
.latest-news { padding: 70px 0; background: var(--bg-light); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.news-card-content { padding: 20px; }
.news-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 10px;
}
.news-card h3 { font-size: 17px; margin-bottom: 10px; }
.news-card h3 a { color: var(--text-dark); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { font-size: 14px; color: var(--text-medium); margin-bottom: 12px; }
.news-meta { display: flex; gap: 15px; font-size: 12px; color: var(--text-light); flex-wrap: wrap; }
.view-all { text-align: center; margin-top: 35px; }

/* ========== 产品 ========== */
.products { padding: 70px 0; background: var(--bg-white); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; }
.product-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.product-card i { font-size: 40px; color: var(--primary); margin-bottom: 15px; }
.product-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--primary); }
.product-card p { font-size: 13px; color: var(--text-medium); }

/* ========== 页面横幅 ========== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 14px; color: rgba(255,255,255,0.7); }

/* ========== 关于页面 ========== */
.about-section { padding: 60px 0; display: flex; flex-wrap: wrap; gap: 40px; }
.about-content { flex: 2; min-width: 300px; }
.about-content h2 { color: var(--primary); font-size: 28px; margin-bottom: 20px; }
.about-content h3 { color: var(--primary); font-size: 20px; margin: 25px 0 10px; }
.about-content p { margin-bottom: 12px; color: var(--text-medium); }
.about-list { list-style: none; padding-left: 0; }
.about-list li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-medium); }
.about-list strong { color: var(--primary); }
.about-sidebar { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
}
.sidebar-card h3 { color: var(--primary); margin-bottom: 15px; }
.stats-list { list-style: none; }
.stats-list li { padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--text-medium); }
.stats-list span { font-size: 22px; font-weight: 700; color: var(--primary); display: inline-block; min-width: 80px; }

/* ========== 软件页面 ========== */
.software-section { padding: 60px 0; }
.software-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.software-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.software-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.software-icon {
    width: 70px; height: 70px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 15px;
}
.software-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.software-card p { font-size: 13px; color: var(--text-medium); margin-bottom: 15px; }

/* ========== 新闻列表 ========== */
.news-section { padding: 60px 0; }
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    transition: var(--transition);
}
.news-list-item:hover { box-shadow: var(--shadow); }
.news-list-item h3 { font-size: 19px; margin-bottom: 8px; }
.news-list-item h3 a { color: var(--text-dark); }
.news-list-item h3 a:hover { color: var(--primary); }
.news-list-item p { font-size: 14px; color: var(--text-medium); }
.read-more { font-weight: 600; font-size: 13px; }
.no-data { text-align: center; padding: 40px; color: var(--text-light); }

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 35px; flex-wrap: wrap; }
.page-link {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-medium);
    font-size: 14px;
    transition: var(--transition);
}
.page-link:hover { background: var(--bg-gray); color: var(--primary); }
.page-link.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== 文章详情 ========== */
.article-detail { padding: 50px 0; }
.article-main { max-width: 750px; }
.article-title { font-size: 28px; color: var(--primary); margin-bottom: 15px; line-height: 1.4; }
.article-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-light); margin-bottom: 25px; flex-wrap: wrap; }
.article-content { font-size: 15px; color: var(--text-dark); line-height: 1.9; }
.article-content p { margin-bottom: 15px; }
.article-content h2, .article-content h3 { color: var(--primary); margin: 20px 0 10px; }
.article-sidebar { display: flex; flex-direction: column; gap: 20px; }
.related-list { list-style: none; padding-left: 0; }
.related-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.related-list li a { color: var(--text-medium); font-size: 13px; }
.related-list li a:hover { color: var(--primary); }

/* ========== 联系我们 ========== */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info h2, .contact-form-card h2 { color: var(--primary); font-size: 24px; margin-bottom: 20px; }
.contact-detail-list { list-style: none; }
.contact-detail-list li {
    display: flex; gap: 15px; padding: 15px 0;
    border-bottom: 1px solid var(--border); align-items: flex-start;
}
.contact-detail-list i { color: var(--primary); margin-top: 4px; width: 20px; text-align: center; }
.contact-detail-list strong { display: block; color: var(--text-dark); }
.contact-detail-list span { color: var(--text-medium); }
.contact-form-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text-dark); }
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* ========== 开户 ========== */
.account-section { padding: 60px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; margin-bottom: 40px; }
.step-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: bold;
    margin: 0 auto 15px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.step-card p { font-size: 13px; color: var(--text-medium); }
.account-form-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
}
.account-form-card h2 { color: var(--primary); margin-bottom: 25px; text-align: center; }
.account-form-card .form-group input[type="checkbox"] { margin-right: 8px; }

/* ========== 底部 ========== */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
    margin-top: 0;
}
.footer-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { color: #fff; font-size: 18px; margin-bottom: 15px; }
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; }
.footer-links a:hover { color: var(--accent-light); }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 10px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.footer-contact i { color: var(--accent-light); width: 18px; text-align: center; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========== 移动端底部固定栏 ========== */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 8px 12px;
}
.mobile-bottom-btn {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.mobile-btn-primary { background: var(--primary); color: #fff; }
.mobile-btn-outline { border: 1px solid var(--primary); color: var(--primary); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .main-nav { display: none; width: 100%; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
    .header-actions { width: 100%; justify-content: space-between; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 28px; }
    .hero { min-height: 400px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: 1fr; }
    .mobile-bottom-bar { display: flex; }
    body { padding-bottom: 60px; }
    .about-section { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
}