/*
 * WebCMS 前台样式 —— 科技现代化
 *
 * 基座是宿主的 Bootstrap 5，这里只叠站点外观。**全部走 CSS 变量**：
 * 换皮、做子品牌、给某个服务单独配色，都只改 :root 那几行，
 * 不必翻遍每个组件的选择器。
 *
 * 深浅色两套变量，跟随系统 + 手动切换（属性 data-bs-theme，与后台一致）。
 * 每个颜色都在 :root 里有浅色定义，深色只覆盖需要变的那几个 ——
 * 只在 @media 或 [data-bs-theme] 里定义某个颜色的话，另一种主题下它就是空的。
 */

:root{
    /* 主色：青蓝渐变。科技感靠的是「冷色 + 高对比 + 克制的发光」 */
    --wc-primary: #2563eb;
    --wc-primary-2: #06b6d4;
    --wc-primary-soft: rgba(37,99,235,.10);
    --wc-accent: #7c3aed;

    --wc-bg: #ffffff;
    --wc-bg-soft: #f8fafc;
    --wc-surface: #ffffff;
    --wc-border: #e2e8f0;
    --wc-text: #0f172a;
    --wc-text-soft: #64748b;
    --wc-text-mute: #94a3b8;

    /* Hero 与页脚共用的深色底：无论明暗主题它都是深的 */
    --wc-dark: #0b1120;
    --wc-dark-2: #111a2e;
    --wc-dark-text: #e2e8f0;
    --wc-dark-mute: #94a3b8;

    --wc-radius: 14px;
    --wc-radius-sm: 10px;
    --wc-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
    --wc-shadow-lg: 0 2px 4px rgba(15,23,42,.05), 0 18px 48px rgba(15,23,42,.10);
    --wc-header-h: 64px;

    --wc-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

:root[data-bs-theme="dark"]{
    --wc-bg: #0b1120;
    --wc-bg-soft: #0f172a;
    --wc-surface: #131c31;
    --wc-border: #1e293b;
    --wc-text: #e2e8f0;
    --wc-text-soft: #94a3b8;
    --wc-text-mute: #64748b;
    --wc-primary-soft: rgba(37,99,235,.16);
    --wc-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    --wc-shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
}

/* ══════════════════════════════════════════════════════════
   基础
   ══════════════════════════════════════════════════════════ */

body{
    background: var(--wc-bg);
    color: var(--wc-text);
    font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}
a{ color: var(--wc-primary); text-decoration: none; }
a:hover{ color: var(--wc-primary); text-decoration: none; }   /* 全站链接不要下划线 */
.main-area{ min-height: 60vh; padding: 32px 0 64px; }
/* bare：视图自己排版（首页那种整宽 Hero + 限宽区块交替的页面用它） */
.main-area.is-bare{ padding: 0; }
.text-muted{ color: var(--wc-text-soft) !important; }

/* 动效一律克制，且尊重系统的「减少动态效果」 */
@media (prefers-reduced-motion: reduce){
    *, *::before, *::after{ animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════════
   顶栏
   ══════════════════════════════════════════════════════════ */

.site-header{
    position: sticky; top: 0; z-index: 1030;
    height: var(--wc-header-h);
    display: flex; align-items: center;
    background: transparent;
    transition: background .2s, box-shadow .2s, border-color .2s;
    border-bottom: 1px solid transparent;
}
/* Hero 是深色的，顶栏透明压在上面才好看；一滚出去就必须有底色，
   否则顶栏文字会和正文糊在一起 */
.site-header.is-scrolled{
    background: color-mix(in srgb, var(--wc-bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom-color: var(--wc-border);
}
.header-inner{ display: flex; align-items: center; gap: 20px; width: 100%; }

/*
 * 顶栏压在深色 Hero 上时的配色
 *
 * 不处理的话，浅色主题下品牌名与导航是深色的，糊在深色 Hero 上几乎看不见
 * （截图里「MCI System」整个消失过）。滚出 Hero（.is-scrolled）就恢复正常。
 */
.has-hero-top .site-header:not(.is-scrolled) .site-brand,
.has-hero-top .site-header:not(.is-scrolled) .nav-list a,
.has-hero-top .site-header:not(.is-scrolled) .tool-btn{ color: rgba(255,255,255,.86); }
.has-hero-top .site-header:not(.is-scrolled) .nav-list a:hover,
.has-hero-top .site-header:not(.is-scrolled) .tool-btn:hover{
    background: rgba(255,255,255,.10); color: #fff; }
.has-hero-top .site-header:not(.is-scrolled) .btn-link{ color: rgba(255,255,255,.86); }
.has-hero-top .site-header:not(.is-scrolled) .nav-toggle{ color: #fff; }

.site-brand{ display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
    font-size: 17px; color: var(--wc-text); text-decoration: none; letter-spacing: -.01em; }
.site-brand:hover{ color: var(--wc-text); text-decoration: none; }
.brand-mark{
    width: 22px; height: 22px; border-radius: 7px;
    background: linear-gradient(135deg, var(--wc-primary), var(--wc-primary-2));
    box-shadow: 0 0 0 3px var(--wc-primary-soft);
}

.site-nav{ display: flex; align-items: center; gap: 4px; }
.nav-list{ list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list a{ display: block; padding: 7px 12px; border-radius: 8px; font-size: 14.5px;
    color: var(--wc-text-soft); text-decoration: none; }
.nav-list a:hover{ background: var(--wc-bg-soft); color: var(--wc-text); text-decoration: none; }
.nav-group{ display: block; padding: 7px 12px; font-size: 14.5px; color: var(--wc-text-mute); }
.nav-sub{ display: none; }   /* 前台导航只用一层，二级留给内容站自己的模板 */

.header-tools{ margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tool-btn{ position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent;
    color: var(--wc-text-soft); font-size: 18px; text-decoration: none; }
.tool-btn:hover{ background: var(--wc-bg-soft); color: var(--wc-text); }
.cart-badge{ position: absolute; top: 1px; right: 1px; min-width: 15px; height: 15px; padding: 0 3px;
    border-radius: 8px; background: #dc2626; color: #fff; font-size: 10px; line-height: 15px; text-align: center; }

.nav-toggle{ display: none; margin-left: auto; border: 0; background: transparent;
    color: var(--wc-text); font-size: 24px; }

/* ══════════════════════════════════════════════════════════
   Hero（整宽深色区）
   ══════════════════════════════════════════════════════════ */

/*
 * `.hero` 只是「深色区块」，页面里可以有好几个（首屏一个、页尾的行动号召一个）。
 *
 * **顶到顶栏底下是首屏才要的事**，所以负 margin 与那份加高的上内边距拆进
 * `.hero-top`。早先它们写在 `.hero` 上，页尾那块 CTA 于是也往上顶了一个
 * 顶栏的高度（64px），**压住它上面那个区块的底部内容** —— 页面不报错，
 * 只是最后一屏看着挤在一起（真机量出来上下两块重叠 64px）。
 */
.hero{
    position: relative; overflow: hidden;
    padding: 80px 0;
    background: var(--wc-dark);
    color: var(--wc-dark-text);
}
.hero.hero-top{
    margin-top: calc(var(--wc-header-h) * -1);
    padding: calc(var(--wc-header-h) + 72px) 0 80px;
}
/* 网格底纹：纯 CSS 画，零请求。两层渐变叠出细网格，
   再用 mask 让它从中间往外淡出，避免整屏都是格子显得脏 */
.hero::before{
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(148,163,184,.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148,163,184,.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
/* 光晕：科技感的来源，但只能有一处，多了就是灯光秀 */
.hero::after{
    content: ''; position: absolute; left: 50%; top: -30%;
    width: 900px; height: 600px; transform: translateX(-50%);
    background: radial-gradient(circle at 50% 50%,
        rgba(37,99,235,.28), rgba(6,182,212,.14) 40%, transparent 70%);
    pointer-events: none;
}
.hero > .container{ position: relative; z-index: 1; }

/* Hero 两栏：左边说话、右边给图。插图在窄屏整个撤掉 ——
   手机上它只会把首屏的行动按钮推到折叠线以下 */
.hero-grid{ display: grid; gap: 40px; align-items: center; grid-template-columns: 1.05fr .95fr; }
.hero-art svg{ display: block; width: 100%; height: auto; max-width: 460px; margin-left: auto; }
@media (max-width: 991.98px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-art{ display: none; }
}

.hero-badge{ display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px;
    padding: 5px 13px; border: 1px solid rgba(148,163,184,.25); border-radius: 999px;
    background: rgba(148,163,184,.08); color: var(--wc-dark-mute); font-size: 13px; }
.hero-badge .dot{ width: 6px; height: 6px; border-radius: 50%;
    background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }

.hero-title{ margin: 0 0 18px; font-size: clamp(30px, 5vw, 52px); font-weight: 800;
    line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.hero-title .grad{
    background: linear-gradient(120deg, #60a5fa, #22d3ee 60%, #a78bfa);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead{ max-width: 620px; margin: 0 0 30px; font-size: clamp(15px, 2vw, 18px);
    line-height: 1.75; color: var(--wc-dark-mute); }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note{ margin-top: 16px; font-size: 13px; color: var(--wc-dark-mute); }

/* Hero 里的统计条 */
.hero-stats{ display: flex; flex-wrap: wrap; gap: 36px; margin-top: 46px;
    padding-top: 28px; border-top: 1px solid rgba(148,163,184,.15); }
.hero-stat .num{ font-size: 26px; font-weight: 700; color: #fff; }
.hero-stat .lbl{ font-size: 13px; color: var(--wc-dark-mute); }

/* ══════════════════════════════════════════════════════════
   通用区块与卡片
   ══════════════════════════════════════════════════════════ */

.section{ padding: 56px 0; }
.section-head{ max-width: 680px; margin: 0 0 34px; }
.section-eyebrow{ font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--wc-primary); margin-bottom: 10px; }
.section-title{ margin: 0 0 12px; font-size: clamp(22px, 3vw, 30px); font-weight: 700;
    letter-spacing: -.015em; }
.section-lead{ margin: 0; color: var(--wc-text-soft); line-height: 1.75; }
.page-h1{ margin: 8px 0 10px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.015em; }
.page-lead{ color: var(--wc-text-soft); margin-bottom: 26px; }

/*
 * auto-fill 而不是 auto-fit：只有一两张卡时，auto-fit 会把它们拉满整行，
 * 一张卡横跨 1100px 看起来像块空白板。auto-fill 保留空轨道，卡片维持正常宽度。
 */
.wc-grid{ display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.wc-card{
    position: relative; display: flex; flex-direction: column;
    padding: 22px; border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-surface); box-shadow: var(--wc-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
/* 悬浮只上移 2px：再多就成了弹跳，在列表里一片卡片同时动很廉价 */
.wc-card:hover{ transform: translateY(-2px); box-shadow: var(--wc-shadow-lg);
    border-color: color-mix(in srgb, var(--wc-primary) 32%, var(--wc-border)); }
.wc-card-icon{ display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-bottom: 14px; border-radius: 11px;
    background: var(--wc-primary-soft); color: var(--wc-primary); font-size: 22px; }
.wc-card h3{ margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.wc-card p{ margin: 0; color: var(--wc-text-soft); font-size: 14.5px; line-height: 1.7; }
.wc-card-foot{ margin-top: auto; padding-top: 16px; }

.tag{ display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
    background: var(--wc-bg-soft); color: var(--wc-text-soft); border: 1px solid var(--wc-border); }
.tag-live{ background: rgba(34,197,94,.12); color: #16a34a; border-color: rgba(34,197,94,.3); }

/* 代码块：给开发者看的站点，接入示例要能直接复制 */
.code-block{ position: relative; margin: 0; padding: 16px 18px; border-radius: var(--wc-radius-sm);
    background: var(--wc-dark); color: #cbd5e1; font-family: var(--wc-mono);
    font-size: 13px; line-height: 1.7; overflow-x: auto; }
.code-block .k{ color: #7dd3fc; }
.code-block .s{ color: #86efac; }
.code-block .c{ color: #64748b; }
.code-copy{ position: absolute; top: 8px; right: 8px; padding: 3px 10px; border: 0; border-radius: 7px;
    background: rgba(148,163,184,.15); color: #cbd5e1; font-size: 12px; }
.code-copy:hover{ background: rgba(148,163,184,.28); }

/* ══════════════════════════════════════════════════════════
   页脚
   ══════════════════════════════════════════════════════════ */

/*
 * **页脚不留 margin-top**：间距由上一个区块自己的下内边距给
 * （`.section` 是 56px、页尾 CTA 是 64px），页脚这边还有 48px 上内边距 ——
 * 再加一层 margin 就是第三份留白。更糟的是页尾 CTA 与页脚**同为深色**，
 * 那 60px 会在两块深色之间夹出一条突兀的白缝。
 * 分界改用一条极淡的顶边：同色相接时它是分界线，浅色区块接下来时几乎看不见。
 */
.site-footer{ padding: 48px 0 28px; background: var(--wc-dark); color: var(--wc-dark-mute);
    border-top: 1px solid rgba(148,163,184,.14); }
.site-footer .site-brand{ color: #fff; }
.footer-grid{ display: grid; gap: 32px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.footer-desc{ margin: 12px 0 0; font-size: 14px; line-height: 1.75; max-width: 320px; }
.footer-col h4{ margin: 0 0 12px; font-size: 14px; font-weight: 600; color: #fff; }
.footer-col a{ display: block; padding: 4px 0; font-size: 14px; color: var(--wc-dark-mute); text-decoration: none; }
.footer-col a:hover{ color: #fff; text-decoration: none; }
.footer-legal{ display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 36px; padding-top: 20px;
    border-top: 1px solid rgba(148,163,184,.15); font-size: 13px; }
.footer-legal a{ color: var(--wc-dark-mute); }

/* ══════════════════════════════════════════════════════════
   内容页（文章 / 单页 / 商品）
   ══════════════════════════════════════════════════════════ */

.article-list{ display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.article-item{ padding: 18px 20px; border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-surface); transition: border-color .18s, box-shadow .18s; }
.article-item:hover{ border-color: color-mix(in srgb, var(--wc-primary) 30%, var(--wc-border));
    box-shadow: var(--wc-shadow); }
.article-item h2{ margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.article-item h2 a{ color: var(--wc-text); }
.article-meta{ font-size: 12px; color: var(--wc-text-mute); }
/* 正文排版：一套标尺管所有文章 —— 字号 12/14/16/18/24/32、字重 400/600/700，
   与 plans 卡片同一套模数，不再吃浏览器默认标题样式 */
.article-body{ font-size: 16px; line-height: 1.75; color: var(--wc-text); overflow-wrap: break-word; }
.article-body > :first-child{ margin-top: 0; }
.article-body h1, .article-body h2, .article-body h3,
.article-body h4, .article-body h5, .article-body h6{
    margin: 1.5em 0 .6em; line-height: 1.35; letter-spacing: -.01em; color: var(--wc-text); }
.article-body h1{ font-size: 32px; font-weight: 700; }
.article-body h2{ font-size: 24px; font-weight: 700; }
.article-body h3{ font-size: 18px; font-weight: 600; }
.article-body h4{ font-size: 16px; font-weight: 600; }
.article-body h5{ font-size: 14px; font-weight: 600; }
.article-body h6{ font-size: 12px; font-weight: 600; color: var(--wc-text-soft);
    text-transform: uppercase; letter-spacing: .04em; }
.article-body p{ margin: 0 0 1em; }
.article-body ul, .article-body ol{ margin: 0 0 1em; padding-left: 1.4em; }
.article-body li{ margin: .3em 0; }
.article-body li > ul, .article-body li > ol{ margin: .3em 0 0; }
.article-body a{ color: var(--wc-primary); text-decoration: none; }
.article-body a:hover{ text-decoration: underline; }
.article-body strong{ font-weight: 600; }
.article-body code{ font-size: .875em; padding: .15em .4em; border-radius: 4px; background: var(--wc-bg-soft); }
.article-body img{ max-width: 100%; height: auto; border-radius: var(--wc-radius-sm); }
.article-body pre{ margin: 0 0 1em; padding: 14px 16px; border-radius: var(--wc-radius-sm);
    background: var(--wc-bg-soft); overflow-x: auto; font-size: 14px; line-height: 1.6; }
.article-body pre code{ padding: 0; background: none; font-size: inherit; }
.article-body blockquote{ margin: 0 0 1em; padding: 2px 0 2px 14px;
    border-left: 3px solid var(--wc-border); color: var(--wc-text-soft); }
.article-body hr{ margin: 2em 0; border: 0; border-top: 1px solid var(--wc-border); }
.article-body table{ width: 100%; margin: 0 0 1em; border-collapse: collapse; font-size: 14px; }
.article-body th, .article-body td{ padding: 8px 12px; border: 1px solid var(--wc-border);
    text-align: left; vertical-align: top; }
.article-body th{ background: var(--wc-bg-soft); font-weight: 600; }

.param-table{ width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 14.5px; }
.param-table th, .param-table td{ padding: 9px 12px; border-bottom: 1px solid var(--wc-border); text-align: left; }
.param-table th{ width: 130px; color: var(--wc-text-soft); font-weight: 500; }

.product-grid{ display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.product-price-lg{ margin: 14px 0; font-size: 26px; font-weight: 700; color: #dc2626; }
.product-price-lg del{ margin-left: 8px; font-size: 15px; font-weight: 400; color: var(--wc-text-mute); }
.product-price{ color: #dc2626; font-weight: 600; }
.product-desc{ color: var(--wc-text-soft); line-height: 1.75; }

.pagination-wrap{ display: flex; justify-content: center; gap: 6px; margin-top: 28px; }

/* ══════════════════════════════════════════════════════════
   认证与会员
   ══════════════════════════════════════════════════════════ */

.auth-wrap{ max-width: 420px; margin: 48px auto; padding: 30px;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-surface); box-shadow: var(--wc-shadow); }
.auth-title{ font-size: 22px; font-weight: 700; margin: 0 0 22px; text-align: center; }
.auth-links{ display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; }
.auth-divider{ position: relative; text-align: center; margin: 22px 0; color: var(--wc-text-mute); font-size: 13px; }
.auth-divider::before{ content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--wc-border); }
.auth-divider span{ position: relative; background: var(--wc-surface); padding: 0 12px; }
.oauth-buttons{ display: flex; gap: 8px; flex-wrap: wrap; }
.oauth-btn{ flex: 1 1 auto; min-width: 96px; text-align: center; }

.member-layout{ display: flex; gap: 24px; align-items: flex-start; }
.member-nav{ flex: 0 0 180px; }
.member-nav ul{ list-style: none; margin: 0; padding: 0; border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius-sm); overflow: hidden; background: var(--wc-surface); }
.member-nav li a{ display: block; padding: 10px 14px; font-size: 14px; text-decoration: none;
    color: var(--wc-text-soft); border-bottom: 1px solid var(--wc-border); }
.member-nav li:last-child a{ border-bottom: 0; }
.member-nav li a:hover{ background: var(--wc-bg-soft); color: var(--wc-text); }
.member-nav li.active a{ background: var(--wc-primary-soft); color: var(--wc-primary); font-weight: 600; }
.member-main{ flex: 1 1 auto; min-width: 0; }
.member-title{ font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.member-hello{ display: flex; align-items: center; gap: 12px; }
.member-avatar{ width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
/* 应用设置：各插件应用的卡片 + 设置页的面包屑与切换条 */
.member-crumb a{ text-decoration: none; }
.member-apps{ display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.member-app-card{ display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--wc-border);
    border-radius: 8px; text-decoration: none; color: var(--wc-text); transition: border-color .15s, box-shadow .15s; }
.member-app-card:hover{ border-color: var(--wc-primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); color: var(--wc-text); }
.member-app-icon{ flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.member-app-letter{ display: flex; align-items: center; justify-content: center;
    background: var(--wc-primary-soft); color: var(--wc-primary); font-weight: 700; }
.member-app-body{ display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.member-app-name{ font-weight: 600; }
.member-app-summary{ font-size: 13px; opacity: .75; }
.member-app-status{ font-size: 12px; color: var(--wc-primary); }
.member-app-switch{ flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }

.quota-card{ border: 1px solid var(--wc-border); border-radius: var(--wc-radius-sm);
    padding: 14px; background: var(--wc-surface); }
.quota-label{ font-size: 13px; color: var(--wc-text-soft); }
.quota-value{ font-size: 26px; font-weight: 700; line-height: 1.2; margin: 2px 0; }
.form-tip{ margin-bottom: 14px; font-size: 14px; }

/* ══════════════════════════════════════════════════════════
   套餐 / 加量包
   ══════════════════════════════════════════════════════════ */

.plan-group{ margin-bottom: 40px; }
.plan-group-title{ font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.plan-group-desc{ color: var(--wc-text-soft); font-size: 14px; margin-bottom: 18px; }
.plan-grid, .pack-grid{ display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.plan-card, .pack-card{ display: flex; flex-direction: column; padding: 24px; position: relative;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-surface); box-shadow: var(--wc-shadow);
    transition: transform .18s, box-shadow .18s, border-color .18s; }
.plan-card:hover, .pack-card:hover{ transform: translateY(-2px); box-shadow: var(--wc-shadow-lg); }
/* 推荐套餐用渐变描边：一眼看出主推哪个，但不靠放大尺寸打乱网格 */
.plan-card.is-featured{ border-color: transparent;
    background:
        linear-gradient(var(--wc-surface), var(--wc-surface)) padding-box,
        linear-gradient(135deg, var(--wc-primary), var(--wc-primary-2)) border-box;
    border: 1px solid transparent; }
.plan-card.is-owned{ border-color: var(--wc-primary); }
/* 字号统一走 12/14/16/18/24/32 模数标尺，字重只用 400/600/700 —— 不要再出现
   13/14.5/17/19/30 这类随手值和 650/800 这种中间字重 */
.plan-name{ font-size: 16px; font-weight: 600; }
.plan-type{ font-size: 12px; color: var(--wc-text-soft); margin-bottom: 14px; }
.plan-price{ font-size: 32px; font-weight: 700; line-height: 1.15; margin-bottom: 16px; letter-spacing: -.02em; }
.plan-price .plan-period{ font-size: 12px; font-weight: 400; color: var(--wc-text-soft); }
/* 计费行在 .plan-price 里面，继承的是 32px 的上下文，Bootstrap 的 .small（0.875em）
   会算出 28px 的巨型灰字 —— 必须显式钉死字号 */
.plan-per-unit{ font-size: 12px; font-weight: 400; line-height: 1.5; margin-top: 6px; color: var(--wc-text-soft); }
.plan-free{ color: #16a34a; }
.plan-features{ list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; flex: 1 1 auto; }
.plan-features li{ position: relative; padding: 5px 0 5px 22px; color: var(--wc-text-soft); }
.plan-features li::before{ content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.plan-owned-tip{ font-size: 12px; color: var(--wc-primary); margin-bottom: 10px; }
.plan-badge{ position: absolute; top: -10px; right: 18px; padding: 3px 11px; border-radius: 999px;
    background: linear-gradient(135deg, var(--wc-primary), var(--wc-primary-2));
    color: #fff; font-size: 12px; font-weight: 600; }

.pack-scope{ font-size: 12px; color: var(--wc-text-soft); }
.pack-name{ font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.pack-quota{ font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.pack-quota span{ font-size: 14px; font-weight: 400; color: var(--wc-text-soft); margin-left: 3px; }
.pack-price{ font-size: 18px; margin: 6px 0; }
/* 「不过期」是加量包唯一的卖点，给它一个显眼但不吵的底色 */
.pack-note{ display: inline-block; padding: 2px 10px; margin-bottom: 12px; border-radius: 999px;
    background: rgba(34,197,94,.12); color: #16a34a; font-size: 12px; }
.pack-balance{ margin-bottom: 10px; }
.pack-buy{ display: flex; gap: 8px; margin-top: auto; }
.pack-qty{ width: 74px; flex: 0 0 auto; }

/* ══════════════════════════════════════════════════════════
   购物车 / 结算 / 订单
   ══════════════════════════════════════════════════════════ */

.cart-table .cart-thumb{ width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
/* 买不了的行压暗但不隐藏 —— 用户要能看到「它为什么买不了」 */
.cart-blocked{ opacity: .55; }
.cart-total{ font-size: 20px; color: #dc2626; }

.addr-list, .ship-list{ display: flex; flex-direction: column; gap: 8px; }
.addr-item, .ship-item{ display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius-sm); cursor: pointer; }
.addr-item:has(input:checked), .ship-item:has(input:checked){
    border-color: var(--wc-primary); background: var(--wc-primary-soft); }
.ship-item{ align-items: center; }
.confirm-sum dt{ font-weight: 400; color: var(--wc-text-soft); }
.confirm-sum dd{ margin-bottom: 4px; }

.product-buy{ margin: 18px 0; padding: 18px; border: 1px solid var(--wc-border);
    border-radius: var(--wc-radius); background: var(--wc-bg-soft); }
.sku-picker{ margin-bottom: 12px; }
.sku-label{ font-size: 13px; color: var(--wc-text-soft); margin-bottom: 8px; }
.sku-opt{ display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 8px 0; padding: 6px 13px;
    border: 1px solid var(--wc-border); border-radius: 999px; cursor: pointer; font-size: 14px; }
.sku-opt:has(input:checked){ border-color: var(--wc-primary); background: var(--wc-primary-soft);
    color: var(--wc-primary); }
.buy-row{ display: flex; gap: 8px; align-items: center; }
.buy-qty{ width: 80px; flex: 0 0 auto; }
.product-stock{ font-size: 13px; margin-bottom: 10px; }

.pay-methods{ display: flex; gap: 10px; flex-wrap: wrap; }
.pay-qr{ border: 1px dashed var(--wc-border); border-radius: var(--wc-radius-sm);
    padding: 16px; text-align: center; word-break: break-all; }
.order-filter{ display: flex; gap: 6px; flex-wrap: wrap; }
.order-timeline{ list-style: none; padding: 0; margin: 0; }
.order-timeline li{ display: flex; gap: 12px; padding: 7px 0; font-size: 14px;
    border-bottom: 1px solid var(--wc-border); }
.order-timeline li:last-child{ border-bottom: 0; }

/* ══════════════════════════════════════════════════════════
   窄屏（断点与全站一致：991.98px / 767.98px）
   ══════════════════════════════════════════════════════════ */

@media (max-width: 991.98px){
    .nav-toggle{ display: inline-flex; }
    .site-nav{
        position: absolute; left: 0; right: 0; top: var(--wc-header-h);
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px 16px 16px; background: var(--wc-bg);
        border-bottom: 1px solid var(--wc-border); box-shadow: var(--wc-shadow);
    }
    .site-nav.is-open{ display: flex; }
    .nav-list{ flex-direction: column; align-items: stretch; }
    .nav-list a{ padding: 10px 8px; }
    .header-tools{ margin-left: 0; }
    /* 顶栏窄屏只留图标与主按钮，「登录」这类次要入口收进导航里也够用 */
    .header-tools .btn-link{ display: none; }
    .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* 窄屏切换器：侧栏收进「当前功能名」下拉（details 原生开合，member.js 管点外收起） */
.member-nav-switch{ display: none; }
@media (max-width: 767.98px){
    .member-layout{ flex-direction: column; }
    /* 菜单项折叠进标题位置的下拉：胶囊标签在 10+ 项时要占两三行，不如按需点开 */
    .member-layout{ flex-direction: column; align-items: stretch; }  /* 默认 flex-start 在纵排下会把内容压成内容宽 */
    .member-nav{ display: none; }
    /* 标题本身就是菜单：文本 + 右侧小箭头，点开下拉切换，不另加框条 */
    .member-nav-switch{ display: block; position: relative; margin: 0 0 16px; }
    .member-nav-switch summary{
        display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
        padding: 0; border: 0; background: none;
        font-size: 20px; font-weight: 700; color: var(--wc-text);
    }
    .member-nav-switch summary::-webkit-details-marker{ display: none; }
    /* 纯 CSS 三角箭头，不依赖图标库 */
    .member-nav-switch .caret{ width: 0; height: 0; border: 5px solid transparent;
        border-top-color: var(--wc-text-soft); transition: transform .15s; margin-top: 4px; }
    .member-nav-switch[open] .caret{ transform: rotate(180deg); margin-top: -4px; }
    /* 下拉面板浮在标题下方，不顶开正文 */
    .member-nav-switch ul{ position: absolute; top: 100%; left: 0; z-index: 30;
        list-style: none; margin: 4px 0 0; padding: 0; min-width: 200px;
        border: 1px solid var(--wc-border); border-radius: var(--wc-radius-sm); overflow: hidden;
        background: var(--wc-surface); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
    .member-nav-switch li a{ display: block; padding: 12px 14px; font-size: 14px; text-decoration: none;
        color: var(--wc-text-soft); border-bottom: 1px solid var(--wc-border); }
    .member-nav-switch li:last-child a{ border-bottom: 0; }
    .member-nav-switch li a:active{ background: var(--wc-bg-soft); }
    .member-nav-switch li.active a{ background: var(--wc-primary-soft); color: var(--wc-primary); font-weight: 600; }
    /* 标题已由下拉承担，页面里的 h1 在窄屏隐藏（桌面端照常） */
    .member-main .member-title{ display: none; }

    /* 会员中心数据表转多行卡片：单元格竖排成「标签: 值」，不再横向滚动 */
    .member-main .table thead{ display: none; }
    /* 行距按移动端阅读舒适度给足：行 12px、单元格 7px、标签与值之间 16px */
    .member-main .table{ margin-bottom: 0; }
    .member-main .table tbody tr{ display: block; padding: 12px 10px; border-bottom: 1px solid var(--wc-border); }
    .member-main .table tbody tr:last-child{ border-bottom: 0; }
    .member-main .table tbody tr:first-child{ padding-top: 6px; }
    /* 单元格统一「标签左、值右」：值限宽 62% 防止长值把标签挤没，长值允许折断 */
    .member-main .table tbody td{ display: flex; align-items: baseline; justify-content: space-between;
        gap: 16px; border: 0; padding: 7px 2px; text-align: right !important;  /* 桌面端 text-end 的 !important 在这正好同向 */
        line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
    .member-main .table tbody td[data-label]::before{ content: attr(data-label);
        flex: 0 0 auto; text-align: left; color: var(--wc-text-soft); font-size: 13px; }
    .member-main .table tbody td > *:not(.dropdown){ max-width: 62%; }
    .member-main .table tbody td > *{ min-width: 0; }
    /* 等宽值（密钥前缀/IP）允许断行，别把卡片撑爆 */
    .member-main .table tbody td code{ word-break: break-all; }
    /* 操作列的按钮在窄屏放大到舒适的触控尺寸 */
    .member-main .table tbody td .btn{ padding: .4rem .8rem; }
    .auth-wrap{ margin: 24px 12px; padding: 22px; }
    .footer-grid{ grid-template-columns: 1fr; gap: 24px; }
    /* 每个板块的 4 个链接改 2 列 2 行：填满横向、压掉单列右半边的大片空白。
       h4 跨两列作标题，其后 4 个 <a> 自动流入两列即成 2×2 */
    .footer-col{ display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .footer-col h4{ grid-column: 1 / -1; }
    .hero{ padding: 56px 0; }
    .hero.hero-top{ padding-top: calc(var(--wc-header-h) + 48px); padding-bottom: 56px; }
    .hero-stats{ gap: 24px; }
    .cart-table thead{ display: none; }
    .buy-row{ flex-wrap: wrap; }
}

@media (max-width: 575.98px){
    .plan-grid, .pack-grid, .wc-grid{ grid-template-columns: 1fr; }
}


/* ══════════════════════════════════════════════════════════
   图文交错区块（现代科技感排版的主力）
   ══════════════════════════════════════════════════════════ */

/*
 * 一行两栏：一边说话、一边给图。**偶数行左右对调**，
 * 视线沿着 Z 字往下走，比一路平铺的卡片有节奏得多。
 * 插图一律内联 SVG：零请求、跟随主题变色、也不必为多语言准备多套图。
 */
.feature-row{ display: grid; gap: 44px; align-items: center; padding: 40px 0;
    grid-template-columns: 1fr 1fr; }
/* grid 轨道的 fr 自动最小值是子项 min-content：命令演示框(.term-body 长行)会把
 * 这一列顶宽、fr 收不下去，整行超出视口造成横向滚动、上方文本也被带宽。
 * min-width:0 让轨道可收缩，长行交给 .term-body 的 overflow-x:auto 内部滚动。 */
.feature-row > *{ min-width: 0; }
.term-shot{ max-width: 100%; }
.feature-row:nth-child(even) .feature-media{ order: -1; }
.feature-step{ display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px;
    background: var(--wc-primary-soft); color: var(--wc-primary);
    font-weight: 700; font-size: 14px; font-family: var(--wc-mono); }
.feature-title{ margin: 0 0 12px; font-size: clamp(19px, 2.4vw, 25px); font-weight: 700;
    letter-spacing: -.015em; }
.feature-text{ margin: 0 0 16px; color: var(--wc-text-soft); line-height: 1.8; font-size: 15.5px; }
.feature-points{ list-style: none; padding: 0; margin: 0; }
.feature-points li{ position: relative; padding: 5px 0 5px 24px; font-size: 14.5px;
    color: var(--wc-text-soft); }
.feature-points li::before{ content: ''; position: absolute; left: 4px; top: 13px;
    width: 8px; height: 8px; border-radius: 3px;
    background: linear-gradient(135deg, var(--wc-primary), var(--wc-primary-2)); }

.feature-media{ position: relative; }
.feature-media svg{ display: block; width: 100%; height: auto; border-radius: var(--wc-radius);
    background: var(--wc-bg-soft); border: 1px solid var(--wc-border); }
/* 插图背后的一团光：把图和背景分开，又不至于像加了个边框 */
.feature-media::before{ content: ''; position: absolute; inset: 12% 8%; z-index: -1;
    background: radial-gradient(circle, var(--wc-primary-soft), transparent 70%); filter: blur(28px); }

/* 终端示意图：接入示例用它，比一段纯文字更像「真的能跑」 */
.term-shot{ border-radius: var(--wc-radius); overflow: hidden; border: 1px solid var(--wc-border);
    background: var(--wc-dark); box-shadow: var(--wc-shadow-lg); }
.term-bar{ display: flex; align-items: center; gap: 6px; padding: 10px 14px;
    background: rgba(148,163,184,.08); border-bottom: 1px solid rgba(148,163,184,.14); }
.term-dot{ width: 10px; height: 10px; border-radius: 50%; background: #475569; }
.term-dot.r{ background: #ef4444; } .term-dot.y{ background: #eab308; } .term-dot.g{ background: #22c55e; }
.term-title{ margin-left: 6px; font-size: 12px; color: var(--wc-dark-mute); font-family: var(--wc-mono); }
.term-body{ margin: 0; padding: 16px 18px; font-family: var(--wc-mono); font-size: 13px;
    line-height: 1.85; color: #cbd5e1; overflow-x: auto; }
.term-body .p{ color: #22d3ee; }
.term-body .k{ color: #7dd3fc; }
.term-body .s{ color: #86efac; }
.term-body .c{ color: #64748b; }
.term-body .o{ color: #e2e8f0; }

@media (max-width: 767.98px){
    .feature-row{ grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
    /* 窄屏一律「图在下、字在上」：偶数行的对调在单列里只会让顺序看起来错乱 */
    .feature-row:nth-child(even) .feature-media{ order: 0; }
}

/* ══════════════════════════════════════════════════════════
   站内搜索
   ══════════════════════════════════════════════════════════ */

/* 顶栏里的搜索：宽屏常驻一个窄输入框，窄屏收成一个放大镜按钮
   （点开时绝对定位铺满顶栏宽度，不去挤品牌名） */
.header-search{ position: relative; display: flex; align-items: center; }
.header-search .search-toggle{ display: none; }
.header-search input{
    width: 168px; height: 34px; padding: 0 12px;
    border: 1px solid var(--wc-border); border-radius: 999px;
    background: var(--wc-bg-soft); color: var(--wc-text); font-size: 13.5px;
    transition: width .18s ease, border-color .18s ease, background .18s ease;
}
.header-search input:focus{ outline: none; width: 220px;
    border-color: var(--wc-primary); background: var(--wc-bg); }
.header-search input::placeholder{ color: var(--wc-text-mute); }
/* Hero 压着顶栏时输入框也要跟着变浅色描边，否则在深色上是一条黑洞 */
.has-hero-top .site-header:not(.is-scrolled) .header-search input{
    border-color: rgba(148,163,184,.3); background: rgba(148,163,184,.12); color: #fff; }
.has-hero-top .site-header:not(.is-scrolled) .header-search input::placeholder{
    color: rgba(255,255,255,.55); }

/* 搜索结果页 */
.search-page{ max-width: 820px; margin: 0 auto; padding: 40px 0 64px; }
.search-title{ margin: 0 0 20px; font-size: clamp(22px, 3vw, 30px); font-weight: 700;
    letter-spacing: -.015em; }
.search-title .kw{ color: var(--wc-primary); }

.search-box{ position: relative; display: flex; align-items: center; gap: 8px;
    padding: 6px 6px 6px 14px; margin-bottom: 12px;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-bg); box-shadow: var(--wc-shadow); }
.search-box:focus-within{ border-color: var(--wc-primary); }
.search-box > .bx{ font-size: 20px; color: var(--wc-text-mute); }
.search-box input{ flex: 1; min-width: 0; height: 42px; border: 0; background: transparent;
    color: var(--wc-text); font-size: 15.5px; }
.search-box input:focus{ outline: none; }
.search-box button{ flex: none; height: 38px; padding: 0 20px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, var(--wc-primary), var(--wc-primary-2));
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }

.search-meta, .search-hint{ margin: 0 0 24px; color: var(--wc-text-mute); font-size: 14px; }

.search-group{ margin-bottom: 34px; }
.search-group-head{ display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; padding-bottom: 10px; margin-bottom: 6px;
    border-bottom: 1px solid var(--wc-border); }
.search-group-head h2{ margin: 0; font-size: 16px; font-weight: 700; }
.search-group-head .cnt{ margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    background: var(--wc-primary-soft); color: var(--wc-primary);
    font-size: 12px; font-weight: 600; font-family: var(--wc-mono); }
.search-group-head .more{ flex: none; font-size: 13.5px; color: var(--wc-primary);
    text-decoration: none; }
.search-group-head .more:hover{ text-decoration: none; }

.search-list{ list-style: none; padding: 0; margin: 0; }
.search-list li{ padding: 14px 0; border-bottom: 1px solid var(--wc-border); }
.search-list li:last-child{ border-bottom: 0; }
.search-list .s-title{ font-size: 16px; font-weight: 600; color: var(--wc-text);
    text-decoration: none; }
.search-list .s-title:hover{ color: var(--wc-primary); }
.search-list .s-desc{ margin: 6px 0 0; font-size: 14px; line-height: 1.7;
    color: var(--wc-text-soft); }

.search-empty{ padding: 56px 20px; text-align: center; color: var(--wc-text-mute); }
.search-empty .bx{ font-size: 44px; opacity: .5; }
.search-empty p{ margin: 12px 0 18px; font-size: 15px; }
.search-suggest{ display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.search-suggest a{ font-size: 14px; color: var(--wc-primary); text-decoration: none; }
.search-suggest a:hover{ text-decoration: none; }

/* 窄屏：搜索收成一个放大镜，常驻的输入框会把品牌名挤到换行。
   **这段必须排在上面那些基础规则之后** —— 同特异性时后加载者胜，
   写在文件靠前的 991.98 段里会被后面的 `.header-search input{...}` 盖掉，
   表现是窄屏下输入框与放大镜**双双消失**（真机实测踩到，curl 看不出来）。 */
@media (max-width: 991.98px){
    .header-search .search-toggle{ display: inline-flex; }
    .header-search input{ display: none; }
    /* 展开后**贴着视口两侧**，用 fixed 不用 absolute：
       absolute 是相对 .header-search（就是那个 34px 宽的放大镜）右对齐的，
       280px 的框往左一伸，左边就跑到屏幕外 44px 去了（真机实测）。
       fixed 相对视口，两侧各留 12px，无论顶栏里挤了多少东西都对。 */
    .header-search.is-open input{
        display: block; position: fixed; left: 12px; right: 12px; width: auto;
        top: calc(var(--wc-header-h) + 8px);
        background: var(--wc-bg); border-color: var(--wc-primary);
        box-shadow: var(--wc-shadow); z-index: 1030; }
    .header-search.is-open input:focus{ width: auto; }
}

/* ══════════════════════════════════════════════════════════
   内容型页面：文章详情、商品列表与详情、单页面、分页器

   这一段补的是**先前漏掉的那批类名**：会员与交易那条路径早就有样式，
   而文章/商品/单页面走的是另一批类，一直只靠 Bootstrap 的默认外观撑着。
   default 主题的模板用的也是这批类名，两边共用同一份样式。
   ══════════════════════════════════════════════════════════ */

/* 面包屑：覆盖 Bootstrap 的列表版，这里是「a / a / a」的行内写法 */
.breadcrumb{ display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin: 0 0 4px; padding: 0; list-style: none;
    font-size: 13.5px; color: var(--wc-text-mute); background: none; }
.breadcrumb a{ color: var(--wc-text-mute); text-decoration: none; }
.breadcrumb a:hover{ color: var(--wc-primary); }
.breadcrumb span{ opacity: .5; }

.page-heading{ margin: 8px 0 10px; font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 700; letter-spacing: -.015em; }
.page-summary{ margin: 0 0 26px; color: var(--wc-text-soft); line-height: 1.75; }

.empty-tip{ padding: 56px 20px; text-align: center; color: var(--wc-text-mute);
    border: 1px dashed var(--wc-border); border-radius: var(--wc-radius); }

/* 筛选条（品牌、标签这类横排选项） */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filter-bar a{ padding: 5px 14px; border: 1px solid var(--wc-border); border-radius: 999px;
    color: var(--wc-text-soft); font-size: 13.5px; text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease; }
.filter-bar a:hover{ border-color: var(--wc-primary); color: var(--wc-primary); }
.filter-bar a.current{ background: var(--wc-primary); border-color: var(--wc-primary); color: #fff; }

/* 分页器（Bootstrap 5 已移除 .pager，这里自己定义） */
.pager{ display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px; margin: 34px 0 8px; }
.pager a, .pager span{ min-width: 36px; padding: 6px 12px; text-align: center;
    border: 1px solid var(--wc-border); border-radius: 8px;
    font-size: 14px; color: var(--wc-text-soft); text-decoration: none; }
.pager a:hover{ border-color: var(--wc-primary); color: var(--wc-primary); }
.pager .current{ background: var(--wc-primary); border-color: var(--wc-primary); color: #fff; }

/* ── 文章 ── */
.article-detail{ max-width: 820px; margin: 0 auto; }
.article-main{ min-width: 0; }
/* 有封面图的列表项：图在左、标题与描述在右，同一行 */
.article-item.has-thumb{ display: flex; align-items: flex-start; gap: 18px; }
.article-item.has-thumb .article-main{ flex: 1; }
.article-thumb{ display: block; flex: none; width: 220px; aspect-ratio: 16 / 9; border-radius: var(--wc-radius-sm);
    overflow: hidden; background: var(--wc-bg-soft); }
.article-thumb a{ display: block; height: 100%; }
.article-thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.article-desc, .article-summary{ margin: 6px 0 8px; color: var(--wc-text-soft);
    font-size: 14.5px; line-height: 1.7; }
.article-content{ line-height: 1.85; font-size: 15.5px; }
.article-content img{ max-width: 100%; height: auto; border-radius: var(--wc-radius-sm); }
.article-content h2, .article-content h3{ margin: 28px 0 12px; font-weight: 650; }
.article-content p{ margin: 0 0 16px; }
.article-content pre{ padding: 14px 16px; border-radius: var(--wc-radius-sm);
    background: var(--wc-dark); color: #cbd5e1; overflow-x: auto; font-size: 13px; }
.article-content table{ width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.article-content th, .article-content td{ padding: 8px 12px; border: 1px solid var(--wc-border); }

.article-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.article-tags a{ padding: 3px 11px; border-radius: 999px; background: var(--wc-bg-soft);
    color: var(--wc-text-soft); font-size: 13px; text-decoration: none; }
.article-tags a:hover{ color: var(--wc-primary); }

/* 上下篇：窄屏叠成两行，宽屏一左一右 */
.article-siblings, .article-nav{ display: flex; flex-wrap: wrap;
    justify-content: space-between; gap: 12px; margin: 34px 0 8px;
    padding-top: 20px; border-top: 1px solid var(--wc-border); }
.article-siblings a, .article-nav a{ max-width: 48%; font-size: 14px;
    color: var(--wc-text-soft); text-decoration: none; }
.article-siblings a:hover, .article-nav a:hover{ color: var(--wc-primary); }

.detail-banner{ display: block; width: 100%; margin: 0 0 22px;
    border-radius: var(--wc-radius); }
.detail-meta{ margin: 0 0 22px; font-size: 13.5px; color: var(--wc-text-mute); }

/* ── 商品 ── */
.product-card{ display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-bg); transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover{ transform: translateY(-2px); box-shadow: var(--wc-shadow-lg); }
.product-thumb{ display: block; aspect-ratio: 4 / 3; background: var(--wc-bg-soft); }
.product-thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.no-image{ display: flex; width: 100%; height: 100%; align-items: center;
    justify-content: center; color: var(--wc-text-mute); font-size: 28px; }
.product-body{ padding: 14px 16px 16px; }
.product-body h3{ margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.45; }
.product-body h3 a{ color: var(--wc-text); text-decoration: none; }
.product-body h3 a:hover{ color: var(--wc-primary); }
.product-brand{ margin-bottom: 6px; font-size: 12.5px; color: var(--wc-text-mute); }
.product-sn{ font-size: 12.5px; color: var(--wc-text-mute); font-family: var(--wc-mono); }

/* 详情：左图右信息，窄屏叠起来 */
.product-detail{ display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start; margin-bottom: 8px; }
.product-gallery{ min-width: 0; }
.product-info{ min-width: 0; }
.gallery-main{ display: block; aspect-ratio: 1 / 1; overflow: hidden;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius);
    background: var(--wc-bg-soft); }
.gallery-main img{ display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gallery-thumbs img{ width: 62px; height: 62px; object-fit: cover; cursor: pointer;
    border: 1px solid var(--wc-border); border-radius: var(--wc-radius-sm); }
.gallery-thumbs img:hover{ border-color: var(--wc-primary); }

.param-table{ width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.param-table th, .param-table td{ padding: 8px 12px; border: 1px solid var(--wc-border);
    text-align: left; vertical-align: top; }
.param-table th{ width: 34%; font-weight: 500; color: var(--wc-text-soft);
    background: var(--wc-bg-soft); }
.param-line{ display: flex; gap: 10px; padding: 6px 0; font-size: 14px; }
.param-line > span:first-child{ flex: none; width: 34%; color: var(--wc-text-mute); }

/* 内容型页面（关于/联系/条款/隐私）与套餐、加量包页 */
.info-page{ max-width: 780px; margin: 0 auto; }
.plans-page, .packs-page{ padding: 8px 0 16px; }

@media (max-width: 767.98px){
    .product-detail{ grid-template-columns: 1fr; gap: 20px; }
    /* 文章列表：移动端图片单独一行、文字单独一行（竖排堆叠） */
    .article-item.has-thumb{ flex-direction: column; gap: 12px; }
    .article-thumb{ width: 100%; }
    .article-siblings a, .article-nav a{ max-width: 100%; }
    .param-table th{ width: 40%; }
}

/* ══════════════════════════════════════════════════════════
   精修层 (Refinement) — 2026-09-16
   前台底子已经很完整（卡片悬浮、阴影、深浅色都在），这里只补两件小事：
   按钮的统一微交互，以及键盘用户的聚焦环 —— 都用现成的 --wc-* 变量，
   不引入新配色、不动布局。全站已有的 prefers-reduced-motion 规则会连带关掉这里的过渡。
   ══════════════════════════════════════════════════════════ */

/* 按钮：统一过渡 + 实心按钮悬浮微抬与投影，按下回落。用 Bootstrap 原生 .btn 的站点也吃得到 */
.btn{
    transition: color .2s ease, background-color .2s ease, border-color .2s ease,
                box-shadow .2s ease, transform .12s ease;
}
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-dark{
    box-shadow: 0 1px 2px rgba(15,23,42,.10);
}
.btn-primary:hover, .btn-success:hover, .btn-danger:hover,
.btn-warning:hover, .btn-info:hover, .btn-dark:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,.22);
}
.btn:active{ transform: translateY(0); }

/* 无障碍：键盘聚焦环。站内多处 input 写了 outline:none，Tab 导航会看不到焦点在哪，
   这里只对 :focus-visible（键盘触发，鼠标点击不触发）补一圈清晰的环 */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible,
[tabindex]:focus-visible{
    outline: 2px solid var(--wc-primary);
    outline-offset: 2px;
    border-radius: 6px;
}
.search-box:focus-within{ box-shadow: 0 0 0 3px var(--wc-primary-soft); }

@media (prefers-reduced-motion: reduce){
    .btn:hover, .btn:active{ transform: none !important; }
}

/* 数量步进器：分段式紧凑控件（按量套餐卡片的设备数量选择）
   原生 number 的上下箭头藏掉 —— 与 ± 按钮重在一起等于两套控件 */
.mci-stepper{ display: inline-flex; align-items: stretch; border: 1px solid var(--bs-border-color); border-radius: .5rem; overflow: hidden; background: var(--bs-body-bg); }
.mci-stepper > button{ border: 0; background: transparent; color: var(--bs-secondary-color); width: 1.9rem; min-height: 1.9rem; padding: 0; font-size: 1rem; line-height: 1; cursor: pointer; transition: background-color .15s, color .15s; }
.mci-stepper > button:hover{ background: rgba(13,110,253,.1); color: var(--bs-primary); }
.mci-stepper > button:active{ background: rgba(13,110,253,.2); }
.mci-stepper > button:focus-visible{ outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.mci-stepper > input{ width: 2.6rem; border: 0; border-left: 1px solid var(--bs-border-color); border-right: 1px solid var(--bs-border-color); background: transparent; color: inherit; text-align: center; font-size: .85rem; font-weight: 600; padding: 0; min-height: 1.9rem; appearance: textfield; -moz-appearance: textfield; }
.mci-stepper > input::-webkit-outer-spin-button, .mci-stepper > input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.mci-stepper > input:focus{ outline: none; }
.mci-stepper:focus-within{ border-color: var(--bs-primary); box-shadow: 0 0 0 .15rem rgba(13,110,253,.18); }
