/* =============================================================================
 * site.css —— 杰翔办公（JESSEOA）前台设计系统
 *
 * 设计目标：结构清晰、配色统一、响应式、易维护。
 * 章节索引：
 *   1. 设计变量（Design Tokens）
 *   2. 基础重置与排版
 *   3. 通用容器 / 页面标题 / 工具类
 *   4. 按钮系统
 *   5. 表单控件
 *   6. 顶部导航
 *   7. 首页 Hero
 *   8. 分类筛选 / 产品网格
 *   9. 搜索栏 / 链接列表 / 文章
 *  10. 视频播放
 *  11. 数据表格 / 分页
 *  12. 卡片 / 提示消息
 *  13. 登录页
 *  14. 页脚
 *  15. 响应式适配
 * ========================================================================== */

/* ===== 1. 设计变量 ======================================================= */
:root {
    /* 品牌色 */
    --brand-50:  #eff5ff;
    --brand-100: #dbe8fe;
    --brand-500: #2f6fed;
    --brand-600: #1f5fd4;
    --brand-700: #1a4bab;
    --brand-900: #16326f;

    /* 强调色（价格、分类标签） */
    --accent-500: #ff6a00;
    --accent-600: #ed5f00;

    /* 中性色 */
    --ink-900: #141a28;
    --ink-700: #2b3344;
    --ink-500: #5b6577;
    --ink-400: #8a93a5;
    --line:    #e4e8ef;
    --line-2:  #eef1f6;
    --bg:      #f4f6fa;
    --surface: #ffffff;
    --surface-2: #f8fafc;

    /* 语义色 */
    --danger:  #e5484d;
    --danger-bg: #fdecec;
    --success: #2f9e44;
    --success-bg: #ebf8ee;

    /* 形态 */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(20, 26, 40, .06);
    --shadow-sm: 0 4px 14px rgba(20, 26, 40, .07);
    --shadow-md: 0 10px 30px rgba(20, 26, 40, .10);
    --shadow-brand: 0 8px 22px rgba(47, 111, 237, .28);

    /* 字体栈 */
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-hand: "Ma Shan Zheng", "STXingkai", cursive;

    --header-h: 64px;
    --container: 1200px;
}

/* ===== 2. 基础重置与排版 ================================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--ink-900);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, .page-main { flex: 1 0 auto; }

a { color: var(--brand-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; }

p { font-size: 15px; }

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.35; font-weight: 700; }
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 17px; }

ul { list-style: none; }

:focus-visible {
    outline: 3px solid rgba(47, 111, 237, .35);
    outline-offset: 2px;
}

/* ===== 3. 通用容器 / 页面标题 / 工具类 =================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.page {
    padding: calc(var(--header-h) + 26px) 0 48px;
}

.page-head { margin-bottom: 22px; }
.page-head .page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}
.page-head .page-title::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: var(--radius-pill);
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
}
.page-head .page-sub { color: var(--ink-500); font-size: 14px; margin-top: 6px; }

.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.muted { color: var(--ink-500); }

/* 通用卡片 */
.card {
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 24px;
}

/* ===== 4. 按钮系统 ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    user-select: none;
}
.btn:disabled,
.btn.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-brand); }

.btn-accent { background: var(--accent-500); color: #fff; }
.btn-accent:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }

.btn-outline { background: #fff; color: var(--brand-600); border-color: var(--brand-500); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-700); }

.btn-ghost { background: var(--surface-2); color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { background: #eef2f8; color: var(--ink-900); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #cf3a3f; color: #fff; transform: translateY(-1px); }

.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== 5. 表单控件 ======================================================= */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-700);
}
.form-control,
input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink-900);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { height: auto; min-height: 110px; padding: 10px 14px; resize: vertical; line-height: 1.6; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(47, 111, 237, .12);
}
input[readonly], textarea[readonly] {
    background: var(--surface-2);
    color: var(--ink-500);
    cursor: not-allowed;
}
::placeholder { color: var(--ink-400); }

/* 搜索条（带右侧按钮的组合输入框） */
.searchbar {
    display: flex;
    gap: 10px;
    max-width: 620px;
    margin: 0 auto 26px;
}
.searchbar input { flex: 1; }
.searchbar .btn { flex-shrink: 0; }
.search-info {
    text-align: center;
    color: var(--ink-500);
    font-size: 13px;
    margin: -12px 0 18px;
}

/* ===== 6. 顶部导航 ======================================================= */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line-2);
}
.site-header-inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 30px; height: 30px; border-radius: 8px; }
.brand-name {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: .5px;
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
    display: inline-block;
    padding: 8px 14px;
    color: var(--ink-700);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-pill);
    position: relative;
}
.site-nav a:hover { color: var(--brand-600); background: var(--brand-50); }
.site-nav .nav-icon { width: 20px; height: 20px; display: block; }
.site-nav .nav-auth a { padding: 8px; }
.site-nav .nav-auth a:hover { background: var(--brand-50); }

/* 汉堡按钮（移动端显示） */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink-700);
    border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== 7. 首页 Hero ====================================================== */
.hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface-2);
}
.hero img {
    display: block;
    width: 100%;
    aspect-ratio: 1200 / 454;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .8s ease, transform 6s ease;
}
.hero.is-loaded img { opacity: 1; transform: scale(1); }
.hero-slogan {
    position: absolute;
    right: 34px;
    bottom: 30px;
    font-family: var(--font-hand);
    font-size: 34px;
    line-height: 1.5;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .65);
    transform: rotate(-5deg);
}

/* 首页快捷入口 */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 26px;
}
.quick-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--brand-100); }
.quick-card .quick-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 22px;
    margin-bottom: 6px;
}
.quick-card h3 { font-size: 17px; }
.quick-card p { color: var(--ink-500); font-size: 13.5px; }

/* ===== 8. 分类筛选 / 产品网格 ============================================ */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 4px 0 26px;
}
.category-pill {
    padding: 8px 20px;
    font-size: 14px;
    color: var(--ink-700);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all .2s ease;
}
.category-pill:hover { border-color: var(--brand-500); color: var(--brand-600); }
.category-pill.is-active {
    background: var(--accent-500);
    border-color: var(--accent-500);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .3);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.product-card.is-hidden { display: none; }

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 3px 10px;
    font-size: 12px;
    color: #fff;
    background: var(--accent-500);
    border-radius: var(--radius-pill);
    box-shadow: 0 3px 8px rgba(255, 106, 0, .3);
}
.product-media {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    overflow: hidden;
}
.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.06); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.product-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.product-desc {
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-600);
}
.product-price::before { content: "￥"; font-size: 14px; font-weight: 600; margin-right: 1px; }

/* 品牌（驱动下载）网格 */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    transition: transform .25s ease, box-shadow .25s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.brand-card img { max-width: 170px; max-height: 64px; object-fit: contain; }

/* 产品详情：长图 */
.detail-gallery {
    max-width: 860px;
    margin: 0 auto;
}
.detail-gallery .detail-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 18px;
}
.detail-gallery img {
    display: block;
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

/* ===== 9. 搜索栏 / 链接列表 / 文章 ======================================= */
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-left: 4px solid var(--brand-500);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-900);
    transition: transform .2s ease, box-shadow .2s ease;
}
.link-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
    color: var(--brand-700);
}
.link-item .link-arrow { margin-left: auto; color: var(--ink-400); }

/* 技术资料文章 */
.article {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line-2);
}
.article:last-child { border-bottom: none; }
.article-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}
.article-title { font-size: 16.5px; font-weight: 700; }
.article-title a { color: var(--ink-900); }
.article-title a:hover { color: var(--brand-600); }
.article-date { flex-shrink: 0; color: var(--ink-400); font-size: 13px; }
.article-body { color: var(--ink-500); font-size: 14px; line-height: 1.7; }

/* ===== 10. 视频播放 ====================================================== */
.video-wrap {
    max-width: 920px;
    margin: 0 auto;
}
.video-title { font-size: 19px; margin-bottom: 16px; color: var(--brand-700); }
/* 视频播放框 —— 纯媒体查询双端自适应：
   · 手机端（默认）：抖音移动播放器是竖屏组件，内部比例约 324:672，容器取同比例；
   · PC 端（>900px，见下方媒体查询）：横屏 16:10。
   iframe 高度 +48px 是为了抵消移动播放器把 100vh 解析为 calc(100vh - 48px)
   而预留的 48px，使画面恰好铺满（PC 端重置回 100%）。 */
.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 324 / 672;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.video-frame iframe {
    position: absolute; inset: 0;
    width: 100%;
    height: calc(100% + 48px); /* 抵消移动端播放器内部 48px 预留 */
    border: 0;
}

/* PC 端：横屏 16:10（略高于 16:9，给底部控制条留位），iframe 正常 100% 填充 */
@media (min-width: 901px) {
    .video-frame { aspect-ratio: 16 / 10; }
    .video-frame iframe { height: 100%; }
}

/* ===== 11. 数据表格 / 分页 ============================================== */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface);
    min-width: 640px;
}
.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line-2);
    white-space: nowrap;
}
.data-table td.wrap { white-space: normal; min-width: 200px; }
.data-table th {
    background: var(--surface-2);
    color: var(--ink-700);
    font-weight: 700;
    font-size: 13px;
}
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: var(--brand-50); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* 分页条 */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 4px;
}
.pager-info { color: var(--ink-500); font-size: 13.5px; }
.pager-btns { display: flex; align-items: center; gap: 8px; }
.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 36px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-700);
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all .18s ease;
}
a.pager-btn:hover { border-color: var(--brand-500); color: var(--brand-600); background: var(--brand-50); }
.pager-jump { color: var(--ink-500); font-size: 13.5px; padding: 0 4px; }

/* ===== 12. 卡片 / 提示消息 ============================================== */
.message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
}
.message-error { background: var(--danger-bg); color: #b42328; border: 1px solid #f6c6c8; }
.message-success { background: var(--success-bg); color: #237a35; border: 1px solid #bfe6c8; }
.message-info { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); }
.message-center { justify-content: center; text-align: center; }
.empty-state {
    padding: 54px 20px;
    text-align: center;
    color: var(--ink-400);
    font-size: 14.5px;
}

/* 注册/编辑表单容器 */
.form-shell {
    max-width: 520px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    padding: 32px;
}
.form-shell.form-shell-wide { max-width: 860px; }
.form-shell .form-title { text-align: center; font-size: 21px; margin-bottom: 24px; }
.form-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.form-tips {
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-left: 4px solid var(--brand-500);
    border-radius: 6px;
    color: var(--ink-500);
    font-size: 13px;
}

/* 记录详情（只读字段网格） */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 28px;
}
.detail-grid .form-group { margin-bottom: 16px; }
.detail-grid .form-label { margin-bottom: 4px; font-weight: 500; }
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 16px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line-2);
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(3px);
}
.loading-overlay.is-active { display: flex; }
.loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--brand-100);
    border-top-color: var(--brand-600);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.loading-text { color: var(--ink-500); font-size: 14px; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 13. 登录页 ======================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #1f5fd4 0%, #2a3f8f 55%, #16326f 100%);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(10, 22, 56, .35);
    overflow: hidden;
}
.auth-head { padding: 36px 36px 10px; text-align: center; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.auth-logo img { width: 44px; height: 44px; border-radius: 12px; }
.auth-logo .auth-site { font-size: 21px; font-weight: 800; color: var(--ink-900); }
.auth-subtitle { color: var(--ink-500); font-size: 14px; margin-top: 4px; }
.auth-body { padding: 24px 36px 8px; }
.auth-note { text-align: center; font-size: 12px; color: var(--accent-600); margin-top: 4px; }
.auth-foot {
    margin-top: 22px;
    padding: 16px 36px;
    text-align: center;
    background: var(--surface-2);
    color: var(--ink-400);
    font-size: 12.5px;
    border-top: 1px solid var(--line-2);
}
.input-affix { position: relative; }
.input-affix .affix-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--ink-400);
    font-size: 16px;
    pointer-events: none;
}
.input-affix input { padding-left: 42px; }

/* ===== 14. 页脚 =========================================================
 * 单色品牌深蓝底 + 白色系文字透明度分级，保证可读性。
 */
.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #1a1a1a; /* 单色：品牌深蓝加深（与主按钮同色系），保持沉稳 */
    color: rgba(255, 255, 255, .88);
}
.site-footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 20px 28px;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.2fr;
    gap: 34px;
}
.footer-title {
    color: #fff;
    font-size: 15px;
    margin-bottom: 14px;
    position: relative;
    padding-bottom: 8px;
}
.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #7dd3fc; /* 浅青色点缀，在蓝底上更醒目 */
    border-radius: 2px;
}
.footer-text { color: rgba(255, 255, 255, .78); font-size: 13px; line-height: 1.9; }
.partner-logos { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.partner-logo { height: 24px; filter: brightness(0) invert(1); opacity: .72; transition: opacity .2s; }
.partner-logo:hover { opacity: 1; }
.disclaimer-text { font-size: 12px; color: rgba(255, 255, 255, .60); line-height: 1.8; }
.site-copyright {
    border-top: 1px solid rgba(255, 255, 255, .16);
    padding: 14px 20px;
    text-align: center;
}
.site-copyright p { color: rgba(255, 255, 255, .65); font-size: 12.5px; }

/* ===== 15. 响应式适配 =================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    /* 移动端抽屉式导航 */
    .nav-toggle { display: flex; }
    .site-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 18px;
        background: #fff;
        border-bottom: 1px solid var(--line-2);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .22s ease, opacity .22s ease, visibility .22s;
    }
    .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
    .site-nav a { padding: 12px 14px; border-radius: var(--radius-sm); font-size: 16px; }
    .site-nav .nav-auth a { display: inline-block; }

    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-grid { grid-template-columns: 1fr; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 26px; text-align: center; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .partner-logos { justify-content: center; }
    .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --header-h: 58px; }
    .brand-name { font-size: 16px; }
    .page { padding: calc(var(--header-h) + 18px) 0 34px; }
    .card, .form-shell { padding: 20px 16px; border-radius: var(--radius); }
    h1 { font-size: 24px; }
    .hero-slogan { font-size: 22px; right: 18px; bottom: 16px; }
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
    .searchbar { flex-direction: column; }
    .searchbar .btn { width: 100%; }
    .article-head { flex-direction: column; gap: 2px; }
    .form-actions .btn { flex: 1; }
    .auth-head, .auth-body { padding-left: 24px; padding-right: 24px; }
    .auth-foot { padding-left: 24px; padding-right: 24px; }
    .pager { justify-content: center; }
}
