/* ============================
   刚刚好资源网 · Arctic Tech UI
   墨青科技风 · 时尚大气
   ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --primary: #0d9488;
    --primary-light: #14b8a6;
    --primary-dark: #0f766e;
    --primary-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 45%, #38bdf8 100%);
    --accent: #38bdf8;
    --accent-2: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #f43f5e;
    --purple: #0d9488;
    --ink: #0b1324;
    --bg: #eef3f8;
    --bg-card: rgba(255,255,255,0.86);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --border: rgba(15,23,42,0.08);
    --border-light: rgba(15,23,42,0.05);
    --shadow-sm: 0 2px 10px rgba(15,23,42,0.04);
    --shadow-md: 0 8px 28px rgba(15,23,42,0.07);
    --shadow-lg: 0 18px 48px rgba(15,23,42,0.10);
    --glow: 0 0 24px rgba(13,148,136,0.28);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --tabbar-height: 64px;
    --header-height: 58px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font-display: "Outfit", "Noto Sans SC", system-ui, sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html, body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background:
        radial-gradient(900px 480px at 8% -10%, rgba(56,189,248,.18), transparent 60%),
        radial-gradient(800px 420px at 92% 8%, rgba(13,148,136,.16), transparent 55%),
        radial-gradient(700px 500px at 50% 110%, rgba(34,211,238,.10), transparent 50%),
        linear-gradient(180deg, #e8eef6 0%, #f4f7fb 40%, #eef3f8 100%);
}
body::after {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .32;
    background-image:
        linear-gradient(rgba(15,23,42,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15,23,42,.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 85%);
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; display: block; }
h1,h2,h3,.page-title,.app-logo-text,.stat-value { font-family: var(--font-display); letter-spacing: -.02em; }
@keyframes ggho-fade-up { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
@keyframes ggho-pulse-dot { 0%,100%{box-shadow:0 0 0 0 rgba(13,148,136,.45)} 50%{box-shadow:0 0 0 8px rgba(13,148,136,0)} }
.app-main > * { animation: ggho-fade-up .45s ease both; }

.app-body {
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: calc(var(--tabbar-height) + var(--safe-bottom));
    background: transparent;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.app-header {
    position: fixed; top:0; left:0; right:0; height: var(--header-height);
    background: rgba(255,255,255,.72);
    border-bottom: 1px solid var(--border);
    z-index: 100; box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.app-header-inner {
    max-width: 1200px; margin: 0 auto; height: 100%; padding: 0 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.app-logo { display:flex; align-items:center; gap:10px; color:var(--text-primary); font-weight:800; font-size:17px; }
.app-logo-dot {
    width:11px; height:11px; border-radius:50%;
    background: var(--primary-gradient); flex-shrink:0;
    animation: ggho-pulse-dot 2.4s ease-in-out infinite;
}
.app-logo-text {
    background: linear-gradient(120deg, #0f766e, #0d9488 40%, #0284c7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-family: var(--font-display);
}
.app-header-right { display:flex; align-items:center; gap:12px; }
.header-balance {
    display:flex; align-items:center; gap:6px; padding:6px 14px;
    background: linear-gradient(135deg, rgba(13,148,136,.08), rgba(56,189,248,.10));
    border-radius:999px; cursor:pointer; transition: transform .2s, box-shadow .2s;
    border: 1px solid rgba(13,148,136,.18);
}
.header-balance:hover { box-shadow: var(--glow); }
.header-balance:active { transform: scale(0.96); }
.balance-icon { font-size:14px; }
.balance-text { font-size:14px; font-weight:700; color:var(--primary-dark); font-family:var(--font-display); }
.header-avatar {
    width:36px; height:36px; border-radius:50%; background:var(--primary-gradient); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:700;
    cursor:pointer; overflow:hidden; border:2px solid #fff; box-shadow:0 0 0 2px rgba(13,148,136,.25);
}
.header-avatar img { width:100%; height:100%; object-fit:cover; }
.header-login-btn {
    padding:8px 18px; background:var(--primary-gradient); color:#fff !important;
    border-radius:999px; font-size:13px; font-weight:600;
    box-shadow: 0 6px 18px rgba(13,148,136,.28);
    transition: transform .2s, box-shadow .2s;
}
.header-login-btn:hover { box-shadow: var(--glow); color:#fff !important; }
.header-login-btn:active { transform: scale(0.96); }
.header-logout-btn {
    padding: 7px 12px; font-size: 12.5px; font-weight: 600;
    color: #e11d48 !important; background: #fff1f2;
    border: 1px solid #fecdd3; border-radius: 999px;
    white-space: nowrap;
}
.header-logout-btn:hover { background: #ffe4e6; color: #be123c !important; }
.header-cart-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: #f0fdfa;
    border: 1px solid #ccfbf1; font-size: 16px; text-decoration: none;
}
.header-cart-btn .cart-badge {
    position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 999px; background: #e11d48; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
@media (max-width: 480px) {
    .header-logout-btn { padding: 6px 10px; font-size: 12px; }
    .header-balance .balance-text { font-size: 12px; }
}

/* ====== 主内容区 ====== */
.app-main {
    min-height: calc(100vh - var(--header-height) - var(--tabbar-height));
}

.mall-layout {
    padding: 16px 0 24px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
}

.mall-banner {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
}
.mall-banner__item {
    flex: 1 0 100%;
    scroll-snap-align: start;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.mall-banner__item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.mall-banner--hero .mall-banner__item {
    aspect-ratio: 1920 / 500;
}
.mall-banner--hero .mall-banner__item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
}

/* 顶部公告条 */
.site-notice-bar {
    background: #fffbeb;
    border-bottom: 1px solid #fde68a;
    color: #78350f;
    font-size: 13px;
    line-height: 1.45;
}
.site-notice-bar__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    max-width: 1200px;
    margin: 0 auto;
}
.site-notice-bar__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.site-notice-bar__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.site-notice-bar__track {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}
.site-notice-bar.is-static .site-notice-bar__track {
    white-space: normal;
    flex-wrap: wrap;
}
.site-notice-bar__item a {
    color: #92400e;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.site-notice-bar.is-scrolling .site-notice-bar__viewport {
    overflow: hidden;
}
.site-notice-bar__anim {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
    animation: site-notice-marquee 24s linear infinite;
}
.site-notice-bar.is-scrolling .site-notice-bar__track {
    flex-shrink: 0;
}
@keyframes site-notice-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .site-notice-bar.is-scrolling .site-notice-bar__viewport { animation: none; }
}

/* 公告弹窗 */
.site-notice-popup-mask {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.site-notice-popup-mask.show {
    opacity: 1;
    pointer-events: auto;
}
.site-notice-popup {
    width: min(92vw, 420px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    border: 1px solid #fde68a;
}
.site-notice-popup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.site-notice-popup__tag {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
}
.site-notice-popup__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.06);
    color: #64748b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.site-notice-popup__title {
    padding: 0 18px 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1c1917;
}
.site-notice-popup__body {
    padding: 0 18px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #44403c;
    max-height: 50vh;
    overflow-y: auto;
}
.site-notice-popup__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px 16px;
    border-top: 1px solid #f5f5f4;
}
.site-notice-popup__link {
    margin-right: auto;
    font-size: 13px;
    color: #b45309;
    text-decoration: none;
}
.site-notice-popup__ok {
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    background: #f59e0b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .mall-layout { grid-template-columns: 160px 1fr; gap: 16px; }
}

/* ====== 底部 Tab 导航栏 ====== */
.app-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--tabbar-height) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    padding: 6px 0;
}

.tab-item:active { transform: scale(0.94); }

.tab-item.active {
    color: var(--primary);
}

.tab-item.active .tab-icon {
    transform: translateY(-1px);
}

.tab-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s;
    filter: grayscale(30%);
}

.tab-item.active .tab-icon {
    filter: none;
}

.tab-icon-wrap {
    position: relative;
}

.tab-label {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
}

/* 中间凸起按钮 */
.tab-center {
    margin-top: -14px;
}

.tab-center-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(13, 148, 136,0.45);
    border: 3px solid #fff;
    margin-bottom: 2px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tab-item.tab-center.active .tab-center-btn {
    box-shadow: 0 8px 26px rgba(13, 148, 136,0.55);
    transform: scale(1.05);
}

.tab-center-icon {
    font-size: 24px;
    line-height: 1;
}

.tab-center-label {
    color: var(--text-secondary);
}

.tab-item.tab-center.active .tab-center-label {
    color: var(--primary);
    font-weight: 600;
}

/* ====== 按钮通用样式 ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(13, 148, 136,0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(13, 148, 136,0.4);
    color: #fff;
}

.btn-default {
    background: #fff;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-default:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f7fffd;
}

.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(82,196,26,0.25);
}

.btn-warning {
    background: linear-gradient(135deg, #faad14 0%, #ffc53d 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(250,173,20,0.25);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(255,77,79,0.25);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
    min-height: 48px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    min-height: 32px;
}

.btn-block {
    width: 100%;
}

/* ====== 通用卡片样式 ====== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    background: #fafafa;
}

/* ====== 表单样式 ====== */
.form-item {
    margin-bottom: 18px;
}

.form-item label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-item label .required {
    color: var(--danger);
    margin-right: 3px;
}

/* 统一图片上传控件 */
.file-field {
    position: relative; display: block; width: 100%; cursor: pointer; margin: 0;
}
.file-field__input {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; cursor: pointer; z-index: 2; margin: 0; font-size: 0;
    padding: 0 !important; border: none !important; background: transparent !important;
    box-shadow: none !important; border-radius: 0 !important;
}
.file-field__ui {
    display: flex; align-items: center; gap: 10px;
    min-height: 44px; padding: 6px 10px 6px 6px;
    border: 1px dashed rgba(13,148,136,.38);
    border-radius: 10px;
    background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 70%);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.file-field:hover .file-field__ui,
.file-field:focus-within .file-field__ui {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20,184,166,.12);
    background: #fff;
}
.file-field__btn {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; border-radius: 8px;
    background: linear-gradient(135deg, #0d9488, #14b8a6 55%, #38bdf8);
    color: #fff; font-size: 13px; font-weight: 650; line-height: 1.2;
    box-shadow: 0 4px 12px rgba(13,148,136,.22);
}
.file-field__name {
    flex: 1; min-width: 0; font-size: 12.5px; color: #64748b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-field.has-file .file-field__name { color: #0f766e; font-weight: 600; }
.form-item label.file-field {
    margin-bottom: 0; font-weight: inherit; color: inherit; font-size: inherit;
}

.form-item input,
.form-item select,
.form-item textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14.5px;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid #e8e8ef;
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
    color: #bfbfc7;
}

.form-item input:hover,
.form-item select:hover,
.form-item textarea:hover {
    border-color: #c8c8d5;
}

.form-item input:focus,
.form-item select:focus,
.form-item textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136,0.1);
    background: #f7fffd;
}

.form-item textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ====== 商城 - 分类侧边 ====== */
.mall-sidebar {
    width: auto;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 10px;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    box-shadow: var(--shadow-sm);
}

.mall-sidebar h3 {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 4px;
    color: var(--text-tertiary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cat-list { list-style: none; }

.cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.2s;
    font-size: 14px;
    margin-bottom: 2px;
}

.cat-list li a:hover {
    background: #f5f8ff;
    color: var(--primary);
}

.cat-list li a.active {
    background: linear-gradient(135deg, #ecfdf8, #f0f8ff);
    color: var(--primary);
    font-weight: 600;
}

.cat-list li a .count {
    font-size: 12px;
    color: var(--text-tertiary);
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

.cat-list li a.active .count {
    background: var(--primary);
    color: #fff;
}

/* ====== 商城 - 主区 ====== */
.mall-filter {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.filter-sort {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-sort a {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-sort a:hover {
    background: #f5f8ff;
    color: var(--primary);
}

.filter-sort a.active {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136,0.25);
}

/* ====== 商品列表 ====== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #ecfdf8;
}

.product-card .cover {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #fafafa, #f0f0f0);
    position: relative;
    overflow: hidden;
}

.product-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .cover img {
    transform: scale(1.05);
}

.product-card .cover .tag-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, var(--danger), #ff7875);
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255,77,79,0.3);
}

.product-card .info {
    padding: 12px 14px 14px;
}

.product-card .info .title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-card .info .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.product-card .info .price {
    color: var(--danger);
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-top: 2px;
}

.product-card .info .price .unit {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
}

/* 商城首页：份数 + 加购 + 支付 */
.product-card .card-buy {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.product-card .card-qty {
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    width: fit-content;
    max-width: 100%;
}
.product-card .card-qty-btn {
    width: 30px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}
.product-card .card-qty-btn:hover {
    background: #ecfdf8;
    color: #0d9488;
}
.product-card .card-qty-val {
    width: 40px;
    height: 32px;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    -moz-appearance: textfield;
}
.product-card .card-qty-val::-webkit-outer-spin-button,
.product-card .card-qty-val::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.product-card .card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.product-card .btn-card-cart {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid #99f6e4;
    background: #ecfdf8;
    color: #0f766e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s;
    padding: 0;
}
.product-card .btn-card-cart:hover {
    background: #ccfbf1;
    border-color: #0d9488;
    transform: translateY(-1px);
}
.product-card .btn-card-cart__bag {
    font-size: 15px;
    line-height: 1;
}
.product-card .btn-card-cart__plus {
    position: absolute;
    top: 2px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0d9488;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
    text-align: center;
}
.product-card .btn-card-pay {
    flex: 1;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #0d9488, #0284c7);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .02em;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(13, 148, 136, .25);
}
.product-card .btn-card-pay:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.product-card .info .seller {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-secondary);
}

.product-card .info .seller .avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ====== 商品详情 ====== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-gallery {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.product-gallery .main-img {
    width: 100%;
    aspect-ratio: 1;
    background: #fafafa;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 12px;
}

.product-gallery .main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.product-info .title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-info .price-box {
    background: linear-gradient(135deg, #fff1f0, #fff7f7);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid #ffccc7;
}

.product-info .price-box .label {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 6px;
}

.product-info .price-box .price {
    color: var(--danger);
    font-size: 34px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
}

.product-info .price-box .price .yuan {
    font-size: 18px;
    margin-right: 2px;
    font-weight: 600;
}

.product-info .desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
    font-size: 14px;
}

.product-info .meta-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
}

.product-info .meta-row:last-of-type {
    border-bottom: none;
}

.product-info .meta-row .label {
    width: 100px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.product-info .meta-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.product-info .pay-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.product-info .pay-method {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.product-info .pay-method:hover {
    border-color: var(--primary);
    background: #f5f8ff;
    transform: translateY(-1px);
}

.product-info .pay-method.selected {
    border-color: var(--primary);
    background: #ecfdf8;
    box-shadow: 0 0 0 3px rgba(13, 148, 136,0.1);
}

.product-info .pay-method .icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.product-info .pay-method .name {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-info .pay-method.selected .name {
    color: var(--primary);
    font-weight: 600;
}

.product-info .quantity {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 18px 0;
}

.product-info .quantity .qty-label {
    font-weight: 600;
    color: var(--text-primary);
}

.product-info .qty-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.product-info .qty-input button {
    width: 42px;
    height: 42px;
    background: #fafafa;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: background 0.2s;
}

.product-info .qty-input button:hover {
    background: #f0f0f0;
    color: var(--primary);
}

.product-info .qty-input input {
    width: 60px;
    height: 42px;
    border: none;
    text-align: center;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
}

.product-info .action-btns {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.product-info .action-btns .btn {
    flex: 1;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    min-height: 48px;
}

/* ====== 用户中心 ====== */
.user-layout {
    padding: 16px 0 24px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}

.user-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 16px);
    box-shadow: var(--shadow-sm);
}

.user-sidebar .profile-card {
    background: var(--primary-gradient);
    padding: 28px 20px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-sidebar .profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.user-sidebar .profile-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.user-sidebar .profile-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.user-sidebar .profile-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-sidebar .profile-card .name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.user-sidebar .profile-card .balance {
    margin-top: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.18);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.user-sidebar .profile-card .balance .label {
    font-size: 12px;
    opacity: 0.85;
}

.user-sidebar .profile-card .balance .amount {
    font-size: 22px;
    font-weight: 800;
    margin-top: 4px;
}

.user-sidebar .menu {
    padding: 10px 0;
}

.user-sidebar .menu .group-title {
    padding: 10px 20px 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.user-sidebar .menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 14px;
    margin: 1px 0;
}

.user-sidebar .menu a:hover {
    background: #fafafa;
    color: var(--primary);
}

.user-sidebar .menu a.active {
    background: #f0f8ff;
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
}
.user-sidebar .menu a.menu-logout {
    color: #e11d48;
    margin-top: 6px;
    border-top: 1px solid #f1f5f9;
}
.user-sidebar .menu a.menu-logout:hover {
    background: #fff1f2;
    color: #be123c;
}

.user-sidebar .menu a .menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 500px;
    box-shadow: var(--shadow-sm);
}

.user-content .page-title {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ====== 统计卡片 ====== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #52c41a, #95de64); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #faad14, #ffc53d); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #0d9488, #b37feb); }

.stat-label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, #ecfdf8, #ccfbf1);
    opacity: 0.9;
}

.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #f6ffed, #d9f7be); }
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #fffbe6, #fff1b8); }
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #ecfdf8, #efdbff); }

/* ====== 订单卡片 ====== */
.order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.order-card .order-header {
    background: #fafafa;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.order-card .order-header .order-no {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', Menlo, monospace;
}

.order-card .order-header .status {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending { background: #fff7e6; color: #d48806; }
.status-paid { background: #f6ffed; color: #389e0d; }
.status-success { background: #ecfdf8; color: #0f766e; }
.status-cancel { background: #f5f5f5; color: #8c8c8c; }
.status-fail { background: #fff1f0; color: #cf1322; }

.order-card .order-body {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.order-card .order-product {
    display: flex;
    gap: 14px;
    align-items: center;
}

.order-card .order-product .img {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.order-card .order-product .img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-card .order-product .info .name {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-card .order-product .info .meta {
    font-size: 12px;
    color: var(--text-tertiary);
}

.order-card .order-info {
    text-align: right;
}

.order-card .order-info .amount-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.order-card .order-info .amount {
    color: var(--danger);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.order-card .order-actions {
    padding: 12px 18px;
    border-top: 1px solid var(--border-light);
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* ====== 支付页 ====== */
.pay-page {
    min-height: calc(100vh - var(--header-height) - var(--tabbar-height));
    background: linear-gradient(180deg, #e6fffa 0%, var(--bg) 40%);
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pay-card {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.pay-card .pay-header {
    background: var(--primary-gradient);
    padding: 36px 24px 44px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.pay-card .pay-header::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.pay-card .pay-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    right: -15%;
    width: 240px;
    height: 240px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.pay-card .pay-header .order-no {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 14px;
    background: rgba(255,255,255,0.18);
    display: inline-block;
    padding: 5px 14px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.pay-card .pay-header .amount {
    font-size: 50px;
    font-weight: 800;
    margin: 6px 0;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
}

.pay-card .pay-header .amount .yuan {
    font-size: 24px;
    margin-right: 4px;
    font-weight: 600;
    opacity: 0.9;
}

.pay-card .pay-header .title {
    font-size: 15px;
    opacity: 0.92;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.pay-card .pay-body {
    padding: 28px 24px 24px;
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

.pay-card .pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.pay-card .pay-method {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.pay-card .pay-method:hover {
    border-color: var(--primary);
    background: #f5f8ff;
    transform: translateY(-2px);
}

.pay-card .pay-method.selected {
    border-color: var(--primary);
    background: #ecfdf8;
    box-shadow: 0 0 0 4px rgba(13, 148, 136,0.1);
}

.pay-card .pay-method .icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.pay-card .pay-method .name {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pay-card .pay-method.selected .name {
    color: var(--primary);
    font-weight: 700;
}

.pay-card .pay-actions {
    display: flex;
    gap: 12px;
}

.pay-card .btn-submit {
    flex: 1;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    min-height: 52px;
}

/* ====== 分页 ====== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-info {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: var(--text-tertiary);
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    line-height: 1;
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    transition: all 0.2s;
    font-weight: 500;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #f7fffd;
}

.pagination .current {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(13, 148, 136,0.25);
    font-weight: 700;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== 表格 ====== */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    padding: 0 16px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-width: 640px;
}

.data-table thead {
    background: #fafafa;
}

.data-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #f7fffd;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ====== 模态框 ====== */
.modal-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.modal-mask.show {
    display: flex;
}

.modal-mask .modal {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header .title {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: var(--danger);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-footer .btn {
    min-width: 100px;
}

/* ====== Badge / Tag ====== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.badge-primary { background: #ecfdf8; color: var(--primary); }
.badge-success { background: #f6ffed; color: #52c41a; }
.badge-warning { background: #fffbe6; color: #faad14; }
.badge-danger { background: #fff1f0; color: var(--danger); }
.badge-default { background: #f5f5f5; color: #595959; }
.badge-purple { background: #ecfdf8; color: #0d9488; }

/* ====== 空状态 ====== */
.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-tertiary);
}

.empty-state .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state .empty-text {
    font-size: 14px;
    margin-bottom: 16px;
}

/* ====== 响应式：平板（<=992px） ====== */
@media (max-width: 992px) {
    .container { padding: 0 14px; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

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

    .product-detail { grid-template-columns: 1fr; gap: 16px; }

    .user-layout { grid-template-columns: 1fr; padding: 14px 0 24px; gap: 14px; }
    .user-sidebar { position: static; }

    .mall-layout { display: block; padding-top: 14px; }
    .mall-sidebar { width: 100%; position: static; margin-bottom: 14px; }
}

/* ====== 响应式：手机（<=768px） - 主要适配区 ====== */
@media (max-width: 768px) {
    :root {
        --header-height: 52px;
        --tabbar-height: 60px;
    }

    .container { padding: 0 12px; }

    /* Header 移动端精简 */
    .app-header-inner { padding: 0 14px; }
    .app-logo { font-size: 15px; }
    .app-logo-text { -webkit-text-fill-color: var(--text-primary); background: none; }
    .header-balance { padding: 5px 12px; gap: 4px; }
    .balance-text { font-size: 13px; }
    .header-avatar { width: 32px; height: 32px; font-size: 13px; }

    /* Tabbar 移动端优化 */
    .tab-icon { font-size: 20px; }
    .tab-label { font-size: 10.5px; }
    .tab-center { margin-top: -12px; }
    .tab-center-btn { width: 48px; height: 48px; }
    .tab-center-icon { font-size: 22px; }

    /* 商城 */
    .mall-filter {
        padding: 12px;
        border-radius: var(--radius-md);
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    .filter-sort {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
        flex-wrap: nowrap;
    }
    .filter-sort a {
        flex-shrink: 0;
        padding: 7px 13px;
        font-size: 13px;
    }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { border-radius: var(--radius-md); }
    .product-card .info { padding: 10px 12px 12px; }
    .product-card .info .title { font-size: 13px; min-height: 36px; margin-bottom: 6px; }
    .product-card .info .meta { font-size: 11.5px; margin-bottom: 8px; }
    .product-card .info .price { font-size: 17px; }
    .product-card .card-qty { height: 30px; }
    .product-card .card-qty-btn { width: 28px; height: 30px; font-size: 15px; }
    .product-card .card-qty-val { width: 34px; height: 30px; font-size: 12px; }
    .product-card .btn-card-cart,
    .product-card .btn-card-pay { height: 34px; }
    .product-card .btn-card-pay { font-size: 12.5px; }

    /* 商品详情 */
    .product-gallery { padding: 14px; border-radius: var(--radius-md); }
    .product-info { padding: 16px; border-radius: var(--radius-md); }
    .product-info .title { font-size: 17px; margin-bottom: 12px; }
    .product-info .price-box { padding: 14px 16px; margin-bottom: 16px; }
    .product-info .price-box .price { font-size: 30px; }
    .product-info .desc { font-size: 14px; }
    .product-info .meta-row { padding: 10px 0; font-size: 13.5px; }
    .product-info .meta-row .label { width: 80px; }
    .product-info .pay-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin: 14px 0;
    }
    .product-info .pay-method { padding: 10px 6px; border-radius: var(--radius-sm); }
    .product-info .pay-method .icon { font-size: 20px; }
    .product-info .pay-method .name { font-size: 11px; }
    .product-info .quantity { flex-direction: column; align-items: flex-start; gap: 10px; margin: 14px 0; }
    .product-info .action-btns { flex-direction: column; gap: 10px; margin-top: 18px; }
    .product-info .action-btns .btn { width: 100%; padding: 13px; font-size: 15px; min-height: 46px; }

    /* 用户中心 */
    .user-layout { padding: 12px 0 20px; gap: 12px; }
    .user-sidebar .profile-card { padding: 24px 18px; }
    .user-sidebar .profile-card .avatar { width: 64px; height: 64px; font-size: 24px; margin-bottom: 10px; }
    .user-sidebar .profile-card .name { font-size: 15px; }
    .user-sidebar .profile-card .balance { padding: 10px; margin-top: 12px; }
    .user-sidebar .profile-card .balance .amount { font-size: 19px; }
    .user-sidebar .menu a { padding: 12px 20px; font-size: 14.5px; }
    .user-content { padding: 16px; border-radius: var(--radius-md); min-height: 400px; }
    .user-content .page-title { font-size: 16px; padding-bottom: 12px; margin-bottom: 16px; }

    /* 统计 */
    .stats-grid { gap: 10px; }
    .stat-card { padding: 14px; border-radius: var(--radius-md); }
    .stat-label { font-size: 12px; margin-bottom: 6px; }
    .stat-value { font-size: 20px; }
    .stat-icon { width: 38px; height: 38px; font-size: 16px; right: 12px; }

    /* 订单卡片 */
    .order-card { border-radius: var(--radius-md); margin-bottom: 12px; }
    .order-card .order-header {
        padding: 10px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        font-size: 12px;
    }
    .order-card .order-body {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .order-card .order-product { gap: 10px; }
    .order-card .order-product .img { width: 60px; height: 60px; border-radius: var(--radius-sm); }
    .order-card .order-info { text-align: left; }
    .order-card .order-info .amount { text-align: left; font-size: 17px; }
    .order-card .order-actions {
        padding: 10px 14px;
        text-align: right;
        justify-content: flex-end;
    }

    /* 支付页 */
    .pay-page { padding: 18px 12px; }
    .pay-card { border-radius: var(--radius-lg); max-width: 100%; }
    .pay-card .pay-header { padding: 30px 18px 40px; }
    .pay-card .pay-header .amount { font-size: 42px; }
    .pay-card .pay-header .amount .yuan { font-size: 20px; }
    .pay-card .pay-header .title { font-size: 14px; }
    .pay-card .pay-body { padding: 24px 18px 20px; }
    .pay-card .pay-methods { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .pay-card .pay-method { padding: 14px 8px; border-radius: var(--radius-sm); }
    .pay-card .pay-method .icon { font-size: 24px; }
    .pay-card .pay-method .name { font-size: 11.5px; }
    .pay-card .pay-actions { flex-direction: column; }
    .pay-card .btn-submit { width: 100%; min-height: 50px; font-size: 15.5px; border-radius: var(--radius-md); }

    /* 表单 */
    .form-item { margin-bottom: 16px; }
    .form-item label { font-size: 13.5px; margin-bottom: 6px; }
    .form-item input,
    .form-item select,
    .form-item textarea {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 15px;
        border-radius: var(--radius-md);
    }
    .form-item textarea { min-height: 100px; padding: 12px 14px; }
    .form-row { grid-template-columns: 1fr; gap: 14px; }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 16px;
        margin-top: 20px;
    }
    .form-actions .btn { width: 100%; }

    /* 按钮 */
    .btn {
        min-height: 44px;
        padding: 10px 18px;
        font-size: 14px;
        border-radius: var(--radius-md);
    }
    .btn-sm { min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
    .btn-lg { padding: 13px 28px; font-size: 15px; min-height: 50px; }
    .btn-group { gap: 8px; flex-wrap: wrap; }

    /* 分页 */
    .pagination { padding: 20px 0 4px; gap: 6px; }
    .pagination a, .pagination span {
        min-width: 36px; height: 36px; padding: 0 10px;
        font-size: 13px; border-radius: var(--radius-sm);
    }

    /* 模态框 */
    .modal-mask { padding: 12px; align-items: flex-end; }
    .modal-mask .modal {
        max-width: 100%;
        width: 100%;
        max-height: 88vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    .modal-header { padding: 16px 18px; }
    .modal-header .title { font-size: 15px; }
    .modal-body { padding: 16px 18px; }
    .modal-footer {
        padding: 12px 18px;
        gap: 10px;
    }
    .modal-footer .btn { flex: 1; min-width: 0; }

    /* 表格 */
    .table-wrap { margin: 0 -12px; padding: 0 12px; }
    .data-table { min-width: 640px; font-size: 13px; }
    .data-table th, .data-table td { padding: 12px 10px; }
}

/* ====== 响应式：小屏手机（<=480px） ====== */
@media (max-width: 480px) {
    .container { padding: 0 10px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card .info .title { font-size: 12.5px; min-height: 34px; }
    .product-card .info .price { font-size: 16px; }

    .stats-grid { gap: 8px; }
    .stat-card { padding: 12px; border-radius: var(--radius-sm); }
    .stat-value { font-size: 18px; }

    .product-info .pay-methods { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .product-info .pay-method .icon { font-size: 18px; }
    .product-info .pay-method .name { font-size: 10.5px; }

    .pay-card .pay-methods { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .pay-card .pay-method { padding: 12px 6px; }
    .pay-card .pay-header .amount { font-size: 36px; }

    .btn { min-height: 42px; padding: 9px 14px; font-size: 13.5px; border-radius: var(--radius-sm); }
    .btn-sm { min-height: 32px; padding: 6px 10px; font-size: 12px; }

    .form-item input,
    .form-item select,
    .form-item textarea {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 14.5px;
        border-radius: var(--radius-sm);
    }
}

/* ============================
   旧类名兼容（防止部分页面未更新引用报错）
   ============================ */
/* 旧导航兼容 */
.page-header { display: none; }
.site-nav { display: none; }
body.landing-page .site-nav { display: block; }
.user-nav { display: none; }
.nav-toggle { display: none !important; }
.nav-mask { display: none !important; }

/* 旧模板/海报页兼容 */
.tpl-editor { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.tpl-canvas-wrap {
    background: #fff; border-radius: var(--radius-lg); padding: 20px;
    display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.tpl-canvas-toolbar {
    display: flex; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px; flex-wrap: wrap;
}
.tpl-canvas {
    flex: 1; display: flex; justify-content: center; align-items: center;
    background: #f5f7fa; border-radius: var(--radius-md); padding: 20px; min-height: 500px;
    position: relative;
}
.tpl-preview {
    position: relative; background: #fff; box-shadow: var(--shadow-md);
    transform-origin: center;
}
.tpl-area {
    position: absolute; border: 2px dashed var(--primary);
    cursor: move; display: flex; align-items: center; justify-content: center;
    background: rgba(13, 148, 136,0.05); transition: background 0.2s;
}
.tpl-area:hover { background: rgba(13, 148, 136,0.12); }
.tpl-area.selected { border-color: var(--danger); background: rgba(255,77,79,0.08); }
.tpl-area .area-label {
    font-size: 11px; background: var(--primary); color: #fff;
    padding: 2px 6px; border-radius: 4px; white-space: nowrap;
}
.tpl-sidebar {
    background: #fff; border-radius: var(--radius-lg); padding: 20px;
    height: fit-content; position: sticky; top: calc(var(--header-height) + 16px);
    box-shadow: var(--shadow-sm);
}
.tpl-sidebar .section { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.tpl-sidebar .section:last-child { border: none; }
.tpl-sidebar .section-title {
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}

.templates-grid, .poster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .tpl-editor { grid-template-columns: 1fr; }
    .tpl-sidebar { position: static; }
    .tpl-canvas-wrap { padding: 14px; border-radius: var(--radius-md); }
    .tpl-canvas-toolbar { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 10px; flex-wrap: nowrap; }
    .tpl-canvas-toolbar .btn { flex-shrink: 0; min-height: 38px; }
    .tpl-canvas { padding: 12px; min-height: 400px; }
    .tpl-sidebar { padding: 16px; border-radius: var(--radius-md); }
    .templates-grid, .poster-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
    .templates-grid, .poster-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* 旧登录注册页兼容 */
.auth-page {
    min-height: calc(100vh - var(--header-height) - var(--tabbar-height));
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 50%, #0d1117 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.auth-card .auth-logo {
    text-align: center; margin-bottom: 24px;
    font-size: 22px; font-weight: 800; color: #fff;
}
.auth-card .auth-logo .dot {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    background: var(--primary-gradient); margin-right: 8px;
    box-shadow: 0 0 12px rgba(13, 148, 136,0.6);
}
.auth-card .auth-subtitle {
    text-align: center; color: rgba(255,255,255,0.5); margin-bottom: 26px;
    font-size: 14px;
}
.auth-card .form-item label { color: rgba(255,255,255,0.85); }
.auth-card .form-item input,
.auth-card .form-item select {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}
.auth-card .form-item input::placeholder { color: rgba(255,255,255,0.3); }
.auth-card .form-item input:focus { background: rgba(255,255,255,0.08); }
.auth-card .form-actions { border-color: rgba(255,255,255,0.08); }
.auth-card .btn-primary-gradient {
    width: 100%; padding: 13px; font-size: 15px; font-weight: 700; border: none;
    background: var(--primary-gradient); color: #fff;
    box-shadow: 0 4px 16px rgba(13, 148, 136,0.35);
    min-height: 48px; border-radius: var(--radius-md);
}
.auth-card .auth-links {
    display: flex; justify-content: space-between; margin-top: 14px;
    font-size: 13px;
}
.auth-card .auth-links a { color: #5eead4; }
.auth-card .auth-switch {
    text-align: center; margin-top: 22px; padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5); font-size: 14px;
}
.auth-card .avatar-upload {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.auth-card .avatar-preview {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px; font-weight: 700;
    overflow: hidden; border: 2px solid rgba(255,255,255,0.2);
}
.auth-card .avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
    .auth-page { padding: 18px 12px; min-height: calc(100vh - var(--header-height) - var(--tabbar-height) + 20px); }
    .auth-card { padding: 28px 20px; border-radius: var(--radius-lg); }
    .auth-card .auth-logo { font-size: 19px; margin-bottom: 18px; }
    .auth-card .auth-subtitle { margin-bottom: 20px; font-size: 13px; }
    .auth-card .btn-primary-gradient { min-height: 48px; font-size: 15px; }
}

/* 产品Tabs兼容 */
.product-tabs { margin-top: 24px; }
.product-tabs .tab-nav {
    display: flex; gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 16px;
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}
.product-tabs .tab-nav a {
    padding: 14px 24px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-size: 14px;
}
.product-tabs .tab-nav a:hover { color: var(--primary); }
.product-tabs .tab-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: #f7fffd;
}
.product-tabs .tab-content {
    background: #fff;
    padding: 22px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    min-height: 260px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .product-tabs { margin-top: 18px; }
    .product-tabs .tab-nav {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap; white-space: nowrap;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .product-tabs .tab-nav a { padding: 12px 16px; font-size: 13.5px; flex-shrink: 0; }
    .product-tabs .tab-content { padding: 16px; border-radius: 0 0 var(--radius-md) var(--radius-md); font-size: 14px; line-height: 1.8; }
}

/* ============================
   Arctic Tech · 组件强化层
   ============================ */
.card, .product-card, .stat-card, .order-card, .user-menu-item, .pay-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-md) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.product-card, .stat-card, .card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover, .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(13,148,136,.22) !important;
}
.btn-primary, .btn-submit, .btn-primary-gradient {
    background: var(--primary-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(13,148,136,.28) !important;
    font-weight: 600;
    letter-spacing: .02em;
}
.btn-primary:hover, .btn-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
.app-tabbar {
    background: rgba(255,255,255,.82) !important;
    backdrop-filter: blur(18px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
    border-top: 1px solid var(--border) !important;
    box-shadow: 0 -8px 28px rgba(15,23,42,.05) !important;
}
.tab-item.active .tab-label { color: var(--primary-dark) !important; font-weight: 700; }
.tab-center-btn {
    background: var(--primary-gradient) !important;
    box-shadow: 0 8px 20px rgba(13,148,136,.35) !important;
}
.pay-page {
    background: transparent !important;
    min-height: 100vh;
    display: flex; justify-content: center; align-items: flex-start;
    padding: 28px 16px;
}
.pay-card .pay-header {
    background: linear-gradient(135deg, #0b1324 0%, #0f766e 55%, #0284c7 100%) !important;
}
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background: transparent !important;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: rgba(255,255,255,.88) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-xl) !important;
    padding: 36px 30px !important;
    box-shadow: var(--shadow-lg) !important;
    animation: ggho-fade-up .5s ease both;
    backdrop-filter: blur(16px);
}
.auth-card .auth-logo {
    text-align: center; margin-bottom: 8px;
    font-size: 21px; font-weight: 800; color: var(--text-primary);
    font-family: var(--font-display);
}
.auth-card .auth-logo .dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary-gradient); margin-right: 8px;
    box-shadow: 0 0 10px rgba(13,148,136,.5);
    vertical-align: middle;
}
.auth-card .auth-subtitle {
    text-align: center; color: var(--text-secondary);
    margin-bottom: 24px; font-size: 14px;
}
.auth-card .form-item { margin-bottom: 16px; }
.auth-card .form-item label {
    color: var(--text-primary) !important; font-weight: 600;
    display: block; margin-bottom: 8px; font-size: 13.5px;
}
.auth-card .form-item input,
.auth-card .form-item select,
.auth-card .form-item textarea {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    min-height: 48px;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.auth-card .form-item input::placeholder,
.auth-card .form-item textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}
.auth-card .form-item input:focus,
.auth-card .form-item select:focus,
.auth-card .form-item textarea:focus {
    background: #fff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14) !important;
}
.auth-card .auth-status-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 16px;
    margin-bottom: 20px;
}
.auth-card .auth-status-card .acct {
    color: var(--text-secondary); font-size: 13px; margin-bottom: 12px;
}
.auth-card .auth-status-card .acct b { color: var(--text-primary); }
.auth-card .auth-status-row {
    display: flex; align-items: flex-start; gap: 12px;
}
.auth-card .auth-status-row .ico { font-size: 36px; line-height: 1; flex-shrink: 0; }
.auth-card .auth-status-row .ttl { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.auth-card .auth-status-row .desc {
    color: var(--text-secondary); font-size: 13px; margin-top: 4px; line-height: 1.55;
}
.auth-card .auth-links a { color: var(--primary-dark); font-weight: 500; }
.auth-card .auth-switch { color: var(--text-secondary); border-top-color: var(--border); }
.auth-card .auth-switch a { color: var(--primary); font-weight: 600; }

/* 通用渐变占位 / 强调色（替代页面内联旧紫色） */
.u-gradient-brand { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 45%, #38bdf8 100%) !important; color: #fff !important; }
.u-gradient-hero { background: linear-gradient(135deg, #0b1324 0%, #0f766e 55%, #0284c7 100%) !important; color: #fff !important; }
.u-gradient-text {
    background: linear-gradient(120deg, #0f766e, #14b8a6 40%, #0284c7);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.u-text-brand { color: var(--primary-dark) !important; }
.u-bg-soft { background: #f0fdfa !important; }
.u-border-brand { border-color: var(--primary) !important; }
.pay-method.selected, .pay-methods .pay-method.selected {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(13,148,136,.15) !important;
    background: rgba(13,148,136,.04) !important;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(13,148,136,.12) !important;
}

/* ============================
   官网落地页（index/index.php）
   ============================ */
body.landing-page {
    background: #0b1324;
    color: #e2e8f0;
}
body.landing-page::before,
body.landing-page::after { opacity: 0; }

body.landing-page .site-nav {
    position: sticky; top: 0; z-index: 200;
    background: rgba(11,19,36,.78);
    border-bottom: 1px solid rgba(255,255,255,.06);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
body.landing-page .site-nav .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 64px; max-width: 1200px;
}
body.landing-page .site-logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 18px; font-weight: 800; color: #fff;
    font-family: var(--font-display);
}
body.landing-page .site-logo .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 12px rgba(20,184,166,.55);
    animation: ggho-pulse-dot 2.4s ease-in-out infinite;
}
body.landing-page .site-nav-links {
    display: flex; align-items: center; gap: 28px;
}
body.landing-page .site-nav-links a {
    color: rgba(226,232,240,.82); font-size: 14px; font-weight: 500;
    transition: color .2s;
}
body.landing-page .site-nav-links a:hover { color: #5eead4; }

body.landing-page .hero {
    position: relative; overflow: hidden;
    padding: 72px 0 88px;
    background: linear-gradient(135deg, #0b1324 0%, #0f766e 52%, #0284c7 100%);
}
body.landing-page .hero-particles {
    position: absolute; inset: 0; pointer-events: none; opacity: .35;
    background:
        radial-gradient(circle at 20% 30%, rgba(56,189,248,.25) 0, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(20,184,166,.22) 0, transparent 40%);
}
body.landing-page .hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .18;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
body.landing-page .hero-content {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
body.landing-page .hero-text .badge {
    display: inline-block; padding: 6px 14px; margin-bottom: 18px;
    border-radius: 999px; font-size: 13px; font-weight: 600;
    background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14);
    color: #ccfbf1;
}
body.landing-page .hero-text h1 {
    font-size: clamp(32px, 5vw, 52px); line-height: 1.15; color: #fff;
    margin-bottom: 18px; font-family: var(--font-display);
}
body.landing-page .hero-text h1 .gradient {
    background: linear-gradient(120deg, #5eead4, #38bdf8 55%, #a5f3fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.landing-page .hero-text p {
    font-size: 16px; line-height: 1.75; color: rgba(226,232,240,.78);
    max-width: 520px; margin-bottom: 28px;
}
body.landing-page .hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
body.landing-page .btn-outline-light {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px;
    color: #fff; border: 1.5px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.06); transition: all .2s;
}
body.landing-page .btn-outline-light:hover {
    background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.55); color: #fff;
}
body.landing-page .hero-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; padding: 28px 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    backdrop-filter: blur(12px);
}
body.landing-page .hero-card .mock-title {
    font-size: 14px; font-weight: 700; color: #ecfdf5; margin-bottom: 16px;
}
body.landing-page .hero-card .mock-line {
    height: 8px; border-radius: 6px; margin-bottom: 10px;
    background: rgba(255,255,255,.12);
}
body.landing-page .hero-card .mock-line.medium { width: 72%; }
body.landing-page .hero-card .mock-line.short { width: 48%; margin-bottom: 0; }
body.landing-page .hero-card .mock-chip {
    height: 48px; border-radius: 8px;
    background: rgba(13,148,136,.18);
    display: flex; align-items: center; justify-content: center;
    color: #7dd3fc; font-size: 13px;
}
body.landing-page .hero-card .mock-btn {
    margin-top: 18px; padding: 12px; text-align: center; border-radius: 10px;
    background: var(--primary-gradient); color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 8px 24px rgba(13,148,136,.35);
}

body.landing-page .features { padding: 80px 0; background: #f4f7fb; color: var(--text-primary); }
body.landing-page .section-title { text-align: center; margin-bottom: 48px; }
body.landing-page .section-title h2 {
    font-size: clamp(26px, 4vw, 36px); font-weight: 800; color: var(--text-primary);
    margin-bottom: 12px; font-family: var(--font-display);
}
body.landing-page .section-title p { color: var(--text-secondary); font-size: 15px; }
body.landing-page .features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px;
}
body.landing-page .feature-card {
    background: rgba(255,255,255,.92); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
body.landing-page .feature-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
}
body.landing-page .feature-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(56,189,248,.14));
}
body.landing-page .feature-card h3 {
    font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary);
}
body.landing-page .feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }

body.landing-page .site-footer {
    background: linear-gradient(180deg, #0b1324 0%, #060a14 100%);
    color: rgba(226,232,240,.72); padding: 56px 0 28px;
}
body.landing-page .site-footer h4 {
    color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-display);
}
body.landing-page .site-footer a { color: rgba(226,232,240,.85); }
body.landing-page .site-footer a:hover { color: #5eead4; }
body.landing-page .footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px; margin-bottom: 36px;
}
body.landing-page .footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 13px; color: rgba(226,232,240,.5);
}

@media (max-width: 900px) {
    body.landing-page .hero-content { grid-template-columns: 1fr; gap: 36px; }
    body.landing-page .hero { padding: 48px 0 64px; }
    body.landing-page .site-nav-links { gap: 16px; font-size: 13px; }
}
@media (max-width: 640px) {
    body.landing-page .site-nav .container { flex-direction: column; gap: 12px; padding: 12px 16px; }
    body.landing-page .site-nav-links { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
    body.landing-page .hero-btns { flex-direction: column; }
    body.landing-page .hero-btns .btn { width: 100%; justify-content: center; }
}

/* 前台操作：宽屏用左侧菜单，窄屏用底栏 */
@media (min-width: 993px) {
    .app-tabbar { display: none !important; }
    .app-body { padding-bottom: 0; }
    .app-main { min-height: calc(100vh - var(--header-height)); }
}
@media (max-width: 992px) {
    /* 我的页：手机端展示功能入口网格，不再隐藏菜单 */
    .user-layout {
        display: flex; flex-direction: column; gap: 12px;
        padding: 12px 12px 24px;
        max-width: 100%;
    }
    .user-sidebar {
        position: static; width: 100%; border-radius: var(--radius-lg);
    }
    .user-sidebar .menu {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px;
        background: #fff;
    }
    .user-sidebar .menu .group-title { display: none; }
    .user-sidebar .menu a {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 4px; margin: 0; padding: 12px 6px; text-align: center;
        border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
        font-size: 12px; line-height: 1.3; color: var(--text-primary);
        min-height: 64px;
    }
    .user-sidebar .menu a.active {
        background: #ecfdf8; border-color: #99f6e4; color: var(--primary-dark); font-weight: 600;
    }
    .user-sidebar .menu a.menu-logout {
        grid-column: 1 / -1;
        flex-direction: row; gap: 8px; min-height: 46px;
        background: #fff1f2; border-color: #fecdd3; color: #e11d48; font-weight: 600;
    }
    .user-content { padding: 0; width: 100%; overflow: hidden; }
    .user-content .page-title { padding: 0 2px; font-size: 18px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .quick-actions { gap: 8px; }
    .quick-actions .qa-btn { flex: 1 1 calc(50% - 8px); justify-content: center; min-height: 42px; }

    .mall-sidebar h3 { display: none; }
    .mall-sidebar { padding: 8px; overflow: hidden; }
    .cat-list {
        display: flex; overflow-x: auto; gap: 6px;
        -webkit-overflow-scrolling: touch; padding-bottom: 4px;
    }
    .cat-list li { flex-shrink: 0; }
    .cat-list li a { margin-bottom: 0; white-space: nowrap; }
}
.mall-search-input {
    padding: 7px 12px; border: 1px solid #d9d9d9; border-radius: 6px; width: 240px; max-width: 100%;
}
.quick-actions {
    display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px;
}
.quick-actions .qa-btn {
    display: inline-flex; align-items: center; padding: 8px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--text-primary);
}
.quick-actions .qa-btn:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 768px) {
    .mall-filter { flex-direction: column; align-items: stretch; gap: 10px; }
    .mall-search-input { width: 100%; }
    .product-info .action-btns {
        position: sticky; bottom: calc(var(--tabbar-height) + 8px);
        background: #fff; padding: 10px 0 4px; z-index: 6;
        box-shadow: 0 -8px 20px rgba(15,23,42,.06);
    }

    /* 商品详情 / 模板编辑 / 表单：手机可读可点 */
    .product-detail { gap: 12px; }
    .product-gallery .main-img { max-height: 52vw; }
    .product-tabs .tab-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .product-tabs .tab-nav a { flex-shrink: 0; padding: 12px 16px; font-size: 13.5px; }
    .order-tpl-box select { font-size: 16px; } /* iOS 防自动缩放 */
    .form-item input, .form-item select, .form-item textarea { font-size: 16px; }

    .tpl-editor {
        display: flex; flex-direction: column; gap: 12px;
    }
    .tpl-editor > div:last-child {
        position: static !important; max-height: none !important;
        padding: 16px !important; border-radius: 12px;
    }
    .tpl-canvas-toolbar {
        flex-direction: column; align-items: stretch; gap: 8px;
    }
    .tpl-canvas-toolbar > span { font-size: 14px !important; }
    .tpl-canvas-toolbar > div {
        margin-left: 0 !important; display: grid !important;
        grid-template-columns: 1fr 1fr; gap: 8px !important;
    }
    .tpl-canvas-toolbar .btn { width: 100%; min-height: 42px; }
    .tpl-canvas {
        min-height: 280px; padding: 10px; overflow-x: auto;
    }
    .tpl-preview img, #coverImg { max-width: 100% !important; height: auto !important; }
    #areaPanel {
        left: 12px !important; right: 12px !important; width: auto !important;
        top: auto !important; bottom: calc(var(--tabbar-height) + 12px) !important;
        max-height: 42vh !important;
    }

    .user-content .card { overflow-x: auto; }
    .table-wrap, .data-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .pay-methods { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-info .pay-methods { grid-template-columns: repeat(2, 1fr); }
    .tpl-canvas-toolbar > div { grid-template-columns: 1fr; }
}

