* { font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
    
    @keyframes fadeUp {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    @keyframes slideInLeft {
        from { opacity: 0; transform: translateX(-30px); }
        to { opacity: 1; transform: translateX(0); }
    }
    @keyframes scaleIn {
        from { opacity: 0; transform: scale(0.9); }
        to { opacity: 1; transform: scale(1); }
    }
    @keyframes shimmer {
        0% { background-position: -200% center; }
        100% { background-position: 200% center; }
    }
    @keyframes pulse-ring {
        0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
        70% { box-shadow: 0 0 0 15px rgba(22, 163, 74, 0); }
        100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
    }
    @keyframes countUp {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .animate-fadeUp { animation: fadeUp 0.6s ease-out forwards; }
    .animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }
    .animate-slideInLeft { animation: slideInLeft 0.5s ease-out forwards; }
    .animate-scaleIn { animation: scaleIn 0.4s ease-out forwards; }
    .animate-countUp { animation: countUp 0.4s ease-out forwards; }
    
    .badge-entrance { animation-delay: 0s; }
    .vdot-entrance { animation-delay: 0.15s; opacity: 0; }
    .title-entrance { animation-delay: 0.25s; opacity: 0; }
    .desc-entrance { animation-delay: 0.4s; opacity: 0; }
    
    .reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
    .reveal.visible { opacity: 1; transform: translateY(0); }
    
    .card {
        transition: all 0.3s ease;
    }
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    }
    
    .btn-shimmer::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
        animation: shimmer 2s infinite;
    }
    .btn-shimmer:hover::after {
        animation-duration: 0.8s;
    }
    
    .pulse-idle {
        animation: pulse-ring 2s infinite;
    }
    
    .pace-tag {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-left: 6px;
        vertical-align: middle;
    }
    .pace-easy { background: #dcfce7; color: #16a34a; }
    .pace-tempo { background: #dbeafe; color: #2563eb; }
    .pace-interval { background: #fce7f3; color: #7c3aed; }
    .pace-r { background: #fef9c3; color: #a16207; }
    .pace-goal { background: #fee2e2; color: #dc2626; }
    
    /* 图表区域样式 */
    .summary-cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 16px;
    }
    
    @media (min-width: 640px) {
        .summary-cards {
            grid-template-columns: repeat(5, 1fr);
        }
    }
    
    .summary-card {
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px 12px;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .summary-card:hover {
        border-color: #16a34a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
    }
    
    .summary-card.load-status {
        border-width: 3px;
    }
    
    .card-icon {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .card-value {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 4px;
    }
    
    .card-label {
        font-size: 12px;
        color: #6b7280;
        font-weight: 500;
    }
    
    .card-status {
        font-size: 11px;
        font-weight: 600;
        margin-top: 4px;
    }
    
    .pace-card {
        transition: all 0.3s ease;
    }
    .pace-card:hover {
        transform: translateY(-4px);
    }
    
    .week-card {
        transition: all 0.3s ease;
    }
    .week-card:hover {
        transform: translateX(4px);
    }
    
    .day-item {
        transition: all 0.2s ease;
    }
    .day-item:hover {
        background: #f9fafb;
        transform: translateX(4px);
    }
    .tc-checkbox {
        width: 16px; height: 16px;
        flex-shrink: 0; margin-top: 2px;
        accent-color: #16a34a;
        cursor: pointer;
    }
    .day-item:has(.tc-checkbox:checked) {
        background: #f0fdf4;
        border-left: 3px solid #16a34a;
    }
    
    input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    }
    
    .collapsible-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    .collapsible-content.open {
        max-height: 500px;
    }
    
    .distance-btn, .week-btn {
        transition: all 0.25s ease;
    }
    .distance-btn.active, .week-btn.active {
        animation: scaleIn 0.3s ease forwards;
    }
    
    /* 周卡片折叠动画 */
    .week-content {
        overflow: hidden;
        max-height: none;
        opacity: 1;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .week-content.week-collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }
    
    #distancePanel {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
        opacity: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
    }
    #distancePanel.open {
        max-height: 200px;
        opacity: 1;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        margin-top: 0.5rem;
    }
    
    #distanceLabel {
        transition: opacity 0.25s ease, transform 0.25s ease;
        display: inline-block;
    }
    #distanceLabel.changing {
        opacity: 0;
        transform: translateY(-8px);
    }
    #heroDesc {
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    
    @media print {
        body * { visibility: hidden; }
        #printOverlay, #printOverlay * { visibility: visible; }
        #printOverlay { position: absolute; left: 0; top: 0; width: 100%; }
    }
    
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* 学生模式样式 */
    .student-day-btn {
        transition: all 0.2s ease;
    }
    .student-day-btn.selected {
        background-color: #dcfce7 !important;
        border-color: #22c55e !important;
        color: #166534 !important;
    }

    /* 学生模式周卡片折叠样式 */
    .student-week-content {
        overflow: hidden;
        max-height: none;
        opacity: 1;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.25s ease,
                    padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .student-week-content.student-week-collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding-top: 0;
        padding-bottom: 0;
    }
    .student-week-chevron {
        transition: transform 0.3s ease;
    }
    .student-week-chevron.student-week-collapsed {
        transform: rotate(-90deg);
    }


    @media print {
        /* 隐藏不需要打印的元素 */
        #inputSection, #exportPdfBtn, #exportImageBtn, #exportWordBtn, #resetProgressBtn, #generateBtn, #daySelector, footer, .pass-btn, .week-chevron, .export-section { display: none !important; }
        /* 打印时显示所有周卡片内容 */
        .week-content { display: block !important; max-height: none !important; overflow: visible !important; }
        .week-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #e5e7eb !important; }
        /* 打印时显示学生模式周卡片内容 */
        .student-week-content { display: block !important; max-height: none !important; overflow: visible !important; }
        .student-week-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #e5e7eb !important; }
        .student-week-chevron { display: none !important; }
        /* 页面设置 */
        body { background: white !important; padding: 0 !important; }
        #results { padding: 0 !important; }
        .pace-card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
        #progressSection { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
        #tipsCard { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
        /* 隐藏动画 */
        * { animation: none !important; transition: none !important; }
    }

/* V3.2: 明示天气/疲劳导致的配速加秒 */
.pace-adjust-note {
    margin-left: 2px;
    font-size: 0.72em;
    opacity: 0.85;
    font-weight: 700;
}

/* ================================================================
   V6.1 App UI — 丝滑动效 · 移动端适配 · 高级审美
   ================================================================ */

/* ── 页面切换动效 ── */
.v6-app-page {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.24s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}
.v6-app-page.v6-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* 训练内容淡入 */
@keyframes v6FadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.v6-fade-in { animation: v6FadeIn 0.2s ease both; }

/* ── 卡片进入动效 ── */
.v6-card-enter { animation: v6CardEnter 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
#results > *, #weekSchedule > * { animation: v6CardEnter 0.22s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
@keyframes v6CardEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── 底部导航栏 ── */
#appBottomNav {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05) !important;
    /* iPhone 主屏幕指示器安全区 */
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

.app-tab-btn {
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 14px;
}
.app-tab-btn:active {
    transform: scale(0.88);
}

/* 顶部绿色指示线 */
.app-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 3px;
    background: #16a34a;
    border-radius: 0 0 4px 4px;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.22s ease;
    opacity: 0;
}
.app-tab-btn.v6-tab-active::before {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* 激活状态图标弹跳 */
.app-tab-btn.v6-tab-active .tab-icon-wrap {
    animation: tabIconBounce 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    display: inline-block;
}
@keyframes tabIconBounce {
    0%   { transform: scale(1) translateY(0); }
    55%  { transform: scale(1.22) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}
/* 非激活状态图标回弹 */
.app-tab-btn:not(.v6-tab-active) .tab-icon-wrap {
    transition: transform 0.2s ease;
    display: inline-block;
    transform: scale(1) translateY(0);
}

/* ── 安全区适配（iPhone 刘海/灵动岛）── */
@supports (padding: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* ── 移动端细节优化 ── */
@media (max-width: 640px) {
    /* 防止 iOS 自动缩放 input */
    input[type="number"],
    input[type="text"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Hero 标题在小屏缩小 */
    #heroTitle {
        font-size: 1.875rem !important;
    }

    /* 距离按钮在小屏更紧凑 */
    #distancePanel .flex {
        gap: 6px !important;
    }
    .distance-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* 周选择按钮在小屏适配 */
    .week-btn {
        padding: 6px 10px !important;
        font-size: 0.8rem !important;
    }

    /* 星期选择日期芯片 */
    .day-chip {
        font-size: 0.72rem !important;
        padding: 6px 2px !important;
    }

    /* 导出按钮在小屏单列 */
    #exportSection .flex {
        gap: 8px !important;
    }
}

@media (max-width: 375px) {
    .day-chip { font-size: 0.65rem !important; }
    #heroTitle { font-size: 1.6rem !important; }
}

/* ── 生成按钮美化 ── */
#generateBtn {
    border-radius: 16px !important;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}
#generateBtn:active {
    transform: scale(0.97) !important;
}

/* ── 折叠动效优化 ── */
.collapsible-content {
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease !important;
}
.collapsible-content.open { opacity: 1; }
.collapsible-content:not(.open) { opacity: 0; }

/* ── 输入框聚焦优化 ── */
input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
    border-color: #16a34a !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* ── 周卡片悬停优化 ── */
.week-card:hover { transform: translateX(3px); }

/* ── GPU 层提示 ── */
.animate-fadeUp, .animate-fadeIn, .animate-slideInLeft, .animate-scaleIn, .animate-countUp {
    will-change: transform, opacity;
}
.v6-card-enter { will-change: transform, opacity; }
.animate-fadeUp.anim-done,
.animate-fadeIn.anim-done,
.animate-scaleIn.anim-done,
.v6-card-enter.anim-done { will-change: auto; }

/* ── 减少动画模式 ── */
@media (prefers-reduced-motion: reduce) {
    .v6-app-page, .app-tab-btn, #results > *, #weekSchedule > *,
    .v6-card-enter, .v6-fade-in {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
/* ================================================================
   end V6.1
   ================================================================ */


/* ================================================================
   V6.2 高级简洁视觉升级 —— 桌面 / 移动端都可见
   精致背景 · 柔和分层阴影 · 细腻输入与按钮 · 留白与层次
   ================================================================ */

/* ── 全局背景：极淡的冷灰渐变，替代死板的纯灰 ── */
body.bg-gray-50,
body {
    background: linear-gradient(180deg, #fbfcfc 0%, #f1f4f3 100%) !important;
    background-attachment: fixed !important;
    color: #1f2937;
}

/* ── 卡片统一升级：大圆角 + 柔和分层阴影 + 发丝级边框 ── */
#runnerProfileCard,
#coachV4Dashboard,
.v6-app-page > div,
#results > div,
#weekSchedule > div,
.summary-card {
    border-radius: 14px !important;
    border: 1px solid rgba(16, 24, 40, 0.06) !important;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 8px 24px -12px rgba(16, 24, 40, 0.12) !important;
    transition: box-shadow 0.3s cubic-bezier(0.25,0.46,0.45,0.94),
                transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
/* 桌面端轻微悬浮反馈（移动端无 hover，不影响） */
@media (hover: hover) {
    #runnerProfileCard:hover,
    .v6-app-page > div:hover,
    #results > div:hover {
        box-shadow:
            0 2px 4px rgba(16, 24, 40, 0.05),
            0 18px 40px -16px rgba(16, 24, 40, 0.18) !important;
        transform: translateY(-2px);
    }
}

/* ── 输入框：浅填充 + 圆角 + 细腻聚焦光晕 ── */
#rpInputs input,
input[type="text"],
input[type="number"],
select,
textarea {
    background: #f8faf9 !important;
    border: 1px solid rgba(16, 24, 40, 0.10) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#rpInputs input:focus,
input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14) !important;
    outline: none !important;
}
/* 输入框上方小标签更克制 */
#rpInputs label,
.text-xs.text-gray-500 {
    letter-spacing: 0.01em;
}

/* ── 主按钮：渐变 + 柔和投影 + 按压反馈 ── */
#rpEval,
#generateBtn,
[data-home-start],
#profileLoginBtn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 16px -6px rgba(22, 163, 74, 0.55) !important;
    transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.2s ease, filter 0.2s ease;
}
#rpEval:hover,
#generateBtn:hover,
[data-home-start]:hover,
#profileLoginBtn:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 22px -8px rgba(22, 163, 74, 0.6) !important;
}
#rpEval:active,
#generateBtn:active,
[data-home-start]:active,
#profileLoginBtn:active {
    transform: scale(0.97);
}
/* 次按钮（清除等）更轻 */
#rpClear {
    background: #f3f4f6 !important;
    border: 1px solid rgba(16,24,40,0.08) !important;
    border-radius: 14px !important;
    transition: background 0.2s ease;
}
#rpClear:hover { background: #e9ebed !important; }

/* ── 标题层次：更紧凑、更克制 ── */
#runnerProfileCard h3,
.v6-app-page h2,
.v6-app-page h3 {
    letter-spacing: -0.01em;
}

/* ── 能力画像结果卡：柔和绿底，去掉生硬边 ── */
#rpResult > div,
#rpResult .bg-emerald-50 {
    border-radius: 16px !important;
    border: 1px solid rgba(22,163,74,0.12) !important;
}

/* ── 底部导航再精修：更干净的分隔与高度 ── */
#appBottomNav .app-tab-btn { padding-top: 10px !important; padding-bottom: 10px !important; }

/* ── 单选框上色为品牌绿 ── */
input[type="radio"], input[type="checkbox"] { accent-color: #16a34a; }

/* ── 移动端：卡片间距与圆角微调，避免拥挤 ── */
@media (max-width: 640px) {
    #runnerProfileCard,
    .v6-app-page > div,
    #results > div {
        border-radius: 14px !important;
    }
    #rpInputs { gap: 8px !important; }
}

/* ================================================================
   end V6.2
   ================================================================ */


/* ================================================================
   V6.3 紧凑精致 + 线性图标
   ================================================================ */

/* 全局等比收紧 ~6%：Tailwind 字号/间距/圆角都是 rem，降根字号一起变紧凑 */
html { font-size: 15.5px; }
@media (max-width: 640px) { html { font-size: 15px; } }

/* ── 底部导航：线性 SVG 图标 ── */
.tab-svg {
    width: 22px;
    height: 22px;
    display: block;
    stroke-width: 1.8;
}
.app-tab-btn.v6-tab-active .tab-svg { stroke-width: 2; }
/* 导航更紧凑、图标与文字间距收一点 */
#appBottomNav .app-tab-btn {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 3px !important;
}

/* ── 卡片内边距再收紧（rem 已整体缩，这里微调到位） ── */
#runnerProfileCard,
.v6-app-page > div,
#results > div {
    padding: 1.4rem !important;
}

/* ── 主按钮 / 次按钮：更紧凑 ── */
#rpEval, #rpClear, [data-home-start], #generateBtn, #profileLoginBtn, #profileEditBtn {
    padding-top: 0.62rem !important;
    padding-bottom: 0.62rem !important;
}

/* ── 能力画像输入网格更紧 ── */
#rpInputs { gap: 9px !important; }
#rpInputs input { padding: 9px 11px !important; }

/* ── Hero 标题收一点 ── */
#heroTitle { font-size: 1.85rem !important; }

/* ── nav 变矮后，底部留白同步收紧 ── */
@supports (padding: env(safe-area-inset-bottom)) {
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ================================================================
   end V6.3
   ================================================================ */


/* ================================================================
   V6.4 体系选择 —— 重命名 · 自定义下拉 · 干净展开动画
   ================================================================ */

/* 体系选择卡：柔和进入（替代之前生硬的 display 跳变） */
.v6-sys-select { animation: v6CardEnter 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* 训练体系（10天模式）显示时平滑展开，不再瞬切 */
.v6-reveal { animation: v6CardEnter 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* ── 自定义下拉：隐藏原生箭头 + 自绘绿色箭头 + 圆角浅填充 ── */
.v6-sys-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: #f8faf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    border: 1px solid rgba(16, 24, 40, 0.10) !important;
    border-radius: 12px !important;
    padding: 11px 38px 11px 14px !important;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.v6-sys-dropdown:hover { border-color: rgba(22, 163, 74, 0.4); }
.v6-sys-dropdown:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
    outline: none;
}

/* 体系描述切换时柔和淡入，避免文字生硬跳变 */
#coachSystemV4Desc { transition: opacity 0.2s ease; }

/* ================================================================
   end V6.4
   ================================================================ */


/* ================================================================
   V6.5 双色图标（激活填充/未激活线性） + 更舒展
   ================================================================ */

/* 默认显示线性图标，隐藏填充图标 */
#appBottomNav .tab-fill { display: none; }
#appBottomNav .tab-line { display: block; }
/* 激活 tab：切换为实心填充图标（双色：实心 emerald vs 线性灰） */
#appBottomNav .app-tab-btn.v6-tab-active .tab-line { display: none; }
#appBottomNav .app-tab-btn.v6-tab-active .tab-fill { display: block; }
/* 填充图标无描边 */
#appBottomNav .tab-fill { stroke: none; }

/* ── 更舒展：卡片间距、区块留白 ── */
#runnerProfileCard,
#coachV4Dashboard,
.v6-app-page > div,
#results > div,
.v6-sys-select {
    margin-bottom: 1.1rem !important;
}
/* 体系选择卡内边距同步舒展 */
.v6-sys-select { padding: 1.4rem !important; }

/* ================================================================
   end V6.5
   ================================================================ */

/* AimRun v87 local shell fallback: keep the app chrome stable before CDN CSS/icons finish loading. */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}
#appBottomNav {
    min-height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
#appBottomNav > div {
    display: flex;
    width: 100%;
}
#appBottomNav .app-tab-btn {
    flex: 1 1 0;
    display: flex;
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.15;
}
#appBottomNav .app-tab-btn.v6-tab-active {
    color: #16a34a;
    font-weight: 700;
}
#appBottomNav .tab-icon-wrap {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#appBottomNav .tab-icon-wrap .fas,
#appBottomNav .tab-svg {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* ================================================================
   V7.0 Step wizard — class-driven states (replaces inline style writes)
   Adds smooth color transitions when moving between steps.
   ================================================================ */
.step-dot {
    background: #f3f4f6;
    color: #9ca3af;
    box-shadow: none;
    transition: background-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.24s ease,
                box-shadow 0.24s ease;
}
.step-dot.is-active,
.step-dot.is-done {
    background: var(--ar-primary, #16a34a);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}
.step-label {
    color: #9ca3af;
    transition: color 0.24s ease;
}
.step-label.is-active,
.step-label.is-done {
    color: var(--ar-primary, #16a34a);
}
.step-line {
    background: #d1d5db;
    transition: background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-line.is-done {
    background: var(--ar-primary, #16a34a);
}

/* ── Tabular figures for data displays (paces, times, stats align cleanly) ── */
#vdotBadge,
.pace-card [id^="pace"],
.aimrun-status-value,
.aimrun-plan-stat-grid strong,
.aimrun-profile-grid strong,
.aimrun-record-ring strong,
.aimrun-record-statline b,
#progressText,
.summary-card .card-value,
input[type="number"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* ── Footer utility chips: quiet tertiary style (was 4 competing solid buttons) ── */
.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: var(--ar-radius, 14px);
    border: 1px solid rgba(16, 24, 40, 0.10);
    background: rgba(255, 255, 255, 0.7);
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease,
                background-color 0.2s ease, transform 0.15s ease;
}
.footer-chip:hover {
    border-color: rgba(16, 24, 40, 0.20);
    color: #374151;
    background: #ffffff;
}
.footer-chip:active { transform: translateY(1px); }
.footer-chip-accent {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(255, 251, 235, 0.9);
    color: #b45309;
}
.footer-chip-accent:hover {
    border-color: rgba(245, 158, 11, 0.55);
    color: #92400e;
    background: #fffbeb;
}
/* ================================================================
   end V7.0
   ================================================================ */
