﻿/* ============================
   åˆšåˆšå¥½èµ„æºç½‘ Â· 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: