/* w8 - 侧边栏导航风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --secondary: #00b894;
    --accent: #fd79a8;
    --dark: #2d3436;
    --light: #f8f9fa;
    --text: #2d3436;
    --text-light: #636e72;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--light);
    color: var(--text);
    display: flex;
    min-height: 100vh;
}

/* 侧边导航 */
.sidebar-nav {
    width: 240px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.nav-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.nav-menu {
    flex: 1;
    list-style: none;
    padding: 1rem 0;
}

.nav-menu li {
    margin: 0.5rem 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(108, 92, 231, 0.05);
    border-left-color: var(--primary);
}

.nav-menu .icon {
    font-size: 1.3rem;
}

.nav-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.nav-btn {
    padding: 0.8rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.primary {
    background: var(--primary);
    color: white;
}

.nav-btn.primary:hover {
    background: #5f4ed1;
    transform: translateY(-2px);
}

.nav-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.nav-btn.secondary:hover {
    background: rgba(108, 92, 231, 0.05);
}

/* 主内容区 */
.main-content {
    margin-left: 240px;
    flex: 1;
    padding: 0;
}

/* Hero区域 */
.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 4rem 3rem;
    min-height: 90vh;
    align-items: center;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef5f9 100%);
}

.hero-tag {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.1);
}

.hero-left h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-left .highlight {
    color: var(--primary);
    position: relative;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.features-quick {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5f4ed1;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: white;
}

.stats-row {
    display: flex;
    gap: 3rem;
}

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

.stat strong {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 交易卡片 */
.trading-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

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

.card-header h3 {
    font-size: 1.3rem;
}

.refresh-icon {
    font-size: 1.2rem;
    cursor: pointer;
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
    transition: all 0.3s;
}

.market-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.coin-info {
    display: flex;
    flex-direction: column;
}

.coin-symbol {
    font-weight: 700;
    font-size: 1.1rem;
}

.coin-name {
    font-size: 0.85rem;
    color: var(--text-light);
}

.price-info {
    text-align: right;
}

.price {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.change {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.change.positive {
    background: #d4edda;
    color: #155724;
}

.change.negative {
    background: #f8d7da;
    color: #721c24;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

/* 产品区域 */
.products-section {
    padding: 5rem 3rem;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-box {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s;
    position: relative;
}

.product-box:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.2);
}

.product-box.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f5f3ff 0%, #fef5f9 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-box > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.product-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.product-link:hover {
    transform: translateX(5px);
}

/* 理财区域 */
.earn-showcase {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef5f9 100%);
}

.earn-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.section-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.earn-info h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.earn-info > p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.earn-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
}

.benefit-icon {
    font-size: 2.5rem;
}

.benefit-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.earnings-display {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.earnings-display h4 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.earning-example {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.input-display,
.output-display {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.input-display label,
.output-display label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.profit {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

.rate-info {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 教程区域 */
.tutorial-section {
    padding: 5rem 3rem;
    background: white;
}

.tutorial-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: var(--light);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.step-card > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.step-details {
    text-align: left;
}

.detail-item {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* 优势区域 */
.advantages-section {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #fef5f9 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

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

.adv-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.advantage-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA区域 */
.cta-section {
    padding: 5rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.cta-note {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 3rem 2rem;
}

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

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-stats div {
    color: rgba(255,255,255,0.7);
}

.footer-stats strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.85rem;
}

/* 响应式 */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 70px;
    }
    
    .nav-logo,
    .nav-menu .text {
        display: none;
    }
    
    .nav-menu a {
        justify-content: center;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .hero-split,
    .earn-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .cta-note {
        flex-direction: column;
        gap: 0.5rem;
    }
}