/* 
 * 币安App官方网站 - 样式表
 * 网站: binancezhapp16.com
 * 设计: 暗色主题，响应式布局
 */

/* ---------- 基础样式 ---------- */
:root {
    --primary-bg: #0A0E17;
    --secondary-bg: #14151A;
    --tertiary-bg: #1E2329;
    --binance-yellow: #F0B90B;
    --text-primary: #EAECEF;
    --text-secondary: #B7BDC6;
    --text-tertiary: #848E9C;
    --border-color: #2E3241;
    --success-green: #0ECB81;
    --error-red: #F6465D;
    --gradient-primary: linear-gradient(90deg, #F0B90B 0%, #FBDA3C 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--binance-yellow);
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.section-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    gap: 8px;
}

.primary-btn {
    background-color: var(--binance-yellow);
    color: var(--primary-bg);
    border: none;
}

.primary-btn:hover {
    background-color: #daa520;
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--binance-yellow);
    border: 1px solid var(--binance-yellow);
}

.secondary-btn:hover {
    background-color: rgba(240, 185, 11, 0.1);
    color: var(--binance-yellow);
    transform: translateY(-2px);
}

/* ---------- 头部样式 ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(46, 50, 65, 0.5);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--binance-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.action-btn {
    margin-left: 2rem;
}

.language-switcher {
    margin-left: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    opacity: 1;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ---------- 英雄区样式 ---------- */
.hero-section {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title span {
    color: var(--binance-yellow);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 720px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--binance-yellow);
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* ---------- 产品特性样式 ---------- */
.advantages-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background-color: var(--tertiary-bg);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(240, 185, 11, 0.1);
    border-radius: 12px;
}

.advantage-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-desc {
    color: var(--text-secondary);
}

/* ---------- 下载应用样式 ---------- */
.download-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.download-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-card {
    background-color: var(--tertiary-bg);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.download-header h3 {
    font-size: 1.8rem;
}

.badge {
    background-color: var(--binance-yellow);
    color: var(--primary-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.download-content {
    margin-bottom: 1.5rem;
}

.device-options {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.device-option {
    flex: 1;
    text-align: center;
}

.device-icon {
    background-color: rgba(240, 185, 11, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: background-color 0.3s ease;
}

.download-card:hover .device-icon {
    background-color: rgba(240, 185, 11, 0.2);
}

.device-name {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* ---------- 市场行情样式 ---------- */
.market-section {
    padding: 100px 0;
    background-color: var(--secondary-bg);
}

.market-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background-color: var(--tertiary-bg);
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.market-table th,
.market-table td {
    padding: 1rem;
    text-align: left;
}

.market-table th {
    background-color: rgba(10, 14, 23, 0.5);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.market-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.market-table tbody tr:last-child {
    border-bottom: none;
}

.market-table tbody tr:hover {
    background-color: rgba(10, 14, 23, 0.3);
}

.coin-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-name {
    font-weight: 500;
}

.coin-pair {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.price-up {
    color: var(--success-green);
}

.price-down {
    color: var(--error-red);
}

.market-link {
    text-align: center;
    margin-top: 2rem;
}

/* ---------- 关于部分样式 ---------- */
.about-section {
    padding: 100px 0;
    background-color: var(--primary-bg);
    position: relative;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-info {
    flex: 1;
}

.about-info p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-icon {
    display: flex;
    align-items: center;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-svg {
    max-width: 100%;
    height: auto;
}

/* ---------- 页脚样式 ---------- */
.site-footer {
    background-color: var(--secondary-bg);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--binance-yellow);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.language-select a {
    color: var(--text-tertiary);
}

.language-select a.active {
    color: var(--binance-yellow);
}

/* ---------- 响应式设计 ---------- */
@media (max-width: 1200px) {
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        position: relative;
        width: 80%;
        max-width: 500px;
        margin: 0 auto;
        top: auto;
        right: auto;
        transform: none;
        order: -1;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        height: 70px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary-bg);
        padding: 1rem 0;
        flex-direction: column;
        align-items: flex-start;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
        gap: 1rem;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 0;
    }
    
    .action-btn {
        margin: 1rem 20px;
    }
    
    .language-switcher {
        margin: 0 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        justify-content: space-between;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .advantages-section, 
    .download-section, 
    .market-section,
    .about-section {
        padding: 60px 0;
    }
    
    .advantage-title {
        font-size: 1.3rem;
    }
    
    .download-header h3 {
        font-size: 1.5rem;
    }
    
    .device-options {
        flex-direction: column;
    }
}
