* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #fafbfc;
    color: #1a1d29;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 500;
    color: #1a1d29;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.navbar-nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: #717782;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1d29;
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

/* 面包屑导航 */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #717782;
    font-weight: 400;
}

.breadcrumb a {
    color: #717782;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1d29;
}

/* 标题区域 */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1d29;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 14px;
    color: #717782;
    font-weight: 400;
}

.asset-overview-grid {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.asset-main-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.asset-main-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.asset-identity {
    display: flex;
    align-items: center;
    gap: 16px;
}

.asset-logo {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, #facc15 0%, #f97316 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1a1d29;
    font-size: 20px;
}

.asset-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asset-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.asset-title {
    margin: 0;
    font-size: 26px;
    font-weight: 500;
    color: #1a1d29;
    letter-spacing: -0.4px;
}

.asset-symbol-badge,
.asset-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 400;
    color: #717782;
}

.asset-tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.asset-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: #f5f5f5;
    color: #717782;
    font-size: 12px;
    font-weight: 400;
}

.price-highlight {
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-number {
    font-size: 32px;
    font-weight: 600;
    color: #1a1d29;
    letter-spacing: -0.5px;
}

.price-change-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    font-size: 14px;
    align-items: center;
}

.price-lowhigh {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    font-size: 12px;
    color: #9196a5;
}

.delta-positive {
    color: #10b981;
}

.delta-negative {
    color: #ef4444;
}

.asset-info-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px;
}

.chart-data-wrapper .asset-info-card {
    flex: 0 0 320px;
    max-width: 100%;
}

.info-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1d29;
    margin-bottom: 16px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #1a1d29;
}

.info-item span:first-child {
    color: #717782;
    font-weight: 400;
}

.info-item span:last-child {
    font-weight: 500;
    color: #1a1d29;
}

.overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.asset-name {
    font-size: 24px;
    font-weight: 500;
    color: #1a1d29;
    letter-spacing: -0.3px;
}

.asset-symbol {
    background: #f5f5f5;
    color: #717782;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 13px;
    color: #717782;
    font-weight: 400;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    color: #1a1d29;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.change-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.change-badge.positive {
    background: #d1fae5;
    color: #065f46;
}

.change-badge.negative {
    background: #fee2e2;
    color: #991b1b;
}

/* 图表和数据容器 */
.chart-data-wrapper {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    align-items: flex-start;
}

/* 图表区域 */
.chart-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    flex: 0 0 66.666%;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.chart-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reset-btn {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 400;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    color: #717782;
}

.reset-btn:hover {
    background: #fafbfc;
    border-color: #e5e7eb;
    color: #1a1d29;
}

.chart-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1d29;
    letter-spacing: -0.2px;
}

.time-selector {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 3px;
    border-radius: 6px;
}

.time-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #717782;
}

.time-btn:hover {
    background: #e5e7eb;
    color: #1a1d29;
}

.time-btn.active {
    background: #ffffff;
    color: #1a1d29;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.unit-selector {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 3px;
    border-radius: 6px;
}

.unit-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 400;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #717782;
}

.unit-btn:hover {
    background: #e5e7eb;
    color: #1a1d29;
}

.unit-btn.active {
    background: #ffffff;
    color: #1a1d29;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-container {
    position: relative;
    height: 400px;
}

.loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.loading.active {
    display: flex;
    opacity: 1;
}

.chart-container canvas {
    transition: opacity 0.3s ease-in-out;
}

.chart-container.loading-chart canvas {
    opacity: 0.3;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f0f0f0;
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 页脚 */
.footer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    padding: 32px 24px;
    margin-top: 64px;
    text-align: center;
    color: #717782;
    font-size: 14px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 16px;
    }

    .container {
        padding: 20px 16px;
    }

    .page-title {
        font-size: 24px;
    }

    .asset-overview-grid {
        flex-direction: column;
    }

    .asset-main-card,
    .asset-info-card {
        width: 100%;
    }

    .asset-main-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .price-highlight {
        align-items: flex-start;
        text-align: left;
    }

    .price-change-row,
    .price-lowhigh {
        justify-content: flex-start;
    }

    .chart-container {
        height: 300px;
    }

    .chart-card {
        padding: 20px;
    }

    .chart-data-wrapper {
        flex-direction: column;
    }

}

