/* ===== style.css - 完整的币安主题样式文件 ===== */
/* 包含：全局变量、头部导航、Banner轮播、优势卡片、APP推广、新手指引、资讯列表、列表页、内容页、页脚、响应式 */

/* ===== 全局样式与变量 ===== */
:root {
    --primary: #f0b90b;        /* 币安品牌橙黄 */
    --primary-dark: #d6a40a;
    --black: #0b0e11;
    --dark: #181a20;
    --gray: #2b2f36;
    --light-gray: #474d57;
    --white: #eaecef;
    --text-light: #b5b9c4;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部导航 ===== */
.header {
    background-color: var(--dark);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-register {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--black);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-register:hover {
    background: var(--primary-dark);
}

/* ===== 汉堡菜单移动端 ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    z-index: 101;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        z-index: 100;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        display: block;
        padding: 18px 20px;
        font-size: 18px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .header-buttons .btn-login {
        display: none;
    }
}

/* ===== Banner轮播 - 左右结构版 ===== */
.banner-section {
    position: relative;
    overflow: hidden;
    height: 550px;
    background: linear-gradient(135deg, var(--black), var(--dark));
}

.banner-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.banner-section .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.banner-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.banner-text {
    flex: 1;
    text-align: left;
}

.banner-text h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.banner-text h1 span {
    color: var(--primary);
}

.banner-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.banner-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.banner-btn {
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.banner-btn.primary {
    background: var(--primary);
    color: var(--black);
}

.banner-btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 185, 11, 0.3);
}

.banner-btn.secondary {
    background: transparent;
    border: 1px solid var(--light-gray);
    color: var(--white);
}

.banner-btn.secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(240, 185, 11, 0.1);
}

.banner-image {
    flex: 1;
    text-align: center;
}

.banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.banner-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== 优势卡片 ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 60px 0;
}

.feature-card {
    background: var(--dark);
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 28px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== APP推广 ===== */
.app-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--dark), var(--black));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.app-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.app-text {
    flex: 1;
}

.app-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.app-text h2 span {
    color: var(--primary);
}

.app-text p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-btn {
    background: var(--gray);
    border: none;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.app-btn:hover {
    background: var(--primary);
    color: var(--black);
    border-color: var(--primary);
}

.app-image {
    flex: 1;
    text-align: center;
}

.app-image img {
    max-width: 50%;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== 新手指引 ===== */
.guide-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-light);
    font-size: 16px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.guide-card {
    background: var(--dark);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.guide-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.guide-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.guide-card h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--white);
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== 资讯列表 ===== */
.news-section {
    padding: 60px 0;
    background: var(--dark);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--black);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-date {
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.news-card h3 a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card h3 a:hover {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.news-meta i {
    color: var(--primary);
    margin-right: 4px;
}

/* ===== 列表页专用 ===== */
.list-header {
    padding: 40px 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border-color);
}

.list-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: 12px;
    color: var(--light-gray);
}

.category-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
    justify-content: center;
}

.tag {
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 8px 24px;
    font-size: 14px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.tag:hover,
.tag.active {
    background: var(--primary);
    color: var(--black);
    border-color: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-item {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 12px;
}

.page-item:hover,
.page-item.active {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(240, 185, 11, 0.1);
}

.page-dots {
    display: flex;
    align-items: center;
    color: var(--text-light);
    padding: 0 4px;
}

/* ===== 内容页专用 ===== */
.detail-header {
    padding: 40px 0;
    background: var(--dark);
    border-bottom: 1px solid var(--border-color);
}

.detail-header h1 {
    font-size: 38px;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--white);
}

.detail-meta {
    display: flex;
    gap: 30px;
    color: var(--text-light);
    font-size: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.detail-meta i {
    color: var(--primary);
    margin-right: 6px;
}

.detail-container {
    display: flex;
    gap: 40px;
    padding: 50px 0;
}

.detail-main {
    flex: 2.5;
}

.article-card {
    background: var(--dark);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

.article-content h2 {
    font-size: 24px;
    margin: 32px 0 16px;
    color: var(--white);
}

.article-content h3 {
    font-size: 20px;
    margin: 28px 0 12px;
    color: var(--white);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.article-content ul,
.article-content ol {
    margin: 20px 0 20px 24px;
    color: var(--text-light);
}

.article-content li {
    margin-bottom: 8px;
}

.article-content .highlight-box {
    background: rgba(240, 185, 11, 0.1);
    border-left: 4px solid var(--primary);
    padding: 24px;
    border-radius: 16px;
    margin: 30px 0;
}

.article-content .highlight-box p:last-child {
    margin-bottom: 0;
}

.article-tags {
    display: flex;
    gap: 12px;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.article-tag {
    background: var(--gray);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 13px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.share-buttons span {
    font-weight: 600;
    color: var(--text-light);
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.share-btn:hover {
    background: var(--primary);
    color: var(--black);
    border-color: var(--primary);
}

.detail-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-card {
    background: var(--dark);
    border-radius: 24px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
}

.sidebar-card h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i {
    color: var(--primary);
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 16px;
}

.related-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-list li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    display: block;
    transition: color 0.2s;
    line-height: 1.5;
}

.related-list li a:hover {
    color: var(--primary);
}

.related-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.download-item:last-child {
    border-bottom: none;
}

.download-icon {
    width: 48px;
    height: 48px;
    background: var(--gray);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h5 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--white);
}

.download-info p {
    font-size: 13px;
    color: var(--text-light);
}

.download-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}

.download-btn:hover {
    background: var(--primary);
    color: var(--black);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--gray);
    border-radius: 20px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-item:hover {
    border-color: var(--primary);
    background: rgba(240, 185, 11, 0.1);
}

.service-item:not(:last-child) {
    margin-bottom: 12px;
}

.service-icon {
    width: 44px;
    height: 44px;
    background: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 20px;
    flex-shrink: 0;
}

.service-info {
    flex: 1;
}

.service-info h5 {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 2px;
}

.service-info p {
    font-size: 13px;
    color: var(--text-light);
}

.article-pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.prev-article,
.next-article {
    flex: 1;
    max-width: calc(50% - 10px);
}

.prev-article a,
.next-article a {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    background: var(--black);
    padding: 16px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    height: 100%;
}

.prev-article a:hover,
.next-article a:hover {
    border-color: var(--primary);
    background: rgba(240, 185, 11, 0.05);
}

.prev-article a i,
.next-article a i {
    font-size: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.pagination-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pagination-text .label {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-text .title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--white);
}

.next-article a {
    text-align: right;
}

.next-article a i {
    order: 2;
}

.next-article .pagination-text {
    order: 1;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col .footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-light);
    font-size: 20px;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-col h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 14px;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 13px;
}

/* ===== 响应式布局 ===== */
@media (max-width: 1024px) {
    .features-grid,
    .guide-grid,
    .news-grid,
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-content {
        flex-direction: column;
        text-align: center;
    }

    .app-text {
        text-align: center;
    }

    .app-buttons {
        justify-content: center;
    }

    .detail-container {
        flex-direction: column;
    }

    .banner-text h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .features-grid,
    .guide-grid,
    .news-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .banner-section {
        height: auto;
        min-height: 500px;
        padding: 250px 0;
    }

    .banner-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .banner-text {
        text-align: center;
    }

    .banner-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-image {
        width: 80%;
        margin: 0 auto;
    }

    .banner-text h1 {
        font-size: 32px;
    }

    .app-image {
        width: 80%;
        margin: 0 auto;
    }

    .list-header h1,
    .detail-header h1 {
        font-size: 32px;
    }

    .detail-meta {
        gap: 15px;
    }

    .article-card {
        padding: 24px;
    }

    .article-pagination {
        flex-direction: column;
    }

    .prev-article,
    .next-article {
        max-width: 100%;
    }

    .pagination {
        gap: 5px;
    }

    .page-item {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .banner-text h1 {
        font-size: 28px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .share-buttons {
        justify-content: center;
    }
}

/* ===== 工具类 ===== */
.text-primary {
    color: var(--primary);
}

.bg-dark {
    background-color: var(--dark);
}

.bg-black {
    background-color: var(--black);
}

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

.py-4 {
    padding-top: 40px;
    padding-bottom: 40px;
}