/* ============================================================
   store.css — 商城公开站点样式
   主色：蓝色 #2563eb —— 专业信任感
   支持 OSS CDN 加速，SEO 友好
   ============================================================ */

:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --brand-light: #eff6ff;
    --accent: #7c3aed;
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.1);
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text); background: #fff; margin: 0;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ===== 顶部导航 ===== */
.navbar-store {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    transition: box-shadow .2s;
}
.navbar-store.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.06); }
.navbar-store .container-xl { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.navbar-brand-store {
    font-size: 1.3rem; font-weight: 800; color: var(--text);
    display: flex; align-items: center; gap: 9px;
    letter-spacing: -.02em; flex: 0 1 auto; min-width: 0;
}
.navbar-brand-store .brand-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand) 0%, #7c3aed 100%);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.navbar-brand-store .brand-tag {
    font-size: 0.7rem; color: var(--muted); font-weight: 500;
    border-left: 1px solid var(--border); padding-left: 8px; margin-left: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(12px, 1.35vw, 24px); flex: 0 0 auto; }
.nav-links > a {
    color: var(--muted); font-size: 0.91rem; font-weight: 500;
    transition: color .15s; position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links > a::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--brand);
    border-radius: 1px; transform: scaleX(0); transition: transform .2s;
}
.nav-links > a:hover, .nav-links > a.active { color: var(--brand); }
.nav-links > a:hover::after, .nav-links > a.active::after { transform: scaleX(1); }

.nav-auth-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.nav-auth-actions a {
    min-width: 64px; height: 36px; padding: 0 17px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.86rem; font-weight: 600; line-height: 1; white-space: nowrap;
    text-decoration: none; border: 1px solid transparent;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .18s ease;
}
.nav-auth-actions a::before, .nav-auth-actions a::after { content: none; }
.btn-nav-login {
    color: var(--brand) !important; background: #fff;
    border-color: #3b82f6 !important;
}
.btn-nav-login:hover {
    color: var(--brand-dark) !important; background: #f8fbff;
    border-color: var(--brand-dark) !important;
    box-shadow: 0 4px 12px rgba(37,99,235,.12);
    transform: translateY(-1px);
}
.btn-nav-register {
    color: #fff !important; background: #3b82f6;
    border-color: #3b82f6 !important;
    box-shadow: 0 3px 10px rgba(37,99,235,.2);
}
.btn-nav-register:hover {
    color: #fff !important; background: var(--brand);
    border-color: var(--brand) !important;
    box-shadow: 0 5px 14px rgba(37,99,235,.26);
    transform: translateY(-1px);
}
.nav-auth-actions a:active { transform: translateY(0); box-shadow: none; }
.nav-auth-actions a:focus-visible {
    outline: 3px solid rgba(59,130,246,.22); outline-offset: 2px;
}

@media (max-width: 1399px) {
    .navbar-store .container-xl { gap: 18px; }
    .navbar-brand-store .brand-tag { max-width: 185px; }
    .nav-links { gap: 14px; }
    .nav-links > a { font-size: 0.86rem; }
}
@media (max-width: 1199px) {
    .navbar-brand-store .brand-tag { display: none !important; }
}

/* 移动端菜单 */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; color: var(--text); cursor: pointer; }
@media (max-width: 1080px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; flex-direction: column; gap: 0; padding: 12px 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,.08);
    }
    .nav-links.show { display: flex; }
    .nav-links > a { padding: 12px 0; width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-links > a:last-of-type { border-bottom: none; }
    .nav-auth-actions, .nav-user-actions {
        display: grid; grid-template-columns: 1fr 1fr;
        gap: 10px; width: 100%; padding: 14px 0 4px;
    }
    .nav-auth-actions a, .nav-user-actions a { width: 100%; height: 40px; }
    .mobile-toggle { display: block; }
}

/* ===== 公共区块 ===== */
.container-xl { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 68px 0; }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -.5px; }
.section-subtitle { text-align: center; color: var(--muted); font-size: 1rem; margin-bottom: 40px; }

/* ===== 按钮 ===== */
.btn-primary-lg {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff; padding: 14px 32px; border-radius: 10px; border: none;
    font-weight: 600; font-size: 1rem;
    box-shadow: 0 6px 20px rgba(37,99,235,.3);
    transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,99,235,.4); color: #fff; }
.btn-outline-lg {
    background: #fff; color: var(--text); padding: 14px 32px; border-radius: 10px;
    border: 1.5px solid var(--border); font-weight: 600; font-size: 1rem;
    transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer;
}
.btn-outline-lg:hover { border-color: var(--brand); color: var(--brand); }

/* ===== 登录态导航 ===== */
.nav-user-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-user-actions a {
    height: 36px; padding: 0 14px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .84rem; font-weight: 600; white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s;
}
.nav-user-actions a::before, .nav-user-actions a::after { content: none; }
.btn-nav-dashboard { color: #fff !important; background: var(--brand); border: 1px solid var(--brand); }
.btn-nav-dashboard:hover { background: var(--brand-dark); box-shadow: 0 4px 12px rgba(37,99,235,.2); }
.btn-nav-logout { color: #64748b !important; background: #fff; border: 1px solid #dbe2ea; }
.btn-nav-logout:hover { color: #dc2626 !important; border-color: #fecaca; background: #fffafa; }

/* ===== 公共站点信任栏：更紧凑的 2×2 移动布局 ===== */
.trust-bar { padding: 16px 0; }
.trust-item { gap: 11px; padding: 7px 20px 7px 0; align-items: center; }
.trust-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 16px; }
.trust-title { font-size: .84rem; margin-bottom: 2px; }
.trust-desc { font-size: .74rem; }
@media (max-width: 900px) {
    .trust-bar { padding: 10px 0; }
    .trust-bar .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .trust-item, .trust-item:nth-child(3), .trust-item:last-child { padding: 10px 0; border-bottom: 1px solid #eef2f7; }
    .trust-item:nth-child(3), .trust-item:nth-child(4) { border-bottom: 0; }
}
@media (max-width: 500px) {
    .trust-bar .inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px; gap: 0 12px; }
    .trust-item { gap: 8px; }
    .trust-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; }
    .trust-title { font-size: .75rem; }
    .trust-desc { display: none; }
}

/* ===== Footer ===== */
.footer-store {
    background: #0f172a; color: #94a3b8; padding: 42px 0 20px;
}
.footer-store .row { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer-store h6 { color: #f1f5f9; font-size: 0.9rem; font-weight: 700; margin-bottom: 13px; }
.footer-store ul { list-style: none; padding: 0; margin: 0; }
.footer-store li { margin-bottom: 8px; font-size: 0.84rem; }
.footer-store a { color: #94a3b8; transition: color .15s; }
.footer-store a:hover { color: #fff; }
.footer-store .copyright {
    border-top: 1px solid #1e293b; padding-top: 20px;
    text-align: center; font-size: 0.82rem; color: #64748b;
}
.footer-store .brand-desc { color: #94a3b8; font-size: 0.84rem; line-height: 1.65; margin-top: 10px; max-width: 360px; }
.footer-store .footer-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.footer-store .footer-tag {
    background: #1e293b; color: #64748b;
    padding: 3px 10px; border-radius: 4px; font-size: 11px;
}
@media (max-width: 768px) {
    .section { padding: 52px 0; }
    .section-title { font-size: 1.65rem; margin-bottom: 10px; }
    .section-subtitle { font-size: .92rem; margin-bottom: 30px; }
    .footer-store { padding: 34px 0 18px; }
    .footer-store .row { grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-bottom: 22px; }
    .footer-store .row > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-store .row { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
    .footer-store .brand-desc { max-width: none; }
    .footer-store .copyright { padding-top: 16px; font-size: .76rem; }
}

/* ===== 卡片通用 ===== */
.card-modern {
    background: #fff; border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.card-modern:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
