/* ============================================================
   VT Markets 站点样式
   路径：/static/css/style.css
   ============================================================ */

:root {
    --gold: #c9a84c;
    --gold-light: #d4b85a;
    --dark: #0a0e17;
    --dark-2: #111827;
    --dark-3: #1a2233;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --white: #ffffff;
    --radius: 12px;
}

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== 头部 ========== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}

.logo-link { flex-shrink: 0; }
.logo-img { height: 36px; width: auto; }

.main-nav {
    display: flex;
    gap: 6px;
    flex: 1;
}

.main-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.25s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
    background: rgba(201,168,76,0.1);
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-open {
    background: var(--gold);
    color: var(--dark);
}
.btn-open:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-admin {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}
.btn-admin:hover { border-color: var(--gold); color: var(--gold); }

.btn-primary {
    background: var(--gold);
    color: var(--dark);
    padding: 14px 36px;
    font-size: 15px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.3); }

.btn-lg { padding: 14px 36px; font-size: 15px; }
.btn-outline {
    display: inline-block;
    padding: 11px 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    transition: all 0.25s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.header-qq {
    position: absolute;
    right: 24px;
    top: 58px;
    font-size: 11px;
    color: var(--text-muted);
    pointer-events: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: 0.3s;
}

/* ========== 主内容偏移 ========== */
.site-main { padding-top: 72px; min-height: 60vh; }

/* ========== 满屏幻灯片 ========== */
.hero-slider {
    position: relative;
    height: calc(100vh - 72px);
    min-height: 520px;
    overflow: hidden;
    background: var(--dark);
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; z-index: 1; }

.slide-1 { background: linear-gradient(135deg, #0a0e17 0%, #1a2233 55%, #2a1f0a 100%); }
.slide-2 { background: linear-gradient(135deg, #0a0e17 0%, #0f1f2e 55%, #1a2a1a 100%); }
.slide-3 { background: linear-gradient(135deg, #0a0e17 0%, #1f1a2e 55%, #2a1a1a 100%); }

.slide-content {
    max-width: 720px;
    padding: 0 24px;
    animation: slideUp 0.8s ease forwards;
}

.slide-content h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.slide-content p {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255,255,255,0.65);
    margin-bottom: 36px;
    line-height: 1.8;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.dot.active { background: var(--gold); border-color: var(--gold); }

/* ========== 通用板块 ========== */
.section { padding: 90px 0; }
.section-alt { background: #f8f9fb; }

.section-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 700;
    color: var(--dark-2);
    margin-bottom: 12px;
    text-align: center;
}

.section-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 48px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s;
}
.card:hover {
    border-color: rgba(201,168,76,0.4);
    box-shadow: 0 12px 32px rgba(0,0,0,0.06);
    transform: translateY(-3px);
}

.card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-2);
}

.card p { font-size: 14px; color: var(--text-light); line-height: 1.75; }

.product-card { border-top: 3px solid var(--gold); }

.account-card ul {
    margin-top: 14px;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-light);
    line-height: 2;
}

.stats-grid { text-align: center; }
.stat-item {
    padding: 36px 20px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.stat-num {
    display: block;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 6px;
}
.stat-label { font-size: 14px; color: var(--text-light); }

/* ========== 新闻卡片 ========== */
.news-card { padding: 0; overflow: hidden; }
.news-thumb { width: 100%; height: 180px; object-fit: cover; }
.news-body { padding: 24px; }
.news-body h3 { font-size: 16px; margin-bottom: 8px; }
.news-body h3 a:hover { color: var(--gold); }
.news-body p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.read-more { font-size: 13px; color: var(--gold); font-weight: 600; }
.read-more:hover { color: var(--gold-light); }

.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mt-20 { margin-top: 20px; }

/* ========== 页面 Hero（内页） ========== */
.page-hero {
    padding: 80px 0 70px;
    text-align: center;
    background: var(--dark);
    color: #fff;
}
.page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
}
.page-hero p { color: rgba(255,255,255,0.6); font-size: 16px; }

.page-hero-about { background: linear-gradient(135deg, #0a0e17, #1a2233); }
.page-hero-trading { background: linear-gradient(135deg, #0a0e17, #0f1f2e); }
.page-hero-news { background: linear-gradient(135deg, #0a0e17, #1f1a2e); }
.page-hero-contact { background: linear-gradient(135deg, #0a0e17, #1a2a1a); }

/* ========== 内容块 ========== */
.content-block p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }

.info-list {
    padding-left: 20px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 2;
}
.info-list li { margin-bottom: 8px; }

/* ========== 奖项 ========== */
.award-card { text-align: center; }
.award-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
    background: rgba(201,168,76,0.1);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* ========== 交易工具 ========== */
.tool-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
}
.tool-block:last-child { border-bottom: none; }
.tool-reverse { direction: rtl; }
.tool-reverse > * { direction: ltr; }

.tool-info h2 { font-size: 24px; margin-bottom: 6px; color: var(--dark-2); }
.tool-tagline { font-size: 14px; color: var(--gold); font-weight: 600; margin-bottom: 16px; }
.tool-info p { font-size: 14px; color: var(--text-light); line-height: 1.85; margin-bottom: 10px; }

.tool-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: linear-gradient(135deg, #f0f2f5, #e8ebf0);
    border-radius: var(--radius);
}
.visual-placeholder {
    font-size: 52px;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.5;
    letter-spacing: 4px;
}

/* ========== 新闻列表页 ========== */
.news-list { max-width: 900px; margin: 0 auto; }
.news-list-item {
    display: flex;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.news-list-item:first-child { padding-top: 0; }
.news-list-thumb {
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}
.news-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-body { flex: 1; min-width: 0; }
.news-list-body h2 { font-size: 19px; margin-bottom: 8px; }
.news-list-body h2 a:hover { color: var(--gold); }
.news-list-body time { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 10px; }
.news-list-body p { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }

.empty-tip { text-align: center; color: var(--text-muted); padding: 60px 0; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}
.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    transition: all 0.25s;
}
.pagination a:hover,
.pagination a.current {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
    font-weight: 600;
}

/* ========== 文章详情 ========== */
.article-hero {
    padding: 70px 0 50px;
    background: var(--dark);
    color: #fff;
}
.back-link { font-size: 13px; color: rgba(255,255,255,0.5); display: inline-block; margin-bottom: 20px; }
.back-link:hover { color: var(--gold); }
.article-hero h1 { font-size: clamp(24px, 4vw, 36px); line-height: 1.35; margin-bottom: 14px; font-weight: 700; }
.article-hero time { font-size: 13px; color: rgba(255,255,255,0.45); }

.article-section { padding: 60px 0 90px; }
.article-container { max-width: 800px; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 40px; }
.article-content {
    font-size: 16px;
    line-height: 1.95;
    color: #374151;
}
.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-2);
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.article-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-2);
    margin: 30px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: 8px; margin: 20px 0; }
.article-content blockquote {
    border-left: 3px solid var(--gold);
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 15px;
}

/* ========== 联系页 ========== */
.contact-card { text-align: center; padding: 40px 28px; }
.contact-value { font-size: 20px; font-weight: 600; color: var(--gold); margin: 14px 0 8px; word-break: break-all; }
.contact-note { font-size: 13px; color: var(--text-light); }

/* ========== 底部 ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding: 64px 0 0;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 48px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}
.footer-logo { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 13px; line-height: 1.8; max-width: 340px; }
.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links a {
    display: block;
    font-size: 13px;
    padding: 5px 0;
    transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p { font-size: 13px; margin-bottom: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.risk-note { margin-top: 6px; font-size: 11px; max-width: 720px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* 底部隐藏管理入口（极不显眼） */
.hidden-admin-link {
    position: fixed;
    bottom: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.06);
    text-align: center;
    line-height: 14px;
    z-index: 999;
    transition: color 0.3s;
    overflow: hidden;
}
.hidden-admin-link:hover { color: rgba(255,255,255,0.25); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .tool-block { grid-template-columns: 1fr; gap: 32px; }
    .tool-reverse { direction: ltr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-inner { height: 64px; gap: 12px; }
    .site-main { padding-top: 64px; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10,14,23,0.98);
        flex-direction: column;
        padding: 12px 24px 20px;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: flex; margin-left: auto; }
    .header-right { gap: 6px; }
    .btn { padding: 7px 12px; font-size: 12px; }
    .header-qq { display: none; }

    .hero-slider { height: calc(100vh - 64px); min-height: 440px; }
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .news-list-item { flex-direction: column; gap: 16px; }
    .news-list-thumb { width: 100%; height: 180px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; }
}