/* ================================================================
   leanvps 中文站 — 移动端专项优化 v2.0
   ⚠️  全部样式均包裹在媒体查询内（或为仅移动端新增组件），
       不影响桌面端展示
   ================================================================ */

/* ──────────────────────────────────────────
   全局：触控优化 & iOS 修复
   ────────────────────────────────────────── */

/* 消除所有可点击元素的 300ms 点击延迟与高亮 */
a, button, [role="button"],
.opt-card, .addon-card, .device-tab,
.hp-period-btn, .period-btn, .faq-q,
.mob-tab, .mob-buy-btn, .mobile-cat-chip {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 防止 iOS 输入框聚焦自动缩放 */
input, select, textarea {
    font-size: 16px !important;
}

/* ──────────────────────────────────────────
   移动端新增组件：控制台底部导航栏
   （仅移动端 ≤800px 显示）
   ────────────────────────────────────────── */

.mob-tab-bar {
    display: none; /* 桌面端隐藏 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-top: 1px solid rgba(18, 21, 31, 0.08);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    /* 适配 iPhone 底部 Home Indicator */
    padding-bottom: env(safe-area-inset-bottom);
}

.mob-tab-bar-inner {
    display: flex;
    align-items: stretch;
    height: 56px;
}

.mob-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main, -apple-system, sans-serif);
    color: #8b919f;
    text-decoration: none;
    transition: color 0.18s, background 0.18s;
    border-radius: 0;
    min-width: 0;
}

.mob-tab i {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.mob-tab span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    display: block;
}

.mob-tab:hover,
.mob-tab--active {
    color: #3d52b5;
}

.mob-tab--active i {
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────
   移动端新增组件：购买页底部结算吸底栏
   （仅移动端 ≤768px 显示）
   ────────────────────────────────────────── */

.mob-buy-bar {
    display: none; /* 桌面端隐藏 */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-top: 1px solid rgba(18, 21, 31, 0.09);
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.1);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    display: none;
    align-items: center;
    gap: 14px;
}

.mob-buy-bar-info {
    flex: 1;
    min-width: 0;
}

.mob-buy-bar-price {
    font-size: 22px;
    font-weight: 800;
    color: #12151f;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.mob-buy-bar-price::before {
    content: '$';
    font-size: 13px;
    font-weight: 700;
    vertical-align: top;
    margin-top: 3px;
    display: inline-block;
    margin-right: 1px;
    letter-spacing: 0;
}

.mob-buy-bar-label {
    font-size: 11px;
    color: #8b919f;
    font-weight: 500;
    margin-top: 2px;
}

.mob-buy-btn {
    flex-shrink: 0;
    padding: 13px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f7ef8 0%, #6366f1 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: var(--font-main, -apple-system, sans-serif);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(79, 126, 248, 0.32);
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.mob-buy-btn:active {
    opacity: 0.88;
    transform: scale(0.97);
}

/* ──────────────────────────────────────────
   全局容器内边距修正
   ────────────────────────────────────────── */

@media (max-width: 768px) {
    /* marketing-pages.css 覆盖了 common.css 的移动端内边距，在此修正 */
    .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* ══════════════════════════════════════════
   首页 · index.html
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* 顶部间距（配合浮动 header） */
    .hp {
        padding-top: 52px;
    }

    /* 容器内边距 */
    .hp-container {
        padding-left: clamp(16px, 5vw, 28px);
        padding-right: clamp(16px, 5vw, 28px);
    }

    /* ── Hero ── */
    .hp-hero {
        min-height: auto;
        padding: clamp(72px, 12vw, 96px) 0 clamp(36px, 8vw, 52px);
    }

    .hp-title {
        font-size: clamp(1.875rem, 9vw, 2.5rem);
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        line-height: 1.1;
    }

    .hp-lead {
        font-size: clamp(14px, 3.8vw, 16px);
        line-height: 1.75;
        max-width: 100%;
    }

    .hp-kicker {
        font-size: 11px;
        letter-spacing: 0.18em;
        margin-bottom: 18px;
    }

    .hp-pills {
        gap: 7px;
        margin-bottom: clamp(16px, 4vw, 24px);
    }

    .hp-pill {
        font-size: 12px;
        padding: 7px 14px;
    }

    /* ── CTA 按钮：竖排 + 撑满 ── */
    .hp-cta-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: clamp(22px, 5vw, 32px);
    }

    .hp-cta-row .apple-btn-primary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
        padding: 15px 24px;
        font-size: 15px;
        border-radius: 100px;
    }

    .hp-cta-row .apple-btn-link {
        font-size: 14px;
        padding: 8px 8px;
    }

    /* ── 信任条 ── */
    .hp-trust-line {
        justify-content: flex-start;
        gap: 8px 16px;
        font-size: 13px;
        line-height: 1.6;
    }

    /* ── 定价区标题 ── */
    .hp-pricing-section {
        padding: 36px 0 44px;
    }

    .hp-pricing-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 16px;
    }

    .hp-pricing-head h2 {
        font-size: clamp(1.15rem, 5.5vw, 1.5rem);
    }

    /* 订阅周期切换器 */
    .hp-period-switcher {
        width: 100%;
        padding: 3px;
        border-radius: 10px;
    }

    .hp-period-btn {
        padding: 7px 8px;
        font-size: 12px;
        flex: 1;
        text-align: center;
        border-radius: 8px;
    }

    .hp-period-btn .hp-period-save {
        font-size: 8px;
        top: -7px;
        right: -2px;
    }

    /* 定价卡片 */
    .hp-price-card {
        padding: 24px 18px 20px;
        border-radius: 14px;
    }

    .hp-price-card .hp-pc-price {
        font-size: 2rem;
    }

    .hp-price-card .hp-pc-img {
        max-width: 180px;
        height: 130px;
    }

    .hp-price-card li {
        font-size: 12.5px;
        padding: 4px 0;
    }

    .hp-price-card .hp-pc-btn-primary {
        font-size: 14px;
        padding: 12px 16px;
        margin-bottom: 20px;
    }

    /* ── 数字条 ── */
    .hp-strip {
        padding: clamp(32px, 7vw, 52px) calc(50vw - 50%);
    }

    .hp-strip-item strong {
        font-size: clamp(1.375rem, 5.5vw, 1.875rem);
    }

    .hp-strip-item span {
        font-size: 13px;
        max-width: 100%;
    }

    /* ── Section 通用 ── */
    .hp-section {
        padding: clamp(44px, 8vw, 68px) 0;
    }

    .hp-section-head {
        margin-bottom: clamp(24px, 5vw, 40px);
    }

    .hp-section-head h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        line-height: 1.18;
    }

    .hp-section-head p {
        font-size: 14px;
        line-height: 1.72;
    }

    /* ── 对比区 ── */
    .hp-compare-col {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .hp-compare-col h3 {
        font-size: 13.5px;
        gap: 8px;
        margin-bottom: 16px;
    }

    .hp-compare-col li {
        font-size: 13.5px;
        padding: 10px 0;
        gap: 10px;
        line-height: 1.5;
    }

    /* ── Bento ── */
    .hp-bento-item {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .hp-bento-item h3 {
        font-size: 0.975rem;
        margin-bottom: 8px;
    }

    .hp-bento-item p {
        font-size: 13.5px;
        line-height: 1.68;
    }

    .hp-bento-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 1.05rem;
        margin-bottom: 16px;
    }

    /* ── 场景卡 ── */
    .hp-scene {
        padding: 20px 16px;
        border-radius: 14px;
        min-height: 150px;
    }

    .hp-scene i {
        font-size: 1.45rem;
        margin-bottom: 12px;
    }

    .hp-scene strong {
        font-size: 14px;
        margin-bottom: 7px;
    }

    .hp-scene span {
        font-size: 12.5px;
    }

    /* ── 规格表 ── */
    .hp-spec-list {
        border-radius: 16px;
    }

    .hp-spec-row {
        padding: 13px 16px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .hp-spec-row span:first-child {
        font-size: 12px;
        color: #7a8299;
        min-width: 60px;
    }

    .hp-spec-row span:last-child {
        font-size: 13px;
        text-align: left;
        font-weight: 600;
    }

    /* ── 地域卡 ── */
    .hp-region-card {
        padding: 14px 8px;
        border-radius: 12px;
        font-size: 12.5px;
    }

    .hp-region-card em {
        font-size: 9px;
        margin-top: 6px;
    }

    /* ── 底部 CTA ── */
    .hp-final-wrap {
        padding: 24px 0 52px;
    }

    .hp-final {
        padding: 32px 18px;
        border-radius: 18px;
    }

    .hp-final h2 {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        line-height: 1.18;
        max-width: 100%;
    }

    .hp-final p {
        font-size: 13.5px;
        line-height: 1.68;
        margin-bottom: clamp(24px, 4vw, 32px);
    }

    .hp-final-btns {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hp-final-btns .apple-btn-primary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
        padding: 15px 24px;
        font-size: 15px;
        border-radius: 100px;
    }

    /* ── 防止全宽区块横向溢出 ── */
    .hp-section--tint {
        overflow-x: hidden;
    }
}

/* 超小屏 ≤390px */
@media (max-width: 390px) {
    .hp-period-btn {
        padding: 6px 6px;
        font-size: 11px;
    }

    .hp-price-card {
        padding: 20px 14px 16px;
    }

    .hp-hero {
        padding-top: clamp(62px, 11vw, 80px);
    }
}

/* ══════════════════════════════════════════
   定价页 · jiage.html
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Hero */
    .pricing-hero {
        padding: 96px 0 36px;
    }

    .pricing-title {
        font-size: clamp(22px, 7vw, 36px) !important;
        line-height: 1.15;
    }

    /* 周期切换器 */
    .period-switcher {
        width: 100%;
        padding: 3px;
        border-radius: 10px;
    }

    .period-btn {
        padding: 7px 8px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }

    .period-btn .period-save {
        font-size: 8px;
        padding: 1px 3px;
    }

    /* 规格卡片 */
    .spec-container {
        padding: 32px 0 48px;
    }

    .spec-tier-card {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .tier-name {
        font-size: 17px;
    }

    .tier-price {
        font-size: 38px !important;
        letter-spacing: -0.04em;
    }

    .tier-price span {
        font-size: 15px !important;
    }

    .tier-mac-img {
        max-width: 160px;
        height: 120px;
    }

    .spec-item {
        font-size: 14px;
    }

    .btn-m4 {
        margin-top: 24px !important;
        padding: 14px 24px;
        font-size: 14px;
        min-height: 50px;
    }

    /* 对照表：整体横向滚动 */
    .comparison-wrap {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 40px 0 64px !important;
    }

    .comparison-wrap .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .comparison-table {
        min-width: 460px;
        font-size: 12.5px;
    }

    .comparison-table th {
        padding: 14px 10px;
        font-size: 10px;
    }

    .comparison-table td {
        padding: 14px 10px;
    }

    .row-label {
        min-width: 100px;
        font-size: 13px;
    }

    /* 页面整体文字 */
    .spec-container > .container > p {
        font-size: 15px !important;
    }
}

/* ══════════════════════════════════════════
   购买页 · goumai.html + goumai-*.html
   ══════════════════════════════════════════ */

/* 移动端显示底部结算栏 */
@media (max-width: 768px) {
    .mob-buy-bar {
        display: flex !important;
    }

    /* 页面底部增加空间，避免被吸底栏遮挡 */
    .purchase-page {
        padding-bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }

    /* 摘要框：在底部栏之上不需要那么大 */
    .summary-box {
        margin-bottom: 8px;
    }

    /* 桌面版摘要框中的结算按钮在移动端弱化（已有底部栏） */
    .btn-checkout {
        background: rgba(79, 126, 248, 0.12);
        color: #3d52b5;
        box-shadow: none;
        font-size: 13px;
        padding: 14px;
        border: 1px solid rgba(79, 126, 248, 0.25);
    }

    .btn-checkout:hover {
        opacity: 0.9;
        transform: none;
        box-shadow: none;
    }
}

@media (max-width: 640px) {
    /* 步骤标题 */
    .step-header {
        gap: 10px;
        padding-bottom: 14px;
        margin-bottom: 16px;
    }

    .step-name {
        font-size: 15px;
    }

    .step-sub {
        font-size: 11px;
    }

    .step-block {
        margin-bottom: 36px;
    }

    /* 选项卡 */
    .option-grid {
        gap: 8px;
    }

    .opt-card {
        padding: 14px 12px;
        min-height: 76px;
        border-radius: 10px;
    }

    .opt-title {
        font-size: 13px;
    }

    .opt-desc {
        font-size: 10.5px;
    }

    .opt-price {
        font-size: 13px;
    }

    /* Addon 卡 */
    .addon-card {
        padding: 14px 16px;
        border-radius: 10px;
    }

    .addon-name {
        font-size: 13px;
    }

    .addon-sub {
        font-size: 10.5px;
    }

    /* 摘要框 */
    .summary-header {
        padding: 13px 16px;
    }

    .summary-body {
        padding: 12px 16px 0;
    }

    .sum-key {
        font-size: 10.5px;
    }

    .sum-val {
        font-size: 11.5px;
    }

    .summary-breakdown {
        margin: 0 16px;
    }

    .bd-key {
        font-size: 10.5px;
    }

    .bd-val {
        font-size: 12px;
    }

    .total-amount {
        font-size: 32px;
        letter-spacing: -0.04em;
    }

    .total-amount .currency {
        font-size: 14px;
        margin-top: 4px;
    }

    .summary-total {
        padding: 14px 16px 16px;
    }

    .checkout-note {
        font-size: 10.5px;
        line-height: 1.6;
        margin-top: 12px;
    }
}

/* ══════════════════════════════════════════
   帮助中心 · bangzhu.html
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Hero */
    .help-hero {
        padding: 90px 0 32px;
    }

    /* Hero 标题 */
    .help-hero h1 {
        font-size: clamp(28px, 7vw, 42px) !important;
        line-height: 1.12;
    }

    .help-hero p {
        font-size: 14px !important;
        line-height: 1.7;
        margin-top: 10px !important;
    }

    /* 搜索框 */
    .search-wrap {
        max-width: 100%;
        margin-top: 20px;
    }

    .search-input {
        padding: 13px 16px 13px 46px;
        border-radius: 12px;
        font-size: 15px !important;
    }

    .search-ico {
        font-size: 13px;
        left: 16px;
    }
}

@media (max-width: 640px) {
    /* FAQ 条目 */
    .faq-q {
        font-size: 13.5px;
        padding: 13px 14px;
        line-height: 1.5;
        gap: 10px;
    }

    .faq-toggle {
        width: 22px;
        height: 22px;
        font-size: 9px;
        flex-shrink: 0;
    }

    .faq-a-inner {
        padding: 4px 14px 16px;
        font-size: 13px;
        line-height: 1.72;
    }

    .faq-a-inner code {
        font-size: 12px;
    }

    .faq-item {
        border-radius: 10px;
        margin-bottom: 5px;
    }

    .faq-group {
        margin-bottom: 44px;
    }

    /* 分组标题 */
    .group-header {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .group-title {
        font-size: 15.5px;
        letter-spacing: -0.02em;
    }

    .group-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 12px;
    }

    /* 支持 CTA */
    .support-cta {
        padding: 28px 18px;
        border-radius: 16px;
    }

    .support-cta h3 {
        font-size: 17px;
    }

    .support-cta p {
        font-size: 13.5px;
        max-width: 100%;
        margin-bottom: 24px !important;
    }

    /* 按钮 */
    .support-cta .apple-btn,
    .support-cta .btn-m4 {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════
   控制台 · kongzhi.html
   ══════════════════════════════════════════ */

@media (max-width: 800px) {
    /* 显示底部导航栏 */
    .mob-tab-bar {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: stretch;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* body 解除 overflow:hidden 允许滚动 */
    body {
        overflow-y: auto !important;
        overflow-x: hidden;
    }

    /* 主布局：单列，高度自适应 */
    .command-shell {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: calc(100vh - 56px - env(safe-area-inset-bottom));
        padding: calc(var(--top-bar-height, 80px) + 8px) 10px 12px !important;
        gap: 10px;
    }

    /* 侧边栏完全隐藏（由底部导航栏代替） */
    .sidebar-glass {
        display: none !important;
    }

    /* 主内容区 */
    .center-main {
        padding: 18px 14px 28px !important;
        border-radius: 16px !important;
        overflow-y: visible !important;
        /* 底部留出 tab bar 空间 */
        padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom)) !important;
    }

    /* 实例标题栏 */
    .node-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 18px;
    }

    .node-title-wrap h2 {
        font-size: 20px !important;
    }

    /* 截止日期放在标题下方 */
    .node-header > div:last-child {
        text-align: left !important;
    }

    /* 仪表板：单列 */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* 资源规格网格：4列→2列 */
    .specs-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .spec-mini-item {
        padding: 14px 10px;
        border-radius: 14px;
    }

    .spec-mini-val {
        font-size: 13px;
    }

    /* Glass 卡片内边距 */
    .glass-card {
        border-radius: 16px !important;
    }

    /* 连接信息中的 2列网格在小屏全展 */
    .cred-box {
        border-radius: 10px;
    }

    .cred-value {
        font-size: 12px;
        word-break: break-all;
    }

    /* 控制按钮 */
    .control-grid {
        gap: 8px;
        margin-top: 14px;
    }

    .control-btn-unit {
        padding: 14px 8px;
        border-radius: 12px;
    }

    .control-btn-unit i {
        font-size: 16px;
    }

    .control-btn-unit span {
        font-size: 11px;
    }

    /* 订阅管理盒子 */
    .stripe-portal-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 18px;
    }

    /* 页面标题 */
    .view-page-title {
        font-size: 20px !important;
    }

    .view-page-subtitle {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }

    /* 订单列表 */
    .orders-split-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .orders-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .order-card {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .order-card-title {
        font-size: 13px;
    }

    .order-card-meta {
        font-size: 10.5px;
    }

    .order-card-price {
        font-size: 13px;
    }

    .order-detail-panel-zh {
        position: static !important;
        border-radius: 16px;
    }

    .order-detail-content {
        padding: 20px;
    }

    .detail-fields {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-field {
        padding: 10px 12px;
        border-radius: 10px;
    }

    /* 工单列表 */
    .ticket-list-item {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .ticket-list-name {
        font-size: 13px;
    }

    .ticket-list-meta {
        font-size: 10.5px;
    }

    .tickets-view-header {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* 超小屏控制台 ≤480px */
@media (max-width: 480px) {
    .command-shell {
        padding: calc(var(--top-bar-height, 80px) + 6px) 8px 10px !important;
    }

    .center-main {
        padding: 14px 12px 24px !important;
        padding-bottom: calc(24px + 56px + env(safe-area-inset-bottom)) !important;
        border-radius: 12px !important;
    }

    .specs-mini-grid {
        gap: 8px;
    }

    .spec-mini-item {
        padding: 12px 8px;
    }

    .detail-fields {
        grid-template-columns: 1fr;
    }

    .control-btn-unit span {
        font-size: 10px;
    }
}

/* ══════════════════════════════════════════
   marketing-pages.css 共用组件
   ══════════════════════════════════════════ */

@media (max-width: 768px) {
    /* eyebrow 标签 */
    .eyebrow {
        font-size: 10px;
        padding: 5px 11px;
        margin-bottom: 12px;
    }

    /* 超大标题 */
    .super-title {
        font-size: clamp(30px, 8vw, 50px);
        line-height: 1.08;
    }

    /* 副标题 */
    .sub-title {
        font-size: clamp(14px, 4vw, 17px);
        max-width: 100%;
        line-height: 1.6;
    }

    /* 苹果风格按钮 */
    .apple-btn {
        padding: 13px 22px;
        font-size: 15px;
        min-height: 48px;
    }

    /* M4 按钮 */
    .btn-m4 {
        padding: 13px 20px;
        font-size: 14px;
        min-height: 48px;
    }

    /* 特性行 */
    .feature-row {
        margin: 36px 0;
        gap: 18px;
    }

    .feature-card {
        padding: 28px 20px;
    }

    .feature-icon {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 13.5px;
    }
}

/* ══════════════════════════════════════════
   common.css 共用组件
   ══════════════════════════════════════════ */

@media (max-width: 640px) {
    /* 弹窗：底部弹出式（Sheet 模式） */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-box {
        border-radius: 24px 24px 0 0;
        padding: 28px 20px 36px;
        padding-bottom: calc(36px + env(safe-area-inset-bottom));
        max-width: 100%;
        width: 100%;
        animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    @keyframes modalSlideUp {
        from { opacity: 0; transform: translateY(40px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .modal-title {
        font-size: 19px;
    }

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 22px;
    }

    /* 登录、个人中心、退出确认弹窗同样 Sheet 化 */
    #lm-card, #pm-card, #cl-card, #cia-card {
        border-radius: 24px 24px 0 0 !important;
        padding: 28px 18px !important;
        padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
        max-width: 100%;
        width: 100%;
    }

    /* 表单输入 */
    .form-input {
        padding: 13px 14px;
        font-size: 16px !important;
        border-radius: 10px;
    }

    /* 按钮 */
    .btn {
        padding: 13px 20px;
        font-size: 14px;
        min-height: 48px;
    }
}

/* Toast 通知 */
@media (max-width: 480px) {
    .toast-container {
        bottom: 16px;
        right: 12px;
        left: 12px;
        align-items: center;
    }

    .toast {
        max-width: 100%;
        width: 100%;
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 12px;
    }
}

/* ══════════════════════════════════════════
   Header 移动端补强
   ══════════════════════════════════════════ */

@media (max-width: 480px) {
    /* 浮动导航栏更贴边 */
    .pm-header {
        top: 8px !important;
        width: calc(100% - 20px) !important;
        height: 48px !important;
        border-radius: 13px !important;
    }

    .pm-header-inner {
        padding: 0 14px !important;
    }

    .pm-logo {
        width: 130px !important;
        height: 28px !important;
    }

    /* 移动端菜单 */
    .pm-mobile-menu {
        top: 68px;
        left: 10px;
        right: 10px;
    }
}

/* ══════════════════════════════════════════
   Footer 移动端补强
   ══════════════════════════════════════════ */

@media (max-width: 640px) {
    .pm-footer {
        padding: 36px 0 0;
    }

    .pm-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 28px;
    }

    .pm-footer-brand {
        grid-column: auto;
        max-width: 100%;
    }

    .pm-footer-desc {
        font-size: 12px;
        line-height: 1.8;
        margin: 14px 0 12px;
    }

    .pm-footer-heading {
        font-size: 9.5px;
        margin-bottom: 14px;
    }

    .pm-footer-link {
        font-size: 12.5px;
        margin-bottom: 9px;
    }

    .pm-footer-link:hover {
        transform: none;
    }

    .pm-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 0 20px;
        font-size: 10px;
    }

    .pm-footer-status {
        flex-wrap: wrap;
        gap: 10px;
    }
}
