/* 全局重置 */
:root {
    --gold: #ffb400;
    --dark-bg: #0b0b0b;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-dim: #999;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 头部导航 */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.main-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #333;
}

.logo-text {
    margin-left: 12px;
}

.logo-text .title {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 1px;
}

.logo-text .sub-title {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.nav-bar {
    display: flex;
    gap: 20px;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-bar a:hover {
    color: var(--gold);
}

/* 板块通用 */
.section {
    padding: 40px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    margin: 0;
    padding-left: 12px;
    border-left: 4px solid var(--gold);
}

.more {
    font-size: 0.8rem;
    color: var(--gold);
    cursor: pointer;
}

/* 瀑布流布局自适应 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.news-card {
    position: relative;
    background: var(--card-bg) url("../images/r1.jpg") center / cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border 0.3s ease;
    border: 1px solid #333;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
}

.news-info {
    position: relative;
    padding: 18px;
    width: 100%;
}

.news-info h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.4;
    height: 3rem;
    overflow: hidden;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.news-info p {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.news-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* 详情页 / 文章页 */
.article-detail {
    padding-top: 30px;
    padding-bottom: 50px;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #333;
}

.article-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.75rem;
    line-height: 1.35;
    margin: 0 0 16px;
    color: var(--text-main);
}

.article-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-dim);
    margin: 0;
}

.article-content {
    max-width: 720px;
    line-height: 1.75;
}

.article-section {
    margin-bottom: 32px;
}

.article-section h2 {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 0 0 14px;
    padding-left: 10px;
    border-left: 3px solid var(--gold);
}

.article-section p {
    margin: 0 0 14px;
    color: #ddd;
    font-size: 0.95rem;
}

.article-section ul,
.article-section ol {
    margin: 0 0 14px;
    padding-left: 1.5em;
    color: #ddd;
}

.article-section li {
    margin-bottom: 8px;
}

.article-section li strong {
    color: #eee;
}

.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.back-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* FAQ 样式 */
.faq-container {
    display: grid;
    gap: 15px;
}

.faq-item {
    background: #222;
    padding: 20px;
    border-radius: 8px;
}

.faq-item h4 {
    margin: 0 0 10px;
    color: var(--gold);
}

.faq-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
}

/* 充值流程步骤 */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(145deg, #1e1e1e, #111);
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    border: 1px dashed #444;
}

.step-num {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,180,0,0.2);
    margin-bottom: 10px;
}

/* 下载区域 */
.download-card {
    display: flex;
    align-items: center;
    background: #1e1e1e;
    padding: 30px;
    border-radius: 20px;
    gap: 30px;
}

.qr-wrapper img {
    width: 240px;
    height: auto;
}

.btn-dl {
    background: var(--gold);
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
}

/* 页脚 */
.footer {
    background: #050505;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #555;
}

.footer-links {
    margin-bottom: 15px;
    color: #888;
}

.footer a:hover {
    text-decoration: underline;
}

/* --- 移动端深度优化 --- */
@media (max-width: 768px) {
    .header-flex {
        flex-direction: column;
        gap: 12px;
    }

    .nav-bar {
        width: 100%;
        justify-content: space-around;
        padding: 10px 0;
        border-top: 1px solid #222;
    }

    .nav-bar a {
        font-size: 0.85rem;
    }

    .news-grid {
        grid-template-columns: 1fr; /* 手机端每行一个，保证大图冲击力 */
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .section-title {
        font-size: 1.2rem;
    }
    
    .news-info h3 {
        height: auto; /* 手机端标题高度自适应 */
    }
}

/* 充值流程容器 */
.process-wrapper {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    position: relative;
}

.process-node {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* 步骤图标/数字 */
.node-icon {
    width: 60px;
    height: 60px;
    background: #222;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 180, 0, 0.3);
    transition: all 0.3s ease;
}

.node-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold);
}

.node-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.node-content p {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding: 0 20px;
    line-height: 1.5;
}

/* PC端 节点连线 */
.node-line {
    position: absolute;
    top: 30px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    z-index: -1;
}

/* --- 悬停效果 --- */
.process-node:hover .node-icon {
    background: var(--gold);
    transform: scale(1.1);
}
.process-node:hover .node-number {
    color: #000;
}

/* --- 移动端自适应优化 --- */
@media (max-width: 768px) {
    .process-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px; /* 为左侧连线留空间 */
    }

    .process-node {
        flex-direction: row;
        text-align: left;
        margin-bottom: 40px;
        width: 100%;
    }

    .node-icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 20px;
    }

    .node-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .node-content p {
        padding: 0;
    }

    /* 移动端 连线改为垂直方向 */
    .node-line {
        top: 50px;
        left: 25px;
        width: 2px;
        height: calc(100% + 20px);
        background: linear-gradient(180deg, var(--gold), transparent);
    }
}