/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--btc-text, #333);
    background-color: var(--btc-bg, #fafafa);
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--btc-orange, #f7931a) 0%, #ffa500 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.logo {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 导航样式 */
.nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 20px 0;
}

.nav-list li {
    margin: 0 4px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 10px;
    border-radius: 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--btc-orange, #f7931a);
    background: rgba(247, 147, 26, 0.1);
}

/* 主要内容区域 */
.main {
    min-height: 100vh;
}

.section {
    padding: 40px 0;
    margin-bottom: 60px;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--btc-orange, #f7931a);
    border-radius: 2px;
}

/* 概览卡片 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.overview-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--btc-orange, #f7931a);
}

/* 时间线样式 */
.timeline-container {
    position: relative;
    padding: 40px 0;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--btc-orange, #f7931a);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--btc-orange, #f7931a);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.3);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-date {
    font-weight: 600;
    color: var(--btc-orange, #f7931a);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
}

/* 里程碑样式 */
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.milestone-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left: 4px solid var(--btc-orange, #f7931a);
    transition: transform 0.3s;
}

.milestone-card:hover {
    transform: translateY(-3px);
}

.milestone-year {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--btc-orange, #f7931a);
}

.milestone-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.milestone-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
}

/* 技术发展时间线 */
.tech-timeline {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.tech-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tech-icon {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.tech-content h4 {
    color: var(--btc-orange, #f7931a);
    margin-bottom: 10px;
}

.tech-date {
    font-weight: 500;
    color: var(--btc-text-2, #666);
    margin-bottom: 10px;
}

/* 价格历史 */
.price-timeline {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.price-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.price-amount {
    flex: 1;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--btc-orange, #f7931a);
    margin-bottom: 5px;
}

.price-date {
    font-weight: 600;
    color: var(--btc-text-2, #666);
    margin-bottom: 10px;
}

.price-details {
    flex: 2;
    line-height: 1.6;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
}

.news-date {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--btc-orange, #f7931a);
}

.news-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
}

/* 标签样式 */
.tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(247, 147, 26, 0.1);
    color: var(--btc-orange, #f7931a);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 10px;
}

/* 爆仓大事件 */
.liquidation-list {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.liq-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #dc3545;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.liq-rank {
    background: linear-gradient(135deg, #dc3545, #a71d2a);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 56px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.liq-main {
    flex: 1;
}

.liq-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.liq-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: #dc3545;
}

.liq-date {
    font-weight: 600;
    color: var(--btc-text-2, #666);
}

.liq-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.liq-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #a86a10;
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.25);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.liq-cause {
    line-height: 1.7;
    color: var(--btc-text-2, #666);
}

/* 中国视角 */
.china-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.china-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #de2910;
    transition: transform 0.3s;
}

.china-card:hover {
    transform: translateY(-3px);
}

.china-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #de2910;
    margin-bottom: 12px;
}

.china-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.china-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
}

.china-derived {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
    overflow: hidden;
}

.china-derived summary {
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    color: var(--btc-orange, #f7931a);
    user-select: none;
    list-style-position: inside;
}

.china-derived summary:hover {
    background: rgba(247, 147, 26, 0.05);
}

.china-derived-list {
    padding: 0 25px 20px;
    max-height: 480px;
    overflow-y: auto;
}

.china-derived-item {
    display: grid;
    grid-template-columns: 150px 240px 1fr;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.92rem;
    align-items: baseline;
}

.china-derived-item:last-child {
    border-bottom: none;
}

.china-derived-date {
    color: var(--btc-orange, #f7931a);
    font-weight: 600;
    white-space: nowrap;
}

.china-derived-title {
    font-weight: 600;
    color: #333;
}

.china-derived-desc {
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 挖矿历程 */
.mining-timeline {
    display: grid;
    gap: 20px;
    margin-top: 40px;
}

.mining-item {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--btc-orange, #f7931a);
}

.mining-content h4 {
    color: var(--btc-orange, #f7931a);
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.mining-date {
    font-weight: 500;
    color: var(--btc-text-2, #666);
    margin-bottom: 10px;
}

.mining-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.mining-stat {
    background: rgba(247, 147, 26, 0.08);
    border: 1px solid rgba(247, 147, 26, 0.25);
    color: #a86a10;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 政策监管 */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.policy-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.policy-card:hover {
    transform: translateY(-3px);
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.policy-country {
    background: var(--btc-orange, #f7931a);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.policy-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--btc-text-2, #666);
}

.policy-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.policy-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
    margin-bottom: 15px;
}

.policy-impact {
    background: rgba(247, 147, 26, 0.08);
    border-left: 3px solid var(--btc-orange, #f7931a);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #a86a10;
}

/* 安全事故 */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.security-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.security-card:hover {
    transform: translateY(-3px);
}

.security-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.security-type {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.security-severity {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.severity-high {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.severity-medium {
    background: rgba(255, 193, 7, 0.18);
    color: #b58500;
}

.severity-low {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.security-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

.security-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--btc-text-2, #666);
    margin-bottom: 12px;
}

.security-description {
    line-height: 1.6;
    color: var(--btc-text-2, #666);
    margin-bottom: 15px;
}

.security-impact {
    background: rgba(220, 53, 69, 0.06);
    border-left: 3px solid #dc3545;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #a03040;
    margin-bottom: 5px;
}

.section-desc {
    text-align: center;
    color: var(--btc-text-2, #666);
    margin-top: -25px;
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-list li {
        margin: 5px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -20px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .liq-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .overview-grid,
    .milestones-grid,
    .news-grid,
    .china-grid,
    .policy-grid,
    .security-grid {
        grid-template-columns: 1fr;
    }

    .china-derived-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--btc-text-2, #666);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--btc-orange, #f7931a);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
