/* ============================================================
   马用通商城系统 · 官网门户样式
   风格：工业级企业软件官网——墨蓝 + 信号蓝 + 琥珀点缀
   无外部依赖，纯手写响应式
   ============================================================ */

:root {
    --ink: #0a1b33;          /* 深墨蓝 */
    --ink-2: #12294a;        /* 墨蓝亮阶 */
    --accent: #2f6bff;       /* 信号蓝 */
    --accent-deep: #1e4fd6;
    --gold: #e8a33d;         /* 琥珀点缀 */
    --bg: #f7f9fc;           /* 浅灰底 */
    --paper: #ffffff;
    --line: #e3e9f2;
    --text: #23324a;
    --text-2: #5a6b85;
    --radius: 10px;
    --shadow: 0 12px 32px rgba(10, 27, 51, 0.08);
    --shadow-hover: 0 18px 44px rgba(10, 27, 51, 0.14);
    --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-num: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--paper);
    line-height: 1.75;
    font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-deep); }

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 27, 51, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }

.brand-mark {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; font-size: 19px; font-weight: 700;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(47, 107, 255, 0.4);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text small { font-size: 10px; letter-spacing: 2.5px; color: rgba(255, 255, 255, 0.45); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav > a { color: rgba(255, 255, 255, 0.78); font-size: 15px; position: relative; padding: 4px 0; }
.site-nav > a::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--gold);
    transition: width 0.25s ease;
}
.site-nav > a:hover { color: #fff; }
.site-nav > a:hover::after, .site-nav > a.active::after { width: 100%; }
.site-nav > a.active { color: #fff; }

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 7px 20px !important;
    color: #fff !important;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle .bar {
    width: 22px; height: 2px; background: #fff;
    border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Hero（首页） ---------------- */
.hero {
    position: relative;
    background: linear-gradient(148deg, var(--ink) 0%, var(--ink-2) 58%, #16305c 100%);
    color: #fff;
    padding: 108px 0 96px;
    overflow: hidden;
}

.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 20%, #000 30%, transparent 75%);
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-block;
    font-size: 12px; letter-spacing: 4px; font-weight: 600;
    color: var(--gold);
    border: 1px solid rgba(232, 163, 61, 0.4);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 26px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.hero-title .accent, h1 .accent, .page-hero h1 .accent {
    color: transparent;
    background: linear-gradient(100deg, #6ea0ff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-sub {
    font-size: 17px; color: rgba(255, 255, 255, 0.72);
    max-width: 640px; margin-bottom: 38px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

/* 按钮 */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 34px;
    border-radius: 8px;
    font-size: 15.5px; font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff;
    box-shadow: 0 8px 22px rgba(47, 107, 255, 0.35);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(47, 107, 255, 0.45);
}

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22); }

/* 数据带 */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 34px;
}
.hero-stats > div { padding-right: 20px; }
.hero-stats dt {
    font-family: var(--font-num);
    font-size: 34px; font-weight: 700; color: #fff;
    font-style: italic;
}
.hero-stats dd { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); }

/* ---------------- 内页页头 ---------------- */
.page-hero {
    background: linear-gradient(148deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff;
    padding: 84px 0 72px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute; right: -120px; top: -120px;
    width: 380px; height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.page-hero h1 {
    font-size: clamp(30px, 4.6vw, 44px);
    font-weight: 700; line-height: 1.3; margin-bottom: 16px;
}
.page-hero-compact { padding: 40px 0; }
.page-hero-compact::after { display: none; }
.page-hero-sub { color: rgba(255, 255, 255, 0.72); font-size: 16.5px; max-width: 620px; }

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb em { font-style: normal; color: var(--gold); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 92px 0; }
.section-tinted { background: var(--bg); }

.section-head { margin-bottom: 52px; max-width: 640px; }
.section-no {
    display: block;
    font-family: var(--font-num);
    font-style: italic; font-weight: 700;
    font-size: 15px; letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}
.section-no::after {
    content: ""; display: inline-block;
    width: 44px; height: 2px;
    background: var(--gold);
    vertical-align: middle;
    margin-left: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; color: var(--ink); line-height: 1.35; }
.section-head p { color: var(--text-2); margin-top: 12px; font-size: 16px; }

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card, .contact-card, .stack-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card::before, .contact-card::before {
    content: "";
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.feature-card:hover, .contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.feature-card:hover::before, .contact-card:hover::before { transform: scaleX(1); }

.feature-card h3, .contact-card h3, .stack-item h3 {
    font-size: 19px; font-weight: 700; color: var(--ink);
    margin-bottom: 12px;
}
.feature-card p, .contact-card > p, .stack-item p { color: var(--text-2); font-size: 14.8px; }

.contact-card dl { margin-top: 20px; border-top: 1px dashed var(--line); }
.contact-card dl > div { display: flex; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.contact-card dt { color: var(--text-2); width: 88px; flex-shrink: 0; }
.contact-card dd { color: var(--ink); font-weight: 500; }

/* 分栏 */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.split-text h3 { font-size: 24px; color: var(--ink); font-weight: 700; margin-bottom: 24px; }

.check-list { list-style: none; margin-bottom: 34px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 15px; color: var(--text-2); }
.check-list li strong { color: var(--ink); }
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 6px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--accent);
}

/* 视觉面板（装饰） */
.visual-panel {
    background: linear-gradient(150deg, var(--ink), var(--ink-2));
    border-radius: 14px;
    padding: 52px 44px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.visual-panel::after {
    content: "";
    position: absolute; right: -70px; bottom: -70px;
    width: 220px; height: 220px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, 0.05);
}
.visual-panel strong {
    display: block;
    font-family: var(--font-num); font-style: italic;
    font-size: 52px; font-weight: 700;
    margin: 18px 0 6px;
    background: linear-gradient(100deg, #6ea0ff, var(--gold));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.visual-panel small { color: rgba(255, 255, 255, 0.65); font-size: 13.5px; }
.visual-panel-blue { background: linear-gradient(150deg, #14315e, #0e2250); }

.vp-line {
    display: block; height: 8px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 12px;
}
.vp-line:nth-child(2) { width: 72%; }
.vp-line:nth-child(3) { width: 46%; }

/* 插件网格 */
.plugin-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}
.plugin-grid li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
    padding: 14px 6px;
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.plugin-grid li:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
}
.plugin-grid li:last-child { color: var(--gold); border-style: dashed; }
.plugin-note { margin-top: 26px; color: var(--text-2); font-size: 14.5px; }

/* 技术底座 */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stack-item {
    background: var(--paper);
}
.stack-item h3 { display: flex; align-items: center; gap: 10px; }
.stack-item h3::before {
    content: "";
    width: 10px; height: 10px;
    background: var(--gold);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ---------------- 新闻列表 ---------------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 8px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}
.news-item:hover { background: rgba(47, 107, 255, 0.03); }
.news-item-body h3 { font-size: 19px; margin-bottom: 8px; }
.news-list-page .news-item-body h2 { font-size: 19px; margin-bottom: 8px; }
.news-item-body h3 a, .news-list-page .news-item-body h2 a { color: var(--ink); }
.news-item-body h3 a:hover, .news-list-page .news-item-body h2 a:hover { color: var(--accent); }
.news-item-body p { color: var(--text-2); font-size: 14.8px; max-width: 720px; }
.news-item-date {
    flex-shrink: 0;
    font-family: var(--font-num); font-style: italic;
    color: var(--text-2); font-size: 15px;
    padding-top: 4px;
}

.more-link { margin-top: 34px; text-align: center; }
.more-link a {
    display: inline-block;
    font-weight: 600; letter-spacing: 1px;
}
.more-link a:hover { letter-spacing: 3px; transition: letter-spacing 0.25s ease; }

.empty-state {
    text-align: center;
    padding: 88px 24px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}
.empty-state p { font-size: 20px; font-weight: 600; color: var(--ink); }
.empty-state small { color: var(--text-2); display: block; margin-top: 10px; }

/* 分页 */
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 48px; }
.page-btn {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 22px;
    color: var(--ink); font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.page-btn:hover { border-color: var(--accent); background: rgba(47, 107, 255, 0.05); }
.page-info { color: var(--text-2); font-size: 14px; }

/* ---------------- 文章详情 ---------------- */
.article { padding-bottom: 20px; }
.article-title { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.45; color: var(--ink); font-weight: 700; margin-bottom: 18px; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 8px 26px;
    color: var(--text-2); font-size: 13.8px;
    padding-bottom: 24px; border-bottom: 1px solid var(--line);
}
.article-summary {
    margin: 28px 0;
    background: var(--bg);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    color: var(--text-2);
    font-size: 15px;
}

.article-content { font-size: 16.5px; color: var(--text); }
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3 { margin: 30px 0 14px; color: var(--ink); }
.article-content img { border-radius: 8px; margin: 20px auto; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 18px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--bg);
    padding: 14px 20px;
    margin: 20px 0;
    color: var(--text-2);
    border-radius: 0 8px 8px 0;
}
.article-content pre { background: var(--ink); color: #dbe6ff; padding: 18px; border-radius: 8px; overflow-x: auto; font-size: 14px; }

.article-adjacent {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-top: 44px; padding-top: 32px;
    border-top: 1px solid var(--line);
}
.adjacent-link {
    display: flex; flex-direction: column; gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.adjacent-link:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--ink); }
.adjacent-link small { color: var(--gold); font-size: 12.5px; letter-spacing: 2px; font-weight: 600; }
.adjacent-link span { font-weight: 600; font-size: 15px; line-height: 1.5; }
.adjacent-next { text-align: right; }

.back-list { margin-top: 26px; text-align: center; }
.back-list a { color: var(--text-2); font-size: 14px; }
.back-list a:hover { color: var(--accent); }

/* ---------------- 时间线（关于页） ---------------- */
.timeline { list-style: none; position: relative; max-width: 760px; }
.timeline::before {
    content: "";
    position: absolute; left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--accent), var(--gold));
    opacity: 0.35;
}
.timeline li { position: relative; padding: 0 0 38px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { display: block; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.timeline p { color: var(--text-2); font-size: 15px; max-width: 620px; }
.tl-dot {
    position: absolute; left: 0; top: 7px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--accent);
}

/* ---------------- 步骤（联系页） ---------------- */
.steps {
    list-style: none;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    counter-reset: step;
}
.steps li {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.steps li:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    color: #fff; font-weight: 700; font-size: 17px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(47, 107, 255, 0.3);
}
.steps h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 14.2px; }

/* ---------------- 通用正文（关于/联系） ---------------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 20px; color: var(--text-2); font-size: 16px; }
.prose p:first-child { font-size: 17px; color: var(--text); }

/* ---------------- CTA 横幅 ---------------- */
.cta-band {
    background:
        radial-gradient(ellipse 70% 120% at 80% 0%, rgba(47, 107, 255, 0.35), transparent 60%),
        linear-gradient(148deg, var(--ink), var(--ink-2));
    color: #fff;
    text-align: center;
    padding: 84px 24px;
}
.cta-band h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin-bottom: 34px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.72); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 72px 24px 56px;
}
.footer-logo {
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.footer-logo .brand-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.footer-brand p { font-size: 14px; line-height: 1.8; max-width: 320px; }
.footer-col h3 {
    color: #fff; font-size: 15px; font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    padding: 6px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover { color: var(--gold); transform: translateX(3px); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; }
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.42); text-align: center; }
.footer-bottom a { color: rgba(255, 255, 255, 0.42); }
.footer-bottom a:hover { color: var(--gold); }

/* ---------------- 入场动画 ---------------- */
@media (prefers-reduced-motion: no-preference) {
    .hero .container > * { animation: fadeUp 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
    .hero-eyebrow { animation-delay: 0.05s; }
    .hero-title { animation-delay: 0.15s; }
    .hero-sub { animation-delay: 0.25s; }
    .hero-actions { animation-delay: 0.35s; }
    .hero-stats { animation-delay: 0.45s; }

    .page-hero .container > * { animation: fadeUp 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
    .page-hero .hero-eyebrow { animation-delay: 0.05s; }
    .page-hero h1 { animation-delay: 0.12s; }
    .page-hero .page-hero-sub, .page-hero .breadcrumb { animation-delay: 0.22s; }

    .section .card-grid > *, .section .stack-grid > *, .section .steps > * {
        animation: fadeUp 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    }
    .section .card-grid > *:nth-child(2), .section .stack-grid > *:nth-child(2), .section .steps > *:nth-child(2) { animation-delay: 0.08s; }
    .section .card-grid > *:nth-child(3), .section .stack-grid > *:nth-child(3), .section .steps > *:nth-child(3) { animation-delay: 0.16s; }
    .section .card-grid > *:nth-child(4), .section .stack-grid > *:nth-child(4), .section .steps > *:nth-child(4) { animation-delay: 0.24s; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .card-grid-3 { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: repeat(2, 1fr); }
    .plugin-grid { grid-template-columns: repeat(4, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .split-visual { order: -1; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }

    .site-nav {
        position: absolute;
        top: 68px; left: 0; right: 0;
        background: var(--ink);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .site-nav > a::after { display: none; }
    .nav-cta { border: none; padding: 13px 0 !important; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 72px 0 64px; }
    .page-hero { padding: 60px 0 52px; }
    .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
    .stack-grid, .steps { grid-template-columns: 1fr; }
    .plugin-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; padding-top: 56px; }
    .news-item { flex-direction: column; gap: 10px; padding: 24px 4px; }
    .article-adjacent { grid-template-columns: 1fr; }
    .adjacent-next { text-align: left; }
    .pagination { flex-wrap: wrap; gap: 12px; }
    .hero-actions .btn { flex: 1; }
}

/* ============================================================
   v2 追加：导航下拉 / 产品矩阵 / 行业方案 / 演示中心
   （仅追加，不修改上方既有规则；行尾与原文件保持一致）
   ============================================================ */

/* ---------------- 导航下拉（桌面端 CSS hover） ---------------- */
.site-nav .nav-item { position: relative; }
.site-nav .nav-item > a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    position: relative;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.site-nav .nav-item > a::after {
    content: ""; position: absolute; left: 0; bottom: -4px;
    width: 0; height: 2px; background: var(--gold);
    transition: width 0.25s ease;
}
.site-nav .nav-item > a:hover { color: #fff; }
.site-nav .nav-item > a:hover::after,
.site-nav .nav-item > a.active::after { width: 100%; }
.site-nav .nav-item > a.active { color: #fff; }

.nav-caret {
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease;
}
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 120;
}
.nav-dropdown::before {
    content: "";
    position: absolute; top: -5px; left: 50%;
    width: 10px; height: 10px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: translateX(-50%) rotate(45deg);
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14.2px;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--accent); }
.nav-dropdown a.nav-dropdown-head { border-bottom: 1px dashed var(--line); border-radius: 8px 8px 0 0; margin-bottom: 6px; }
.nav-dropdown a strong { display: block; color: var(--ink); font-size: 14.5px; }
.nav-dropdown a span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }

/* ---------------- 卡片入口链接 ---------------- */
.feature-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-weight: 600;
    font-size: 14.5px;
}
.feature-card .card-link::after {
    content: "→";
    transition: transform 0.2s ease;
}
.feature-card:hover .card-link::after { transform: translateX(4px); }

/* ---------------- 产品对比表 ---------------- */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.compare-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 14.5px;
}
.compare-table th, .compare-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.compare-table thead th {
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th { color: var(--ink); font-weight: 600; white-space: nowrap; }
.compare-table td { color: var(--text-2); }

/* ---------------- 双列清单（场景/痛点） ---------------- */
.check-list-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 48px;
    max-width: 980px;
}

/* ---------------- CTA 双按钮 ---------------- */
.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------------- 演示中心 ---------------- */
.demo-split {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
}
.demo-eyebrow {
    color: var(--accent-deep);
    border-color: rgba(47, 107, 255, 0.35);
}
.demo-info h2 { font-size: clamp(24px, 3.2vw, 32px); color: var(--ink); margin-bottom: 14px; }
.demo-desc { color: var(--text-2); margin-bottom: 24px; }
.demo-note { margin-top: 16px; font-size: 13px; color: var(--text-2); }
.demo-visual-frame {
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}
.demo-frame {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

/* ---------------- 追加段响应式 ---------------- */
@media (max-width: 960px) {
    .site-nav .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
    .site-nav .nav-item > a {
        padding: 13px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .site-nav .nav-item > a::after { display: none; }
    .nav-caret { display: none; }
    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 10px;
    }
    .nav-dropdown::before { display: none; }
    .nav-dropdown a {
        color: rgba(255, 255, 255, 0.62);
        padding: 9px 0 9px 14px;
    }
    .nav-dropdown a:hover { background: transparent; color: var(--gold); }
    .nav-dropdown a strong, .nav-dropdown a span { color: inherit; font-size: inherit; }
    .nav-dropdown a.nav-dropdown-head { border-bottom: none; margin-bottom: 0; }
    .check-list-wide { grid-template-columns: 1fr; }
    .demo-split { grid-template-columns: 1fr; gap: 36px; }
    .demo-split .demo-visual { order: -1; }
    .demo-frame { height: 420px; }
}

@media (max-width: 640px) {
    .demo-frame { height: 380px; }
    .cta-actions .btn { flex: 1; }
}

/* ============================================================
   官网门户二期 · 应用市场（模块一）
   ============================================================ */
.market-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.market-cats { display: flex; flex-wrap: wrap; gap: 8px; }

.market-cats a {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    background: var(--paper);
    transition: all 0.2s ease;
}

.market-cats a:hover { border-color: var(--accent); color: var(--accent); }

.market-cats a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.market-search { display: flex; gap: 10px; }

.market-search input[type="search"] {
    width: 240px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
}

.market-search input[type="search"]:focus { border-color: var(--accent); }

.market-count { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }

.market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.market-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(47, 107, 255, 0.35);
}

.market-card-link { display: block; color: inherit; padding: 20px 20px 12px; }
.market-card-link:hover { color: inherit; }

.market-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.market-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.market-icon-ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 60%, #1d3f75 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--font-num);
}

.market-cat-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(47, 107, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(47, 107, 255, 0.18);
}

.market-card-title {
    font-size: 17px;
    color: var(--ink);
    margin-bottom: 6px;
    line-height: 1.4;
}

.market-card-summary {
    font-size: 13.5px;
    color: var(--text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.market-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding: 12px 20px 16px;
    border-top: 1px dashed var(--line);
}

.market-price { font-family: var(--font-num); font-size: 17px; font-weight: 600; color: var(--ink); }

.market-price-ask { color: var(--gold); font-size: 15px; }

.market-price-lg { font-size: 26px; }

.market-card .card-link { font-size: 14px; }

/* ---- 详情页 ---- */
.crumb { font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--accent); }

.market-detail {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.market-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
}

.market-detail-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    font-size: 30px;
    flex-shrink: 0;
}

.market-detail-meta { flex: 1; min-width: 220px; }
.market-detail-meta h1 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.market-detail-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.market-code-badge {
    font-size: 12px;
    color: var(--text-2);
    background: var(--bg);
    padding: 2px 10px;
    border-radius: 999px;
}

.market-detail-buy { text-align: right; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

.market-detail-body { padding: 26px 0 6px; }
.market-detail-body h2 { font-size: 19px; color: var(--ink); margin: 18px 0 12px; }
.market-detail-body h2:first-child { margin-top: 0; }
.market-detail-text { color: var(--text); white-space: pre-wrap; word-break: break-word; }

.market-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.market-shots img { border-radius: 8px; border: 1px solid var(--line); }

.market-detail-cta {
    margin-top: 26px;
    padding: 22px 26px;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.market-detail-cta p { color: var(--text-2); }

.market-related { margin-top: 44px; }
.market-related h2 { font-size: 20px; color: var(--ink); margin-bottom: 18px; }
.market-grid-related { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.market-grid-related .market-card-summary { min-height: 0; }

@media (max-width: 900px) {
    .market-grid { grid-template-columns: repeat(2, 1fr); }
    .market-grid-related { grid-template-columns: repeat(2, 1fr); }
    .market-search input[type="search"] { width: 100%; }
}

@media (max-width: 640px) {
    .market-grid { grid-template-columns: 1fr; }
    .market-grid-related { grid-template-columns: 1fr; }
    .market-detail { padding: 22px; }
    .market-detail-buy { align-items: flex-start; text-align: left; }
}

/* ============================================================
   官网门户二期 · 用户中心（模块二）
   ============================================================ */
.auth-wrap { background: var(--bg); min-height: 60vh; padding: 56px 0; }

.auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 44px;
    max-width: 480px;
    margin: 0 auto;
}

.auth-card h1 { font-size: 24px; color: var(--ink); margin-bottom: 8px; }

.auth-msg {
    background: #fdf1f2;
    border: 1px solid #f3c9cd;
    color: #b4232f;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    margin: 14px 0 4px;
}

.auth-msg-ok { background: #effaf2; border-color: #bfe6cc; color: #1d7a41; }

.auth-sub { font-size: 17px; color: var(--ink); margin: 30px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }

.auth-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }

.auth-label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }

.auth-label input {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-label input:focus { border-color: var(--accent); }

.auth-captcha-row { position: relative; }

.auth-captcha-row input { padding-right: 136px; }

.auth-captcha-img {
    position: absolute;
    right: 1px;
    top: 27px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
}

.btn-block { width: 100%; justify-content: center; }

.auth-switch { margin-top: 18px; font-size: 14px; color: var(--text-2); text-align: center; }

.user-meta { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }

/* ---- 导航登录态 ---- */
.nav-user-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 8px;
    vertical-align: middle;
}

.nav-dropdown-right { right: 0; left: auto; }

.nav-logout-form { margin: 0; }

.nav-logout-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #c9455c;
    font-size: 14px;
    font-family: var(--font);
    cursor: pointer;
}

.nav-logout-btn:hover { background: rgba(201, 69, 92, 0.08); }

.nav-cta-register { border: 1px solid rgba(255, 255, 255, 0.35); }

@media (max-width: 900px) {
    .nav-user-dot { display: none; }
}

/* ============================================================
   官网门户二期 · 社区（模块三）
   ============================================================ */
.community-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.community-boards { display: flex; gap: 8px; flex-wrap: wrap; }
.community-boards a {
    padding: 6px 18px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--text-2);
    font-size: 14px; transition: all 0.2s;
}
.community-boards a:hover { border-color: #2563eb; color: #2563eb; }
.community-boards a.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.community-count { color: var(--text-3); font-size: 14px; }

.community-form {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 22px; margin-bottom: 30px;
    display: flex; flex-direction: column; gap: 14px;
}
.community-form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.community-form-label {
    display: flex; flex-direction: column; gap: 6px;
    font-size: 13px; color: var(--text-2); flex: 1; min-width: 0;
}
.community-form-title { flex: 3; }
.community-form input,
.community-form select,
.community-form textarea {
    border: 1px solid #d7dee9; border-radius: 8px;
    padding: 10px 12px; font-size: 15px; font-family: inherit; color: var(--ink);
    width: 100%; box-sizing: border-box;
}
.community-form textarea { resize: vertical; }
.community-form .btn { align-self: flex-start; }

.community-login-tip {
    background: #f0f5ff; border: 1px solid #d6e2ff; border-radius: 12px;
    padding: 26px; text-align: center; margin-bottom: 30px;
    display: flex; flex-direction: column; gap: 14px; align-items: center;
}
.community-login-tip p { color: var(--ink); font-weight: 600; }
.community-login-btns { display: flex; gap: 12px; }

.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 22px; display: flex; justify-content: space-between;
    align-items: center; gap: 16px; transition: all 0.2s;
}
.post-item:hover { border-color: #2563eb; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08); }
.post-item-main h2 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.post-item-main h2 a { color: var(--ink); }
.post-item-main h2 a:hover { color: #2563eb; }
.post-item-meta {
    display: flex; gap: 12px; align-items: center;
    color: var(--text-3); font-size: 13px; flex-wrap: wrap;
}
.post-board-badge {
    background: #eef4ff; color: #2563eb; border-radius: 999px;
    padding: 2px 12px; font-size: 12px;
}
.post-item-stats {
    display: flex; gap: 18px; color: var(--text-3);
    font-size: 13px; white-space: nowrap;
}

.post-detail {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 26px; margin-bottom: 30px;
}
.post-detail-title { font-size: 24px; color: var(--ink); margin-bottom: 10px; line-height: 1.4; }
.post-detail-content {
    margin-top: 18px; color: var(--text-1); line-height: 1.85;
    white-space: pre-wrap; word-break: break-word;
}

.replies-title { font-size: 17px; color: var(--ink); margin: 26px 0 14px; }
.replies-empty { color: var(--text-3); padding: 16px 0; }
.reply-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.reply-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 20px;
}
.reply-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.reply-author { font-weight: 600; color: var(--ink); font-size: 14px; }
.reply-head time { color: var(--text-3); font-size: 12px; }
.reply-content {
    color: var(--text-1); line-height: 1.75;
    white-space: pre-wrap; word-break: break-word;
}
.reply-children {
    margin-top: 14px; display: flex; flex-direction: column; gap: 10px;
    border-left: 2px solid #eef2f8; padding-left: 16px;
}
.reply-item-sub { background: #f8fafc; }
.reply-form { display: flex; gap: 8px; margin-top: 14px; }
.reply-form input {
    flex: 1; border: 1px solid #d7dee9; border-radius: 8px;
    padding: 8px 12px; font-size: 14px; font-family: inherit; min-width: 0;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* 浅色底通用描边按钮（社区登录引导等） */
.btn-outline { border: 1px solid #2563eb; color: #2563eb; background: transparent; }
.btn-outline:hover { background: #eff4ff; color: #1d4ed8; border-color: #1d4ed8; }

.post-back { margin-top: 22px; }
.post-back a { color: var(--text-2); font-size: 14px; }
.post-back a:hover { color: #2563eb; }

@media (max-width: 768px) {
    .post-item { flex-direction: column; align-items: flex-start; }
    .community-form-row { flex-direction: column; }
}

/* ============================================================
   官网门户二期 · 文档中心（模块四）
   ============================================================ */
.docs-layout {
    display: grid; grid-template-columns: 240px 1fr;
    gap: 28px; align-items: start;
}
.docs-sidebar {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 22px;
    position: sticky; top: 88px;
}
.docs-side-title {
    font-size: 14px; color: var(--text-3);
    letter-spacing: 0.08em; margin-bottom: 12px;
}
.docs-cats { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.docs-cats a {
    padding: 9px 14px; border-radius: 8px;
    color: var(--text-2); font-size: 14.5px; transition: all 0.2s;
}
.docs-cats a:hover { background: #f2f6fd; color: #2563eb; }
.docs-cats a.active { background: #eef4ff; color: #2563eb; font-weight: 600; }
.docs-search { display: flex; gap: 8px; }
.docs-search input {
    flex: 1; min-width: 0; border: 1px solid #d7dee9;
    border-radius: 8px; padding: 8px 12px; font-size: 13.5px;
}
.docs-main { min-width: 0; }
.docs-count { color: var(--text-3); font-size: 14px; margin-bottom: 14px; }
.docs-list { display: flex; flex-direction: column; gap: 12px; }
.docs-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 18px 22px; display: flex; justify-content: space-between;
    align-items: center; gap: 16px; transition: all 0.2s;
}
.docs-item:hover { border-color: #2563eb; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08); }
.docs-item-main h2 { font-size: 16.5px; margin-bottom: 8px; line-height: 1.5; }
.docs-item-main h2 a { color: var(--ink); }
.docs-item-main h2 a:hover { color: #2563eb; }
.docs-related time { color: var(--text-3); font-size: 13px; white-space: nowrap; }

@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: static; }
}

/* ============ [portal 二期·模块六] 首页：应用市场精选 + 社区动态 ============ */
.market-pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.market-pick-card {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 20px; display: flex; flex-direction: column; gap: 10px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.market-pick-card:hover {
    transform: translateY(-3px); border-color: var(--accent);
    box-shadow: 0 10px 24px rgba(47, 107, 255, 0.10);
}
.mp-ico {
    width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none;
    background: linear-gradient(135deg, #eef4ff, #e0ecff);
    display: flex; align-items: center; justify-content: center;
}
.mp-ico img { width: 100%; height: 100%; object-fit: cover; }
.mp-ico-fallback { font-size: 20px; font-weight: 700; color: var(--accent); }
.mp-title { font-size: 16px; color: var(--ink); line-height: 1.4; }
.mp-summary {
    color: var(--text-3); font-size: 13.5px; line-height: 1.65; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mp-cat {
    align-self: flex-start; font-size: 12px; color: var(--accent);
    background: #eef4ff; border-radius: 999px; padding: 3px 10px;
}
.community-pick-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.community-pick-item {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 20px; display: flex; align-items: center; gap: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.community-pick-item:hover {
    border-color: var(--accent); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.08);
}
.cp-board {
    flex: none; font-size: 12.5px; color: var(--accent);
    background: #eef4ff; border-radius: 999px; padding: 3px 10px;
}
.cp-title {
    flex: 1; font-size: 15px; color: var(--ink); line-height: 1.5;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-date { flex: none; color: var(--text-3); font-size: 13px; }

@media (max-width: 1000px) { .market-pick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .market-pick-grid { grid-template-columns: 1fr; }
    .cp-title { white-space: normal; }
}

/* ============================================================
   官网门户三期 · header 重构（完全参考 crmeb 规格）
   append-only：上方既有规则一律未动；本段行尾 LF
   竖排根治 = flex-shrink:0 + white-space:nowrap；
   椭圆根治 = .nav-cta 定形 99×32 / border-radius:16px
   布局 = logo 左 / 导航正中（绝对居中） / 动作区右
   ============================================================ */

/* 头部容器定宽 1200px（仅作用 header 区域，不动全局 .container）与 66px 通栏高度 */
.site-header .container { max-width: 1200px; }
.site-header .header-inner { height: 66px; }

/* ---------------- 桌面端（≥961px） ---------------- */
@media (min-width: 961px) {
    .site-header .header-inner { position: relative; }
    .site-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        gap: 38px;
        white-space: nowrap;
    }
    .site-nav > a,
    .site-nav .nav-item,
    .site-nav .nav-item > a,
    .nav-actions,
    .nav-actions .nav-item,
    .nav-actions .nav-item > a { flex-shrink: 0; }
    .site-nav > a,
    .site-nav .nav-item > a { font-size: 16px; }
    /* 桌面隐藏导航内移动副本 */
    .site-nav > .nav-m-only { display: none; }
    /* 右侧动作区：登录纯文字 + 注册 pill */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 18px;
        white-space: nowrap;
    }
    .nav-actions .nav-item { position: relative; }
    .nav-actions .nav-item > a {
        color: rgba(255, 255, 255, 0.78);
        font-size: 16px;
        position: relative;
        padding: 4px 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }
    .nav-actions .nav-item > a::after {
        content: ""; position: absolute; left: 0; bottom: -4px;
        width: 0; height: 2px; background: var(--gold);
        transition: width 0.25s ease;
    }
    .nav-actions .nav-item > a:hover { color: #fff; }
    .nav-actions .nav-item > a:hover::after,
    .nav-actions .nav-item > a.active::after { width: 100%; }
    .nav-actions .nav-item > a.active { color: #fff; }
    /* 登录：纯文字链接（仿 crmeb 无描边），下划线动效与导航项一致 */
    .nav-login {
        position: relative;
        padding: 4px 0;
        color: rgba(255, 255, 255, 0.78);
        font-size: 16px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .nav-login::after {
        content: ""; position: absolute; left: 0; bottom: -4px;
        width: 0; height: 2px; background: var(--gold);
        transition: width 0.25s ease;
    }
    .nav-login:hover { color: #fff; }
    .nav-login:hover::after,
    .nav-login.active::after { width: 100%; }
    .nav-login.active { color: #fff; }
    /* 注册 pill 定形（crmeb：99×32 / 16px 圆角） */
    .nav-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 99px;
        height: 32px;
        padding: 0 !important;
        border-radius: 16px;
        font-size: 15px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    /* 右挂下拉归位：left:auto+right:0 时不再平移 -50% */
    .nav-dropdown.nav-dropdown-right { transform: translateX(0) translateY(8px); }
    .nav-item:hover .nav-dropdown.nav-dropdown-right,
    .nav-item:focus-within .nav-dropdown.nav-dropdown-right {
        transform: translateX(0) translateY(0);
    }
}

/* ---------------- 窄桌面 961-1240px：降 gap/字号保容量 ---------------- */
@media (min-width: 961px) and (max-width: 1240px) {
    .site-nav { gap: 24px; }
    .site-nav > a,
    .site-nav .nav-item > a { font-size: 15px; }
    .nav-actions { gap: 14px; }
}

/* ---------------- ≤960px：动作区隐藏，登录/注册/用户菜单走导航内 nav-m-only 副本进手风琴；
   面板锚点 68→66px 对齐新头部高度 ---------------- */
@media (max-width: 960px) {
    .nav-actions { display: none; }
    .site-nav { top: 66px; }
}

/* ==================== [style-phase2 2026-09-23] 正文 crmeb 大气化（append-only LF 段） ==================== */

/* 三档变量：补齐 10 处未定义 var(--text-3) 引用 + crmeb 软阴影体系 */
:root { --text-3: #8a97ab; --card-shadow: 0 5px 20px rgba(18, 41, 74, 0.07); --card-shadow-hover: 0 14px 30px rgba(18, 41, 74, 0.14); }

/* 双蓝归一：社区/文档 #2563eb → var(--accent)；板块徽章实心化（补 #fff 保可读） */
.community-boards a.active, .post-board-badge { background: var(--accent); border-color: var(--accent); color: #fff; }
.community-boards a:hover, .post-item-main h2 a:hover, .docs-item-main h2 a:hover { color: var(--accent); }
.docs-cats a:hover, .docs-cats a.active { color: var(--accent); background: #eef4ff; }
.post-item:hover, .docs-item:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(47, 107, 255, 0.10); }

/* 卡片语言统一：crmeb 软阴影 + hover 上浮 */
.feature-card, .market-card, .market-pick-card, .post-item, .docs-item, .community-pick-item, .adjacent-link {
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}
.feature-card:hover, .market-card:hover, .market-pick-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

/* 容器对齐 header 的 1200px */
.container { max-width: 1200px; }

/* hero 大气化 */
.hero { padding: 128px 0 118px; }
.hero::after {
    content: ""; position: absolute; right: -180px; top: -160px;
    width: 560px; height: 560px; border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.38), transparent 65%);
}
.hero-title { font-size: clamp(38px, 6.4vw, 62px); }
.hero-actions { margin-bottom: 72px; }
.hero-actions .btn { min-width: 148px; height: 48px; padding: 0 38px; font-size: 16px; border-radius: 6px; }

/* hero 压屏浮卡（crmeb ad_box 手法；.hero 为 overflow:hidden 会裁切 absolute 负 bottom，
   故以浮卡作 hero 后续兄弟元素用负 margin 压屏，视觉等效） */
.hero-float {
    position: relative; z-index: 5;
    margin: -52px auto 0;
    width: min(1200px, calc(100% - 48px));
    background: #fff; border-radius: 6px;
    box-shadow: 0 5px 20px rgba(121, 148, 193, 0.15);
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-float > div { padding: 26px 32px; border-right: 1px solid var(--line); transition: transform 0.35s; }
.hero-float > div:last-child { border-right: 0; }
.hero-float > div:hover { transform: translateY(-5px); }
.hero-float strong {
    display: block; font-family: var(--font-num); font-style: italic; font-weight: 700;
    font-size: 26px; color: var(--ink); letter-spacing: 0.5px;
}
.hero-float span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-2); letter-spacing: 0.5px; }

/* 浮卡让位：首页第一段加大顶部间距 */
.home-first { padding-top: 128px; }

/* 背景交替恢复：tinted 用 crmeb 浅灰渐变（首页 03 新闻加灰、05 社区改白，模板侧调类） */
.section-tinted { background: linear-gradient(180deg, #eff1f9 0%, #f9f9fc 100%); }

/* 标题居中变体（.section-no::after 为 inline-block，随 text-align 自动居中） */
.section-head-center { max-width: none; text-align: center; margin-bottom: 56px; }
.section-head-center h2 { font-size: clamp(28px, 3.8vw, 40px); }
.section-head-center p { max-width: 720px; margin: 12px auto 0; }

/* 首页新闻 3 卡化 */
.news-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 24px; box-shadow: var(--card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.news-card time {
    display: inline-block; font-family: var(--font-num); font-style: italic;
    font-size: 13.5px; color: var(--text-2); letter-spacing: 1px;
}
.news-card h3 { font-size: 18px; line-height: 1.55; margin: 10px 0 8px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--accent); }
.news-card p {
    color: var(--text-2); font-size: 14.5px; line-height: 1.7;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 详情页排版微调 */
.article-content { font-size: 16.5px; line-height: 1.9; }
.article-content img { box-shadow: 0 5px 20px rgba(18, 41, 74, 0.10); }
.market-detail-text { line-height: 1.9; }

/* 移动端降级：hero 相关覆回移动断点原值（append 段同特异性后置会覆盖），浮卡转两列静态 */
@media (max-width: 960px) {
    .hero { padding: 72px 0 64px; }
    .hero-title { font-size: clamp(34px, 6vw, 58px); }
    .hero-actions { margin-bottom: 64px; }
    .hero-float { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
    .hero-float > div { padding: 22px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
    .hero-float strong { font-size: 22px; }
    .hero-float > div:nth-child(n+3) { border-bottom: 0; }
    .news-card-grid { grid-template-columns: 1fr; }
    .home-first { padding-top: 72px; }
}

/* ==================== [portal-phase3 2026-09-23] 技术生态 marquee + SKU 购买 + 产品板块（append-only LF 段） ==================== */

/* 锚点跳转让位固定 header（p-nav sticky 与 scrollspy 共用） */
html { scroll-padding-top: 84px; }

/* ---------- Phase A：技术生态双排 marquee（translateX(-50%) 无缝，两排反向） ---------- */
.marquee { overflow: hidden; }
.marquee-row { position: relative; }
.marquee-row + .marquee-row { margin-top: 16px; }
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 38s linear infinite;
}
.marquee-row-reverse .marquee-track { animation-direction: reverse; }
.marquee-row:hover .marquee-track { animation-play-state: paused; }
.marquee-seq { display: flex; gap: 16px; padding-right: 16px; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--paper); box-shadow: var(--card-shadow);
    font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: 0.4px;
    white-space: nowrap;
}
.marquee-item::before {
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
}
/* 两端 120px 渐变遮罩：色取 tinted 渐变两端（#eff1f9 → #f9f9fc） */
.marquee-row {
    -webkit-mask-image: linear-gradient(90deg, #eff1f9 0, rgba(239, 241, 249, 0) 120px, rgba(249, 249, 252, 0) calc(100% - 120px), #f9f9fc 100%);
    mask-image: linear-gradient(90deg, #eff1f9 0, rgba(239, 241, 249, 0) 120px, rgba(249, 249, 252, 0) calc(100% - 120px), #f9f9fc 100%);
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* ---------- Phase B：SKU 规格卡（对标 crmeb goods_detail） ---------- */
.sku-band { padding: 36px 0 10px; }
.sku-panel {
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: var(--card-shadow); padding: 26px 28px;
}
.market-detail-sku { margin-top: 22px; }
.sku-group { display: flex; align-items: flex-start; gap: 16px; }
.sku-group + .sku-group { margin-top: 14px; }
.sku-label { flex: none; min-width: 4em; padding: 9px 0; font-size: 14px; color: var(--text-2); }
.sku-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.sku-opt {
    cursor: pointer; font-family: inherit;
    padding: 8px 18px; border: 1px solid var(--line); border-radius: 6px;
    background: var(--paper); font-size: 14px; color: var(--text);
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, background 0.2s;
}
.sku-opt:hover { border-color: var(--accent); color: var(--accent); }
.sku-opt.active {
    border-color: var(--accent); color: var(--accent); background: #eef4ff;
    box-shadow: inset 0 0 0 1px var(--accent); font-weight: 600;
}
.sku-opt.sku-ghost { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.sku-price-row {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    margin: 18px 0 20px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.sku-price {
    font-family: var(--font-num); font-style: italic; font-weight: 700;
    font-size: 28px; color: var(--accent); letter-spacing: 0.5px;
}
.sku-price-orig { font-size: 15px; color: var(--text-3); }
.sku-stock { margin-left: auto; font-size: 13.5px; color: var(--text-2); }
.sku-buy-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sku-qty {
    width: 92px; height: 44px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 6px;
    font-size: 15px; font-family: inherit; color: var(--text);
}
.sku-buy-form .btn { height: 44px; min-width: 148px; }
.sku-hint { font-size: 13px; color: var(--text-3); }

/* 购买成功页（复用 auth-card 版式） */
.buy-recap {
    margin: 18px 0 22px; padding: 16px 20px; text-align: left;
    border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
    font-size: 15px;
}
.buy-recap p + p { margin-top: 6px; }
.buy-recap strong { color: var(--ink); }
.buy-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Phase C：产品页 pill 锚点导航（sticky + scrollspy 高亮） ---------- */
.p-nav-wrap {
    position: sticky; top: 66px; z-index: 40;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(18, 41, 74, 0.05);
}
.p-nav {
    display: flex; gap: 4px; max-width: 1200px; margin: 0 auto; padding: 0 24px;
    overflow-x: auto; scrollbar-width: none;
}
.p-nav::-webkit-scrollbar { display: none; }
.p-nav-item {
    flex: none; display: inline-flex; align-items: center; height: 54px; padding: 0 18px;
    font-size: 15px; color: var(--text-2);
    border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.p-nav-item:hover { color: var(--accent); }
.p-nav-item.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.p-nav-ext::after {
    content: "↗"; margin-left: 5px; font-size: 12px; color: var(--text-3);
}

/* ---------- Phase C：系统演示卡片 + 演示弹层 dialog ---------- */
.demo-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.demo-card {
    display: grid; gap: 14px; justify-items: start;
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    padding: 26px; box-shadow: var(--card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
}
.demo-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.demo-card strong { font-size: 17px; color: var(--ink); }
.demo-dlg {
    border: 0; border-radius: 10px; padding: 0;
    width: min(460px, calc(100vw - 40px));
    box-shadow: 0 24px 60px rgba(10, 27, 51, 0.28);
}
.demo-dlg::backdrop { background: rgba(10, 27, 51, 0.45); }
.demo-dlg-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.demo-dlg-head strong { font-size: 16px; color: var(--ink); }
.demo-dlg-close {
    border: 0; background: none; cursor: pointer; font-family: inherit;
    font-size: 22px; line-height: 1; color: var(--text-2); padding: 2px 6px;
}
.demo-dlg-close:hover { color: var(--accent); }
.demo-dlg-body { padding: 22px; display: grid; gap: 14px; }
.demo-dlg-body .btn { justify-self: start; }
.demo-cred { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.demo-cred > span { flex: none; color: var(--text-2); }
.demo-cred code {
    background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
    padding: 4px 10px; font-family: var(--font-num); font-size: 14px; color: var(--ink);
}
.demo-copy {
    margin-left: auto; cursor: pointer; font-family: inherit;
    border: 1px solid var(--line); background: var(--paper); border-radius: 4px;
    padding: 4px 10px; font-size: 12.5px; color: var(--text-2);
}
.demo-copy:hover { border-color: var(--accent); color: var(--accent); }
.demo-note { font-size: 13.5px; color: var(--text-3); }

/* ---------- Phase C：更新日志时间线 ---------- */
.changelog-list { position: relative; max-width: 860px; padding-left: 28px; display: grid; gap: 24px; }
.changelog-list::before {
    content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(47, 107, 255, 0.12));
}
.changelog-item {
    position: relative;
    background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
    padding: 20px 24px; box-shadow: var(--card-shadow);
}
.changelog-item::before {
    content: ""; position: absolute; left: -28px; top: 26px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--paper); border: 3px solid var(--accent);
}
.changelog-meta { display: flex; align-items: baseline; gap: 12px; }
.changelog-ver {
    font-family: var(--font-num); font-style: italic; font-weight: 700;
    font-size: 17px; color: var(--accent); letter-spacing: 0.5px;
}
.changelog-time { font-size: 13px; color: var(--text-3); }
.changelog-item h3 { margin: 6px 0 4px; font-size: 16.5px; color: var(--ink); }
.changelog-item p { font-size: 14.5px; color: var(--text-2); line-height: 1.8; }

/* ---------- Phase C：产品图库 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img {
    display: block; width: 100%; height: auto;
    border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-grid img:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }

/* ---------- 移动端降级（≤960：marquee gap 缩小，其余同特异性后置覆写） ---------- */
@media (max-width: 960px) {
    .marquee-seq { gap: 10px; padding-right: 10px; }
    .marquee-item { padding: 10px 16px; font-size: 13.5px; }
    .marquee-row {
        -webkit-mask-image: linear-gradient(90deg, #eff1f9 0, rgba(239, 241, 249, 0) 60px, rgba(249, 249, 252, 0) calc(100% - 60px), #f9f9fc 100%);
        mask-image: linear-gradient(90deg, #eff1f9 0, rgba(239, 241, 249, 0) 60px, rgba(249, 249, 252, 0) calc(100% - 60px), #f9f9fc 100%);
    }
    .sku-band { padding: 26px 0 6px; }
    .sku-panel { padding: 20px 18px; }
    .sku-group { flex-direction: column; gap: 8px; }
    .sku-label { padding: 0; }
    .sku-stock { margin-left: 0; }
    .sku-buy-form .btn { flex: 1; min-width: 0; }
    .p-nav { padding: 0 16px; }
    .demo-card-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}


/* [三期·Phase C] 演示卡片动作区（模板用 .demo-actions 包按钮） */
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* [视觉修复] demo 弹层居中：portal.css:26 的 * { margin: 0; } 覆盖了
   <dialog> showModal 的 UA margin:auto，导致弹层贴视口左上角；
   此处恢复居中（append-only 段）。 */
.demo-dlg { margin: auto; }

/* ==================== [四期·Phase 3 2026-09-23] 工单用户中心（append-only LF 段） ==================== */

/* 状态筛选 pill 行 */
.ticket-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.ticket-filter a {
    padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-size: 13px; color: var(--text-2); background: var(--paper);
}
.ticket-filter a:hover { color: var(--accent); border-color: var(--accent); }
.ticket-filter a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 工单状态徽章 */
.ticket-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.ticket-badge-open    { background: #fff4e5; color: #b45309; }
.ticket-badge-replied { background: #eefaf2; color: #1a7f37; }
.ticket-badge-closed  { background: #f1f3f7; color: #8a94a6; }

/* 会话时间线：我方左对齐灰底，运营方右对齐蓝底 */
.ticket-thread { display: grid; gap: 14px; margin: 18px 0 6px; }
.ticket-msg {
    max-width: 82%; padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: var(--bg);
    font-size: 14.5px; line-height: 1.8; word-break: break-word;
}
.ticket-msg .ticket-role { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.ticket-msg time { display: block; font-size: 12px; color: var(--text-3); margin-top: 6px; }
.ticket-msg-user { justify-self: start; }
.ticket-msg-staff { justify-self: end; background: #eef4ff; border-color: #c9daff; }

/* 关闭工单只读提示 */
.ticket-readonly {
    margin: 16px 0 4px; padding: 10px 14px; border-radius: 8px;
    background: #f1f3f7; color: #8a94a6; font-size: 13.5px;
}

/* 移动端：气泡放宽至整行 */
@media (max-width: 960px) {
    .ticket-msg { max-width: 100%; }
}
