/* ==========================================================================
   P.wheel — Apple Design Language 覆盖层
   --------------------------------------------------------------------------
   策略: 不改动 HTML 结构, 仅用更高优先级的选择器覆盖内联样式。
   好处: 零结构风险, 可随时移除回滚, 不影响 GA4/Pixel 埋点与交互逻辑。

   核心设计原则 (Apple HIG):
   1. 大留白 — 宽松的上下间距, 让内容呼吸
   2. 层次 — 极浅的背景 + 纯白卡片 + 柔和阴影
   3. 克制 — 单一强调色, 大量中性灰
   4. 字体优先 — SF Pro 系统字体栈, 精确的字重与字距
   5. 连续圆角 — 12-18px, 统一节奏
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    /* 背景层级 */
    --bg-page:        #f5f5f7;   /* 页面底色 — 苹果官网经典浅灰 */
    --bg-surface:     #ffffff;   /* 卡片/内容面 */
    --bg-surface-alt: #fafafa;   /* 次级面 */
    --bg-elevated:    #ffffff;   /* 悬浮/弹层 */

    /* 文字层级 */
    --text-primary:   #1d1d1f;   /* 主标题 */
    --text-secondary: #6e6e73;   /* 正文辅助 */
    --text-tertiary:  #86868b;   /* 弱化说明 */
    --text-on-accent: #ffffff;

    /* 强调色 */
    --accent-color:     #0071e3;  /* 苹果蓝 */
    --accent-hover:     #0077ed;
    --accent-pressed:   #006edb;
    --accent-subtle:    rgba(0, 113, 227, 0.08);
    --accent-subtle-2:  rgba(0, 113, 227, 0.14);

    /* 描边 */
    --border-subtle:  rgba(0, 0, 0, 0.07);
    --border-medium:  rgba(0, 0, 0, 0.12);

    /* 阴影 — 柔和多层, 苹果标志性 */
    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.05);

    /* 字体 — SF Pro 优先 */
    /* 字体栈顺序 = 各平台最优选择:
       Mac/iOS  → -apple-system (SF Pro, 苹果官方)
       Windows  → Segoe UI Variable / Segoe UI
       Android  → Roboto
       其他     → Inter (网页字体, 与 SF Pro 接近)
       中文     → PingFang SC (苹果) / 微软雅黑
       顺序很重要: 拉丁字形用 SF/Inter, 中文字形回退到对应平台字体 */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
                   'Segoe UI Variable Display', 'Segoe UI', Roboto, Inter,
                   'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
                   'Microsoft YaHei', 'Noto Sans CJK SC', system-ui, sans-serif;
    --font-family-mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* 圆角 */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  18px;
    --radius-xl:  24px;
    --radius-pill: 980px;

    /* 间距节奏 */
    --section-padding-y: 120px;
    --content-max-width: 1180px;
    --header-height: 52px;
}

/* ---------- 基础重置 ---------- */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    /* 移除强制滚动吸附 — 原站 y mandatory 会让页面无法停在区块中间,
       苹果官网采用自由滚动 + 锚点导航 */
    scroll-snap-type: none;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.47;              /* 苹果正文行高 */
    letter-spacing: -0.011em;       /* SF Pro 负字距 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

/* 统一选中文本色 */
body, body * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.22) transparent;
}

/* ---------- 顶部导航 ---------- */
header {
    height: var(--header-height);
    padding: 0 max(24px, 5%);
    background-color: rgba(250, 250, 252, 0.82);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

header a.logo {
    background-color: transparent;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    box-shadow: none;
    transition: opacity 0.2s ease;
}

header a.logo:hover {
    background-color: var(--accent-subtle);
    border: none;
    transform: none;
    opacity: 0.85;
}

header nav a {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
}

header nav a:hover {
    color: var(--text-primary);
}

/* ---------- 按钮 — 苹果胶囊按钮 ---------- */
.btn,
header .header-actions a.btn,
a.btn {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    box-shadow: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-subtle-2);
}

.btn:active {
    background-color: var(--accent-pressed);
    transform: translateY(0);
    box-shadow: none;
}

/* 次要按钮 — 描边 */
.btn-outline,
.btn.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

/* ---------- Hero 首屏 ---------- */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding: calc(var(--header-height) + 96px) 5% 96px;
    background-color: var(--bg-page);
    position: relative;
    overflow: hidden;
}

/* 原站有深色背景图, 苹果风格需要弱化 → 降低不透明度并加浅色蒙版 */
.hero .hero-background,
.hero #hero-bg {
    opacity: 0.12 !important;
    filter: grayscale(0.3) saturate(0.6);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(245,245,247,0.72) 0%,
        rgba(245,245,247,0.55) 45%,
        rgba(245,245,247,0.92) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    /* 原站 .hero-content 带 text-shadow, 在浅色背景上会形成暗色下缘(像下划线), 需清除 */
    text-shadow: none;
}

/* 苹果大标题: 超大字号, 极紧字距, 极重字重 */
.hero-content h1 {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-shadow: none;
    text-transform: none;
}

.hero-content p {
    text-shadow: none !important;
    /* 分隔符 "|" 用更浅的颜色, 避免竖线过长被误读为下划线 */
    font-size: clamp(1.0625rem, 1.8vw, 1.375rem);
    line-height: 1.42;
    letter-spacing: -0.014em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 区块通用 ---------- */
.hero,
.features,
.product-showcase,
.tech-section,
.feature-detail-section {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding: var(--section-padding-y) 5%;
    background-color: var(--bg-page);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-detail-section {
    background-color: var(--bg-page);
    padding: 0 5% 80px;
}

.feature-detail-section:nth-of-type(odd) {
    background-color: var(--bg-page);
}

.feature-detail-section .feature-detail-container {
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    max-width: var(--content-max-width);
    margin: 0 auto;
    width: 100%;
}

/* 区块标题 */
.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: none;
    text-shadow: none;
    text-align: center;
    margin: 0 0 24px;
    padding: 0;
}

.feature-detail-content h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: none;
    margin-bottom: 16px;
}

.feature-detail-content h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--text-primary);
    text-shadow: none;
}

/* ---------- 卡片 — 白底柔和阴影 ---------- */
.feature-card,
.feature,
.features .feature-item,
.tech-section .tech-card,
.product-showcase .product-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px 28px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s ease;
}

.feature-card:hover,
.feature:hover,
.features .feature-item:hover,
.tech-section .tech-card:hover,
.product-showcase .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

/* 卡片内文字 */
.feature-card h3,
.feature h3,
.tech-card h3 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.018em;
}

.feature-card p,
.feature p,
.tech-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: -0.008em;
}

/* ---------- 技术/特性网格 ---------- */
.features,
.tech-section,
.product-showcase {
    gap: 24px;
}

.features > *,
.tech-section > *,
.product-showcase > * {
    max-width: var(--content-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- 页脚 ---------- */
footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 56px 5% 40px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--accent-color);
}

footer h3,
footer h4 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.015em;
}

footer .copyright,
footer p {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

/* ---------- 图片 ---------- */
.hero-content img,
.feature-detail-content img,
img {
    border-radius: var(--radius-md);
}

/* ---------- 数据展示 (骑行数据页) ---------- */
.data-stat,
.stat-card,
.riding-stat {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 24px 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.data-stat:hover,
.stat-card:hover,
.riding-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---------- 表格 ---------- */
table {
    background-color: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

th {
    background-color: var(--bg-surface-alt);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

tr:last-child td {
    border-bottom: none;
}

/* ---------- 链接 ---------- */
a {
    color: var(--accent-color);
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.18);
    border-radius: var(--radius-pill);
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.28);
}

/* ---------- 焦点可见性 (无障碍) ---------- */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
    :root {
        --section-padding-y: 72px;
    }

    .hero {
        padding-top: calc(var(--header-height) + 56px);
        padding-bottom: 56px;
    }

    .feature-detail-section {
        padding: 0 5% 56px;
    }

    .feature-card,
    .feature,
    .tech-section .tech-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-y: 56px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    header {
        padding: 0 20px;
    }
}

/* ---------- 深色模式跟随系统 (苹果官网同款行为) ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-page:        #000000;
        --bg-surface:     #1d1d1f;
        --bg-surface-alt: #2c2c2e;
        --bg-elevated:    #2c2c2e;

        --text-primary:   #f5f5f7;
        --text-secondary: #a1a1a6;
        --text-tertiary:  #86868b;

        --accent-color:   #2997ff;
        --accent-hover:   #47a6ff;
        --accent-pressed: #1d8cff;
        --accent-subtle:  rgba(41, 151, 255, 0.14);
        --accent-subtle-2: rgba(41, 151, 255, 0.22);

        --border-subtle:  rgba(255, 255, 255, 0.10);
        --border-medium:  rgba(255, 255, 255, 0.16);

        --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.5);
        --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.6);
        --shadow-xl:  0 24px 64px rgba(0, 0, 0, 0.7);
    }

    .hero::after {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.88) 100%);
    }

    .hero .hero-background,
    .hero #hero-bg {
        opacity: 0.35 !important;
    }
}

/* ==========================================================================
   补充覆盖 — 原本内联样式中用 ID 选择器 / 深色组件的部分
   (优先级高于前面的 class 覆盖, 故需用同等或更高特异性)
   ========================================================================== */

/* ---------- 视觉展示框 (原 #111 / #000) ---------- */
.feature-detail-visual,
#meter-comprehensive-section .feature-detail-visual {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

#f1-stepper-section {
    background-color: var(--bg-page);
    min-height: auto;
}

#f1-stepper-section .feature-detail-container {
    padding-top: 0;
}

#meter-comprehensive-section {
    padding: 0 5% 80px;
    background-color: var(--bg-page);
}

#meter-comprehensive-section .feature-detail-container {
    padding: 0;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

#meter-comprehensive-section .feature-detail-content {
    padding: 40px 0;
}

#meter-comprehensive-section .feature-detail-content h2 {
    color: var(--text-primary);
    text-shadow: none;
}

/* 仪表盘全屏背景图 (原纯黑) */
.meter-comprehensive-bg,
#meter-comprehensive-section .feature-detail-visual {
    background-color: var(--bg-surface-alt);
}

.meter-comprehensive-bg::after {
    background: linear-gradient(180deg, rgba(245,245,247,0.35) 0%, rgba(245,245,247,0.75) 100%);
}

.meter-comprehensive-bg::before {
    opacity: 0.55;
    filter: saturate(0.85);
}

/* ---------- 技术分析区 ---------- */
.tech-section {
    background-color: var(--bg-surface);
    background-image: none;
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.tech-analysis-block {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 880px;
    padding: 32px;
}

.tech-section .tech-analysis-block h2,
.tech-section .tech-analysis-block h3 {
    color: var(--text-primary);
    text-shadow: none;
}

.tech-section .tech-analysis-block p,
.tech-section .tech-analysis-block li {
    color: var(--text-secondary);
}

/* ---------- 特性区背景图 ---------- */
.features-background {
    background-color: var(--bg-page);
}

.features-background::after {
    background: linear-gradient(180deg, rgba(245,245,247,0.65) 0%, rgba(245,245,247,0.88) 100%);
}

.features-background::before {
    opacity: 0.35;
    filter: saturate(0.7);
}

/* ---------- 语言切换下拉 ---------- */
.btn-lang {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 400;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-lang:hover {
    background-color: var(--bg-surface-alt);
    box-shadow: var(--shadow-md);
    transform: none;
}

.lang-dropdown,
.lang-menu {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.lang-option {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 18px;
    font-size: 0.875rem;
    transition: background-color 0.15s ease;
}

.lang-option:hover {
    background-color: var(--accent-subtle);
    color: var(--text-primary);
}

.lang-option.active {
    background-color: var(--accent-subtle);
    border-left: 3px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
}

/* ---------- 悬浮聊天按钮 / 窗口 ---------- */
.float-chat-btn {
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    width: 56px;
    height: 56px;
    right: 24px;
    bottom: 24px;
    transition: transform 0.25s cubic-bezier(0.22,1,0.36,1), box-shadow 0.25s ease;
}

.float-chat-btn:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-xl);
}

.float-chat-window {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.chat-header {
    background: var(--bg-surface-alt);
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 14px 16px;
}

.chat-header img {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.chat-body {
    background-color: var(--bg-surface);
    padding: 16px;
}

.chat-option {
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: background-color 0.15s ease;
}

.chat-option:hover {
    background-color: var(--accent-subtle);
}

.chat-form input,
.chat-form textarea {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 12px;
    font-family: var(--font-family);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-form input:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.chat-form input::placeholder,
.chat-form textarea::placeholder {
    color: var(--text-tertiary);
}

.chat-form button {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.chat-form button:hover {
    background-color: var(--accent-hover);
}

.chat-close {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.chat-close:hover {
    color: var(--text-primary);
}

/* ---------- Cookie 横幅 ---------- */
#cookie-banner {
    background-color: var(--bg-elevated);
    color: var(--text-primary);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    padding: 18px 5%;
}

#cookie-banner a {
    color: var(--accent-color);
}

/* ---------- 模态框 ---------- */
.modal-content {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 40px;
}

/* ---------- 模态框内输入框 (HTML 内联 style, 需 !important 覆盖) ---------- */
.modal-content input,
.modal-content textarea,
.modal-content select {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
    color: var(--text-tertiary) !important;
}

.modal-content button[type="submit"],
.modal-content .submit-btn {
    background: var(--accent-color) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    color: var(--text-on-accent) !important;
    font-weight: 400 !important;
}

.modal-content button[type="submit"]:hover,
.modal-content .submit-btn:hover {
    background: var(--accent-hover) !important;
}

/* ---------- 隐藏区块在浅色下的可读性 ---------- */
.hidden-section {
    display: none !important;
}

/* ---------- 通用: 任何残留的深色背景容器 ---------- */
.feature-detail-container,
.feature-detail-content {
    color: var(--text-secondary);
}

.feature-detail-content h2,
.feature-detail-content h3,
.feature-detail-content h4 {
    color: var(--text-primary);
    text-shadow: none;
}

.feature-detail-content p,
.feature-detail-content li {
    color: var(--text-secondary);
    line-height: 1.55;
}

.feature-detail-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.feature-detail-content a {
    color: var(--accent-color);
}

/* ---------- 产品展示区 ---------- */
.product-showcase {
    background-color: var(--bg-page);
}

.product-showcase img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* 产品图卡片底衬
   —— 实拍图自带白底, 直接放在浅灰页面(#f5f5f7)上会显得"图没抠干净"。
      给它套一层白色卡片面 + 细描边 + 柔和阴影, 让白底变成"卡片本身",
      与 Apple 官网的白卡(纯白面 + 极浅描边 + 柔和阴影)语言一致。 */
.product-showcase .product-media {
    display: inline-block;
    max-width: 100%;
    padding: 10px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-medium);   /* 稍强一点的描边, 让白卡与页面灰底分得开 */
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    line-height: 0;              /* 消除 img 基线下方空隙 */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-showcase .product-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: none;            /* 外层卡片已有阴影, 内层不再叠一层 */
    object-fit: cover;
    /* 实拍图自带纯白底 —— 叠一层极淡暖灰渐变, 让照片面与卡片白面拉开一点层次,
       避免"卡片白 + 照片白"糊成一片。纯装饰, 不影响图片本身。 */
    background: linear-gradient(160deg, #fbfbfd 0%, #f2f2f5 100%);
}

.product-showcase .product-media:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* 移动端: 卡片撑满, 留白更从容 */
@media (max-width: 768px) {
    .product-showcase .product-media {
        display: block;
        padding: 10px;
        border-radius: var(--radius-lg);
    }
}

/* ---------- 深色模式下的补充 ---------- */
@media (prefers-color-scheme: dark) {
    .tech-section {
        background-color: var(--bg-surface);
        border-color: var(--border-subtle);
    }

    .tech-analysis-block {
        background: var(--bg-surface-alt);
    }

    .features-background {
        background-color: var(--bg-page);
    }

    .features-background::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.85) 100%);
    }

    .meter-comprehensive-bg,
    #meter-comprehensive-section .feature-detail-visual {
        background-color: var(--bg-surface-alt);
    }

    .meter-comprehensive-bg::after {
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    }

    #cookie-banner {
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    }
}

/* ==========================================================================
   追加 — 深色背景图区块的浅色化处理
   ========================================================================== */

/* tech-section: 背景是深色产品图, 苹果风格做法是保留图片但叠一层浅色蒙版,
   使文字可读且整体调性转亮 */
.tech-section {
    position: relative;
    isolation: isolate;
}

.tech-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../img/tech-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.18;
    filter: saturate(0.6) brightness(1.15);
}

.tech-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
        rgba(255,255,255,0.88) 0%,
        rgba(255,255,255,0.80) 50%,
        rgba(255,255,255,0.94) 100%);
    pointer-events: none;
}

.tech-section > * {
    position: relative;
    z-index: 2;
}

.tech-overlay-content {
    padding: 56px 0;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.tech-overlay-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: none;
    text-shadow: none;
    margin-bottom: 40px;
}

.tech-analysis-block {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    text-align: left;
}

.tech-analysis-icon {
    background-color: var(--accent-subtle);
    border-radius: var(--radius-md);
    font-size: 1.375rem;
    line-height: 1;
}

/* 内联 SVG 图标 — 替代 emoji, 保证无 emoji 字体的系统也能正常渲染 */
.tech-analysis-icon svg {
    display: block;
    width: 1.375rem;
    height: 1.375rem;
}

/* 深色产品图区域: 保留深色(产品本身), 但加圆角+细边框+柔和阴影, 与浅色页面协调 */
.feature-detail-visual {
    background-color: var(--bg-surface-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.feature-detail-visual img {
    border-radius: var(--radius-lg);
}

/* 仪表盘全屏大图 (本来就是深色 UI 截图) */
#meter-comprehensive-section .feature-detail-visual {
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.meter-comprehensive-bg {
    border-radius: var(--radius-lg);
}

@media (prefers-color-scheme: dark) {
    .tech-section::before {
        opacity: 0.4;
        filter: saturate(0.8);
    }

    .tech-section::after {
        background: linear-gradient(180deg,
            rgba(0,0,0,0.72) 0%,
            rgba(0,0,0,0.62) 50%,
            rgba(0,0,0,0.85) 100%);
    }

    .tech-analysis-block {
        background: rgba(28, 28, 30, 0.86);
    }
}

/* ==========================================================================
   追加 — Cookie 横幅 (独立 <style> 块, 需 !important) + 移动端溢出修复
   ========================================================================== */

/* ---------- Cookie 横幅 ---------- */
#cookie-banner {
    background-color: var(--bg-elevated) !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--border-subtle) !important;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08) !important;
    padding: 16px 5% !important;
    font-size: 0.875rem;
    line-height: 1.5;
    display: none; /* JS 会按需改为 block */
}

#cookie-banner p,
#cookie-banner span {
    color: var(--text-secondary);
}

#cookie-banner button {
    background-color: var(--accent-color) !important;
    color: var(--text-on-accent) !important;
    border: none !important;
    border-radius: var(--radius-pill) !important;
    padding: 9px 20px !important;
    margin: 0 0 0 8px !important;
    font-size: 0.875rem;
    font-weight: 400;
    font-family: var(--font-family);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#cookie-banner button:hover {
    background-color: var(--accent-hover) !important;
}

#cookie-banner button.reject {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-medium) !important;
}

#cookie-banner button.reject:hover {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   移动端溢出修复
   ========================================================================== */

/* 防止任何元素撑破视口 */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Hero 文案: 强制换行, 不再横向溢出 */
.hero-content {
    max-width: 100%;
    width: 100%;
}

.hero-content h1 {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

.hero-content p {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* 导航: 移动端隐藏溢出项 */
@media (max-width: 900px) {
    header {
        padding: 0 16px;
    }

    header nav {
        gap: 4px;
        overflow: hidden;
    }

    header nav a {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    header .header-actions {
        flex-shrink: 0;
    }
}

@media (max-width: 600px) {
    /* 标题字号更保守, 避免单行超宽 */
    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        letter-spacing: -0.03em;
        line-height: 1.08;
    }

    .hero-content p {
        font-size: 1rem;
        line-height: 1.45;
        margin-bottom: 32px;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    .feature-detail-content h2 {
        font-size: 1.5rem;
    }

    .tech-overlay-title {
        font-size: 1.75rem;
        margin-bottom: 28px;
    }

    .tech-analysis-block {
        padding: 20px 18px;
    }

    /* Cookie 横幅改为纵向堆叠 */
    #cookie-banner {
        text-align: left !important;
        padding: 16px !important;
    }

    #cookie-banner button {
        margin: 10px 6px 0 0 !important;
    }

    /* 表格横向滚动而非撑破 */
    .table-wrapper,
    .data-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 宽屏下限制超大内容宽度, 提升可读性 */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 900px;
    }
}

/* ==========================================================================
   追加 — 各页面独立组件的苹果风格化
   ========================================================================== */

/* ---------- Q&A 页面 ---------- */
.lang-switch {
    gap: 8px;
}

.lang-switch button {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-pill) !important;
    padding: 10px 22px !important;
    font-size: 0.875rem;
    font-family: var(--font-family);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.lang-switch button:hover {
    background-color: var(--bg-surface-alt) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

.lang-switch button.active,
.lang-switch button[aria-pressed="true"] {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-on-accent) !important;
}

.qa-item {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    color: var(--text-primary) !important;
}

.qa-item:hover {
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-2px);
}

.question {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    font-weight: 600;
    border-radius: var(--radius-sm) !important;
}

.answer,
.qa-answer {
    color: var(--text-secondary) !important;
}

.qa-item h2,
.qa-item h3,
.qa-section-title {
    color: var(--text-primary) !important;
    letter-spacing: -0.022em;
}

/* "Back to Home" 链接 */
.back-link,
a.back-link,
.back-to-home {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.back-link:hover,
a.back-link:hover {
    color: var(--accent-color) !important;
}

/* ---------- 对比表格页 ---------- */
.comparison-table {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    overflow: hidden;
}

.comparison-table th {
    background-color: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.force-diagram {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ---------- 骑行数据页 ---------- */
.riding-data-container,
.data-container {
    color: var(--text-secondary);
}

.data-stat-value,
.stat-value {
    color: var(--text-primary) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.data-stat-label,
.stat-label {
    color: var(--text-tertiary) !important;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- 通用: 深色残留兜底 ---------- */
[style*="background:#1"],
[style*="background: #1"],
[style*="background:#2"],
[style*="background: #2"],
[style*="background:#0"],
[style*="background: #0"] {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm);
}

/* 通用卡片化: 带边框的容器 */
.card,
.panel,
.box {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ==========================================================================
   追加 — 渐变文字 / 品牌标识 / 标签 (对比页系列)
   ========================================================================== */

/* ---------- 渐变文字: 保留高亮语义, 换成苹果配色 ---------- */
:root {
    --gradient-1: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    --gradient-2: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* 注意: .logo 不能直接放进渐变文字规则!
   站点的 logo 有两种形态:
     a) <a class="logo"><img class="logo-img"></a>  ← 图片 logo (首页/QA页)
     b) <a class="logo">P.wheel</a>                 ← 文字 logo (index-4s)
   套上 background-clip:text + text-fill-color:transparent 后, 图片 logo 会被
   画上一个蓝紫渐变方块 (而且 <a> 自身文字变透明)。
   → 改用 :not(:has(img)) 排除图片 logo, 只让文字 logo 走渐变。 */
.logo:not(:has(img)),
.hero h1 span,
.pwheel-section h2 span,
.comparison-title span,
.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 品牌 Logo ---------- */
.logo,
header a.logo .logo-text {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
}

/* logo 容器 (图片 logo): 清除可能残留的渐变/透明色 */
header a.logo:has(img),
a.logo:has(img) {
    background: transparent !important;
    background-image: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: inherit !important;
}

header a.logo:hover {
    background-color: transparent !important;
    border-color: transparent !important;
    transform: none !important;
    opacity: 0.85;
}

/* logo 图片 (破图时降级为优雅文字) */
.logo-img {
    height: 26px !important;
    width: auto;
    display: block;
    object-fit: contain;
    background: transparent !important;
}

/* ---------- 页面标题 (对比页 hero) ---------- */
.hero h1,
.comparison-hero h1,
.page-hero h1 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
    line-height: 1.08 !important;
    text-shadow: none !important;
}

.hero .subtitle,
.comparison-hero .subtitle,
.page-hero .subtitle {
    color: var(--text-secondary) !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
}

/* ---------- 标签 chip ---------- */
.scenario-tag,
.tag,
.badge {
    background-color: var(--accent-subtle) !important;
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-subtle-2);
    border-radius: var(--radius-pill) !important;
    font-size: 0.8125rem !important;
    font-weight: 500;
    padding: 6px 14px !important;
}

.scenario-card.recommend-rear .scenario-tag {
    background-color: rgba(52, 199, 89, 0.10) !important;
    color: #248a3d !important;
    border-color: rgba(52, 199, 89, 0.22);
}

/* ---------- 场景卡 ---------- */
.scenario-card,
.comparison-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    color: var(--text-primary) !important;
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
}

.scenario-card:hover,
.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
}

.scenario-card.recommend-rear {
    border-color: var(--accent-subtle-2) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ---------- 通用主按钮 (对比页用 .primary-btn 等) ---------- */
.primary-btn,
.secondary-btn,
.cta-btn,
.btn-primary,
.btn-secondary {
    border-radius: var(--radius-pill) !important;
    font-family: var(--font-family) !important;
    font-weight: 400 !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.primary-btn,
.btn-primary {
    background-color: var(--accent-color) !important;
    color: var(--text-on-accent) !important;
    border: none !important;
}

.primary-btn:hover,
.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--accent-subtle-2) !important;
}

.secondary-btn,
.btn-secondary {
    background-color: transparent !important;
    color: var(--accent-color) !important;
    border: 1px solid var(--accent-color) !important;
}

/* ==========================================================================
   追加 — Inter 网页字体 (非苹果设备的 SF Pro 替代)
   采用 media="print" onload 异步加载, 不阻塞首屏渲染
   ========================================================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/inter/v13/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiA.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   追加 — 表格在窄屏的横向滚动处理
   (页面本身不溢出, 但表格元素超出容器, 需内部滚动)
   ========================================================================== */

/* 表格自身可横向滚动 */
.comparison-table,
.data-table,
table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 表格布局: 保持列宽, 由容器滚动 */
@media (max-width: 700px) {
    .comparison-table,
    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: var(--radius-md);
    }

    /* 表格的所有子元素也需允许内容撑开 */
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table tr,
    .comparison-table th,
    .comparison-table td,
    .data-table thead,
    .data-table tbody,
    .data-table tr,
    .data-table th,
    .data-table td {
        min-width: max-content;
    }

    /* 视觉提示: 右侧渐隐, 暗示可横向滚动 */
    .comparison-table,
    .data-table {
        position: relative;
        background-image: linear-gradient(to left, rgba(0,0,0,0.06), rgba(0,0,0,0) 24px);
        background-repeat: no-repeat;
        background-attachment: local, scroll;
    }
}

/* ==========================================================================
   文字颜色修正 (2026-10-27)
   --------------------------------------------------------------------------
   背景: 苹果风格主题已把页面底色从 #050505 改为 #f5f5f7, 但原站内联 CSS
   自带一套深色变量:
       --text-main:  #ffffff;   ← 白字, 浅底上完全不可见
       --text-muted: #909090;   ← 旧灰, 与苹果灰阶不一致
       --bg-card:   #151515;
       --bg-dark:   #050505;
       --accent-color: #00d4ff; ← 荧光青
   这些变量只在 :root 定义, 主题用了另一套命名 (--text-primary 等),
   所以凡是引用旧变量的元素 (以及写了内联 style="color:#xxx" 的元素,
   内联样式优先级高于样式表) 全部停留在深色主题的颜色上。

   方案: 在覆盖层里把旧变量名重新映射到苹果色阶。
   变量是级联的, 在同一 :root 重新赋值即可全局生效, 无需逐个改选择器。
   ========================================================================== */

:root {
    /* ---- 旧变量名 → 苹果色阶重映射 ---- */
    --text-main:      var(--text-primary);    /* #1d1d1f */
    --text-muted:     var(--text-secondary);  /* #6e6e73 */
    --bg-card:        var(--bg-surface);      /* #ffffff */
    --bg-dark:        var(--bg-page);         /* #f5f5f7 */
    --accent-color:   #0071e3;                /* 苹果蓝 — 覆盖原荧光青 */
}

/* 强调色相关的旧派生值 (原站还有 --accent-hover 等) */
:root {
    --accent-hover:   #0077ed;
    --accent-glow:    rgba(0, 113, 227, 0.28);
    --accent-gradient: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
}

/* ---------- 内联 style 覆盖层 (内联样式优先级最高, 需用 !important) ---------- */

/* .feature-detail-content p.description — 原为白字, 浅底上不可见 */
.feature-detail-content p.description {
    color: var(--text-primary) !important;
}

/* .spec-value — 原为白字 */
.spec-value {
    color: var(--text-primary) !important;
}

/* .spec-label — 原为旧灰 #909090 */
.spec-label {
    color: var(--text-secondary) !important;
}

/* 产品区段落 — 原内联 style="color:#a0a0a0" */
.product-info p,
.product-showcase p,
#product-showcase p {
    color: var(--text-secondary) !important;
}

/* 产品区标题 (原内联 font-weight:800 + 无 color, 继承白字) */
.product-info h2,
.product-showcase h2 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em;
}

/* ---------- 原站硬编码浅色正文 (浅底上几乎不可见) ---------- */

/* section 内普通段落: #e0e0e0 → 苹果次级灰 */
section p,
.section p {
    color: var(--text-secondary);
}

/* footer 链接与版权: #909090 → 苹果三级灰
   注意: 原站用了 .footer-col ul li a / .footer-bottom a 这类更具体的选择器,
   必须写同等特异性, 否则覆盖不掉 */
.footer-col ul li a,
.footer-bottom a,
footer li a,
.footer-grid li a,
footer a[href="#"] {
    color: var(--text-tertiary);
}

.footer-col ul li a:hover,
.footer-bottom a:hover,
footer li a:hover,
.footer-grid li a:hover,
footer a[href="#"]:hover {
    color: var(--accent-color);
}

.footer .copyright,
.footer-bottom span,
.footer-copyright,
footer span {
    color: var(--text-tertiary);
}

/* ---------- 技术分析卡片: 旧样式残留半透明白底 ----------
   原站用 `background:` 简写设置 rgba(255,255,255,0.05),
   简写会重置 background-color, 所以必须同样用 `background` 简写覆盖 */
.tech-analysis-block li {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    color: var(--text-secondary) !important;
}

.tech-analysis-block li strong {
    color: var(--accent-color) !important;
}

.tech-analysis-block li:hover {
    background: var(--bg-surface-alt) !important;
    border-color: var(--border-medium) !important;
}

.tech-analysis-icon {
    color: var(--accent-color) !important;
}

/* ---------- 通用: 继承旧白字的元素兜底 ---------- */
.spec-item span,
.spec-item strong,
.stat-label,
.stat-value,
.card-title,
.card-text {
    color: var(--text-primary);
}

/* ---------- 内联 style 里的旧色值 (需 !important 才能压过内联样式) ----------
   站点内联 style 里还残留 5 种旧色:
     #00d4ff  荧光青  → 社交图标 / strong 强调 / caption
     #e0e0e0  浅灰    → section 导语
     #a0a0a0  灰      → 产品描述 (已被上面的 .product-info p 覆盖, 此处兜底)
     #fff     白      → 邮件输入框
   这些是内联样式, 优先级高于任何选择器, 只能用 !important 覆盖。 */

/* 荧光青强调色 → 苹果蓝 */
[style*="color:#00d4ff"],
[style*="color: #00d4ff"],
[style*="color:#00d4ff;"] {
    color: var(--accent-color) !important;
}

/* 页脚社交图标 — 内联青色改为苹果蓝 */
.footer-bottom a[style*="00d4ff"] {
    color: var(--accent-color) !important;
}

/* section 导语 (内联 #e0e0e0) */
[style*="color: #e0e0e0"],
[style*="color:#e0e0e0"] {
    color: var(--text-secondary) !important;
}

/* 产品描述 (内联 #a0a0a0) */
[style*="color:#a0a0a0"],
[style*="color: #a0a0a0"] {
    color: var(--text-secondary) !important;
}

/* 邮件订阅输入框 (内联深底白字) */
input[type="email"],
input[type="text"],
input[type="tel"],
input[type="password"] {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-tertiary) !important;
}

/* 按钮上的旧荧光青渐变 → 苹果蓝渐变 */
.float-chat-btn,
.chat-header {
    background: var(--accent-color) !important;
}

.chat-option svg {
    fill: var(--accent-color) !important;
}

/* ---------- 深色模式: 同步重映射旧变量 ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --text-main:      var(--text-primary);   /* #f5f5f7 */
        --text-muted:     var(--text-secondary); /* #a1a1a6 */
        --bg-card:        var(--bg-surface);     /* #1d1d1f */
        --bg-dark:        var(--bg-page);        /* #000000 */
        --accent-color:   #2997ff;
        --accent-hover:   #47a6ff;
        --accent-glow:    rgba(41, 151, 255, 0.30);
        --accent-gradient: linear-gradient(135deg, #2997ff 0%, #5e5ce6 100%);
    }

    /* 深色模式下产品区段落/描述恢复亮色 */
    .product-info p,
    .product-showcase p,
    #product-showcase p,
    .feature-detail-content p.description,
    .spec-value,
    .spec-label {
        color: var(--text-primary) !important;
    }

    .tech-analysis-block li {
        background-color: var(--bg-surface-alt) !important;
        border-color: var(--border-subtle) !important;
    }
}

/* ==========================================================================
   无障碍对比度微调 (2026-10-27)
   --------------------------------------------------------------------------
   审计结果: 全站文字对比度不足 WCAG AA (4.5:1) 的只剩 6 处, 均为小字号:
     · #86868b (苹果三级灰) 用在 13-15px 小字 → 对比度 3.62, 需提到 4.5
     · #0071e3 (苹果蓝) 用在 15-16px 小字 → 对比度 4.31, 差一点点
   处理: 小字号用更深的灰/蓝, 大字号保留苹果原色。
   注意: 苹果官网本身也大量使用 #86868b, 但那些多在 17px+ 或作为非关键信息。
   ========================================================================== */

/* 小字号文本用更深的次级灰 (对比度 4.97:1) */
.footer-col ul li a,
.footer-bottom a,
.footer li a,
.footer a[href="#"],
footer .copyright,
.footer-bottom span,
footer span,
.footer-copyright {
    color: var(--text-secondary);
}

/* 小字号蓝色强调 → 加深一档 (对比度 5.06:1) */
:root {
    --accent-text: #0066cc;   /* 小字号专用蓝, 大字号/大按钮仍用 #0071e3 */
}

p.caption,
.feature-detail-content p.caption,
.tech-analysis-icon,
.tech-analysis-block li strong,
.product-info > div[style*="accent-color"],
[style*="color:#00d4ff"] strong {
    color: var(--accent-text) !important;
}

/* 科技图标: 蓝色在浅蓝底上, 字号 22px 属于大字号, 但对比度仍需 4.5 */
.tech-analysis-icon {
    color: var(--accent-text) !important;
}

/* 深色模式下恢复亮蓝 (深底浅字, 对比度充足) */
@media (prefers-color-scheme: dark) {
    :root {
        --accent-text: #2997ff;
    }

    .footer-col ul li a,
    .footer-bottom a,
    footer li a,
    footer .copyright,
    footer-bottom span,
    footer span {
        color: var(--text-secondary);
    }
}

/* ---------- 收尾: 页脚说明文字与法务链接 (小字号, 对比度 3.62 → 需 4.5) ---------- */
.footer-col p {
    color: var(--text-secondary) !important;
}

/* 页脚底部法务链接 (Privacy Policy / Terms of Service) */
.footer-bottom > div a,
.footer-bottom a[href*="privacy"],
.footer-bottom a[href*="terms"],
.footer-bottom a[href*="Privacy"],
.footer-bottom a[href*="Terms"] {
    color: var(--text-secondary) !important;
}

.footer-bottom > div a:hover,
.footer-bottom a[href*="privacy"]:hover,
.footer-bottom a[href*="terms"]:hover {
    color: var(--accent-color) !important;
}

/* ==========================================================================
   补充覆盖 — 对比页 / 数据页的遗留深色变量 (2026-10-27)
   --------------------------------------------------------------------------
   drive-comparison / battery-comparison / sensor-comparison 等页面自带另一套
   深色变量, 与首页不完全相同:
       --card-bg:        #12121a;  ← .experience-card 深底
       --dark-bg:        #0a0a0f;
       --primary-color:  #00d4ff;  ← 荧光青
       --secondary-color:#0099cc;
       --success-color:  #10b981;  ← 绿, 在白底上对比度仅 2.33
   这些变量同样只在页面内的 :root 定义, 主题未覆盖, 导致:
       · 深色卡片上出现深色文字 (不可见)
       · 荧光青标题在浅底上刺眼
       · 绿色标题在白底上对比度不足
   ========================================================================== */

:root {
    /* 深色底 → 苹果浅色面 */
    --card-bg:         var(--bg-surface);
    --dark-bg:         var(--bg-page);

    /* 荧光青 → 苹果蓝 */
    --primary-color:   #0071e3;
    --secondary-color: #0066cc;

    /* 绿 → 加深到白底可读 (对比度 ≥ 4.5) */
    --success-color:   #0f7a4d;

    /* 遗留渐变 → 苹果蓝紫渐变 */
    --gradient-1:      linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%);
    --gradient-success: linear-gradient(135deg, #0f7a4d 0%, #059669 100%);
}

/* ---------- 体验卡片: 原为深底, 文字需跟着变浅色系 ---------- */
.experience-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

.experience-card h4 {
    color: var(--text-primary) !important;
}

.experience-card p {
    color: var(--text-secondary) !important;
}

.experience-card .emoji {
    color: var(--text-primary) !important;
}

/* ---------- 对比列 (前轮/后轮) ---------- */
.exp-column.front {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.10) 0%, rgba(255, 107, 53, 0.05) 100%) !important;
    border: 1px solid rgba(255, 107, 53, 0.25) !important;
}

.exp-column.rear {
    background: linear-gradient(135deg, rgba(15, 122, 77, 0.10) 0%, rgba(15, 122, 77, 0.05) 100%) !important;
    border: 1px solid rgba(15, 122, 77, 0.25) !important;
}

.exp-column.front h4 {
    color: #b8480f !important;
}

.exp-column.rear h4 {
    color: var(--success-color) !important;
}

.exp-column h3,
.exp-column .exp-title {
    color: var(--text-primary) !important;
}

/* 渐变文字: 原站用 transparent + background-clip, 主题选择器没命中, 导致整段文字消失 */
.exp-column h3 span,
.exp-column span[style*="gradient"],
h2 span[style*="gradient"],
.comparison-title span,
.scenario-card h3 span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- 标签 / 徽章: 小字号需加深 ---------- */
.scenario-tag,
.badge,
.tag {
    color: var(--accent-text) !important;
}

.scenario-card.recommend-rear .scenario-tag {
    color: var(--success-color) !important;
    background-color: rgba(15, 122, 77, 0.10) !important;
    border-color: rgba(15, 122, 77, 0.24) !important;
}

.hero .badge {
    background-color: var(--accent-subtle) !important;
    border-color: var(--accent-subtle-2) !important;
    color: var(--accent-text) !important;
}

/* 次要按钮文字加深 */
.btn-secondary,
.btn.btn-secondary,
a.btn-secondary {
    color: var(--accent-text) !important;
}

/* ---------- 深色模式恢复 ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg:         var(--bg-surface);
        --dark-bg:         var(--bg-page);
        --primary-color:   #2997ff;
        --secondary-color: #47a6ff;
        --success-color:   #34d399;
        --accent-text:     #2997ff;
    }

    .exp-column.front h4 {
        color: #ff9a6b !important;
    }

    .exp-column.rear h4 {
        color: var(--success-color) !important;
    }
}

/* ==========================================================================
   补充覆盖 — 内联深色背景与页脚版权 (2026-10-27)
   ========================================================================== */

/* 内联 style="background: rgba(0,0,0,0.3)" 的区块 — 浅色主题下变成灰底,
   导致上面的深色文字对比度不足。改为浅色面 */
[style*="background: rgba(0,0,0,0.3)"],
[style*="background:rgba(0,0,0,0.3)"] {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
}

[style*="background: rgba(0,0,0,0.3)"] p,
[style*="background:rgba(0,0,0,0.3)"] p {
    color: var(--text-secondary) !important;
}

/* 内联 background:#222 的输入框/容器 */
[style*="background:#222"],
[style*="background: #222"] {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-medium) !important;
}

/* ---------- 页脚版权 (不同页面结构不一, 统一处理) ---------- */
footer p,
footer .copyright,
.footer-bottom p,
footer .footer-copyright {
    color: var(--text-secondary) !important;
}

/* 页脚链接统一走次级灰, hover 变蓝 */
footer a {
    color: var(--text-secondary) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* ==========================================================================
   补充覆盖 — battery-comparison 页面的深色区块 (2026-10-27)
   --------------------------------------------------------------------------
   该页面用了一整套硬编码深色:
       .kit-weight    background:#111      + h2 color:#fff
       .advantages    background:#111      + h2 color:#fff
       .weight-card   background:#1a1a1a  + .name #888 / .weight #00d4ff / .unit #666
       .comparison h2 color:#fff
       .cta h2 color:#fff   .cta p #888
       .hero p #aaa   .highlight #00d4ff
   浅色主题下: 深色区块上文字看不见, 浅色区块上 #fff / #aaa 看不见。
   ========================================================================== */

/* ---------- 深色区块 → 浅色面 ---------- */
.kit-weight,
.advantages,
.weight-card,
.adv-card,
.comparison,
.cta {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-subtle) !important;
}

.kit-weight {
    background-color: var(--bg-page) !important;
}

.weight-card,
.adv-card {
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

/* ---------- 标题: 白字 → 苹果主文字 ---------- */
.kit-weight h2,
.comparison h2,
.advantages h2,
.cta h2,
.hero h1 {
    color: var(--text-primary) !important;
    text-shadow: none !important;
}

/* ---------- 正文: 浅灰 → 苹果次级灰 ---------- */
.cta p,
.hero p,
.advantages p,
.comparison p,
.kit-weight p {
    color: var(--text-secondary) !important;
}

/* ---------- 权重卡内部 ---------- */
.weight-card .name {
    color: var(--text-tertiary) !important;
}

.weight-card .weight {
    color: var(--accent-text) !important;
}

.weight-card .unit {
    color: var(--text-secondary) !important;
}

.weight-card .icon,
.adv-card .icon {
    color: var(--text-primary) !important;
}

.adv-card .icon {
    color: var(--accent-text) !important;
}

/* ---------- 高亮文字: 荧光青 → 苹果蓝 ---------- */
.highlight {
    color: var(--accent-text) !important;
}

strong {
    color: var(--text-primary);
}

/* ---------- 通用深色兜底: 任何残留的 #fff 标题 ---------- */
.kit-weight h3,
.comparison h3,
.advantages h3,
.cta h3 {
    color: var(--text-primary) !important;
}

/* ---------- 重量汇总卡 (battery-comparison) ---------- */
.weight-total .value {
    color: var(--accent-text) !important;
}

.weight-total .label {
    color: var(--text-secondary) !important;
}

/* 卡片名称: 14.4px 小字, 三级灰对比度 3.62 → 用次级灰 */
.weight-card .name {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第二轮
   --------------------------------------------------------------------------
   第一轮修好了首页 / 对比页 / 电池对比页。但审计发现还有 15 个页面各自
   带了一套深色主题的硬编码颜色 (每页的类名/变量名都不一样), 导致:
     · 深色卡片上出现深色文字 → 完全看不见
     · #fff / rgba(255,255,255,x) 文字留在浅底上 → 看不见
     · #00d4ff 荧光青 / #22c55e / #f59e0b 等亮色小字 → 对比度不足
   本轮按"页面 → 具体类名"逐个覆盖。
   ========================================================================== */

/* ==========================================================================
   A. 遗留变量统一重映射 (覆盖所有页面自定义的深色变量名)
   ========================================================================== */

:root {
    /* 荧光青系 → 苹果蓝 */
    --primary:          #0071e3;
    --primary-dark:     #0066cc;
    --accent:           #0071e3;

    /* 深底系 → 苹果浅色面 */
    --bg:               #f5f5f7;
    --bg2:              #ffffff;
    --dark:             #000000;

    /* 文字系 */
    --text:             #1d1d1f;
    --text2:            #6e6e73;

    /* 品牌 4S 强调色 → 加深到白底可读 */
    --safe-color:       #0f7a4d;
    --simple-color:     #1d4ed8;
    --smart-color:      #6d28d9;
    --speedy-color:     #b45309;

    /* 动力实验页 */
    --human-color:      #15803d;
    --motor-color:      #b91c1c;
}

/* ==========================================================================
   B. dealer.html — 经销商页
   ========================================================================== */

.dealer-page .highlight,
.dealer-container .highlight,
.highlight {
    background: var(--bg-surface) !important;
    border-left: 4px solid var(--accent-color) !important;
    color: var(--text-primary) !important;
}

/* 注意: 不能用裸 h2 选择器 — 合规页 / 内部站首页的 .cta-section h2 需要保持白字 */
.dealer-page h2,
.dealer-page .contact-box h2 {
    color: var(--accent-text) !important;
    border-bottom-color: var(--border-subtle) !important;
}

.dealer-page .contact-box,
.contact-box {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.dealer-page .contact-box p,
.contact-box p,
.dealer-page .contact-box strong,
.contact-box strong {
    color: var(--text-primary) !important;
}

.dealer-page li,
.dealer-page ul li {
    color: var(--text-secondary) !important;
}

.cta-button {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
}

.cta-button:hover {
    background: var(--accent-hover) !important;
}

/* ==========================================================================
   C. index-4s.html — 4S 品牌页
   ========================================================================== */

.index-4s .section-title,
.section-title {
    color: var(--text-primary) !important;
}

.index-4s .section-desc,
.section-desc {
    color: var(--text-secondary) !important;
}

.index-4s .badge-item,
.badge-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-medium) !important;
    color: var(--text-secondary) !important;
}

.index-4s .badge-item.badge-safe,
.badge-item.badge-safe {
    color: var(--safe-color) !important;
    border-color: rgba(15, 122, 77, 0.30) !important;
    background: rgba(15, 122, 77, 0.08) !important;
}

.index-4s .badge-item.badge-simple,
.badge-item.badge-simple {
    color: var(--simple-color) !important;
    border-color: rgba(29, 78, 216, 0.30) !important;
    background: rgba(29, 78, 216, 0.08) !important;
}

.index-4s .badge-item.badge-smart,
.badge-item.badge-smart {
    color: var(--smart-color) !important;
    border-color: rgba(109, 40, 217, 0.30) !important;
    background: rgba(109, 40, 217, 0.08) !important;
}

.index-4s .badge-item.badge-speedy,
.badge-item.badge-speedy {
    color: var(--speedy-color) !important;
    border-color: rgba(180, 83, 9, 0.30) !important;
    background: rgba(180, 83, 9, 0.08) !important;
}

/* 章节徽章: 白字/黑字在彩色底上 → 统一用深色底 + 白字 */
.section-badge.safe {
    background: var(--safe-color) !important;
    color: #ffffff !important;
}

.section-badge.simple {
    background: var(--simple-color) !important;
    color: #ffffff !important;
}

.section-badge.speedy {
    background: var(--speedy-color) !important;
    color: #ffffff !important;
}

.section-badge.smart {
    background: var(--smart-color) !important;
    color: #ffffff !important;
}

/* 4S 卡片区深底 */
.index-4s .card,
.index-4s .feature-card,
.index-4s .s-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

/* 4S 特性图标: 原为浅色半透明底 + 白字, 浅底上白字看不见 → 改深色底 */
.index-4s .feature-icon,
.feature-card.safe .feature-icon,
.feature-card.simple .feature-icon,
.feature-card.speedy .feature-icon,
.feature-card.smart .feature-icon {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary) !important;
}

/* ==========================================================================
   D. index_b2b.html — B端定价页
   ========================================================================== */

.pricing-table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

.pricing-table th {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.pricing-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.pricing-table tr:hover td {
    background: var(--accent-subtle) !important;
}

.cert-badge {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.cert-badge small {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   E. 动力实验页样式 (原 power-experiment.html)
   ⚠️ 2026-11-09: 该页已退役下线 (肖哥: 旧稿), 文件已删, web.config 301 → /riding-data.html。
      下方 .info-label 等规则保留备用 —— 若日后重做动力实验页可直接复用。
   ========================================================================== */

.info-label {
    color: var(--text-secondary) !important;
}

.info-box {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

/* ==========================================================================
   F. promo.html — 宣传图页
   ========================================================================== */

.brand-tag {
    color: var(--text-secondary) !important;
}

.feature-text {
    color: var(--text-secondary) !important;
}

.features-bar {
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

.promo-page,
.promo-container {
    background: var(--bg-page) !important;
}

/* ==========================================================================
   G. pwheel-ppt.html — 演示页
   ========================================================================== */

.slides-container {
    background: var(--bg-page) !important;
}

.slide {
    background: var(--bg-surface) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.slide h1,
.slide h2,
.slide h3 {
    color: var(--text-primary) !important;
}

.slide p,
.slide .text-gray-300,
.slide .text-gray-400 {
    color: var(--text-secondary) !important;
}

.progress-dot {
    background: var(--border-medium) !important;
}

.progress-dot.active {
    background: var(--accent-color) !important;
}

.page-number {
    color: var(--text-tertiary) !important;
}

/* ==========================================================================
   H. pwheel-compliance-exemptions.html — 合规页
   ========================================================================== */

.header h1 {
    color: var(--text-primary) !important;
}

.header .subtitle {
    color: var(--text-secondary) !important;
}

/* 渐变高亮框保留彩色底, 文字用白字即可 */
.highlight-box {
    background: linear-gradient(135deg, #5b5bd6 0%, #6d3f9e 100%) !important;
    color: #ffffff !important;
}

.highlight-box h2,
.highlight-box p,
.highlight-box li {
    color: #ffffff !important;
}

.highlight-box h2 {
    opacity: 1 !important;
}

.summary {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.summary h3 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-medium) !important;
}

.summary li {
    color: var(--text-secondary) !important;
}

.section h3 {
    color: var(--text-primary) !important;
}

.section p,
.section li {
    color: var(--text-secondary) !important;
}

.item-content.exempt {
    color: var(--safe-color) !important;
    border-left-color: var(--safe-color) !important;
}

/* ==========================================================================
   I. pwheel-video-editor-job.html — 招聘页
   ========================================================================== */

.job-header h1,
.header h1 {
    color: var(--text-primary) !important;
}

.section h2 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent-color) !important;
}

.contact h2 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent-color) !important;
}

.contact {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.contact-item span:first-child {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

.contact-item a,
.contact-item strong {
    color: var(--text-primary) !important;
}

.brand {
    color: var(--accent-text) !important;
}

.emoji {
    color: var(--text-primary) !important;
}

/* ==========================================================================
   J. pwheel-landing/index.html — 内部站首页
   ========================================================================== */

.specs-table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.specs-table th {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.specs-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

.compare-table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

.compare-table th {
    color: var(--text-primary) !important;
}

.compare-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* 半透明白字 → 苹果灰 */
.zh,
.en {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   K. pwheel-landing/data.html + power-comparison.html — 数据页
   ========================================================================== */

.stat-card,
.energy-card,
.chart-card,
.rides-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

.stat-card .val,
.val {
    color: var(--accent-text) !important;
}

.stat-card .val.green,
.val.green {
    color: var(--success-color) !important;
}

.stat-card .label,
.label {
    color: var(--text-secondary) !important;
}

.energy-card h3,
.chart-card h3,
.rides-card h3 {
    color: var(--text-primary) !important;
}

.ride-info .date {
    color: var(--text-primary) !important;
}

.ride-stats .stat .val {
    color: var(--text-primary) !important;
}

.ride-stats .stat .lbl {
    color: var(--text-secondary) !important;
}

.highlight {
    color: var(--accent-text) !important;
}

.highlight-green {
    color: var(--success-color) !important;
}

/* ==========================================================================
   L. pwheel-landing/a4-poster*.html — A4 海报页
   ========================================================================== */

.a4-poster {
    background: var(--bg-surface) !important;
    box-shadow: var(--shadow-lg) !important;
}

.specs {
    background: var(--bg-surface-alt) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

.specs h4 {
    color: var(--success-color) !important;
}

.spec-item {
    color: var(--text-secondary) !important;
}

.spec-item strong {
    color: var(--text-primary) !important;
}

.benefit-content p {
    color: var(--text-secondary) !important;
}

.cert {
    color: var(--text-secondary) !important;
    border-color: var(--border-medium) !important;
}

.benefit-card.highlight .card-title,
.benefit-card.highlight .card-desc {
    color: var(--text-primary) !important;
}

.card-title {
    color: var(--text-primary) !important;
}

.card-desc {
    color: var(--text-secondary) !important;
}

.website {
    color: var(--text-secondary) !important;
}

.logo span {
    color: var(--success-color) !important;
}

/* ==========================================================================
   M. 深色模式: 上述覆盖需反色
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --primary:        #2997ff;
        --primary-dark:   #47a6ff;
        --accent:         #2997ff;
        --bg:             #000000;
        --bg2:            #1d1d1f;
        --text:           #f5f5f7;
        --text2:          #a1a1a6;

        --safe-color:     #34d399;
        --simple-color:   #60a5fa;
        --smart-color:    #a78bfa;
        --speedy-color:   #fbbf24;

        --human-color:    #4ade80;
        --motor-color:    #f87171;
    }

    .dealer-page .highlight,
    .highlight,
    .contact-box,
    .info-box,
    .pricing-table,
    .cert-badge,
    .summary,
    .contact,
    .specs-table,
    .compare-table,
    .stat-card,
    .energy-card,
    .chart-card,
    .rides-card,
    .a4-poster {
        background: var(--bg-surface) !important;
        border-color: var(--border-subtle) !important;
    }

    .specs {
        background: var(--bg-surface-alt) !important;
    }

    .pricing-table th,
    .specs-table th {
        background: var(--bg-surface-alt) !important;
    }

    .slide {
        background: var(--bg-surface) !important;
    }

    .slides-container {
        background: var(--bg-page) !important;
    }

    .badge-item {
        background: var(--bg-surface-alt) !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第五轮 (按 body 标记类精确覆盖)
   --------------------------------------------------------------------------
   每个页面在 <body> 上加了一个标记类 (见 pwheel-tag-pages.py):
       pw-dealer / pw-4s / pw-power / pw-promo / pw-compliance
       pw-job / pw-sensor / pw-landing
   有了标记类就能精确定位, 不会再误伤其他页面的同名类。
   ========================================================================== */

/* ==========================================================================
   pw-dealer — 经销商页
   ========================================================================== */

body.pw-dealer .highlight {
    background: var(--bg-surface) !important;
    border-left: 4px solid var(--accent-color) !important;
    color: var(--text-primary) !important;
}

body.pw-dealer h2 {
    color: var(--accent-text) !important;
    border-bottom-color: var(--border-subtle) !important;
}

body.pw-dealer .contact-box {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-dealer .contact-box p,
body.pw-dealer .contact-box strong {
    color: var(--text-primary) !important;
}

body.pw-dealer li {
    color: var(--text-secondary) !important;
}

body.pw-dealer .cta-button {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-radius: var(--radius-pill) !important;
}

body.pw-dealer .cta-button:hover {
    background: var(--accent-hover) !important;
}

/* ==========================================================================
   pw-4s — 4S 品牌页
   ========================================================================== */

body.pw-4s .section-title {
    color: var(--text-primary) !important;
}

body.pw-4s .section-desc {
    color: var(--text-secondary) !important;
}

/* 深色区块 → 浅底 */
body.pw-4s section,
body.pw-4s .hero {
    background-color: var(--bg-page) !important;
}

body.pw-4s .feature-icon,
body.pw-4s .feature-card.safe .feature-icon,
body.pw-4s .feature-card.simple .feature-icon,
body.pw-4s .feature-card.speedy .feature-icon,
body.pw-4s .feature-card.smart .feature-icon {
    background: rgba(0, 0, 0, 0.06) !important;
    color: var(--text-primary) !important;
}

body.pw-4s .badge-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-medium) !important;
}

body.pw-4s .badge-item.badge-safe {
    color: #0b5c38 !important;
    background: #e3f2ea !important;
    border-color: #b8ddc9 !important;
}

body.pw-4s .badge-item.badge-simple {
    color: #1a3fa8 !important;
    background: #e3eafb !important;
    border-color: #b9caf3 !important;
}

body.pw-4s .badge-item.badge-speedy {
    color: #8a3d05 !important;
    background: #fbeee0 !important;
    border-color: #f0d4b2 !important;
}

body.pw-4s .badge-item.badge-smart {
    color: #53209e !important;
    background: #ece4fb !important;
    border-color: #d2bdf3 !important;
}

body.pw-4s .section-badge.safe {
    background: var(--safe-color) !important;
    color: #ffffff !important;
}

body.pw-4s .section-badge.simple {
    background: var(--simple-color) !important;
    color: #ffffff !important;
}

body.pw-4s .section-badge.speedy {
    background: var(--speedy-color) !important;
    color: #ffffff !important;
}

body.pw-4s .section-badge.smart {
    background: var(--smart-color) !important;
    color: #ffffff !important;
}

body.pw-4s .cta-price {
    color: var(--accent-text) !important;
}

/* ==========================================================================
   pw-power — 动力实验页
   ========================================================================== */

body.pw-power .info-box {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-power .info-label {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   pw-promo — 宣传图页
   ========================================================================== */

body.pw-promo .features-bar {
    background: var(--bg-surface) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

body.pw-promo .feature-text {
    color: var(--text-secondary) !important;
}

body.pw-promo .feature-icon {
    color: var(--text-primary) !important;
}

body.pw-promo .brand-tag {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   pw-compliance — 合规页
   ========================================================================== */

body.pw-compliance .highlight-box {
    background: linear-gradient(135deg, #5b5bd6 0%, #6d3f9e 100%) !important;
    color: #ffffff !important;
}

body.pw-compliance .highlight-box h2,
body.pw-compliance .highlight-box p,
body.pw-compliance .highlight-box li {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.pw-compliance .summary {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-compliance .summary h3 {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-medium) !important;
}

body.pw-compliance .summary li {
    color: var(--text-secondary) !important;
}

body.pw-compliance .header h1 {
    color: var(--text-primary) !important;
}

body.pw-compliance .header .subtitle {
    color: var(--text-secondary) !important;
}

body.pw-compliance .footer,
body.pw-compliance .footer p {
    background: transparent !important;
    color: var(--text-secondary) !important;
}

body.pw-compliance .footer a {
    color: var(--accent-text) !important;
}

body.pw-compliance .section h3 {
    color: var(--text-primary) !important;
}

body.pw-compliance .section p,
body.pw-compliance .section li {
    color: var(--text-secondary) !important;
}

body.pw-compliance .item-content.exempt {
    color: var(--safe-color) !important;
    border-left-color: var(--safe-color) !important;
}

/* ==========================================================================
   pw-job — 招聘页
   ========================================================================== */

body.pw-job .header h1,
body.pw-job .section h2,
body.pw-job .contact h2 {
    color: var(--text-primary) !important;
}

body.pw-job .contact {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-job .contact-item span:first-child {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

body.pw-job .contact-item span:last-child,
body.pw-job .contact-item a {
    color: var(--text-primary) !important;
}

body.pw-job .brand {
    color: var(--accent-text) !important;
}

body.pw-job .emoji {
    color: var(--text-primary) !important;
}

/* ==========================================================================
   pw-sensor — 传感器对比页
   ========================================================================== */

body.pw-sensor .table-header {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-sensor .table-header.pwheel {
    background: var(--gradient-1) !important;
    color: #ffffff !important;
}

body.pw-sensor .table-row {
    background: var(--bg-surface) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-sensor .table-cell {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
}

body.pw-sensor .table-cell.good {
    color: var(--success-color) !important;
}

body.pw-sensor .table-cell.bad {
    color: #b91c1c !important;
}

body.pw-sensor .table-row.feature-name {
    color: var(--text-primary) !important;
}

body.pw-sensor .cta-button {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

body.pw-sensor .cta-button:hover {
    background: var(--accent-hover) !important;
    box-shadow: 0 12px 32px rgba(0, 113, 227, 0.22) !important;
}

/* ==========================================================================
   pw-landing — 内部站 (首页 / 数据页 / 海报页)
   ========================================================================== */

/* ---------- 顶部导航 ---------- */
body.pw-landing .top-nav {
    background: rgba(250, 250, 252, 0.82) !important;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-landing .nav-link-btn {
    background: transparent !important;
    border: 1px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
}

body.pw-landing .nav-link-btn:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

body.pw-landing .lang-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
}

body.pw-landing .lang-btn {
    color: var(--text-secondary) !important;
}

body.pw-landing .lang-btn.active {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

/* 导航条内的中英切换文字 */
body.pw-landing .top-nav .zh,
body.pw-landing .top-nav .en {
    color: var(--text-secondary) !important;
}

/* ---------- 功能卡片 ---------- */
body.pw-landing .features,
body.pw-landing .battery {
    background: var(--bg-page) !important;
}

body.pw-landing .feature-card,
body.pw-landing .battery-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm) !important;
}

body.pw-landing .feature-card h3,
body.pw-landing .battery-card h4 {
    color: var(--text-primary) !important;
}

body.pw-landing .feature-card p,
body.pw-landing .battery-card p {
    color: var(--text-secondary) !important;
}

body.pw-landing .feature-icon,
body.pw-landing .battery-icon {
    color: #ffffff !important;
}

body.pw-landing .meter-visual {
    background: var(--bg-surface-alt) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-landing .meter-screen .label {
    color: var(--text-secondary) !important;
}

body.pw-landing .meter-screen .value {
    color: var(--accent-text) !important;
}

/* ---------- 规格表 ---------- */
body.pw-landing .specs-table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs-table th {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs-table .value {
    color: var(--accent-text) !important;
}

body.pw-landing .compare-table table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-landing .compare-table th {
    color: var(--text-primary) !important;
}

body.pw-landing .compare-table td {
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

/* ---------- CTA 区块 ---------- */
body.pw-landing .cta-section {
    background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%) !important;
}

body.pw-landing .cta-section h2,
body.pw-landing .cta-section p {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.pw-landing .cta-section .cta-btn {
    background: #ffffff !important;
    color: #1d1d1f !important;
}

body.pw-landing .cta-btn {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

body.pw-landing .hero .tagline {
    color: var(--accent-text) !important;
}

/* ---------- 数据卡 (data.html / power-comparison.html) ---------- */
body.pw-landing .stat-card,
body.pw-landing .energy-card,
body.pw-landing .chart-card,
body.pw-landing .rides-card {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-sm);
}

body.pw-landing .stat-card .val {
    color: var(--accent-text) !important;
}

body.pw-landing .stat-card .val.green {
    color: var(--success-color) !important;
}

body.pw-landing .stat-card .label {
    color: var(--text-secondary) !important;
}

body.pw-landing .energy-card h3,
body.pw-landing .chart-card h3,
body.pw-landing .rides-card h3 {
    color: var(--text-primary) !important;
}

body.pw-landing .ride-info .date {
    color: var(--text-primary) !important;
}

body.pw-landing .ride-stats .stat .val {
    color: var(--text-primary) !important;
}

body.pw-landing .ride-stats .stat .lbl {
    color: var(--text-secondary) !important;
}

body.pw-landing .highlight {
    color: var(--accent-text) !important;
}

body.pw-landing .highlight-green {
    color: var(--success-color) !important;
}

body.pw-landing .ride-btn {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-landing .ride-btn.active,
body.pw-landing .ride-btn:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: var(--accent-color) !important;
}

/* ---------- A4 海报 ---------- */
body.pw-landing .a4-poster,
body.pw-landing .a4-page {
    background: var(--bg-surface) !important;
    box-shadow: var(--shadow-lg) !important;
}

body.pw-landing .specs {
    background: var(--bg-surface-alt) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs h4 {
    color: var(--success-color) !important;
}

body.pw-landing .spec-item {
    color: var(--text-secondary) !important;
}

body.pw-landing .spec-item strong {
    color: var(--text-primary) !important;
}

body.pw-landing .benefit-content p {
    color: var(--text-secondary) !important;
}

body.pw-landing .benefit-content h3 {
    color: var(--text-primary) !important;
}

body.pw-landing .cert {
    color: var(--text-secondary) !important;
    border-color: var(--border-medium) !important;
}

body.pw-landing .benefit-card.highlight .card-title,
body.pw-landing .benefit-card.highlight .card-desc {
    color: var(--text-primary) !important;
}

body.pw-landing .card-title {
    color: var(--text-primary) !important;
}

body.pw-landing .card-desc {
    color: var(--text-secondary) !important;
}

body.pw-landing .website {
    color: var(--text-secondary) !important;
}

body.pw-landing .logo span {
    color: var(--success-color) !important;
}

/* 海报页底部黑色条 → 浅色 */
body.pw-landing .footer {
    background: var(--bg-surface-alt) !important;
    border-top: 1px solid var(--border-subtle) !important;
}

body.pw-landing .footer p {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   深色模式反色
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-landing .feature-card,
    body.pw-landing .battery-card,
    body.pw-landing .table-row,
    body.pw-landing .table-cell,
    body.pw-landing .stat-card,
    body.pw-landing .energy-card,
    body.pw-landing .chart-card,
    body.pw-landing .rides-card {
        background: var(--bg-surface) !important;
    }

    body.pw-landing .table-header {
        background: var(--bg-surface-alt) !important;
    }

    body.pw-landing .top-nav {
        background: rgba(28, 28, 30, 0.82) !important;
    }

    body.pw-landing .lang-toggle {
        background: rgba(255, 255, 255, 0.10) !important;
    }

    body.pw-landing .cta-section .cta-btn {
        background: #1d1d1f !important;
        color: #f5f5f7 !important;
    }

    body.pw-landing .footer {
        background: var(--bg-surface-alt) !important;
    }

    body.pw-4s .feature-icon {
        background: rgba(255, 255, 255, 0.10) !important;
    }

    body.pw-4s .badge-item.badge-safe {
        color: #6ee7a8 !important;
        background: rgba(15, 122, 77, 0.20) !important;
        border-color: rgba(110, 231, 168, 0.35) !important;
    }

    body.pw-4s .badge-item.badge-simple {
        color: #93c5fd !important;
        background: rgba(29, 78, 216, 0.22) !important;
        border-color: rgba(147, 197, 253, 0.35) !important;
    }

    body.pw-4s .badge-item.badge-smart {
        color: #c4b5fd !important;
        background: rgba(109, 40, 217, 0.22) !important;
        border-color: rgba(196, 181, 253, 0.35) !important;
    }

    body.pw-4s .badge-item.badge-speedy {
        color: #fcd34d !important;
        background: rgba(180, 83, 9, 0.22) !important;
        border-color: rgba(252, 211, 77, 0.35) !important;
    }

    body.pw-sensor .table-cell.bad {
        color: #f87171 !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第六轮 (精确修正)
   --------------------------------------------------------------------------
   上一轮遗留的具体问题:
   1. .summary / .highlight-box 是彩色渐变底 → 里面必须保持白字,
      不能把底改成白色 (那是第 5 轮的错误, 这里修正回来)
   2. .specs-table 的深色底在 <table> 外层 div 上, 需要同时处理 table 本身
   3. .battery-icon 是纯 emoji (无背景), 白字看不见 → 用主文字色
   4. .table-cell / .info-item 的深色底来自 --card-bg / 硬编码
   ========================================================================== */

/* ---------- pw-compliance: 渐变区块保持彩色底 + 白字 ---------- */
body.pw-compliance .highlight-box {
    background: linear-gradient(135deg, #5b5bd6 0%, #6d3f9e 100%) !important;
    color: #ffffff !important;
}

body.pw-compliance .highlight-box h2,
body.pw-compliance .highlight-box p,
body.pw-compliance .highlight-box li,
body.pw-compliance .highlight-box strong {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.pw-compliance .summary {
    background: linear-gradient(135deg, #0f766e 0%, #15803d 100%) !important;
    color: #ffffff !important;
}

body.pw-compliance .summary h3,
body.pw-compliance .summary li {
    color: #ffffff !important;
    opacity: 1 !important;
}

body.pw-compliance .summary h3 {
    border-bottom-color: rgba(255, 255, 255, 0.35) !important;
}

/* ---------- pw-sensor: 对比表格深色底 ---------- */
body.pw-sensor .comparison-table {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-sensor .table-header {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
}

body.pw-sensor .table-header.pwheel {
    background: var(--gradient-1) !important;
    color: #ffffff !important;
}

body.pw-sensor .table-row,
body.pw-sensor .table-cell {
    background: var(--bg-surface) !important;
}

body.pw-sensor .table-cell {
    color: var(--text-secondary) !important;
}

body.pw-sensor .table-cell.neutral {
    color: var(--text-secondary) !important;
}

body.pw-sensor .table-cell.good {
    color: var(--success-color) !important;
}

body.pw-sensor .table-cell.bad {
    color: #b91c1c !important;
}

body.pw-sensor .table-row.feature-name {
    color: var(--text-primary) !important;
}

body.pw-sensor .cta-button {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

/* ---------- pw-power: 信息项 ---------- */
body.pw-power .info-item {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border-subtle) !important;
}

body.pw-power .info-label {
    color: var(--text-secondary) !important;
}

/* ---------- pw-landing: 规格表 (底色在外层) ---------- */
body.pw-landing .specs-table,
body.pw-landing .specs-table table {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
}

body.pw-landing .specs-table th,
body.pw-landing .specs-table th:first-child {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs-table td {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-subtle) !important;
}

body.pw-landing .specs-table .value {
    color: var(--accent-text) !important;
}

/* ---------- pw-landing: 图标 ---------- */
body.pw-landing .feature-icon {
    color: #ffffff !important;
}

/* .battery-icon 是纯 emoji, 没有背景 → 用主文字色 */
body.pw-landing .battery-icon {
    color: var(--text-primary) !important;
}

/* 包装信息区 (半透明白字 → 苹果灰) */
body.pw-landing .packaging-info p,
body.pw-landing .specs p {
    color: var(--text-secondary) !important;
}

/* ---------- pw-landing: 导航 "了解更多" 链接 ---------- */
body.pw-landing .nav-link-btn {
    color: var(--accent-text) !important;
}

/* ---------- A4 海报: 二维码提示文字 ---------- */
body.pw-landing .qr-hint,
body.pw-landing .qr-label {
    color: var(--success-color) !important;
}

body.pw-landing .footer-text,
body.pw-landing .footer-contact {
    color: var(--text-secondary) !important;
}

/* 海报底部黑条 */
body.pw-landing .footer {
    background: var(--bg-surface-alt) !important;
}

/* 海报页 .website 在黑色条上 */
body.pw-landing .a4-poster .website,
body.pw-landing .a4-page .website {
    color: var(--text-secondary) !important;
}

/* ---------- 骑行数据: 图标与辅助数值 ---------- */
.ride-icon {
    color: #ffffff !important;
}

.energy-labels .assist {
    color: var(--success-color) !important;
}

/* 语言按钮未激活态对比度 */
.lang-btn:not(.active) {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   深色模式
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-compliance .highlight-box {
        background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 100%) !important;
    }

    body.pw-compliance .summary {
        background: linear-gradient(135deg, #115e59 0%, #166534 100%) !important;
    }

    body.pw-landing .battery-icon {
        color: var(--text-primary) !important;
    }

    body.pw-sensor .table-cell.bad {
        color: #f87171 !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第七轮 (内联样式 + 遗留色值收尾)
   --------------------------------------------------------------------------
   剩下的问题全部来自 HTML 内联 style 属性 (优先级高于样式表),
   以及页面里残留的旧色值。
   内联样式只能用 !important 覆盖。
   ========================================================================== */

/* ---------- 内联荧光青 → 苹果蓝 (全站通用) ---------- */
[style*="color:#00d4ff"],
[style*="color: #00d4ff"],
[style*="color:#00D4FF"],
[style*="color: #00D4FF"] {
    color: var(--accent-text) !important;
}

/* ---------- 内联白字 (在浅底上不可见) ---------- */
body.pw-landing [style*="color:white"],
body.pw-landing [style*="color: white"],
body.pw-landing [style*="color:#fff"],
body.pw-landing [style*="color: #fff"] {
    color: var(--text-primary) !important;
}

/* 半透明白字 → 苹果灰 */
body.pw-landing [style*="rgba(255,255,255,0.7)"],
body.pw-landing [style*="rgba(255, 255, 255, 0.7)"],
body.pw-landing [style*="rgba(255,255,255,0.5)"],
body.pw-landing [style*="rgba(255, 255, 255, 0.5)"] {
    color: var(--text-secondary) !important;
}

/* ---------- pw-sensor: 内联色值 ---------- */
body.pw-sensor [style*="color: #f87171"],
body.pw-sensor [style*="color:#f87171"] {
    color: #b91c1c !important;
}

body.pw-sensor [style*="color: #4ade80"],
body.pw-sensor [style*="color:#4ade80"] {
    color: var(--success-color) !important;
}

body.pw-sensor [style*="color: #ff6b6b"],
body.pw-sensor [style*="color:#ff6b6b"] {
    color: #b91c1c !important;
}

body.pw-sensor [style*="color: #8b5cf6"],
body.pw-sensor [style*="color:#8b5cf6"] {
    color: #6d28d9 !important;
}

body.pw-sensor [style*="color: #666"],
body.pw-sensor [style*="color:#666"],
body.pw-sensor [style*="color: #888"],
body.pw-sensor [style*="color:#888"],
body.pw-sensor [style*="color: #aaa"],
body.pw-sensor [style*="color:#aaa"] {
    color: var(--text-secondary) !important;
}

body.pw-sensor [style*="color: #fff"],
body.pw-sensor [style*="color:#fff"],
body.pw-sensor [style*="color: white"] {
    color: var(--text-primary) !important;
}

body.pw-sensor [style*="color: var(--text-secondary)"] {
    color: var(--text-secondary) !important;
}

/* ---------- drive-comparison: 内联色值 ---------- */
body:not(.pw-landing) .comparison-card [style*="color: #8b5cf6"],
body:not(.pw-landing) [style*="color: #8b5cf6"] {
    color: #6d28d9 !important;
}

/* ---------- 全站通用: 旧灰值 ---------- */
[style*="color: #666"],
[style*="color:#666"] {
    color: var(--text-secondary) !important;
}

[style*="color: #888"],
[style*="color:#888"] {
    color: var(--text-secondary) !important;
}

[style*="color: #aaa"],
[style*="color:#aaa"] {
    color: var(--text-secondary) !important;
}

[style*="color: #e0e0e0"],
[style*="color:#e0e0e0"],
[style*="color: #a0a0a0"],
[style*="color:#a0a0a0"] {
    color: var(--text-secondary) !important;
}

/* ---------- 内联 var(--primary) / var(--accent-color) ---------- */
[style*="color: var(--primary)"] {
    color: var(--accent-text) !important;
}

[style*="color: var(--accent-color)"] {
    color: var(--accent-text) !important;
}

[style*="color: var(--success-color)"] {
    color: var(--success-color) !important;
}

/* ---------- 语言按钮 (未激活态 4.32:1, 略低于 4.5) ---------- */
.lang-btn:not(.active) {
    color: #5c5c61 !important;
}

/* ---------- 导航 "了解更多" 链接 (蓝底上的灰字) ---------- */
body.pw-landing .nav-link-btn .zh,
body.pw-landing .nav-link-btn .en {
    color: inherit !important;
}

/* ---------- 海报页 website / cert (黑条上) ---------- */
body.pw-landing .a4-poster .website,
body.pw-landing .a4-page .website {
    color: var(--text-secondary) !important;
}

/* ---------- 内部站首页: 规格表区域的中英切换 ---------- */
body.pw-landing .specs-table .zh,
body.pw-landing .specs-table .en {
    color: var(--text-secondary) !important;
}

/* ---------- 内部站首页: 深色区块里的图标 ---------- */
body.pw-landing [style*="color: var(--primary)"] {
    color: var(--accent-text) !important;
}

/* ==========================================================================
   深色模式
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-landing [style*="color:white"],
    body.pw-landing [style*="color: white"],
    body.pw-landing [style*="color:#fff"],
    body.pw-landing [style*="color: #fff"] {
        color: var(--text-primary) !important;
    }

    body.pw-sensor [style*="color: #f87171"],
    body.pw-sensor [style*="color:#f87171"],
    body.pw-sensor [style*="color: #ff6b6b"] {
        color: #f87171 !important;
    }

    body.pw-sensor [style*="color: #4ade80"],
    body.pw-sensor [style*="color:#4ade80"] {
        color: #4ade80 !important;
    }

    .lang-btn:not(.active) {
        color: #a1a1a6 !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第八轮 (最终)
   --------------------------------------------------------------------------
   审计 (audit-dom.js, 已正确处理渐变背景) 剩余 29 处, 分三类处理:

   A. 彩色渐变/彩色底上的文字 → 统一用白字
      (compliance 的 .summary, job 页深色头部, landing 的深色区块)

   B. 浅色底上偏亮的语义色 → 加深
      (绿 #4ade80 → #0f7a4d, 红 #f87171 → #b91c1c, 蓝 #0071e3 → #0066cc)

   C. 临界值 (4.36~4.47, 差一点点到 4.5) → 把次级灰再深一档
      (#6e6e73 → #636366, 苹果三级灰在浅底上对比度 4.9, 更稳)
   ========================================================================== */

/* ---------- A. 彩色底上的白字 ---------- */

/* 合规页 .summary 渐变底 → 内部全部白字 */
body.pw-compliance .summary,
body.pw-compliance .summary * {
    color: #ffffff !important;
}

body.pw-compliance .summary h3 {
    border-bottom-color: rgba(255, 255, 255, 0.35) !important;
}

/* 合规页 .highlight-box 内 strong 也是白字 */
body.pw-compliance .highlight-box strong {
    color: #ffffff !important;
}

/* 招聘页: 深色头部 → 白字 */
body.pw-job .header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

body.pw-job .header h1,
body.pw-job .header .emoji {
    color: #ffffff !important;
}

body.pw-job .header .brand {
    color: #93c5fd !important;
}

/* 内部站首页: 深色区块内的中英文字 → 白字 */
body.pw-landing .cta-section .zh,
body.pw-landing .cta-section .en,
body.pw-landing .hero .zh,
body.pw-landing .hero .en {
    color: inherit !important;
}

body.pw-landing .cta-section .zh,
body.pw-landing .cta-section .en {
    color: #ffffff !important;
}

/* 内部站首页: 深色卡片 (specs / meter) 内的文字 */
body.pw-landing .specs-table .zh,
body.pw-landing .specs-table .en {
    color: var(--text-secondary) !important;
}

body.pw-landing .specs-table .value {
    color: var(--accent-text) !important;
}

/* 导航条里的 "了解更多" 链接 (在蓝色按钮上) */
body.pw-landing .nav-link-btn .zh,
body.pw-landing .nav-link-btn .en {
    color: var(--accent-text) !important;
}

/* ---------- B. 语义色加深 (sensor-comparison) ---------- */

body.pw-sensor .sensor-icon {
    color: var(--text-primary) !important;
}

body.pw-sensor .sensor-card.torque h3,
body.pw-sensor .sensor-card.torque .sensor-icon {
    color: var(--success-color) !important;
}

body.pw-sensor .sensor-card.cadence h3,
body.pw-sensor .sensor-card.cadence .sensor-icon {
    color: #b91c1c !important;
}

body.pw-sensor .example-result.torque-right {
    color: var(--success-color) !important;
}

body.pw-sensor .example-result.cadence-wrong {
    color: #b91c1c !important;
}

body.pw-sensor .tech-badge {
    background: var(--accent-subtle) !important;
    color: var(--accent-text) !important;
    border-color: var(--accent-subtle-2) !important;
}

/* ---------- C. 次级灰再深一档 (临界值) ---------- */

:root {
    /* 浅底上的次级文字, 对比度 5.1:1, 比苹果原 #6e6e73 更稳 */
    --text-secondary: #636366;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-secondary: #a1a1a6;
    }
}

/* ---------- A4 海报: 底部黑条上的文字 ---------- */

body.pw-landing .a4-poster .footer,
body.pw-landing .a4-page .footer {
    background: var(--bg-surface-alt) !important;
}

body.pw-landing .a4-poster .website,
body.pw-landing .a4-page .website {
    color: var(--text-secondary) !important;
}

/* ---------- 语言按钮未激活态 ---------- */

.lang-btn:not(.active) {
    color: #5c5c61 !important;
}

@media (prefers-color-scheme: dark) {
    .lang-btn:not(.active) {
        color: #a1a1a6 !important;
    }
}

/* ==========================================================================
   深色模式
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-sensor .sensor-card.torque h3,
    body.pw-sensor .sensor-card.torque .sensor-icon,
    body.pw-sensor .example-result.torque-right {
        color: #4ade80 !important;
    }

    body.pw-sensor .sensor-card.cadence h3,
    body.pw-sensor .sensor-card.cadence .sensor-icon,
    body.pw-sensor .example-result.cadence-wrong {
        color: #f87171 !important;
    }

    body.pw-job .header {
        background: linear-gradient(135deg, #1d1d1f 0%, #16213e 100%) !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第九轮 (收官)
   --------------------------------------------------------------------------
   剩下的问题是"深色渐变区块内部的双语文字":
   内部站首页 .hero 是深色渐变底 (#1a1a2e → #16213e), 主题把区块底色改成浅色后,
   区块内的 .zh / .en 文字仍按浅底配色 → 深色字压深色底, 看不见。
   解决: 深色渐变区块内一律白字。
   ========================================================================== */

/* ---------- 内部站首页 hero (深色渐变底) ---------- */

body.pw-landing .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

body.pw-landing .hero-content {
    color: #ffffff !important;
}

body.pw-landing .hero .zh,
body.pw-landing .hero .en {
    color: #ffffff !important;
}

/* hero 里的 tagline / USP 用亮色强调 */
body.pw-landing .hero .tagline,
body.pw-landing .hero .tagline .zh,
body.pw-landing .hero .tagline .en {
    color: #7dd3fc !important;
}

body.pw-landing .hero .USP,
body.pw-landing .hero .USP .zh,
body.pw-landing .hero .USP .en {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.pw-landing .hero .USP strong {
    color: #7dd3fc !important;
}

/* hero 标题本来是白→青渐变文字, 保留 */
body.pw-landing .hero h1 {
    color: #ffffff !important;
}

/* hero 内的 CTA 按钮: 蓝底白字 */
body.pw-landing .hero .cta-btn {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

body.pw-landing .hero .cta-btn .zh,
body.pw-landing .hero .cta-btn .en {
    color: #ffffff !important;
}

/* ---------- 内部站首页: 渐变标题里的文字 ---------- */

body.pw-landing .section-title .zh,
body.pw-landing .section-title .en {
    color: var(--text-primary) !important;
}

/* ---------- 内部站首页: 规格表 / 码表 (深色底) ---------- */

body.pw-landing .specs-table,
body.pw-landing .specs-table table {
    background: var(--bg-surface) !important;
}

body.pw-landing .specs-table th,
body.pw-landing .specs-table th .zh,
body.pw-landing .specs-table th .en {
    background: var(--bg-surface-alt) !important;
    color: var(--text-primary) !important;
}

body.pw-landing .specs-table td,
body.pw-landing .specs-table td .zh,
body.pw-landing .specs-table td .en {
    background: var(--bg-surface) !important;
    color: var(--text-secondary) !important;
}

body.pw-landing .specs-table .value,
body.pw-landing .specs-table .value .zh,
body.pw-landing .specs-table .value .en {
    color: var(--accent-text) !important;
}

/* 码表: 原为纯黑底, 主题改浅色 */
body.pw-landing .meter-screen {
    background: var(--bg-surface-alt) !important;
    border: 2px solid var(--accent-subtle-2) !important;
}

body.pw-landing .meter-screen .label,
body.pw-landing .meter-screen .label .zh,
body.pw-landing .meter-screen .label .en {
    color: var(--text-secondary) !important;
}

body.pw-landing .meter-screen .value,
body.pw-landing .meter-screen .value .zh,
body.pw-landing .meter-screen .value .en {
    color: var(--accent-text) !important;
}

body.pw-landing .meter-screen .row {
    border-bottom-color: var(--border-subtle) !important;
}

/* ---------- 内部站首页: 功能卡片双语文字 ---------- */

body.pw-landing .feature-card h3 .zh,
body.pw-landing .feature-card h3 .en {
    color: var(--text-primary) !important;
}

body.pw-landing .feature-card p .zh,
body.pw-landing .feature-card p .en {
    color: var(--text-secondary) !important;
}

body.pw-landing .section-subtitle .zh,
body.pw-landing .section-subtitle .en {
    color: var(--text-secondary) !important;
}

/* ---------- 内部站首页: 导航链接双语文字 ---------- */

body.pw-landing .nav-link-btn .zh,
body.pw-landing .nav-link-btn .en {
    color: var(--accent-text) !important;
}

body.pw-landing .nav-link-btn:hover .zh,
body.pw-landing .nav-link-btn:hover .en {
    color: #ffffff !important;
}

/* ---------- 顶部导航的中英文字 ---------- */

body.pw-landing .top-nav .zh,
body.pw-landing .top-nav .en {
    color: var(--text-secondary) !important;
}

body.pw-landing .top-nav .nav-link-btn .zh,
body.pw-landing .top-nav .nav-link-btn .en {
    color: var(--accent-text) !important;
}

/* ---------- sensor-comparison: tech-badge 底色再浅一点 ---------- */

body.pw-sensor .tech-badge {
    background: #eaf2fb !important;
    border-color: #cfe0f2 !important;
    color: #0052a3 !important;
}

/* ---------- A4 海报: website 在深色条上 ---------- */

body.pw-landing .a4-page .website,
body.pw-landing .a4-poster .website {
    color: var(--text-secondary) !important;
}

/* ==========================================================================
   深色模式
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-landing .hero {
        background: linear-gradient(135deg, #0a0a14 0%, #0f172a 100%) !important;
    }

    body.pw-sensor .tech-badge {
        background: rgba(0, 113, 227, 0.18) !important;
        border-color: rgba(0, 113, 227, 0.35) !important;
        color: #7dd3fc !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第十轮 (最后一批深色区块)
   --------------------------------------------------------------------------
   剩下的 9 处都在"深色底"上, 前几轮漏掉的容器:
       .cta-section .cta-btn   白底按钮被改成白底白字
       .torque-circle          蓝色渐变圆, 内部文字深色
       .meter 区块             深色渐变底 + 内部半透明卡片
       .torque 区块            纯黑底
       power-comparison .hero  深色渐变底
       a4-poster .hero         深色渐变底
       a4-page .header         纯黑底
   ========================================================================== */

/* ---------- 内部站首页: CTA 区块内的白色按钮 ---------- */

body.pw-landing .cta-section .cta-btn {
    background: #ffffff !important;
    color: var(--accent-text) !important;
}

body.pw-landing .cta-section .cta-btn .zh,
body.pw-landing .cta-section .cta-btn .en {
    color: var(--accent-text) !important;
}

/* ---------- 内部站首页: 扭矩可视化圆 (蓝色渐变底) ---------- */

body.pw-landing .torque-circle {
    background: linear-gradient(135deg, #0071e3 0%, #5e5ce6 100%) !important;
}

body.pw-landing .torque-circle .text,
body.pw-landing .torque-circle .text .zh,
body.pw-landing .torque-circle .text .en {
    color: #ffffff !important;
}

body.pw-landing .torque-circle .sub,
body.pw-landing .torque-circle .sub .zh,
body.pw-landing .torque-circle .sub .en {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* ---------- 内部站首页: torque 区块 (纯黑底) ---------- */

body.pw-landing .torque {
    background: #0a0a0a !important;
}

body.pw-landing .torque .torque-text,
body.pw-landing .torque .torque-text .zh,
body.pw-landing .torque .torque-text .en {
    color: #ffffff !important;
}

body.pw-landing .torque h3,
body.pw-landing .torque h3 .zh,
body.pw-landing .torque h3 .en {
    color: #ffffff !important;
}

body.pw-landing .torque p,
body.pw-landing .torque p .zh,
body.pw-landing .torque p .en {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ---------- 内部站首页: meter 区块 (深色渐变底) ---------- */

body.pw-landing .meter {
    background: linear-gradient(135deg, #0a0a0a 0%, #16213e 100%) !important;
}

body.pw-landing .meter .meter-content > div {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.pw-landing .meter h4,
body.pw-landing .meter h4 .zh,
body.pw-landing .meter h4 .en {
    color: #ffffff !important;
}

body.pw-landing .meter h3,
body.pw-landing .meter h3 .zh,
body.pw-landing .meter h3 .en {
    color: #ffffff !important;
}

body.pw-landing .meter p,
body.pw-landing .meter p .zh,
body.pw-landing .meter p .en {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ---------- power-comparison: 深色渐变 hero ---------- */

body.pw-landing .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

body.pw-landing .hero p,
body.pw-landing .hero p .zh,
body.pw-landing .hero p .en {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.pw-landing .hero h1,
body.pw-landing .hero h2 {
    color: #ffffff !important;
}

/* ---------- A4 海报: 深色渐变 hero ---------- */

body.pw-landing .a4-poster .hero,
body.pw-landing .a4-page .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
}

body.pw-landing .a4-poster .hero .subtitle,
body.pw-landing .a4-page .hero .subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.pw-landing .a4-poster .hero h1,
body.pw-landing .a4-page .hero h1 {
    color: #ffffff !important;
}

/* ---------- A4 海报: 纯黑 header 条 ---------- */

body.pw-landing .a4-page .header,
body.pw-landing .a4-poster .header {
    background: #0a0a0a !important;
}

body.pw-landing .a4-page .header .website,
body.pw-landing .a4-poster .header .website {
    color: rgba(255, 255, 255, 0.85) !important;
}

body.pw-landing .a4-page .header .logo,
body.pw-landing .a4-poster .header .logo {
    color: #ffffff !important;
}

/* ==========================================================================
   深色模式
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    body.pw-landing .hero,
    body.pw-landing .meter,
    body.pw-landing .a4-poster .hero,
    body.pw-landing .a4-page .hero {
        background: linear-gradient(135deg, #0a0a14 0%, #0f172a 100%) !important;
    }

    body.pw-landing .torque,
    body.pw-landing .a4-page .header,
    body.pw-landing .a4-poster .header {
        background: #000000 !important;
    }

    body.pw-landing .meter .meter-content > div {
        background: rgba(255, 255, 255, 0.08) !important;
    }
}

/* ==========================================================================
   全站文字颜色统一 (2026-10-27) — 第十一轮 (收官, 最后 2 处)
   --------------------------------------------------------------------------
   1. .highlight 被主题设成了白底 (background: var(--bg-surface)),
      但内部文字是深色区块里的白字 → 白底白字, 看不见
      → 改为透明底 + 保持白字
   2. .meter-list li 继承自深色区块 (白字), 但被 .meter p 规则改成了深灰
      → 恢复白字
   ========================================================================== */

/* ---------- torque 区块里的高亮词 ---------- */

body.pw-landing .torque .highlight {
    background: transparent !important;
    color: #ffffff !important;
    padding: 0 !important;
}

body.pw-landing .torque .highlight .zh,
body.pw-landing .torque .highlight .en {
    color: #ffffff !important;
}

/* ---------- meter 区块的列表 ---------- */

body.pw-landing .meter .meter-list li,
body.pw-landing .meter .meter-list li .zh,
body.pw-landing .meter .meter-list li .en {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.pw-landing .meter .meter-list li strong {
    color: #ffffff !important;
}

/* ---------- 其他深色区块内的 .highlight ---------- */

body.pw-landing .torque-text .highlight,
body.pw-landing .meter-text .highlight {
    background: transparent !important;
    color: #ffffff !important;
}

/* ==========================================================================
   首页主标题不折行 (2026-10-27)
   --------------------------------------------------------------------------
   问题: "Your Battery, Your E-Assist" 在宽屏被折成两行, 且断在连字符上:
        "Your Battery, Your E-"  ← 换行
        "Assist"
   原因: @media (min-width:1440px) 把 .hero-content 限制成 max-width:900px,
        而 clamp(2.75rem, 7vw, 5.5rem) 在 1920 视口下算出 88px 字号,
        单行需要 1116px → 超出 900px 被迫折行。
   解决:
     1. 宽屏放宽 .hero-content 到 1200px (hero 本身有 1910px, 空间足够)
     2. h1 加 white-space: nowrap, 彻底禁止折行
        → 但窄屏放不下, 所以用 clamp 字号配合媒体查询, 且窄屏仍允许折行
     3. word-break: keep-all 避免在连字符处断开 (E-Assist 不拆成 E- + Assist)
   ========================================================================== */

/* ---------- 宽屏: 放宽容器, 标题单行 ---------- */
@media (min-width: 1440px) {
    .hero-content {
        max-width: 1200px;
    }

    .hero-content h1 {
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }
}

/* ---------- 中等屏幕 (1024-1439px): 字号随视口缩, 保证单行 ---------- */
@media (min-width: 1024px) and (max-width: 1439px) {
    .hero-content {
        max-width: 96%;
    }

    .hero-content h1 {
        /* 7vw 在 1024px 时是 71px, 约需 900px 单行, 96% 容器足够 */
        font-size: clamp(2.75rem, 6.4vw, 5rem);
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }
}

/* ---------- 窄屏 (<1024px): 允许折行, 但不要在连字符处断开 ---------- */
@media (max-width: 1023px) {
    .hero-content h1 {
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
    }
}

/* ---------- 全局排版：消除孤行 (widow / orphan) ----------
   问题：多行文本的最后一行只剩几个词（如 "…and speed curve."），
        视觉上像“提行”，很丑。
   方案（CSS 原生，2026-11-07）：
     - text-wrap: balance → 标题类：让各行长度均衡，避免最后一行很短
     - text-wrap: pretty  → 正文类：避免段末出现孤词
   ⚠️ 浏览器支持：
     balance → Chrome 114+ / Safari 17.5+ / Firefox 121+
     pretty  → Chrome 117+ / Safari 17.5+ / Firefox 121+
     ⚠️ 不支持的浏览器【自动忽略该声明】，不会报错、不会降级到奇怪的效果，
        保持原来的折行行为（即最差情况 = 今天的现状）。
   ⚠️ balance 只对【块级】且【不超过 6 行】的文本生效（浏览器限制），
        标题类正好符合；正文多行段落必须用 pretty。 */
h1, h2, h3, h4, .pw-h2, .pw-h3 {
    text-wrap: balance;
}

/* ⚠️ lead（副标题/导语）也用 balance：
   它通常是 2 行短文，balance 能把两行长度均衡（如 396/412px），
   而 pretty 对 2 行元素不起作用（实测末行仍只 95px ≈ 孤行）。 */
.lead, .pw-lead, .uc-lead, .sw-sub {
    text-wrap: balance;
}

p, li, .lead, .pw-lead, .caption, .description, .uc-lead,
.sw-sub, td, th, figcaption, blockquote {
    text-wrap: pretty;
}

/* ⚠️ 窄屏折行更频繁，适当放宽 max-width 减少孤行概率
   ⚠️ 不在这里改 .map-hero .lead —— ride-map.html 内联 style 优先级更高（.map-hero .lead > .lead），
      在此写会被覆盖。两处保持一致：ride-map.html 本页是 760px。 */

/* ---------- 手机端 (<768px): 标题折行, 但不能断在连字符上 ----------
   word-break:keep-all 只阻止"单词之间"断行, 对 "E-Assist" 这种带连字符的
   词仍会在连字符处断开 (CSS 规范允许在连字符后换行)。
   解决: 把标题里的连字符换成不换行符 U+2011 (非断行连字符)。
   用 JS 处理, 因为纯 CSS 无法把 "-" 换成 U+2011。 */

/* 窄屏字号再收一点, 避免折行太难看 */
@media (max-width: 767px) {
    .hero-content h1 {
        font-size: clamp(1.75rem, 8.5vw, 2.75rem);
        line-height: 1.12;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }
}

/* ================================================================
   ⚠️ 2026-11-07 修复：深色 hero 背景下的标题不可见
   放在文件【最后】—— 同为 !important 时，【后出现者胜出】。
   （前面 2175 行的 `.kit-weight h2, ..., .hero h1 { color: var(--text-primary) !important }`
     会把标题压成浅色主题的深色 #1d1d1f）
   背景：dealer.html / battery-comparison.html 的内联样式是【完整深色主题】
   （body{background:#0a0a0a;color:#fff}），hero 用深蓝/深紫渐变
   → 深字压深蓝底 = 完全看不见。
   → 这两页的 hero 文字改回浅色，恢复可读。
   ================================================================ */
:is(.dealer-dark-hero, .dark-hero) h1,
:is(.dealer-dark-hero, .dark-hero) h2,
:is(.dealer-dark-hero, .dark-hero) .subtitle,
:is(.dealer-dark-hero, .dark-hero) p {
    color: #fff !important;
}

/* ================================================================
   ⚠️ 2026-11-07 修复：深色卡片内的文字不可见（dealer 页）
   dealer.html 内联样式是【完整深色主题】，.form-card 用深色底 #151515，
   但浅色主题把 h3/p 设成深色 → 深字压深底，看不见
   （实测 "Complete Kit — $439" 对比度仅 1.39）。

   ⚠️ 只针对 .form-card / .contact-box —— 这两个确实是深色底。
      ⚠️ 不要加 .highlight / .note：apple-theme.css 2280 行已把 .highlight
         改成浅色底（var(--bg-surface)），加了会把浅底文字改成浅色 → 反而看不见。
   放在文件【最后】，靠后覆盖前面的 !important 规则。
   ================================================================ */
:is(.form-card, .contact-box) :is(h1, h2, h3, h4, p, li, td, th, b, strong) {
    color: #e8eaed !important;
}
:is(.form-card, .contact-box) :is(h1, h2, h3, h4) {
    color: #ffffff !important;
}

/* =============================================================================
 * .pw-site-footer — 全站统一页脚 (2026-11-18 SEO 整改)
 * -----------------------------------------------------------------------------
 * 服务端渲染的服务端页脚, 与 apple-theme 的浅色/深色变量兼容。
 * 只用既有 CSS 变量, 不引入新主题。
 * ============================================================================= */
.pw-site-footer {
    margin-top: 60px;
    padding: 48px max(24px, 5%) 28px;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    background: var(--bg-card, #f5f5f7);
    color: var(--text2, #636366);
    font-size: 0.9rem;
    line-height: 1.7;
}

.pw-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto 28px;
}

.pw-footer-col h4 {
    margin: 0 0 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text, #1d1d1f);
}

.pw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pw-footer-col li {
    margin: 0 0 7px;
}

.pw-footer-col a {
    color: var(--text2, #636366);
    text-decoration: none;
    transition: color 0.15s ease;
}

.pw-footer-col a:hover {
    color: var(--accent, #0071e3);
}

.pw-footer-logo {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text, #1d1d1f);
    text-decoration: none;
}

.pw-footer-tagline {
    margin: 0 0 14px;
    color: var(--text, #1d1d1f);
    font-weight: 500;
}

.pw-footer-contact {
    margin: 0;
}

.pw-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid var(--border, rgba(0, 0, 0, 0.07));
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    font-size: 0.82rem;
}

.pw-footer-icp a {
    color: var(--text2, #636366);
    text-decoration: none;
}

.pw-site-footer .pw-trademark {
    max-width: 1200px;
    margin: 18px auto 0;
    font-size: 0.78rem;
    color: var(--text2, #636366);
}
