/*!
 * 番茄同城 PC 综合门户 - 新版样式
 * 纯原生 CSS 实现，无任何第三方框架依赖
 * 设计语言：深色科技感首屏 + 明亮内容区 + 番茄红强调色
 */

/* ===================== 变量 ===================== */
:root {
    --navy: #070d1b;
    --navy-2: #0d1730;
    --ink: #0f1b2d;
    --text: #1d2939;
    --muted: #64748b;
    --line: #e6eaf2;
    --line-soft: #f1f4f9;
    --bg: #f5f7fb;
    --card: #fff;
    --brand: #ff4d3d;
    --brand-2: #ff8a00;
    --gold: #ffc24b;
    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 10px;
    --shadow: 0 18px 40px -26px rgba(13, 23, 48, .3);
    --shadow-lg: 0 34px 70px -34px rgba(13, 23, 48, .42);
    --max: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.78;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand); }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 .9em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.38; letter-spacing: -.01em; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
hr { border: 0; border-top: 1px solid var(--line); }
button, input { font: inherit; }
::selection { background: rgba(255, 77, 61, .18); }

.wrap { width: min(100% - 44px, var(--max)); margin-inline: auto; }

.skip-link {
    position: absolute; top: -60px; left: 14px; z-index: 999;
    padding: 10px 18px; border-radius: 0 0 10px 10px;
    background: var(--navy); color: #fff; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===================== 按钮 ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
    background: none; cursor: pointer; font-size: 14.5px; font-weight: 600;
    white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
    box-shadow: 0 14px 28px -14px rgba(255, 77, 61, .75);
    /* 投影也跟随主色，否则换主题后会出现「绿按钮配红投影」 */
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--brand) 75%, transparent);
}
.btn-primary:hover {
    color: #fff;
    box-shadow: 0 20px 36px -16px rgba(255, 77, 61, .9);
    box-shadow: 0 20px 36px -16px color-mix(in srgb, var(--brand) 90%, transparent);
}
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .26); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .16); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.btn-outline:hover {
    color: var(--brand);
    border-color: rgba(255, 77, 61, .42);
    border-color: color-mix(in srgb, var(--brand) 42%, transparent);
}
.btn-sm { height: 36px; padding: 0 18px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ===================== 头部 =====================
   头部（--navy-2 → --navy 的纵向微渐变）与首屏（从 --navy 起笔）首尾同色，
   所以不需要任何分割线，也不会出现生硬的截断。
   注意：头部刻意不使用 backdrop-filter —— 粘性元素 + 实时毛玻璃会让浏览器
   每一帧重新采样整条头部背后的画面，实测会把滚动卡顿帧从 1% 拉到 13%。 */
.site-header {
    position: sticky; top: 0; z-index: 90;
    /* 上端接住提示条的颜色，下端落到 --navy，正好与首屏第一层颜色对齐 */
    background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
    transition: box-shadow .25s;
}
.site-header.is-stuck { box-shadow: 0 16px 36px -22px rgba(0, 0, 0, .9); }
.header-inner {
    display: flex; align-items: center; gap: 26px;
    height: 70px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
/* 有 logo 时只放图片，不再并列站点名，所以给图片留出更完整的视觉高度 */
.brand img { height: 42px; width: auto; max-width: 220px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.22; }
.brand-name { color: #fff; font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.brand-slogan { color: rgba(255, 255, 255, .48); font-size: 11px; letter-spacing: .18em; }

.main-nav { flex: 1; min-width: 0; }
/* nowrap + flex:none 保证导航文字永不换行 */
.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav li { flex: none; }
.main-nav a {
    position: relative; display: block; padding: 8px 11px; border-radius: 10px;
    color: rgba(255, 255, 255, .74); font-size: 14.5px; font-weight: 500;
    white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a.is-active {
    color: #fff;
    background: rgba(255, 77, 61, .18);
    /* 跟随主题主色，避免在非默认主题下出现一块与整体撞色的红底 */
    background: color-mix(in srgb, var(--brand) 22%, transparent);
}
.main-nav a.is-active::after {
    content: ""; position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%);
    width: 16px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }

.mini-search {
    display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 14px;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}
.mini-search__input {
    width: 148px; border: 0; background: none; color: #fff; outline: none; font-size: 13.5px;
}
.mini-search__input::placeholder { color: rgba(255, 255, 255, .45); }
.mini-search button {
    display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; transition: background .2s;
}
.mini-search button:hover { background: var(--brand); }

.nav-toggle {
    display: none; width: 40px; height: 40px; padding: 0; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; background: transparent;
}
.nav-toggle span { display: block; width: 18px; height: 1.6px; margin: 3px auto; background: #fff; border-radius: 2px; }

/* ===================== 首屏 ===================== */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 96px 0 104px;
    /* 第一层收尾色不再写死蓝色，改用主题色，否则换主题后会绿底接蓝底 */
    background:
        radial-gradient(1000px 520px at 12% -10%, rgba(255, 255, 255, .07), transparent 62%),
        radial-gradient(820px 420px at 92% 2%, rgba(255, 255, 255, .05), transparent 58%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 62%);
    /* 支持 color-mix 的浏览器：光晕跟随主题主色，不再出现与整体撞色的红光 */
    background:
        radial-gradient(1000px 520px at 12% -10%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 62%),
        radial-gradient(820px 420px at 92% 2%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 58%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 62%);
    background-color: var(--navy);
}
.hero-wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 880px; }

.eyebrow {
    display: inline-block; margin: 0 0 14px; padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
    color: rgba(255, 255, 255, .82); font-size: 12.5px; letter-spacing: .12em;
}
.section .eyebrow, .detail-head .eyebrow {
    border-color: rgba(255, 77, 61, .28); background: rgba(255, 77, 61, .07);
    color: var(--brand); font-weight: 600; letter-spacing: .08em;
}
.detail-head .eyebrow, .hero .eyebrow { border-color: rgba(255, 255, 255, .2); background: transparent; color: rgba(255, 255, 255, .82); }

.hero-title {
    margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(120deg, #fff 30%, #ffd9a8);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { max-width: 720px; color: rgba(255, 255, 255, .76); font-size: 16.5px; line-height: 1.9; }

/* 搜索框（默认即深色皮肤，用于首屏与列表页的深色头部） */
.search-box { margin-top: 30px; }
.search-box__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.search-tab {
    padding: 7px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .72);
    font-size: 13.5px; cursor: pointer; transition: all .2s;
}
.search-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.search-tab.is-active {
    color: #fff;
    background: rgba(255, 77, 61, .22);
    border-color: rgba(255, 77, 61, .5);
    background: color-mix(in srgb, var(--brand) 22%, transparent);
    border-color: color-mix(in srgb, var(--brand) 50%, transparent);
}

.search-box__field {
    display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
    /* 毛玻璃：这里的背景是首屏自身的渐变，元素和背景一起滚动、相对位置不变，
       所以不存在「滚动时逐帧重采样」的问题（实测 4 倍降速下滚动零掉帧）。 */
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 18px 40px -26px rgba(0, 0, 0, .7);
}
.search-box__field:focus-within { border-color: rgba(255, 138, 0, .6); box-shadow: 0 0 0 4px rgba(255, 138, 0, .14); }
.search-box__icon { flex: none; color: rgba(255, 255, 255, .6); }
.search-box__input {
    flex: 1; min-width: 0; height: 42px; border: 0; outline: none;
    background: none; color: #fff; font-size: 15px;
}
.search-box__input::placeholder { color: rgba(255, 255, 255, .45); }
.search-box__field .btn { flex: none; }
.search-box--hero .search-box__field { padding: 9px 9px 9px 20px; }
.search-box--hero .search-box__field .btn { height: 48px; padding: 0 32px; font-size: 15px; }

/* ===================== 区块通用 ===================== */
.section { padding: 74px 0; }
.section--soft { background: linear-gradient(180deg, #fff, #f7f9fd); }
.section-head { max-width: 780px; margin-bottom: 38px; }
.section-head--row {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    max-width: none; margin-bottom: 30px;
}
.section-title { font-size: clamp(24px, 2.6vw, 34px); }
.section-sub { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }
.link-all { flex: none; color: var(--brand); font-size: 14.5px; font-weight: 600; }
.link-all:hover { color: var(--brand-2); }

/* ===================== 平台能力 ===================== */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card {
    position: relative; overflow: hidden; display: block; padding: 30px 28px 26px;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card::before {
    content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 61, .3); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px;
    border-radius: 14px; background: linear-gradient(135deg, rgba(255, 77, 61, .12), rgba(255, 194, 75, .18));
    color: var(--brand);
}
.feature-title { font-size: 19px; }
.feature-desc { margin: 10px 0 18px; color: var(--muted); font-size: 14.5px; min-height: 52px; }
.feature-more { color: var(--brand); font-size: 14px; font-weight: 600; }
.feature-more em { font-style: normal; display: inline-block; transition: transform .25s; }
.feature-card:hover .feature-more em { transform: translateX(5px); }

/* ===================== 卡片网格 ===================== */
.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.c-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
    box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.c-card:hover { transform: translateY(-4px); border-color: rgba(255, 77, 61, .28); box-shadow: var(--shadow-lg); }
.c-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.c-card__title { font-size: 17px; line-height: 1.55; }
.c-card__title a { display: inline-block; }
.c-card__title a:hover { color: var(--brand); }
.c-card__sub { margin: 8px 0 0; color: var(--brand); font-size: 13.5px; font-weight: 600; }
.c-card__text {
    margin: 10px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.75;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.c-card__meta {
    display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: auto;
    color: #94a3b8; font-size: 12.5px;
}
.c-card__more { align-self: flex-start; margin-top: 12px; color: var(--brand); font-size: 14px; font-weight: 600; }
.c-card__more:hover { color: var(--brand-2); }
.c-card__price { margin: 10px 0; }
.c-card__price strong { color: var(--brand); font-size: 20px; font-weight: 800; }
.c-card__price del { margin-left: 8px; color: #9aa7b8; font-size: 13px; }

.c-card__media {
    display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden;
    background: linear-gradient(135deg, #eef2f8, #e2e8f2);
}
.c-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.c-card:hover .c-card__media img { transform: scale(1.05); }
.c-card__media--logo { aspect-ratio: 4 / 3; }
.c-card__media--logo img { object-fit: cover; }
.c-card__media--wide { aspect-ratio: 21 / 9; }
.c-card__ph {
    display: grid; place-items: center; width: 100%; height: 100%;
    background: linear-gradient(135deg, #ffeeea, #ffe9cc); color: var(--brand);
    font-size: 34px; font-weight: 800;
}

/* 动态卡片 */
.c-card--post { padding: 20px 22px 22px; }
.c-card__author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.c-card__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.c-card__avatar--txt {
    display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--gold));
    color: #fff; font-weight: 700;
}
.c-card__author-info { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.c-card__author-name { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-card__group { color: var(--brand); font-size: 12.5px; }
.c-card--post .c-card__media { margin: 0 0 14px; border-radius: var(--r-md); aspect-ratio: 4 / 3; }
.c-card--post .c-card__title { font-size: 15.5px; font-weight: 500; }

/* 资讯横向卡 */
.c-card--news .c-card__title { font-size: 17.5px; }
.c-card--news .c-card__text { -webkit-line-clamp: 3; }

/* 空态 */
.empty {
    padding: 70px 24px; border: 1px dashed #cfd8e6; border-radius: var(--r-lg);
    background: #fff; text-align: center;
}
.empty__title { font-size: 20px; }
.empty__text { margin: 10px auto 22px; max-width: 420px; color: var(--muted); }

/* ===================== 平台优势 ===================== */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.why-card {
    padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; box-shadow: var(--shadow);
}
.why-card h3 { font-size: 17.5px; }
.why-card h3::before {
    content: ""; display: block; width: 26px; height: 3px; margin-bottom: 14px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--gold));
}
.why-card p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq-item__q {
    padding: 18px 24px; cursor: pointer; list-style: none;
    font-size: 16px; font-weight: 600; position: relative; padding-right: 52px;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
    content: ""; position: absolute; right: 24px; top: 27px; width: 8px; height: 8px;
    border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(45deg); transition: transform .2s;
}
.faq-item[open] .faq-item__q::after { transform: rotate(225deg); top: 24px; }
.faq-item__a { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; }
.faq-item__a p { margin: 0; }

/* ===================== 列表页头部 ===================== */
.page-head {
    padding: 52px 0 40px; color: #fff;
    background:
        radial-gradient(700px 320px at 12% 0%, rgba(255, 77, 61, .28), transparent 62%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-2) 100%);
    background:
        radial-gradient(700px 320px at 12% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 62%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 70%, var(--navy-2) 100%);
    background-color: var(--navy);
}
.page-head .crumbs { color: rgba(255, 255, 255, .6); }
.page-head .crumbs a:hover { color: #fff; }
.page-title { font-size: clamp(26px, 3.4vw, 38px); color: #fff; }
.page-desc { margin: 14px 0 0; max-width: 760px; color: rgba(255, 255, 255, .72); font-size: 15.5px; }

.crumbs { margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .45; }

/* ===================== 详情页 ===================== */
.detail-head { padding: 52px 0 46px; }
.detail-head .crumbs { color: var(--muted); }
.detail-title { font-size: clamp(25px, 3.2vw, 36px); }
.detail-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
    margin-top: 18px; color: var(--muted); font-size: 13.5px;
}
.detail-subline { margin: 12px 0 0; color: #475569; font-size: 16px; font-weight: 600; }
.detail-price { margin: 14px 0 0; }
.detail-price strong { color: var(--brand); font-size: 30px; font-weight: 800; }
.detail-price del { margin-left: 10px; color: #9aa7b8; font-size: 14px; }
.detail-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.detail-author img { border-radius: 50%; object-fit: cover; }
.detail-author__txt {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; font-size: 13px;
}

.detail-head--shop {
    color: #fff;
    background:
        radial-gradient(760px 340px at 15% -10%, rgba(255, 77, 61, .3), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 72%, var(--navy-2) 100%);
    background:
        radial-gradient(760px 340px at 15% -10%, color-mix(in srgb, var(--brand) 28%, transparent), transparent 60%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 72%, var(--navy-2) 100%);
    background-color: var(--navy);
}
.detail-head--shop .crumbs { color: rgba(255, 255, 255, .6); }
.detail-head--shop .crumbs a:hover { color: #fff; }
.detail-head--shop .detail-title { color: #fff; }
.detail-head--shop .detail-meta { color: rgba(255, 255, 255, .7); }
.detail-head--shop .detail-subline { color: rgba(255, 255, 255, .82); }
.detail-head--shop .detail-price strong { color: var(--gold); }
.detail-head--shop .btn-ghost { border-color: rgba(255, 255, 255, .3); }
.detail-head__inner { display: flex; align-items: center; gap: 32px; }
.detail-hero__logo {
    flex: none; width: 148px; height: 148px; overflow: hidden; border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06);
    box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .7);
}
.detail-hero__logo img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero__info { flex: 1; min-width: 0; }
.detail-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.detail-main {
    padding: 34px 38px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; box-shadow: var(--shadow);
}
.detail-side { display: grid; gap: 18px; position: sticky; top: 88px; }
.detail-subtitle { font-size: 20px; margin-bottom: 14px; padding-left: 14px; border-left: 4px solid var(--brand); }
.detail-block + .detail-block, .detail-gallery { margin-top: 34px; }
.detail-content { font-size: 15.5px; line-height: 1.95; color: #334155; overflow-wrap: break-word; }
.detail-content img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.detail-content p:last-child { margin-bottom: 0; }
.detail-lead {
    padding: 16px 20px; margin-bottom: 24px; border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(255, 77, 61, .07), rgba(255, 194, 75, .1));
    color: #475569; font-size: 15px;
}
.detail-cover { margin: -8px 0 26px; }
.detail-cover img { width: 100%; border-radius: var(--r-md); }
.detail-gallery .gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { margin: 0; overflow: hidden; border-radius: var(--r-md); background: #f1f4f9; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.kv-list { margin: 0; }
.kv-list > div {
    display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.kv-list > div:last-child { border-bottom: 0; }
.kv-list dt { flex: none; width: 110px; color: var(--muted); }
.kv-list dd { margin: 0; font-weight: 600; }

/* 侧边卡片 */
.side-card {
    padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; box-shadow: var(--shadow);
}
.side-card__title { margin-bottom: 16px; font-size: 16.5px; }
.side-card__text { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.side-card--qr { text-align: center; background: linear-gradient(160deg, #fff, #fff8f4); }
.side-card--qr img { width: 160px; height: 160px; border-radius: var(--r-md); }
.side-nav li { border-bottom: 1px dashed var(--line); }
.side-nav li:last-child { border-bottom: 0; }
.side-nav a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 10px; border-radius: var(--r-sm); font-size: 14.5px; transition: background .2s;
}
.side-nav a:hover { background: #f8fafc; }
.side-nav li.is-active a { color: var(--brand); font-weight: 700; }
.side-nav em { font-style: normal; color: #94a3b8; font-size: 12.5px; }

/* 联系方式保护位 */
.guard {
    padding: 26px 24px; border-radius: var(--r-lg); color: #fff;
    background:
        radial-gradient(420px 220px at 20% 0%, rgba(255, 194, 75, .28), transparent 62%),
        linear-gradient(150deg, var(--navy) 0%, #14243f 100%);
    box-shadow: var(--shadow-lg);
}
.guard__badge {
    display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 194, 75, .18); color: var(--gold); font-size: 12px; font-weight: 600;
}
.guard__title { font-size: 18.5px; }
.guard__text { margin: 12px 0 14px; color: rgba(255, 255, 255, .72); font-size: 14px; }
.guard__list { margin: 0 0 20px; padding: 0; }
.guard__list li { position: relative; padding-left: 18px; margin-bottom: 6px; color: rgba(255, 255, 255, .66); font-size: 13.5px; }
.guard__list li::before {
    content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
}
.guard .btn-outline { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .24); box-shadow: none; }
.guard .btn-outline:hover { background: rgba(255, 255, 255, .18); color: #fff; }

/* ===================== 分页 ===================== */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 38px; justify-content: center; }
.pager__link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
    padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; color: var(--text); font-size: 14px; transition: all .2s;
}
.pager__link:hover { border-color: var(--brand); color: var(--brand); }
.pager__link.is-active {
    border-color: transparent; background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff; font-weight: 700;
}
.pager__info { margin-left: 6px; color: var(--muted); font-size: 13px; }

/* ===================== 提示页 ===================== */
.state-card {
    padding: 66px 30px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; box-shadow: var(--shadow); text-align: center;
}
.state-card__icon { color: var(--brand); opacity: .8; }
.state-card__title { margin: 12px 0 10px; font-size: 24px; }
.state-card__text { margin: 0 auto 26px; max-width: 460px; color: var(--muted); }
.state-card__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chip {
    padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
    background: #f8fafc; font-size: 13.5px;
}
.chip:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ===================== 页脚 ===================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .68); font-size: 14px; }
.footer-top {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px;
    padding: 56px 0 44px;
}
.footer-brand__name { margin: 16px 0 12px; color: #fff; font-size: 20px; }
.footer-brand__desc { margin: 0 0 12px; max-width: 380px; line-height: 1.85; }
.footer-col__title { margin-bottom: 16px; color: #fff; font-size: 15.5px; }
.footer-col ul { display: grid; gap: 10px; }
/* 平台服务：模块多，单列会把页脚拉得很长，拆成两列（按行填充，阅读顺序仍是左到右、上到下） */
.footer-col--grid2 ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.footer-col a { color: rgba(255, 255, 255, .66); }
.footer-col a:hover { color: #fff; }
.footer-qr-list { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-qr {
    margin: 0; padding: 8px; border-radius: var(--r-md); background: #fff; text-align: center;
}
.footer-qr img { width: 92px; height: 92px; border-radius: 6px; object-fit: cover; }
.footer-qr figcaption { margin-top: 4px; color: var(--ink); font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom__inner {
    display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: space-between;
    padding: 22px 0; font-size: 13px; color: rgba(255, 255, 255, .5);
}
.footer-bottom a:hover { color: #fff; }

/* ===================== 小程序码弹层 =====================
   外壳由 layui 的 layer 负责（见 skin: qr-layer），这里只定义：
   1) 内容区排版；2) 把 layer 默认外观改成跟站点一致的圆角毛玻璃卡片。
   layer 自己不会加载样式，layui.css 已在 portal.css 之前引入（见 header.php）。 */
.qr-pop { padding: 34px 30px 30px; text-align: center; }
.qr-pop__title { font-size: 20px; }
.qr-pop__desc { margin: 10px 0 18px; color: var(--muted); font-size: 13.5px; }
.qr-pop__img { width: 210px; height: 210px; border-radius: var(--r-md); }
.qr-pop__tip { margin: 12px 0 0; color: var(--brand); font-size: 13.5px; font-weight: 600; }

/* layer 外壳：毛玻璃卡片 */
body .qr-layer {
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .75);
    overflow: hidden;
}
body .qr-layer .layui-layer-content { overflow: visible; }
/* 关闭按钮：layui 给的是自带 3px 边框 + 3px 内边距的 close2 圆钮，
   16px 的字形被塞进被撑到 28px 行高的 16px 内容盒里，于是 × 被压到下方溢出。
   这里剥掉它的边框/内边距，改用两条伪元素画 × —— 几何居中，不再受字形度量影响。 */
body .qr-layer .layui-layer-close {
    top: 12px; right: 14px; width: 28px; height: 28px;
    border: 0; padding: 0; margin: 0;
    font-size: 0;
    color: var(--muted); background: #f1f4f9; border-radius: 50%; opacity: 1;
}
body .qr-layer .layui-layer-close::before,
body .qr-layer .layui-layer-close::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 13px; height: 1.6px; border-radius: 2px; background: currentColor;
}
body .qr-layer .layui-layer-close::before { transform: translate(-50%, -50%) rotate(45deg); }
body .qr-layer .layui-layer-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
body .qr-layer .layui-layer-close:hover { color: var(--text); background: #e6eaf2; opacity: 1; }

/* 遮罩：只用深色半透明压暗，不加 backdrop-filter。
   它是覆盖整个视口的层，弹出瞬间要现场模糊一张 1440×900（Retina 下更大）的图，
   实测单帧拉到 83~100ms、连丢 6~7 帧；而模糊半径降到 2px 也一样（开销来自面积不是半径）。
   所以真正的「毛玻璃」交给上面那层卡片来做——它只有 380×390，实测零掉帧。 */
body .qr-layer .layui-layer-close:hover { color: var(--text); background: #e6eaf2; }

/* ===================== 导航「更多」下拉 ===================== */
/* 默认隐藏，鼠标移到「更多」上自动展开（纯 CSS，无 JS 也可用） */
.nav-drop { position: relative; flex: none; }
.nav-drop__btn {
    display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px;
    border: 0; border-radius: 10px; background: none; cursor: pointer;
    color: rgba(255, 255, 255, .74); font-size: 14.5px; font-weight: 500;
    white-space: nowrap; transition: color .2s, background .2s;
}
.nav-drop__btn:hover,
.nav-drop:hover > .nav-drop__btn { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-drop.is-open > .nav-drop__btn { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-drop__ico { transition: transform .2s; }
.nav-drop:hover .nav-drop__ico,
.nav-drop.is-open .nav-drop__ico { transform: rotate(180deg); }
.nav-drop__panel {
    position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5;
    min-width: 208px; padding: 8px; border-radius: 14px;
    /* 不用 backdrop-filter：展开时浏览器要把面板下方的整块内容单独提成图层并逐帧
       模糊采样，实测 hover 出现/消失会掉帧。改用接近实色的深底（跟随主题 --
       navy-2），配外阴影照样能从页面内容里浮起来，且没有模糊开销。 */
    background: #0d1730;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: 0 26px 54px -22px rgba(0, 0, 0, .72), inset 0 1px 0 rgba(255, 255, 255, .12);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: opacity .2s, visibility .2s, transform .2s;
}
/* 透明桥接层：填平按钮与面板之间的 12px 空隙，鼠标移过去不会闪断 */
.nav-drop__panel::before {
    content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
}
.nav-drop:hover > .nav-drop__panel,
.nav-drop:focus-within > .nav-drop__panel,
.nav-drop.is-open > .nav-drop__panel {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%);
}
.nav-drop__panel a {
    display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 8px;
    color: rgba(255, 255, 255, .74); font-size: 14px; white-space: nowrap;
}
.nav-drop__panel a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-drop__panel a.is-active { background: rgba(255, 77, 61, .22); color: #fff; }
.nav-drop__panel a em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* ===================== 详情页行动按钮组 ===================== */
.act-card {
    padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: #fff; box-shadow: var(--shadow);
}
.act-card__title { margin-bottom: 8px; font-size: 17.5px; }
.act-list { display: grid; gap: 10px; }
.act-list .btn { justify-content: flex-start; gap: 10px; }
.act-ico { display: inline-grid; place-items: center; flex: none; }

/* ===================== 禁止调试遮罩 =====================
   由 portal.js 的 initDevGuard 在检测到调试工具打开时插入，盖住整页。
   不放任何图片/动画：这一层的唯一职责是挡住内容，越简单越不容易出问题。 */
.dev-guard {
    /* !important 是必要的：在控制台里给遮罩加 style="display:none" 是最省事的破解法，
       重要的作者样式压过不重要的行内样式，行内改法就失效了 */
    position: fixed !important; inset: 0 !important; z-index: 9999 !important;
    display: grid !important; place-items: center;
    padding: 24px; text-align: center; background: rgba(7, 13, 27, .96); color: #fff;
}
.dev-guard__title { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.dev-guard__desc { margin: 0; color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ===================== 整站配色主题 ===================== */
body[data-theme="warm"] {
    --navy: #241004; --navy-2: #3a1b06; --ink: #2b1608;
    --brand: #ff7a00; --brand-2: #ffb020; --gold: #ffd88a;
    --bg: #fdf7f1;
}
body[data-theme="fresh"] {
    --navy: #04231c; --navy-2: #07382c; --ink: #06281f;
    --brand: #0f9d58; --brand-2: #4ad07f; --gold: #ffd24b;
    --bg: #f2fbf6;
}
body[data-theme="violet"] {
    --navy: #150c2c; --navy-2: #231347; --ink: #1b1036;
    --brand: #7c3aed; --brand-2: #a78bfa; --gold: #f0c674;
    --bg: #f7f5ff;
}
body[data-theme="crimson"] {
    --navy: #2a0710; --navy-2: #3c0c18; --ink: #2b0912;
    --brand: #e11d48; --brand-2: #ff6b81; --gold: #ffc94b;
    --bg: #fff6f7;
}
body[data-theme="graphite"] {
    --navy: #0b0b0c; --navy-2: #1c1c20; --ink: #141417;
    --brand: #c9a227; --brand-2: #e7c65b; --gold: #e7c65b;
    --bg: #f6f6f7; --line: #e6e6e9;
}
/* 主题下的强调色跟随，保证按钮、价格、图标一致 */
body[data-theme] .eyebrow { background: rgba(255, 255, 255, .06); }

/* ===================== 滚动动画 =====================
   已移除滚动渐入效果。实测在普通办公电脑上，滚动过程中同时跑几十个
   opacity/transform 过渡会让卡顿帧（>33ms）从 1% 升到 13%~17%，
   而该效果只是装饰，对内容展示与抓取没有任何帮助，故直接不启用。 */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

/* ===================== 响应式 ===================== */
/* 「更多」是最后一个导航项，面板右对齐，避免超出视口右边缘 */
.main-nav li:last-child > .nav-drop__panel { left: auto; right: 0; transform: translateY(-6px); }
.main-nav li:last-child:hover > .nav-drop__panel,
.main-nav li:last-child:focus-within > .nav-drop__panel,
.main-nav li:last-child.is-open > .nav-drop__panel { transform: translateY(0); }

@media (max-width: 1400px) {
    .header-inner { gap: 18px; }
    .mini-search__input { width: 104px; }
}
@media (max-width: 1240px) {
    .mini-search { display: none; }
}
@media (max-width: 1180px) {
    .card-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .main-nav a { padding: 8px 9px; font-size: 14px; }
    .nav-drop__btn { padding: 0 9px; font-size: 14px; }
}
@media (max-width: 1024px) {
    .mini-search { display: none; }
    .detail-layout { grid-template-columns: minmax(0, 1fr); }
    .detail-side { position: static; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%; display: none;
        padding: 10px 0 16px; background: rgba(7, 13, 27, .82);
        /* 毛玻璃：面板展开后背景静止，不会有滚动重采样开销 */
        -webkit-backdrop-filter: blur(18px) saturate(160%);
        backdrop-filter: blur(18px) saturate(160%);
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 0 22px; }
    .main-nav a { border-radius: 8px; }
    .main-nav a.is-active::after { display: none; }
    .header-inner { position: relative; }
    .nav-drop { width: 100%; }
    .nav-drop__btn { width: 100%; justify-content: space-between; }
    .nav-drop__panel {
        position: static; display: none; min-width: 0; margin: 2px 0 8px;
        padding: 4px 0 4px 12px; transform: none; opacity: 1; visibility: visible;
        pointer-events: auto; background: none; border: 0;
        border-left: 1px solid rgba(255, 255, 255, .14); box-shadow: none;
    }
    .nav-drop__panel::before { display: none; }
    .nav-drop.is-open .nav-drop__panel { display: block; transform: none; }
}
@media (max-width: 860px) {
    .card-grid--3, .card-grid--4, .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-head__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .detail-hero__logo { width: 108px; height: 108px; }
    .detail-main { padding: 26px 22px; }
    .section { padding: 54px 0; }
    .footer-top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 640px) {
    .wrap { width: min(100% - 28px, var(--max)); }
    .card-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .why-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 66px 0 76px; }
    .search-box__field { flex-wrap: wrap; border-radius: var(--r-md); padding: 12px; }
    .search-box__input { width: 100%; height: 38px; }
    .search-box__field .btn { width: 100%; }
    .search-box__icon { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kv-list > div { flex-direction: column; gap: 2px; }
    .kv-list dt { width: auto; }
}
