/**
 * XinCMS 前台大气模板样式
 * 深空蓝 + 金色点缀 · 企业级视觉
 */

:root {
    --primary: #1a56db;
    --primary-dark: #0f2d6e;
    --primary-light: #3b82f6;
    --accent: #c9a227;
    --accent-light: #e8c547;
    --dark: #0a1628;
    --dark-soft: #111d33;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(15, 45, 110, 0.08);
    --shadow-lg: 0 20px 60px rgba(15, 45, 110, 0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --nav-h: 72px;
    --font: 'OPPOSans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color .2s, opacity .2s; }
a:active { opacity: .8; }

img { max-width: 100%; height: auto; display: block; }

input, button, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }

/* ========== 顶部信息栏 ========== */
.top-bar {
    background: linear-gradient(90deg, var(--dark) 0%, var(--dark-soft) 100%);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
    position: relative;
    z-index: 1060;
}
.top-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .4;
}
.top-bar-item { color: rgba(255,255,255,.7); transition: color .2s; }
.top-bar-item:hover { color: var(--accent-light); }
.top-bar-link { color: rgba(255,255,255,.75); transition: color .2s; }
.top-bar-link:hover { color: var(--accent-light); }
.top-bar-link.top-bar-active { color: #fff; font-weight: 600; }
.top-bar-divider { opacity: .3; margin: 0 6px; }

/* ========== 主导航 ========== */
.main-nav {
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,.6);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: box-shadow .4s ease, background .4s ease, padding .3s;
}
.main-nav.scrolled {
    box-shadow: 0 8px 32px rgba(15, 45, 110, 0.12);
    background: rgba(255,255,255,.95);
}
.main-nav .navbar { padding: 0; min-height: var(--nav-h); }
.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-logo img { height: 46px; transition: transform .3s; }
.nav-logo:hover img { transform: scale(1.03); }
.nav-logo .logo-mark {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(26,86,219,.3);
    transition: transform .3s, box-shadow .3s;
}
.nav-logo:hover .logo-mark { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26,86,219,.4); }
.nav-logo .logo-text { color: var(--dark); }
.nav-logo .logo-text em { color: var(--primary); font-style: normal; }

.navbar-nav .nav-link {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    padding: 24px 18px !important;
    position: relative;
    transition: color .25s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 16px; left: 18px; right: 18px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary); }
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }

.btn-nav-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 11px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(26,86,219,.35);
    transition: transform .25s, box-shadow .25s !important;
    position: relative;
    overflow: hidden;
}
.btn-nav-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    opacity: 0;
    transition: opacity .3s;
}
.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,86,219,.45);
    color: #fff !important;
}
.btn-nav-primary:hover::before { opacity: 1; }

/* ---- 导航下拉菜单 ---- */
.navbar-nav .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    padding: 8px 0;
    margin-top: 8px;
    min-width: 160px;
}
.navbar-nav .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    color: #334155;
    transition: background .15s, color .15s;
}
.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background: #EFF6FF;
    color: #0831CB;
}
.navbar-nav .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        box-shadow: none;
        padding: 0 0 0 16px;
        background: transparent;
    }
    .navbar-nav .dropdown-item {
        color: #cbd5e1;
        padding: 10px 16px;
    }
    .navbar-nav .dropdown-item:hover {
        background: rgba(255,255,255,.08);
        color: #60a5fa;
    }
}
.nav-cart {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    transition: background .25s, color .25s, transform .25s;
}
.nav-cart:hover { background: #eff6ff; color: var(--primary); transform: translateY(-1px); }

/* 关于我们下拉 */
.navbar-nav .dropdown-toggle::after { margin-left: 6px; vertical-align: .15em; }
.nav-about-dropdown {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,23,42,.12);
    padding: 8px;
    min-width: 160px;
    margin-top: 8px !important;
}
.nav-about-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.nav-about-dropdown .dropdown-item:hover,
.nav-about-dropdown .dropdown-item.active {
    background: #eff6ff;
    color: var(--primary);
}

/* ========== Hero 大图 ========== */
.hero-section {
    position: relative;
    min-height: 560px;
    overflow: hidden;
}
.hero-slide {
    min-height: 560px;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(10,22,40,.92) 0%, rgba(15,45,110,.75) 45%, rgba(26,86,219,.4) 100%);
    z-index: 1;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}
.carousel-item.active .hero-bg { transform: scale(1); }
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 640px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}
.hero-tag i { color: var(--accent-light); }
.hero-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero-desc {
    font-size: 18px;
    opacity: .88;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #a88620 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 24px rgba(201,162,39,.4);
    transition: transform .2s, box-shadow .2s;
}
.btn-hero-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,162,39,.5); }
.btn-hero-outline {
    background: transparent;
    color: #fff;
    font-weight: 600;
    padding: 14px 36px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,.5);
    transition: background .2s, border-color .2s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }

.hero-carousel .carousel-indicators { bottom: 32px; }
.hero-carousel .carousel-indicators button {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.4);
    border: none;
}
.hero-carousel .carousel-indicators button.active { background: var(--accent); }

/* ========== 数据统计条 ========== */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 0;
    margin-top: -1px;
    position: relative;
    z-index: 3;
}
.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.1);
}
.stat-item {
    padding: 32px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 14px; opacity: .75; margin-top: 8px; }

/* ========== 区块标题 ========== */
.section { padding: 80px 0; }
.section-gray { background: var(--white); }
.section-dark {
    background: var(--dark);
    color: #fff;
}
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-dark .section-tag { color: var(--accent-light); }
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.25;
}
.section-dark .section-title { color: #fff; }
.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}
.section-dark .section-desc { color: rgba(255,255,255,.65); }
.section-header-left {
    text-align: left;
    max-width: none;
    margin: 0 0 40px;
}
.section-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s;
}
.section-more:hover { color: var(--primary-dark); gap: 10px; }

/* ========== 卡片系统 ========== */
.cms-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.cms-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    position: relative;
}
.card-img-wrap.ratio-square { aspect-ratio: 1/1; }
.card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.cms-card:hover .card-img-wrap img { transform: scale(1.08); }
.card-body { padding: 20px; }
.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-price {
    color: var(--accent);
    font-weight: 800;
    font-size: 18px;
    margin-top: 12px;
}
.card-price small { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* ========== 页面 Hero ========== */
.page-hero {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: #fff;
    padding: 56px 0 48px;
    overflow: hidden;
}
.page-hero-sm { padding: 40px 0 32px; }
.page-hero .breadcrumb { margin-bottom: 16px; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.page-hero-title {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
}
.page-hero-desc {
    font-size: 15px;
    opacity: .8;
    max-width: 560px;
}
.page-wrap { padding: 40px 0 64px; }

/* ========== 通用列表卡片 ========== */
.list-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.list-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    color: inherit;
}
.list-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
    color: inherit;
}
.list-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.list-card-cover-43 { aspect-ratio: 4/3; }
.list-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.list-card:hover .list-card-cover img { transform: scale(1.06); }
.list-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.list-card-cover-placeholder i {
    font-size: 48px;
    color: var(--primary);
    opacity: .5;
}
.list-card-body { padding: 20px; }
.list-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-card:hover .list-card-title { color: var(--primary); }
.list-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.list-card-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}
.list-empty {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}
.list-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
    opacity: .4;
}

/* ========== 通用详情页 ========== */
.detail-card { padding: 32px 28px; }
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.detail-cover {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f5f7fa;
}
.detail-cover img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: contain;
}
.detail-cover-zoom { cursor: zoom-in; }
.detail-cover-zoom:hover img { opacity: .95; }
.detail-summary {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 28px;
    font-size: 15px;
    color: #1d4ed8;
    line-height: 1.7;
}
.detail-content { line-height: 1.9; font-size: 15px; color: #334155; }
.detail-content img { max-width: 100%; height: auto; border-radius: 6px; }
.detail-actions {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ========== 侧栏 ========== */
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-widget-title {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    border-bottom: 1px solid var(--border);
    background: #fafbfc;
}
.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-widget ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9;
    transition: background .2s, color .2s, padding-left .2s;
}
.sidebar-widget ul li:last-child a { border-bottom: none; }
.sidebar-widget ul li a:hover {
    color: var(--primary);
    background: #f8fafc;
    padding-left: 24px;
}

/* ========== 灯箱 ========== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ========== 面包屑条 ========== */
.breadcrumb-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 14px;
}
.breadcrumb-bar .breadcrumb { margin: 0; }

/* ========== 特色服务 ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: var(--primary);
}
.feature-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ========== 解决方案卡片 ========== */
.solution-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    height: 100%;
    transition: transform .3s, box-shadow .3s;
    position: relative;
    overflow: hidden;
}
.solution-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform .3s;
}
.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.solution-card:hover::before { transform: scaleX(1); }
.solution-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.solution-card-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}
.solution-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
    margin-bottom: 20px;
}

/* ========== 新闻列表 ========== */
.news-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.news-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: background .2s;
}
.news-item:last-child { border-bottom: none; }
.news-item:hover { background: #f8fafc; }
.news-item img {
    width: 96px; height: 68px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.news-item-title {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-item-date { font-size: 12px; color: var(--text-muted); }

/* ========== 图片网格 ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.1); }

/* ========== CTA 横幅 ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(201,162,39,.25) 0%, transparent 70%);
    border-radius: 50%;
}
.cta-banner h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}
.cta-banner p {
    opacity: .85;
    font-size: 16px;
    margin-bottom: 28px;
    position: relative;
}

/* ========== 面包屑 ========== */
.breadcrumb-bar {
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
    padding: 16px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.breadcrumb-bar a { color: var(--primary); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--text-muted); }

/* ========== 页脚 ========== */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    margin-top: 0;
}
.footer-main { padding: 64px 0 48px; }
.footer-brand h4 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
}
.footer-brand p { font-size: 14px; line-height: 1.8; opacity: .75; }
.footer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    transition: color .2s, padding-left .2s;
}
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-contact li {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.footer-contact i { color: var(--accent); margin-top: 3px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); }

/* ========== 通用组件 ========== */
.badge-hot {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    position: absolute;
    top: 12px; right: 12px;
    z-index: 2;
}
.sidebar-widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}
.sidebar-widget-title {
    font-size: 15px;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
    background: #f8fafc;
}
.sidebar-widget ul { list-style: none; padding: 8px 0; margin: 0; }
.sidebar-widget ul li a {
    display: block;
    padding: 10px 20px;
    color: var(--text);
    font-size: 14px;
    transition: background .2s, color .2s, padding-left .2s;
}
.sidebar-widget ul li a:hover {
    color: var(--primary);
    background: #eff6ff;
    padding-left: 26px;
}

.pagination { gap: 6px; }
.pagination .page-link {
    border-radius: 8px;
    color: var(--text);
    border-color: var(--border);
    padding: 8px 14px;
}
.pagination .page-link:hover,
.pagination .active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

/* ========== 页面容器 ========== */
.page-wrap { padding: 48px 0 64px; }

/* ========== 内页 Hero ========== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 55%, var(--primary) 100%);
    color: #fff;
    padding: 48px 0 44px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    right: -80px; top: -80px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(201,162,39,.15) 0%, transparent 70%);
    border-radius: 50%;
}
.page-hero .breadcrumb { margin-bottom: 12px; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item a:hover { color: var(--accent-light); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.35); }
.page-hero-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    margin: 0;
    position: relative;
}
.page-hero-desc {
    margin: 10px 0 0;
    opacity: .8;
    font-size: 15px;
    position: relative;
}

/* ========== 新闻列表页 ========== */
.news-search-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow);
}
.news-search-bar .form-control {
    border-radius: 8px;
    border-color: var(--border);
    padding: 10px 16px;
}
.news-list-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    color: inherit;
}
.news-list-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.news-list-thumb {
    flex-shrink: 0;
    width: 240px;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    position: relative;
    overflow: hidden;
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    transition: transform .4s;
}
.news-list-card:hover .news-list-thumb img { transform: scale(1.06); }
.news-list-thumb-placeholder {
    width: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 40px;
}
.news-list-body {
    flex: 1;
    padding: 24px 28px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.news-list-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}
.news-cat-badge {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}
.news-top-badge {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.news-list-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.news-list-card:hover .news-list-title { color: var(--primary); }
.news-list-summary {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.news-read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.news-list-card:hover .news-read-more { gap: 10px; }
.sidebar-widget ul li a.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 600;
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}
.sidebar-news-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
}
.news-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
}
.news-empty i { font-size: 56px; display: block; margin-bottom: 16px; opacity: .4; }

/* ========== 新闻详情页 ========== */
.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.article-header {
    padding: 40px 40px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}
.article-title {
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 20px;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta i { color: var(--primary); }
.article-cover {
    margin: 0;
    max-height: 480px;
    overflow: hidden;
}
.article-cover img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}
.article-body { padding: 36px 40px 40px; }
.article-content {
    line-height: 1.9;
    font-size: 16px;
    color: #334155;
    word-break: break-word;
}
.article-content p { margin-bottom: 18px; }
.article-content h2, .article-content h3, .article-content h4 {
    font-weight: 700;
    color: var(--dark);
    margin: 32px 0 14px;
    line-height: 1.35;
}
.article-content h2 { font-size: 24px; }
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 17px; }
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}
.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: #fffbeb;
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #78350f;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.article-content table th,
.article-content table td {
    border: 1px solid var(--border);
    padding: 10px 14px;
}
.article-content table th { background: #f8fafc; font-weight: 600; }
.article-content a { color: var(--primary); text-decoration: underline; }
.article-content pre, .article-content code {
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 14px;
}
.article-content pre {
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.article-nav-item {
    padding: 16px 18px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}
.article-nav-item:hover {
    border-color: var(--primary-light);
    background: #eff6ff;
}
.article-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.article-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-nav-item.text-end { text-align: right; }
.article-back {
    text-align: center;
    margin-top: 28px;
}

/* ========== 产品详情页 ========== */
.product-main-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: -32px;
    position: relative;
    z-index: 2;
}
.product-main-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0;
}
.product-gallery {
    padding: 32px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-right: 1px solid var(--border);
}
.product-gallery-main {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s ease;
}
.product-gallery-main:hover img { transform: scale(1.03); }
.product-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.product-gallery-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: var(--white);
    cursor: pointer;
    padding: 4px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-gallery-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}
.product-gallery-thumb.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.product-info-panel {
    padding: 36px 40px 40px;
    display: flex;
    flex-direction: column;
}
.product-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.product-cat-badge {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
}
.product-badge-hot {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
}
.product-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 20px;
}
.product-price-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}
.product-price-current {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    color: #b45309;
    line-height: 1;
}
.product-price-current small {
    font-size: 18px;
    font-weight: 700;
    margin-right: 2px;
}
.product-price-original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: 500;
}
.product-price-tip {
    font-size: 13px;
    color: #92400e;
    margin-top: 8px;
    opacity: .85;
}
.product-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-muted);
}
.product-stock-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
    color: var(--text-muted);
}
.product-stock-item {
    white-space: nowrap;
    flex-shrink: 0;
}
.product-stock-item strong { color: var(--dark); font-weight: 700; }
.product-stock-item .stock-in { color: #059669; }
.product-stock-item .stock-out { color: #dc2626; }
.product-meta-item strong { color: var(--dark); font-weight: 700; }
.product-meta-item .stock-in { color: #059669; }
.product-meta-item .stock-out { color: #dc2626; }
.product-spec {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}
.product-spec strong { color: var(--dark); }
.product-summary-box {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 18px;
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 24px;
}
.product-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.product-trust-four {
    grid-template-columns: repeat(4, 1fr);
}
.product-trust-item {
    text-align: center;
    padding: 14px 10px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.product-trust-item i {
    display: block;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 8px;
}
.product-trust-item span { font-weight: 600; color: var(--dark); display: block; }
.product-license-notice {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}
.product-license-notice-label {
    font-weight: 600;
    color: var(--dark);
}
.product-license-notice a {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-license-notice a:hover { color: var(--primary-dark); }
.product-vas-buy {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #F8FAFC;
}
.product-vas-buy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.product-vas-buy-title {
    font-weight: 700;
    color: var(--dark);
    font-size: 15px;
}
.product-vas-buy-title i { color: var(--primary); margin-right: 6px; }
.product-vas-buy-tip { font-size: 12px; color: var(--text-muted); }
.product-vas-buy-list { display: grid; gap: 8px; }
.product-vas-buy-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    margin: 0;
}
.product-vas-buy-item:hover { border-color: #BFDBFE; background: #F8FBFF; }
.product-vas-buy-check { margin-top: 4px; flex-shrink: 0; }
.product-vas-buy-text { flex: 1; font-size: 13px; line-height: 1.55; color: #334155; }
.product-vas-buy-index { color: #94A3B8; }
.product-vas-buy-price {
    flex-shrink: 0;
    font-weight: 700;
    color: #D97706;
    font-size: 14px;
    white-space: nowrap;
}
.product-vas-buy-total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #CBD5E1;
    font-size: 14px;
    color: #475569;
}
.product-vas-buy-total strong { color: #D97706; font-size: 18px; }
.product-vas-buy-total-note { display: block; font-size: 12px; color: #94A3B8; margin-top: 4px; }
.product-stock-row .product-qty {
    margin-left: auto;
    flex-shrink: 0;
}
.product-qty-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-right: 4px;
    white-space: nowrap;
}
.product-btn-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
}
.product-btn-row .btn-product-cart,
.product-btn-row .btn-product-buy,
.product-btn-row .btn-product-contact {
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
}
.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.product-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
}
.product-qty-btn {
    width: 40px;
    height: 44px;
    border: none;
    background: #f8fafc;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.product-qty-btn:hover { background: #eff6ff; color: var(--primary); }
.product-qty-input {
    width: 56px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    -moz-appearance: textfield;
}
.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-product-cart {
    background: linear-gradient(135deg, var(--accent) 0%, #a88620 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 16px rgba(201,162,39,.35);
    transition: transform .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-product-cart:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(201,162,39,.45);
}
.btn-product-buy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 14px rgba(26,86,219,.3);
    transition: transform .2s, box-shadow .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-product-buy:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,.4);
}
.btn-product-contact {
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-weight: 600;
    transition: border-color .2s, color .2s, background .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-product-contact:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}
.product-cart-msg {
    font-size: 13px;
    font-weight: 600;
    min-height: 20px;
}
.product-cart-msg.ok { color: #059669; }
.product-cart-msg.err { color: #dc2626; }
.product-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.product-stats span { display: inline-flex; align-items: center; gap: 6px; }
.product-stats i { color: var(--primary); }
.product-detail-section {
    margin-top: 48px;
}
.product-detail-tabs {
    border-bottom: 2px solid var(--border);
    gap: 8px;
    margin-bottom: 0;
}
.product-detail-tabs .nav-link {
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    position: relative;
    background: transparent;
}
.product-detail-tabs .nav-link.active {
    color: var(--primary);
    background: var(--white);
    box-shadow: 0 -2px 0 var(--primary) inset;
}
.product-detail-body {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 36px 40px 44px;
    box-shadow: var(--shadow);
}
.product-detail-content {
    line-height: 1.9;
    font-size: 16px;
    color: #334155;
    word-break: break-word;
}
.product-detail-content p { margin-bottom: 18px; }
.product-service-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}
.product-service-text {
    line-height: 1.9;
    font-size: 15px;
    color: #475569;
    white-space: pre-line;
}
.product-service-warning {
    color: #92400E;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius);
    padding: 16px 18px;
}
.product-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px 0;
    box-shadow: var(--shadow);
}
.product-detail-content h2, .product-detail-content h3 {
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 12px;
}
.page-wrap--product { padding-top: 0; }
.page-hero--compact { padding-bottom: 28px; }
.page-hero-title--product { font-size: clamp(20px, 3vw, 28px); }
.product-detail-page { position: relative; }
.product-gallery-placeholder,
.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #CBD5E1;
    font-size: 72px;
}
.product-card-placeholder { font-size: 48px; min-height: 120px; }
.product-badge-soldout {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #991B1B;
    background: #FEE2E2;
}
.product-purchase-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    background: linear-gradient(180deg, #FCFDFF 0%, #F8FAFC 100%);
}
.product-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.product-order-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}
.product-order-summary-label {
    font-size: 14px;
    color: #92400E;
    font-weight: 600;
}
.product-order-summary-amount {
    color: #D97706;
    font-size: 22px;
    line-height: 1;
}
.product-order-summary-note {
    width: 100%;
    font-size: 12px;
    color: #B45309;
}
.product-license-notice-text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}
.product-purchase-panel .product-license-notice {
    margin-bottom: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
}
.product-purchase-panel .product-vas-buy {
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
}
.product-vas-buy-item.is-checked {
    border-color: #93C5FD;
    background: #EFF6FF;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, .08);
}
.product-vas-buy-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.product-vas-buy-check { margin-top: 5px; }
.product-params-table th {
    width: 140px;
    background: #F8FAFC;
    font-weight: 600;
    color: #475569;
}
.product-params-table td { color: #0F172A; }
.product-sidebar-phone {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.product-sidebar-phone strong { color: var(--dark); }
.product-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
    backdrop-filter: blur(8px);
}
.product-mobile-bar-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}
.product-mobile-bar-price {
    color: #D97706;
    font-size: 20px;
    line-height: 1.1;
}
.product-mobile-bar-btn {
    min-width: 132px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    font-weight: 700;
}
.btn-product-cart:disabled,
.btn-product-buy:disabled,
.product-qty-btn:disabled,
.product-qty-input:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.product-cart-msg[hidden] { display: none; }
.product-related-section { margin-top: 56px; }
.product-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: sticky;
    top: calc(var(--nav-h) + 20px);
}
.product-sidebar-head {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 20px 22px;
    font-size: 16px;
    font-weight: 700;
}
.product-sidebar-body { padding: 20px 22px 24px; }
.product-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}
.product-sidebar-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.5;
}
.product-sidebar-list i {
    color: var(--accent);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.product-sidebar-cta {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), #a88620);
    color: #fff;
    font-weight: 700;
    padding: 12px;
    border-radius: 10px;
    transition: transform .2s, box-shadow .2s;
}
.product-sidebar-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,.35);
}

/* ========== 响应式 ========== */
/* (响应式规则已整合至文件末尾) */

/* ========== 会员登录注册 ========== */
.member-auth-card { box-shadow: var(--shadow-lg); border: none; }
.member-auth-tabs .nav-link {
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.member-auth-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}
.oauth-divider::before, .oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.oauth-divider span { padding: 0 12px; }
.oauth-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.oauth-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: opacity .2s, transform .2s;
}
.oauth-btn:hover { color: #fff; opacity: .9; transform: translateY(-1px); }
.oauth-qq { background: #12B7F5; }
.oauth-wechat { background: #07C160; }
.oauth-weibo { background: #E6162D; }

/* ========== 会员中心 ========== */
.page-hero-sm { padding: 36px 0 32px; }
.member-center-wrap { padding-top: 32px; padding-bottom: 64px; }

/* 会员侧边栏 */
.member-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.member-sidebar-user {
    padding: 28px 20px;
    text-align: center;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.member-sidebar-avatar {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(26,86,219,.25);
}
.member-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-sidebar-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
}
.member-sidebar-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.member-sidebar-nav {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.member-sidebar-nav-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    padding: 16px 20px 8px;
}
.member-sidebar-nav ul {
    list-style: none;
    padding: 4px 0 12px;
    margin: 0;
}
.member-sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background .2s, color .2s, padding-left .2s;
}
.member-sidebar-nav ul li a i {
    width: 18px;
    color: var(--primary);
    font-size: 16px;
}
.member-sidebar-nav ul li a:hover,
.member-sidebar-nav ul li a.active {
    color: var(--primary);
    background: #eff6ff;
    padding-left: 26px;
}
.member-sidebar-nav ul li a.active {
    font-weight: 700;
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}
.member-nav-logout { color: #dc2626 !important; }
.member-nav-logout i { color: #dc2626 !important; }
.member-nav-logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }

.member-sidebar-wallet {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.member-sidebar-wallet span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255,255,255,.8);
    border-radius: 20px;
    border: 1px solid var(--border);
}
.member-sidebar-wallet i { color: var(--primary); }

.member-wallet-badge {
    text-align: right;
}
.member-wallet-badge strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
}

.member-recharge-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.member-recharge-preset {
    cursor: pointer;
    margin: 0;
}
.member-recharge-preset input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.member-recharge-preset span {
    display: block;
    text-align: center;
    padding: 12px 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-weight: 700;
    transition: all .2s;
}
.member-recharge-preset input:checked + span,
.member-recharge-preset:hover span {
    border-color: var(--primary);
    background: #eff6ff;
    color: var(--primary);
}

.member-table th {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.member-table td {
    vertical-align: middle;
    font-size: 14px;
}

.member-ticket-replies {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.member-ticket-reply {
    padding: 14px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #f8fafc;
}
.member-ticket-reply.is-admin {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.member-ticket-reply-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.member-ticket-reply-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

.member-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 安全认证卡片 */
.member-auth-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.member-auth-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.member-auth-card.is-done {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.member-auth-card.is-pending {
    border-color: #fde68a;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.member-auth-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.member-auth-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.member-auth-card-icon.email { background: #eff6ff; color: #2563eb; }
.member-auth-card-icon.phone { background: #ecfdf5; color: #059669; }
.member-auth-card-icon.identity { background: #f5f3ff; color: #7c3aed; }
.member-auth-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.member-auth-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}
.member-auth-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.member-auth-badge.done { background: #d1fae5; color: #065f46; }
.member-auth-badge.pending { background: #f1f5f9; color: #64748b; }
.member-auth-badge.reviewing { background: #fef3c7; color: #92400e; }
.member-auth-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.6;
    padding-left: 58px;
}
.member-auth-card-info {
    font-size: 13px;
    color: var(--text);
    padding: 12px 14px;
    background: rgba(255,255,255,.7);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    margin-left: 58px;
}
.member-auth-form {
    margin-left: 58px;
}
.member-oauth-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    font-size: 13px;
}
@media (max-width: 767.98px) {
    .member-auth-card-desc,
    .member-auth-card-info,
    .member-auth-form {
        padding-left: 0;
        margin-left: 0;
    }
}

.member-alert { border-radius: var(--radius); }

/* 个人中心统计 */
.member-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.member-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: inherit;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.member-stat-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}
.member-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.member-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}
.member-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.member-info-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.member-info-table th,
.member-info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
}
.member-info-table th {
    width: 120px;
    color: var(--text-muted);
    font-weight: 500;
}
.member-info-table td { color: var(--dark); font-weight: 600; }
.member-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.member-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.member-phone-masked {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
    padding-left: 0;
}
.member-form-tip {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 14px;
    background: #f8fafc;
    border-radius: var(--radius);
}
.member-check-label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.member-address-list {
    display: grid;
    gap: 12px;
}
.member-address-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fafbfc;
}
.member-address-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}
.member-address-phone {
    margin-left: 10px;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 14px;
}
.member-address-default {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.member-address-card-body {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

.sidebar-widget ul li a.active {
    color: var(--primary);
    background: #eff6ff;
    font-weight: 600;
    border-left: 3px solid var(--primary);
    padding-left: 17px;
}

.member-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 32px 32px;
}
.member-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.member-panel-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 6px;
}
.member-panel-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.member-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.member-back-link:hover { color: var(--primary); }

.member-order-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.member-order-tab {
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: #f8fafc;
    border: 1px solid var(--border);
    transition: all .2s;
}
.member-order-tab:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: #eff6ff;
}
.member-order-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(26,86,219,.25);
}

.member-order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.member-status-unpaid { background: #fef3c7; color: #92400e; }
.member-status-ship { background: #dbeafe; color: #1d4ed8; }
.member-status-sent { background: #e0e7ff; color: #4338ca; }
.member-status-done { background: #d1fae5; color: #065f46; }
.member-status-cancel { background: #f1f5f9; color: #64748b; }
.member-status-refund { background: #fee2e2; color: #991b1b; }
.member-status-refunded { background: #ede9fe; color: #5b21b6; }

.member-order-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
}
.member-order-empty i {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: .35;
}
.member-order-empty p { margin-bottom: 20px; }

.member-order-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.member-order-card:hover {
    box-shadow: var(--shadow);
    border-color: #dbeafe;
}
.member-order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}
.member-order-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}
.member-order-no {
    font-weight: 600;
    color: var(--dark);
}
.member-order-time { color: var(--text-muted); }

.member-order-items { padding: 8px 20px; }
.member-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}
.member-order-item:last-child { border-bottom: none; }
.member-order-item-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 24px;
}
.member-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.member-order-item-body { flex: 1; min-width: 0; }
.member-order-item-name {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.member-order-item-sub { font-size: 13px; color: var(--text-muted); }
.member-order-item-price {
    font-weight: 700;
    color: var(--dark);
    flex-shrink: 0;
}

.member-order-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: #fafbfc;
    border-top: 1px solid var(--border);
}
.member-order-total {
    font-size: 14px;
    color: var(--text-muted);
}
.member-order-amount {
    color: #b45309;
    font-size: 18px;
    margin-left: 4px;
}
.member-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.member-order-actions-stack {
    flex-direction: column;
    margin-top: 20px;
}
.member-order-actions-stack .btn { margin: 0; }

.member-order-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.member-order-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.member-order-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-order-step.done .member-order-step-dot {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}
.member-order-step.current .member-order-step-dot {
    box-shadow: 0 0 0 4px rgba(26,86,219,.2);
}
.member-order-step-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.member-order-step.done .member-order-step-label { color: var(--dark); font-weight: 600; }
.member-order-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 4px;
    margin-bottom: 22px;
    max-width: 60px;
}
.member-order-step-line.done { background: var(--primary); }

.member-order-status-banner {
    padding: 14px 18px;
    background: #eff6ff;
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 24px;
}
.member-order-status-banner-alt { background: #f8fafc; color: var(--text); }

.member-sub-card {
    background: #fafbfc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 20px;
}
.member-sub-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.member-address-block { font-size: 14px; line-height: 1.7; }
.member-remark { font-size: 13px; padding-top: 12px; border-top: 1px dashed var(--border); }

.member-order-summary { background: var(--white); }

.member-order-notice {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 18px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.member-order-notice-item {
    color: #9A3412;
}
.member-order-notice-item i {
    color: #EA580C;
}
.member-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 14px;
}
.member-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: var(--text-muted);
    border-bottom: 1px dashed #f1f5f9;
}
.member-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 2px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
    font-size: 15px;
}
.member-summary-total strong {
    font-size: 22px;
    color: #b45309;
}
.member-summary-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}
.member-summary-meta li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    color: var(--text-muted);
}
.member-summary-meta li span:last-child {
    color: var(--dark);
    text-align: right;
    word-break: break-all;
}

/* ========== 单页 ========== */
.page-cover {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8fafc;
}
.page-cover-img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}
.page-content-body {
    line-height: 1.9;
    font-size: 15px;
    color: #334155;
}
.page-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.page-single-card {
    padding: 32px 28px;
}
.page-wrap {
    padding-top: 32px;
    padding-bottom: 64px;
}

/* ========== 联系我们 ========== */
.contact-page-wrap { padding-bottom: 72px; }
.contact-alert {
    border-radius: var(--radius);
    margin-bottom: 28px;
}
.contact-info-stack {
    display: grid;
    gap: 16px;
}
.contact-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
}
.contact-info-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-lg);
}
.contact-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-info-icon-green {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}
.contact-info-icon-purple {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}
.contact-info-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
}
.contact-info-card a {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 4px;
}
.contact-info-card a:hover { color: var(--primary-dark); }
.contact-info-card p,
.contact-address {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.contact-form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}
.contact-form-head {
    padding: 24px 28px;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
}
.contact-form-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 6px;
}
.contact-form-head p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}
.contact-form {
    padding: 28px;
}
.contact-form .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.contact-form .form-control {
    border-color: var(--border);
    padding: 10px 14px;
    font-size: 14px;
}
.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.contact-submit-btn {
    font-weight: 700;
    padding-top: 12px;
    padding-bottom: 12px;
}
.contact-extra {
    padding: 28px 32px;
}
.contact-map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #f8fafc;
}
.contact-map-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

/* ========== 授权查询 ========== */
.license-hero-title {
    font-size: clamp(24px, 3vw, 32px);
}
.license-page-wrap {
    padding-top: 0;
}
.license-features {
    margin-top: -28px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}
.license-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
.license-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    font-size: 20px;
}
.license-feature-icon-green {
    background: rgba(5, 150, 105, .1);
    color: #059669;
}
.license-feature-icon-purple {
    background: rgba(124, 58, 237, .1);
    color: #7c3aed;
}
.license-feature-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
}
.license-feature-item p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.license-query-card {
    padding: 32px 28px;
}
.license-query-head {
    margin-bottom: 22px;
}
.license-query-head h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}
.license-query-head p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}
.license-query-tabs {
    margin-bottom: 22px;
}
.license-notice-stack {
    display: grid;
    gap: 16px;
}
.license-notice-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
}
.license-notice-card-muted {
    background: #f8fafc;
}
.license-notice-card-contact {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border-color: #bfdbfe;
}
.license-notice-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.license-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, .1);
    color: var(--primary);
    font-size: 18px;
}
.license-notice-head h2 {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}
.license-notice-subtitle {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #0f172a;
}
.license-notice-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 14px;
}
.license-notice-list li {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
}
.license-notice-list li strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}
.license-notice-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.license-notice-link:hover {
    color: var(--primary-dark);
}
.license-notice-steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}
.license-notice-excerpt {
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-muted);
}
.license-notice-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}
.license-notice-contact-item i {
    color: var(--primary);
}
.license-notice-contact-item a {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}
.license-notice-contact-item a:hover {
    color: var(--primary);
}
.license-query-tip-inline {
    margin-top: 16px;
    margin-bottom: 0;
}
.license-query-tabs .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 999px;
    padding: 10px 20px;
}
.license-query-tabs .nav-link.active {
    background: var(--primary);
    color: #fff;
}
.license-query-input .form-control {
    border-right: 0;
}
.license-query-input .btn {
    border-radius: 0 var(--radius) var(--radius) 0;
}
.license-query-tip {
    margin-top: 24px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.license-query-alert {
    margin-top: 24px;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.license-query-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}
.license-query-alert i {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}
.license-query-alert p {
    margin: 0;
    font-weight: 600;
}
.license-result-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}
.license-result-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid;
}
.license-result-ok {
    background: #f0fdf4;
    border-color: #a7f3d0;
}
.license-result-bad {
    background: #fef2f2;
    border-color: #fecaca;
}
.license-result-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.license-result-head i {
    font-size: 36px;
}
.license-result-ok .license-result-head i { color: #059669; }
.license-result-bad .license-result-head i { color: #dc2626; }
.license-result-title {
    font-size: 18px;
    font-weight: 700;
}
.license-result-ok .license-result-title { color: #065f46; }
.license-result-bad .license-result-title { color: #991b1b; }
.license-result-sub {
    font-size: 13px;
    margin-top: 2px;
    opacity: .85;
}
.license-result-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}
.license-result-table th,
.license-result-table td {
    padding: 8px 0;
    text-align: left;
    vertical-align: top;
}
.license-result-table th {
    width: 120px;
    color: #64748b;
    font-weight: 500;
}
.license-result-table td {
    font-weight: 600;
    color: #0f172a;
}

/* ========== 核心业务 ========== */
.business-home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.business-home-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    height: 100%;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    color: inherit;
}
.business-home-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
    color: inherit;
}
.business-home-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    overflow: hidden;
}
.business-home-icon i {
    font-size: 28px;
    color: var(--primary);
}
.business-home-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.business-home-card h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.business-home-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    min-height: 48px;
}
.business-home-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}
.business-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.business-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
    color: inherit;
}
.business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: inherit;
}
.business-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f1f5f9;
}
.business-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s;
}
.business-card:hover .business-card-cover img {
    transform: scale(1.05);
}
.business-card-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}
.business-card-cover-placeholder i {
    font-size: 48px;
    color: var(--primary);
    opacity: .55;
}
.business-card-body {
    padding: 20px;
}
.business-card-body h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}
.business-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.business-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}
.business-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8edf3;
}
.business-detail-summary {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 28px;
    font-size: 15px;
    color: #1d4ed8;
    line-height: 1.7;
}
.business-detail-actions {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #e8edf3;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* (响应式规则已整合至文件末尾) */

/* ========== 案例中心 ========== */
.gallery-section { background: var(--bg); }

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.gallery-filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all .25s;
}
.gallery-filter-item:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: #eff6ff;
}
.gallery-filter-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(26,86,219,.3);
}

.gallery-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    color: inherit;
    height: 100%;
}
.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #93c5fd;
    color: inherit;
}
.gallery-card-img {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
}
.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}
.gallery-card:hover .gallery-card-img img {
    transform: scale(1.08);
}
.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-zoom {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    transform: scale(.7);
    transition: transform .3s;
}
.gallery-card:hover .gallery-card-zoom { transform: scale(1); }
.gallery-card-body {
    padding: 18px 20px;
}
.gallery-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.gallery-card:hover .gallery-card-title { color: var(--primary); }
.gallery-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.gallery-empty i {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
    opacity: .3;
}
.gallery-empty h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.gallery-empty p { margin-bottom: 16px; font-size: 14px; }

/* 案例详情 */
.gallery-detail-section { background: var(--bg); }
.gallery-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.gallery-detail-main {
    position: relative;
    background: #f1f5f9;
    cursor: zoom-in;
    overflow: hidden;
}
.gallery-detail-main img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    padding: 24px;
    transition: transform .4s;
}
.gallery-detail-main:hover img { transform: scale(1.02); }
.gallery-detail-zoom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, .7);
    color: #fff;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 8px;
    opacity: .7;
    transition: opacity .3s;
}
.gallery-detail-main:hover .gallery-detail-zoom { opacity: 1; }
.gallery-detail-info {
    padding: 28px 32px;
}
.gallery-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.gallery-detail-meta i { margin-right: 4px; }
.gallery-detail-desc {
    font-size: 15px;
    line-height: 1.85;
    color: #475569;
}
.gallery-detail-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-top: 1px solid var(--border);
    background: #fafbfc;
}
.gallery-detail-nav-item {
    flex: 1;
    min-width: 0;
}
.gallery-detail-nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    transition: color .2s;
}
.gallery-detail-nav-item a:hover { color: var(--primary); }
.gallery-detail-nav-item img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.gallery-detail-nav-item small {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.gallery-detail-nav-item strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gallery-detail-nav-next { text-align: right; }
.gallery-detail-nav-next a { justify-content: flex-end; }
.gallery-detail-back {
    flex-shrink: 0;
}

/* 案例灯箱 */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.gallery-lightbox.active { display: flex; }
.gallery-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 4px;
}
.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.gallery-lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ==========================================================
   全站响应式自适应
   断点：1200 / 992 / 768 / 576
   ========================================================== */

/* ---------- ≤1200px（中大屏） ---------- */
@media (max-width: 1200px) {
    .hero-title { font-size: clamp(28px, 4vw, 44px); }
    .business-home-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- ≤992px（平板横屏） ---------- */
@media (max-width: 992px) {
    :root { --nav-h: 60px; }

    .top-bar { font-size: 12px; padding: 6px 0; }
    .top-bar .top-bar-item { font-size: 12px; }

    .navbar-nav .nav-link { padding: 12px 16px !important; }
    .btn-nav-primary { margin: 8px 0; }
    .nav-cart { margin: 8px 0; }

    .hero-section, .hero-slide { min-height: 400px; }
    .hero-content { max-width: 100%; }
    .hero-title { font-size: clamp(24px, 4vw, 36px); }
    .hero-desc { font-size: 15px; }

    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 24px 16px; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
    .stat-num { font-size: 32px; }

    .section { padding: 56px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 24px; }

    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .business-home-grid { grid-template-columns: repeat(2, 1fr); }

    .product-main-inner { grid-template-columns: 1fr; }
    .product-gallery { border-right: none; border-bottom: 1px solid var(--border); }
    .product-related-grid { grid-template-columns: repeat(2, 1fr); }
    .product-trust-four { grid-template-columns: repeat(2, 1fr); }
    .product-trust { grid-template-columns: repeat(2, 1fr); }
    .product-sidebar-card { position: static; margin-top: 32px; }

    .news-list-thumb { width: 180px; }
    .article-header, .article-body { padding: 28px 24px; }

    .page-hero { padding: 32px 0 28px; }
    .page-wrap { padding: 32px 0 56px; }
    .detail-card { padding: 28px 24px; }
    .sidebar-widget { margin-bottom: 16px; }

    .cta-banner { padding: 40px 32px; }

    .footer-main .row { gap: 24px; }
}

/* ---------- ≤768px（平板竖屏 / 大手机） ---------- */
@media (max-width: 768px) {
    body { font-size: 14px; }

    .top-bar .d-flex { flex-direction: column; gap: 4px; align-items: flex-start; }
    .top-bar .d-flex:last-child { flex-direction: row; }

    .hero-section, .hero-slide { min-height: 320px; }
    .hero-tag { font-size: 12px; padding: 5px 12px; margin-bottom: 16px; }
    .hero-title { font-size: clamp(22px, 5vw, 30px); margin-bottom: 14px; }
    .hero-desc { font-size: 14px; margin-bottom: 24px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .btn-hero-primary, .btn-hero-outline { width: 100%; text-align: center; padding: 12px 24px; }

    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 20px 12px; }
    .stat-num { font-size: 28px; }
    .stat-label { font-size: 12px; }

    .section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
    .section-title { font-size: 22px; }
    .section-desc { font-size: 13px; }

    .feature-grid { grid-template-columns: 1fr; gap: 16px; }
    .business-home-grid { grid-template-columns: 1fr; gap: 16px; }

    .page-hero { padding: 28px 0 24px; }
    .page-hero-title { font-size: clamp(20px, 4vw, 26px); }
    .page-hero-desc { font-size: 13px; }
    .page-wrap { padding: 28px 0 48px; }

    .list-filter-bar { gap: 8px; margin-bottom: 28px; }
    .list-filter-bar .btn { padding: 6px 14px; font-size: 13px; }
    .list-card-body { padding: 16px; }
    .list-card-title { font-size: 15px; }
    .list-card-desc { font-size: 12px; -webkit-line-clamp: 2; }

    .detail-card { padding: 20px 16px; }
    .detail-meta { gap: 12px; font-size: 12px; padding-bottom: 16px; margin-bottom: 20px; }
    .detail-cover { margin-bottom: 20px; }
    .detail-summary { padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }
    .detail-actions { margin-top: 24px; padding-top: 16px; flex-wrap: wrap; }
    .detail-actions .btn { flex: 1; min-width: 120px; font-size: 13px; }

    .sidebar-widget { margin-bottom: 16px; }
    .sidebar-widget-title { padding: 12px 16px; font-size: 14px; }
    .sidebar-widget ul li a { padding: 10px 16px; font-size: 13px; }

    .news-list-card { flex-direction: column; }
    .news-list-thumb { width: 100%; }
    .news-list-thumb img, .news-list-thumb-placeholder { min-height: 180px; }
    .news-list-body { padding: 18px 16px; }
    .news-list-title { font-size: 17px; }

    .article-nav { grid-template-columns: 1fr; gap: 12px; }
    .article-nav-item.text-end { text-align: left; }
    .article-header { padding: 20px 16px; }
    .article-body { padding: 20px 16px; }

    .product-gallery, .product-info-panel, .product-detail-body { padding: 20px 16px; }
    .product-stock-row { flex-wrap: wrap; gap: 12px; }
    .product-stock-row .product-qty { margin-left: 0; width: 100%; justify-content: flex-start; }
    .product-btn-row { gap: 8px; }
    .product-btn-row .btn-product-cart,
    .product-btn-row .btn-product-buy,
    .product-btn-row .btn-product-contact { flex: 1; min-width: 0; padding: 10px 8px; font-size: 13px; }
    .product-detail-page .page-wrap--product { padding-bottom: 88px; }
    .product-related-grid { grid-template-columns: 1fr; }

    .business-card-body { padding: 16px; }
    .business-card-body h5 { font-size: 16px; }

    .page-single-card { padding: 24px 16px; }

    .license-features { margin-top: 0; margin-bottom: 24px; }
    .license-query-card { padding: 20px 16px; }
    .license-query-input { flex-wrap: wrap; }
    .license-query-input .form-control { border-right: 1px solid var(--border); border-radius: var(--radius) !important; margin-bottom: 10px; }
    .license-query-input .btn { width: 100%; border-radius: var(--radius) !important; }
    .license-notice-stack { margin-top: 4px; }

    .contact-form { padding: 20px 16px; }
    .contact-form-head { padding: 18px 16px; }

    .gallery-filter { gap: 8px; margin-bottom: 28px; }
    .gallery-filter-item { padding: 8px 16px; font-size: 13px; }
    .gallery-detail-info { padding: 20px 16px; }
    .gallery-detail-nav { padding: 16px; flex-wrap: wrap; }
    .gallery-detail-nav-item { flex: 1 1 100%; }
    .gallery-detail-nav-next { text-align: left; }
    .gallery-detail-nav-next a { justify-content: flex-start; }
    .gallery-detail-back { width: 100%; text-align: center; order: -1; margin-bottom: 12px; }

    .member-stat-grid { grid-template-columns: 1fr; }
    .member-recharge-presets { grid-template-columns: repeat(2, 1fr); }
    .member-order-steps { flex-wrap: wrap; gap: 12px; }
    .member-order-step-line { display: none; }
    .member-order-card-foot { flex-direction: column; align-items: stretch; }
    .member-order-actions { justify-content: flex-end; }
    .member-order-item-name { white-space: normal; }
    .member-panel { padding: 20px 16px; }
    .member-panel-title { font-size: 18px; }

    .cta-banner { padding: 32px 20px; border-radius: var(--radius); }

    .footer-main { padding: 40px 0; }
    .site-footer .row { gap: 20px; }
    .footer-brand h4 { font-size: 18px; }
    .footer-title { font-size: 14px; margin-bottom: 12px; }
}

/* ---------- ≤576px（手机） ---------- */
@media (max-width: 576px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .top-bar { padding: 5px 0; }
    .top-bar .top-bar-item { font-size: 11px; }

    .nav-logo img { height: 36px; }
    .nav-logo .logo-mark { width: 32px; height: 32px; font-size: 14px; border-radius: 8px; }
    .nav-logo .logo-text { font-size: 18px; }

    .hero-section, .hero-slide { min-height: 260px; }
    .hero-content { padding: 0 4px; }
    .hero-tag { font-size: 11px; }
    .hero-title { font-size: 22px; }
    .hero-desc { font-size: 13px; }

    .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
    .stat-item { padding: 16px 10px; }
    .stat-num { font-size: 24px; }

    .section { padding: 32px 0; }
    .section-title { font-size: 20px; }

    .page-hero { padding: 22px 0 18px; }
    .page-hero-title { font-size: 20px; }
    .page-wrap { padding: 20px 0 40px; }

    .list-filter-bar { gap: 6px; margin-bottom: 20px; }
    .list-filter-bar .btn { padding: 5px 12px; font-size: 12px; }
    .list-card-cover-placeholder i { font-size: 36px; }
    .list-empty { padding: 40px 16px; }
    .list-empty i { font-size: 40px; }

    .detail-card { padding: 16px 14px; }
    .detail-summary { font-size: 13px; padding: 12px 14px; }
    .detail-actions { gap: 8px; }
    .detail-actions .btn { padding: 8px 12px; font-size: 12px; }

    .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 14px; }

    .cms-card { border-radius: var(--radius); }
    .cms-card.p-4, .cms-card.p-lg-5 { padding: 16px !important; }

    .breadcrumb-bar { font-size: 13px; }
    .breadcrumb-bar .container { padding-top: 10px; padding-bottom: 10px; }

    .news-list-body { padding: 14px 12px; }
    .news-list-title { font-size: 15px; }
    .news-list-meta { font-size: 12px; gap: 8px; }

    .business-home-card { padding: 20px 16px; }
    .business-home-card h5 { font-size: 16px; }
    .business-home-icon { width: 48px; height: 48px; border-radius: 12px; }

    .product-trust { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-trust-item { padding: 10px 8px; font-size: 12px; }
    .product-trust-item i { font-size: 18px; margin-bottom: 4px; }

    .gallery-empty { padding: 48px 16px; }
    .gallery-empty i { font-size: 48px; }

    .license-feature-item { padding: 16px 14px; gap: 12px; }
    .license-feature-icon { width: 38px; height: 38px; font-size: 16px; }
    .license-feature-item h3 { font-size: 14px; }
    .license-result-card { padding: 18px 14px; }
    .license-result-head i { font-size: 28px; }
    .license-result-title { font-size: 16px; }

    .contact-info-card { padding: 16px 14px; gap: 12px; }
    .contact-info-icon { width: 42px; height: 42px; font-size: 18px; }

    .member-auth-card { margin: 0 -4px; }
    .member-sidebar-nav ul li a { padding: 10px 14px; font-size: 13px; }
    .member-order-card-head { padding: 12px 14px; }
    .member-order-meta { font-size: 12px; gap: 8px; }

    .footer-bottom { font-size: 12px; padding: 16px 0; }
    .footer-links li a { font-size: 13px; }
}

/* ---------- 触屏优化 ---------- */
@media (hover: none) and (pointer: coarse) {
    .gallery-card:hover { transform: none; }
    .gallery-card:hover .gallery-card-overlay { opacity: 0; }
    .business-card:hover { transform: none; }
    .business-home-card:hover { transform: none; }
    .news-list-card:hover { transform: none; }
    .solution-card:hover { transform: none; }
    .btn-hero-primary:hover { transform: none; }
    .product-sidebar-cta:hover { transform: none; }
}

/* ---------- 暗色模式支持（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f172a;
        --white: #1e293b;
        --text: #e2e8f0;
        --text-muted: #94a3b8;
        --dark: #f8fafc;
        --border: #334155;
        --shadow: 0 4px 24px rgba(0, 0, 0, .3);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, .4);
    }
    body { background: #0f172a; color: #e2e8f0; }
    .main-nav { background: rgba(15, 23, 42, .97); border-bottom-color: #334155; }
    .navbar-nav .nav-link { color: #cbd5e1; }
    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--primary-light); }
    .cms-card, .news-list-card, .business-card, .gallery-card,
    .gallery-detail-card, .product-main-card, .contact-form-card,
    .member-panel, .license-notice-card { background: #1e293b; border-color: #334155; }
    .breadcrumb-bar { background: #1e293b; border-color: #334155; }
    .footer-bottom { background: rgba(0,0,0,.3); }
    img { opacity: .92; }
}

/* ---------- 网盘在线提货 ---------- */
.member-netdisk-modal .modal-header {
    background: linear-gradient(135deg, #7C3AED, #6366F1);
    color: #fff;
    border-bottom: none;
    border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
}
.member-netdisk-modal .modal-header .btn-close { filter: brightness(0) invert(1); }
.member-netdisk-modal .modal-body { padding: 0; }
.member-netdisk-modal .modal-footer { border-top: 1px solid var(--border); }

.netdisk-warning-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid #FDE68A;
}
.netdisk-warning-bar i { font-size: 16px; }

.netdisk-pickup-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.netdisk-pickup-item:last-child { border-bottom: none; }

.netdisk-pickup-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.netdisk-pickup-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.netdisk-pickup-row label {
    flex-shrink: 0;
    width: 60px;
    color: var(--text-muted);
    font-weight: 500;
}
.netdisk-pickup-link {
    flex: 1;
    color: #6366F1;
    word-break: break-all;
    text-decoration: none;
}
.netdisk-pickup-link:hover { text-decoration: underline; }
.netdisk-pickup-code {
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #5B21B6;
    letter-spacing: 1px;
}
.netdisk-copy-btn {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 12px;
}

.netdisk-pickup-note {
    margin: 8px 0;
    padding: 8px 12px;
    background: #F3F4F6;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.netdisk-pickup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}
.netdisk-countdown {
    color: #D97706;
    font-weight: 600;
}

.netdisk-expired .netdisk-expired-box {
    padding: 12px;
    background: #FEE2E2;
    border-radius: 6px;
    color: #DC2626;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}
.netdisk-expired-box i { margin-right: 4px; }

/* 订单详情页网盘区域 */
.netdisk-delivery-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px dashed #DDD6FE;
    font-size: 12px;
}
.netdisk-expiry-tip {
    font-size: 12px;
}
.netdisk-expiry-tip .text-warning {
    color: #D97706 !important;
}

.member-pickup-btn {
    background: #6366F1;
    border-color: #6366F1;
    color: #fff;
}
.member-pickup-btn:hover {
    background: #5558E6;
    border-color: #5558E6;
    color: #fff;
}
