/* ===== 摸鱼时长统计 · 专属样式 ===== */

/* ---- Hero 区域 ---- */
.st-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #eef4ff 0%, #f7faff 60%, #eef4ff 100%);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #d8e4f5;
    transition: background 0.3s ease;
}
.st-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    width: 480px;
    height: 460px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.st-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    max-width: 560px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}
.st-brand { display: flex; flex-direction: column; gap: 4px; }
.st-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.st-tagline { font-size: 13px; color: #7f9ec9; font-weight: 500; }
.st-date {
    font-size: 15px;
    font-weight: 800;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
    padding: 8px 14px;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

/* ---- 今日卡片 ---- */
.st-today-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 26px 24px 22px;
    border-radius: 18px;
    background: linear-gradient(160deg, #fff, #f5f9ff);
    border: 2px solid #dbe7fa;
    box-shadow: 0 12px 34px rgba(59, 130, 246, 0.12);
    margin-bottom: 18px;
}
.st-today-label { font-size: 13px; font-weight: 700; color: #7f9ec9; margin-bottom: 6px; }
.st-today-num {
    font-size: 44px;
    font-weight: 900;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.st-today-sub { font-size: 13px; font-weight: 600; color: #3b82f6; margin-top: 6px; }
.st-today-bar {
    margin-top: 16px;
    height: 8px;
    border-radius: 999px;
    background: #e2ecfb;
    overflow: hidden;
}
.st-today-bar-in {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.5s ease;
    min-width: 2px;
}

/* ---- 统计格子 ---- */
.st-stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin-bottom: 26px;
}
.st-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe7fa;
}
.st-stat .num {
    font-size: 17px;
    font-weight: 900;
    color: #1d4ed8;
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.st-stat .label { font-size: 11.5px; color: #7f9ec9; font-weight: 600; }

/* ---- 区块 ---- */
.st-section {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin-bottom: 22px;
}
.st-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 14px;
}
.st-tip { font-size: 12px; color: #7f9ec9; font-weight: 600; }

/* ---- 周图表 ---- */
.st-week-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dbe7fa;
}
.st-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 4px;
    position: relative;
}
.st-bar {
    width: 60%;
    max-width: 34px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #60a5fa, #3b82f6);
    transition: height 0.4s ease;
    min-height: 6px;
}
.st-bar-col.is-today .st-bar {
    background: linear-gradient(180deg, #06b6d4, #0ea5e9);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}
.st-bar-label { font-size: 11px; font-weight: 700; color: #7f9ec9; }
.st-bar-val { font-size: 10px; color: #a5b8d6; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- 工具排行 ---- */
.st-tool-rank {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.st-rank-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #dbe7fa;
}
.st-rank-medal { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.st-rank-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #1e3a8a;
    min-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.st-rank-bar-track {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #e2ecfb;
    overflow: hidden;
}
.st-rank-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    transition: width 0.5s ease;
}
.st-rank-count {
    font-size: 12px;
    font-weight: 800;
    color: #1d4ed8;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.st-empty {
    padding: 28px;
    text-align: center;
    font-size: 13.5px;
    color: #7f9ec9;
    background: #fff;
    border: 1px dashed #c9d9f0;
    border-radius: 12px;
}

/* ---- 评语 ---- */
.st-comment {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.08));
    border: 1px solid #c9d9f0;
    margin-bottom: 10px;
}
.st-comment-icon { font-size: 30px; flex-shrink: 0; }
.st-comment-text { font-size: 13.5px; line-height: 1.8; color: #33507e; font-weight: 600; }

/* ---- 清空按钮 ---- */
.st-clear-btn {
    margin-top: 8px;
    color: #dc2626 !important;
    border-color: #f5c6c6 !important;
}
.st-clear-btn:hover { background: #fef2f2 !important; }

/* ---- 黑夜模式 ---- */
[data-theme="dark"] .st-hero {
    background: linear-gradient(180deg, #161f31 0%, #141c2c 60%, #161f31 100%);
    border-color: #27344d;
}
[data-theme="dark"] .st-tagline { color: #7187ab; }
[data-theme="dark"] .st-date { color: #8ab0f0; background: rgba(59, 130, 246, 0.16); }
[data-theme="dark"] .st-today-card {
    background: linear-gradient(160deg, #1a2438, #161f31);
    border-color: #2a3a57;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .st-today-label { color: #7187ab; }
[data-theme="dark"] .st-today-num { color: #93b8f5; }
[data-theme="dark"] .st-today-sub { color: #6ea8f7; }
[data-theme="dark"] .st-today-bar { background: #27344d; }
[data-theme="dark"] .st-stat { background: #1a2438; border-color: #2a3a57; }
[data-theme="dark"] .st-stat .num { color: #93b8f5; }
[data-theme="dark"] .st-stat .label { color: #7187ab; }
[data-theme="dark"] .st-section-title { color: #c9d9f5; }
[data-theme="dark"] .st-tip { color: #7187ab; }
[data-theme="dark"] .st-week-chart { background: #1a2438; border-color: #2a3a57; }
[data-theme="dark"] .st-bar-label { color: #7187ab; }
[data-theme="dark"] .st-bar-val { color: #53688c; }
[data-theme="dark"] .st-rank-row { background: #1a2438; border-color: #2a3a57; }
[data-theme="dark"] .st-rank-name { color: #c9d9f5; }
[data-theme="dark"] .st-rank-bar-track { background: #27344d; }
[data-theme="dark"] .st-rank-count { color: #8ab0f0; }
[data-theme="dark"] .st-empty { background: #1a2438; border-color: #33445f; color: #7187ab; }
[data-theme="dark"] .st-comment { background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.12)); border-color: #2a3a57; }
[data-theme="dark"] .st-comment-text { color: #9db4d8; }
