/* perspective.css */

/* 核心变量与通用样式继承自 style.css，此处仅包含页面特定样式 */
:root {
    --font-mono: 'JetBrains Mono', monospace;
}

.mw-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0;
}

/* 英雄区域 */
.hero-display {
    text-align: center;
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.hero-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.hero-amount {
    font-family: var(--font-mono);
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.hero-timer {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 1rem;
}

/* 控制面板 */
.controls-section {
    margin-bottom: 3rem;
}

.wage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    align-items: center;
}

.wage-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 4px; 
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.wage-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.wage-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* 重置按钮 */
.reset-btn {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #E74C3C;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-left: 0.5rem;
}

.reset-btn:hover {
    background: #E74C3C;
    color: white;
}

.custom-input-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.custom-input-wrapper input {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    width: 100px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-align: right;
}

/* 统计区域 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
}

/* 列表头部 */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.list-title {
    font-size: 1.1rem;
    font-weight: 500;
}

.sort-controls {
    display: flex;
    gap: 0.5rem;
}

.sort-btn {
    font-size: 0.8rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.sort-btn.active {
    color: var(--accent);
    font-weight: 600;
}

/* 对比列表 */
.comparison-list {
    display: flex;
    flex-direction: column;
    gap: 0; 
}

.comp-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    padding: 1.25rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background 0.2s;
}

.comp-row:hover {
    background: var(--bg-secondary);
}

.comp-row.current-user-row {
    background: rgba(243, 156, 18, 0.1); 
    border-left: 3px solid var(--accent);
    padding-left: calc(0.5rem - 3px); 
}

.comp-row.current-user-row .comp-name {
    color: var(--accent);
    font-weight: 700;
}

.comp-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comp-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.comp-rate {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: right;
}

.comp-live {
    text-align: right;
}

.comp-live-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    display: block;
}

.comp-speed {
    font-size: 0.75rem;
    color: var(--accent);
    display: block;
    margin-top: 4px;
}

/* 关于部分 */
.about-section {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.about-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.about-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
    .comp-row {
        grid-template-columns: 1.5fr 1fr;
    }
    .comp-rate-col {
        display: none;
    }
    .hero-amount {
        font-size: 3.5rem;
    }
    .wage-grid {
        gap: 0.5rem;
    }
    .reset-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}