/* ============================================================
   angler 渔具商城 · PC 端样式
   浅蓝大海风 · 明亮海蓝 + 天空浅蓝 + 金色点缀
   ============================================================ */

:root {
    --sky-1: #eaf7ff;
    --sky-2: #d8efff;
    --sky-3: #b6e2fb;
    --blue: #1d9be0;
    --blue-deep: #0f7fc0;
    --blue-ink: #0b5e94;
    --cyan: #4fc3f2;
    --cyan-soft: #e9f7fe;
    --gold: #f5b93f;
    --coral: #f56c3d;
    --ink: #153a52;
    --ink-2: #46647b;
    --ink-3: #7f9aac;
    --bg: #ffffff;
    --bg-soft: #f3f9fd;
    --bg-tint: #e8f5fd;
    --line: #dcebf4;
    --line-strong: #c0dcee;
    --radius: 6px;
    --radius-lg: 12px;
    --shadow-card: 0 2px 8px rgba(21, 101, 160, 0.06);
    --shadow-hover: 0 10px 28px rgba(21, 101, 160, 0.14);
    --header-h: 132px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-deep); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); line-height: 1.35; }

.ag-container { width: 1440px; max-width: calc(100% - 48px); margin: 0 auto; }
.ag-main { min-height: 60vh; background: #fff; }

/* ---------- 通用组件 ---------- */
.ag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 26px; border: 1px solid var(--blue);
    background: var(--blue); color: #fff; border-radius: var(--radius);
    cursor: pointer; font-size: 15px; font-weight: 600; letter-spacing: 1px;
    transition: background .15s, border-color .15s, color .15s, transform .15s;
    white-space: nowrap;
}
.ag-btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.ag-btn-line { background: #fff; color: var(--blue-deep); }
.ag-btn-line:hover { background: var(--cyan-soft); color: var(--blue-ink); }
.ag-btn-dark { background: var(--blue-ink); border-color: var(--blue-ink); }
.ag-btn-dark:hover { background: #0a5079; border-color: #0a5079; }
.ag-btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.ag-btn[disabled] { opacity: .45; cursor: not-allowed; }

.ag-crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.ag-crumb a { color: var(--ink-3); }
.ag-crumb a:hover { color: var(--blue-deep); }
.ag-crumb .sep { margin: 0 8px; color: var(--line-strong); }

.ag-empty {
    padding: 56px 20px; text-align: center; color: var(--ink-3);
    border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
    background: var(--bg-soft); font-size: 14px; grid-column: 1 / -1;
}
.ag-empty a { color: var(--blue-deep); }

.ag-flash {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
    z-index: 9999; min-width: 280px; max-width: 80%;
    padding: 12px 22px; border-radius: var(--radius); text-align: center;
    font-size: 14px; box-shadow: var(--shadow-hover);
}
.ag-flash.success { background: #e9f7f0; color: #146c43; border: 1px solid #b6e2cd; }
.ag-flash.error { background: #fdf0ec; color: #b0401f; border: 1px solid #f3cdbd; }

.ag-toast {
    position: fixed; left: 50%; top: 42%; transform: translate(-50%, 8px);
    background: rgba(21, 58, 82, .94); color: #fff; z-index: 10000;
    padding: 11px 22px; border-radius: 8px; font-size: 13.5px; line-height: 1.6;
    max-width: 70%; text-align: center; opacity: 0; pointer-events: none;
    transition: opacity .28s, transform .28s;
}
.ag-toast.show { opacity: 1; transform: translate(-50%, 0); }

.ag-page-head {
    background: var(--bg-tint); padding: 38px 0; border-bottom: 3px solid var(--blue);
}
.ag-page-head .ag-crumb, .ag-page-head .ag-crumb a { color: var(--ink-3); }
.ag-page-head .ag-crumb .sep { color: var(--line-strong); }
.ag-page-head h1 { font-size: 26px; color: var(--ink); display: flex; align-items: baseline; gap: 14px; }
.ag-page-head h1 .en { font-size: 12px; font-weight: 500; color: var(--blue-deep); letter-spacing: 2px; }
.ag-page-head p { color: var(--ink-2); margin-top: 8px; font-size: 14px; }

.ag-section { padding: 52px 0; }
.ag-section + .ag-section { border-top: 1px solid var(--line); }
.ag-sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.ag-sec-head h2 { font-size: 23px; position: relative; padding-left: 16px; letter-spacing: 1px; }
.ag-sec-head h2::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 5px; border-radius: 3px;
    background: linear-gradient(180deg, var(--cyan) 0%, var(--blue) 100%);
}
.ag-sec-head h2::after {
    content: ""; display: block; margin-top: 8px; width: 46px; height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 8'%3E%3Cpath d='M0 5 Q5.75 0 11.5 5 T23 5 T34.5 5 T46 5' fill='none' stroke='%231d9be0' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-size: contain;
}
.ag-sec-head .ag-sec-sub { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.ag-sec-more { font-size: 13px; color: var(--blue-deep); font-weight: 600; }
.ag-sec-more:hover { color: var(--coral); }

/* ---------- 顶部细条 ---------- */
.ag-topbar { background: #f0f9ff; color: var(--ink-3); font-size: 12.5px; border-bottom: 1px solid var(--line); }
.ag-topbar-inner { display: flex; justify-content: space-between; height: 34px; align-items: center; }
.ag-topbar-left { display: flex; align-items: center; gap: 18px; }
.ag-topbar-news { color: var(--blue-deep); max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-topbar-news:hover { color: var(--blue-ink); }
.ag-topbar-right a { color: var(--ink-2); }
.ag-topbar-right a:hover { color: var(--blue-deep); }
.ag-topbar-sep { color: var(--line-strong); margin: 0 4px; }

/* ---------- 头部（白底浅蓝） ---------- */
.ag-header { background: #fff; border-bottom: 1px solid var(--line); }
.ag-header-inner { display: flex; align-items: center; gap: 36px; height: 98px; }
.ag-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ag-brand-logo { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 2px 10px rgba(29,155,224,.3); }
.ag-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.ag-brand-text strong { font-size: 21px; letter-spacing: 2px; color: var(--ink); }
.ag-brand-text em { font-style: normal; font-size: 10.5px; letter-spacing: 2.5px; color: var(--blue-deep); }

.ag-search { flex: 1; display: flex; max-width: 620px; margin: 0 auto; }
.ag-search input {
    flex: 1; height: 44px; border: 2px solid var(--blue); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius); padding: 0 16px; outline: none;
    background: #fff; color: var(--ink);
}
.ag-search input::placeholder { color: var(--ink-3); }
.ag-search button {
    height: 44px; padding: 0 34px; background: var(--blue); color: #fff;
    border: none; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 15px; font-weight: 700; letter-spacing: 3px; cursor: pointer;
    transition: background .15s;
}
.ag-search button:hover { background: var(--blue-deep); }

.ag-header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.ag-head-link { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.ag-head-link:hover { color: var(--blue-deep); }
.ag-head-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); display: inline-block; }
.ag-cart-link {
    display: inline-flex; align-items: center; height: 38px; padding: 0 20px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-size: 14px; font-weight: 600; color: var(--blue-deep); background: #fff;
}
.ag-cart-link:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--cyan-soft); }

.ag-nav { background: var(--blue); border-bottom: 3px solid var(--blue-deep); }
.ag-nav-inner { display: flex; gap: 6px; }
.ag-nav a {
    padding: 0 26px; height: 46px; line-height: 46px; font-size: 15px;
    color: #eaf7ff; font-weight: 500; position: relative; transition: color .15s, background .15s;
}
.ag-nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.ag-nav a:hover::after {
    content: ""; position: absolute; left: 26px; right: 26px; bottom: -3px;
    height: 3px; background: var(--gold);
}

/* ---------- 首页 HERO（三栏：分类导航 + 轮播 + 会员/精选） ---------- */
.ag-hero {
    background: linear-gradient(180deg, #d6ecfd 0%, #eaf7ff 62%, #f4fbff 100%);
    position: relative; overflow: hidden;
}
.ag-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26 L0 14 Q60 4 120 14 T240 14 T360 14 T480 14 T600 14 T720 14 T840 14 T960 14 T1080 14 T1200 14 T1320 14 T1440 14 L1440 26 Z' fill='%23f3f9fd'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 1440px 26px;
}
.ag-hero-panel {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 240px 1fr 310px; gap: 16px;
    padding: 18px 0 22px;
    align-items: stretch;
}

/* 左栏：分类导航 */
.ag-hero-cats {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-card); display: flex; flex-direction: column;
    min-height: 420px;
}
.ag-hero-cats-head {
    display: flex; align-items: center; gap: 9px;
    background: var(--blue); color: #fff;
    font-size: 15px; font-weight: 700; letter-spacing: 2px;
    padding: 13px 18px;
}
.ag-hero-cats-head svg { width: 18px; height: 18px; }
.ag-hero-cat {
    flex: 1; display: flex; align-items: center; gap: 10px;
    padding: 0 16px; font-size: 13.5px; color: var(--ink-2);
    border-bottom: 1px solid var(--bg-soft);
    transition: background .15s, color .15s;
    min-height: 37px;
}
.ag-hero-cat:last-of-type { border-bottom: none; }
.ag-hero-cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-3); flex-shrink: 0; transition: background .15s; }
.ag-hero-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-hero-cat em { font-style: normal; color: var(--line-strong); transition: transform .15s, color .15s; }
.ag-hero-cat:hover { background: var(--cyan-soft); color: var(--blue-deep); }
.ag-hero-cat:hover .ag-hero-cat-dot { background: var(--blue); }
.ag-hero-cat:hover em { color: var(--blue); transform: translateX(2px); }
.ag-hero-cats-more {
    display: block; text-align: center; padding: 10px 0;
    font-size: 12.5px; color: var(--blue-deep); background: var(--bg-soft);
    border-top: 1px solid var(--line);
}
.ag-hero-cats-more:hover { background: var(--cyan-soft); }

/* 中栏：轮播图 */
.ag-hero-banner {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    min-height: 420px; box-shadow: var(--shadow-card);
    background: var(--sky-1);
}
.ag-banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.ag-banner-slide.on { opacity: 1; pointer-events: auto; }
.ag-banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ag-banner-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: rgba(255,255,255,.72); color: var(--blue-ink);
    font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s, background .15s;
    padding-bottom: 3px;
}
.ag-banner-nav.prev { left: 12px; }
.ag-banner-nav.next { right: 12px; }
.ag-hero-banner:hover .ag-banner-nav { opacity: 1; }
.ag-banner-nav:hover { background: #fff; }
.ag-banner-dots {
    position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3;
    display: flex; justify-content: center; gap: 8px;
}
.ag-banner-dot {
    width: 9px; height: 9px; border-radius: 5px; border: none; cursor: pointer;
    background: rgba(255,255,255,.75); transition: width .2s, background .2s;
}
.ag-banner-dot.on { width: 24px; background: var(--gold); }

/* 右栏：会员中心 + 精选商品 */
.ag-hero-side { display: flex; flex-direction: column; gap: 14px; min-height: 420px; }
.ag-user-card {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); padding: 18px 18px 16px;
}
.ag-user-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; float: left; margin-right: 12px;
    background: linear-gradient(150deg, var(--blue) 0%, var(--cyan) 100%);
    color: #fff; font-size: 19px; font-weight: 700;
}
.ag-user-info { overflow: hidden; }
.ag-user-info strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-user-info span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.ag-user-links { clear: both; display: flex; gap: 10px; margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--line); }
.ag-user-links a {
    flex: 1; text-align: center; height: 32px; line-height: 30px;
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-size: 13px; color: var(--blue-deep); transition: all .15s;
}
.ag-user-links a:hover { border-color: var(--blue); background: var(--cyan-soft); }
.ag-user-btns { clear: both; display: flex; gap: 10px; margin-top: 13px; }
.ag-user-btns .ag-btn { flex: 1; padding: 0 10px; }

.ag-feat-card {
    flex: 1; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); padding: 14px 0 6px;
    display: flex; flex-direction: column; overflow: hidden;
}
.ag-feat-head {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 0 16px 10px; border-bottom: 1px solid var(--bg-soft);
}
.ag-feat-head h3 { font-size: 15px; position: relative; padding-left: 11px; }
.ag-feat-head h3::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.ag-feat-head a { font-size: 12px; color: var(--ink-3); }
.ag-feat-head a:hover { color: var(--blue-deep); }
.ag-feat-viewport { flex: 1; overflow: hidden; position: relative; }
.ag-feat-track { display: flex; flex-direction: column; transition: transform .45s ease; }
.ag-feat-item {
    flex-shrink: 0; display: flex; align-items: center; gap: 11px;
    padding: 9px 16px; transition: background .15s;
}
.ag-feat-item:hover { background: var(--bg-soft); }
.ag-feat-thumb {
    width: 46px; height: 46px; border-radius: var(--radius); overflow: hidden;
    background: var(--bg-soft); flex-shrink: 0; border: 1px solid var(--line);
}
.ag-feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ag-feat-info { flex: 1; min-width: 0; }
.ag-feat-info b {
    display: block; font-size: 13px; font-weight: 500; color: var(--ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5;
}
.ag-feat-info b:hover { color: var(--blue-deep); }
.ag-feat-info i { font-style: normal; font-size: 14px; font-weight: 700; color: var(--coral); }
.ag-feat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 2; }
.ag-feat-empty a { color: var(--blue-deep); }

/* ---------- 首页分类 ---------- */
.ag-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ag-cat {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 26px 10px; border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.ag-cat:hover { border-color: var(--cyan); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.ag-cat-mark {
    width: 56px; height: 56px; border-radius: 50%;
    background: #e3f3fd;
    color: var(--blue-deep); display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.ag-cat:hover .ag-cat-mark { background: var(--blue); color: #fff; }
.ag-cat-mark svg { width: 27px; height: 27px; }
.ag-cat-name { font-size: 14.5px; font-weight: 600; }
.ag-cat-sub { font-size: 12px; color: var(--ink-3); }

/* ---------- 公告条 ---------- */
.ag-newsbar { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ag-newsbar-inner { display: flex; align-items: center; height: 46px; gap: 18px; }
.ag-newsbar-label {
    background: var(--blue); color: #fff; font-size: 12px; padding: 3px 12px;
    border-radius: 3px; letter-spacing: 2px; flex-shrink: 0;
}
.ag-newsbar-list { flex: 1; overflow: hidden; }
.ag-newsbar-list a { color: var(--ink-2); font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-newsbar-list a:hover { color: var(--blue-deep); }
.ag-newsbar-more { font-size: 12.5px; color: var(--ink-3); flex-shrink: 0; }

/* ---------- 商品网格 ---------- */
.ag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.ag-home-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.ag-home-pager { margin-top: 30px; }
.ag-home-pager:empty { display: none; }
.ag-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
    display: flex; flex-direction: column;
}
.ag-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.ag-card-media { position: relative; display: block; background: var(--bg-soft); aspect-ratio: 1 / 1; }
.ag-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ag-card-tag {
    position: absolute; top: 10px; left: 10px; background: var(--coral); color: #fff;
    font-size: 11px; padding: 2px 9px; border-radius: 3px; letter-spacing: 1px;
}
.ag-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ag-card-title { font-size: 14.5px; font-weight: 500; line-height: 1.5; height: 43px; overflow: hidden; }
.ag-card-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ag-card-shop { font-size: 12.5px; color: var(--ink-3); }
.ag-card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.ag-card-price { display: flex; align-items: baseline; gap: 8px; }
.ag-card-price strong { color: var(--coral); font-size: 19px; font-weight: 700; }
.ag-card-price del { color: var(--ink-3); font-size: 12px; }
.ag-card-sales { font-size: 12px; color: var(--ink-3); }

/* ---------- 榜单 ---------- */
.ag-rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ag-rank-col { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ag-rank-head { background: var(--bg-tint); padding: 15px 20px; border-bottom: 2px solid var(--cyan); }
.ag-rank-head h3 { font-size: 16px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.ag-rank-head span { font-size: 11px; color: var(--blue-deep); font-weight: 500; letter-spacing: 1px; }
.ag-rank-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.ag-rank-row:last-child { border-bottom: none; }
.ag-rank-row:hover { background: var(--bg-soft); }
.ag-rank-no {
    width: 22px; height: 22px; border-radius: 3px; background: var(--bg-tint); color: var(--ink-3);
    font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ag-rank-row:nth-child(2) .ag-rank-no { background: var(--gold); color: #153a52; }
.ag-rank-row:nth-child(3) .ag-rank-no { background: var(--blue); color: #fff; }
.ag-rank-row:nth-child(4) .ag-rank-no { background: var(--cyan); color: #153a52; }
.ag-rank-img { width: 48px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.ag-rank-img img { width: 100%; height: 100%; object-fit: cover; }
.ag-rank-img span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 10px; color: var(--ink-3); }
.ag-rank-info { flex: 1; min-width: 0; }
.ag-rank-info b { font-size: 13.5px; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-rank-info span { font-size: 12px; color: var(--ink-3); }
.ag-rank-price { color: var(--coral); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* ---------- 入驻 CTA（明亮海蓝） ---------- */
.ag-cta { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.ag-cta::before {
    content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 20' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L1440 0 L1440 6 Q1380 16 1320 6 T1200 6 T1080 6 T960 6 T840 6 T720 6 T600 6 T480 6 T360 6 T240 6 T120 6 T0 6 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: 1440px 20px;
}
.ag-cta-inner { display: flex; align-items: center; justify-content: space-between; padding: 52px 50px; position: relative; z-index: 1; }
.ag-cta h2 { color: #fff; font-size: 26px; letter-spacing: 1px; }
.ag-cta h2 em { font-style: normal; color: #ffe08a; }
.ag-cta p { color: #d6ecff; margin-top: 8px; font-size: 14px; }
.ag-cta .ag-btn { background: var(--gold); border-color: var(--gold); color: #153a52; font-weight: 700; }
.ag-cta .ag-btn:hover { background: #ffce5c; border-color: #ffce5c; }

/* ---------- 商品列表页 ---------- */
.ag-list-layout { display: flex; gap: 24px; padding: 30px 0 60px; align-items: flex-start; }
.ag-list-side { width: 220px; flex-shrink: 0; }
.ag-side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.ag-side-title { padding: 14px 18px; font-size: 15px; background: var(--bg-tint); color: var(--ink); border-bottom: 2px solid var(--cyan); }
.ag-side-title span { color: var(--blue-deep); font-size: 11px; margin-left: 8px; letter-spacing: 1px; }
.ag-cat-tree li a { display: block; padding: 11px 18px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ag-cat-tree li:last-child a { border-bottom: none; }
.ag-cat-tree li a:hover { color: var(--blue-deep); background: var(--bg-soft); }
.ag-cat-tree li.on a { color: var(--blue-deep); font-weight: 600; background: var(--cyan-soft); border-left: 3px solid var(--cyan); padding-left: 15px; }
.ag-side-note { padding: 14px 18px; font-size: 12.5px; color: var(--ink-3); line-height: 1.8; }

.ag-list-main { flex: 1; min-width: 0; }
.ag-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 18px; margin-bottom: 20px; flex-wrap: wrap; }
.ag-filter-form { display: flex; gap: 8px; }
.ag-filter-form input { height: 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 12px; width: 260px; outline: none; }
.ag-filter-form input:focus { border-color: var(--cyan); }
.ag-sort { display: flex; gap: 4px; }
.ag-sort a { padding: 6px 14px; font-size: 13.5px; color: var(--ink-2); border-radius: var(--radius); }
.ag-sort a.on, .ag-sort a:hover { background: var(--cyan-soft); color: var(--blue-deep); font-weight: 600; }
.ag-result-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.ag-result-meta b { color: var(--blue-deep); font-weight: 600; }
.ag-list-main .ag-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ag-pager { margin-top: 34px; text-align: center; }
.ag-pager .pagination { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; vertical-align: middle; }
.ag-pager .pagination li { display: inline-flex; }
.ag-pager a, .ag-pager span {
    display: inline-block; min-width: 34px; height: 34px; line-height: 32px; padding: 0 10px;
    margin: 0 3px; border: 1px solid var(--line-strong); border-radius: var(--radius);
    font-size: 13.5px; color: var(--ink-2);
}
.ag-pager a:hover { border-color: var(--blue); color: var(--blue-deep); }
.ag-pager .current, .ag-pager span.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.ag-pager .disabled { color: var(--line-strong); }

/* ---------- 商品详情 ---------- */
.ag-pd-wrap { padding: 24px 0 60px; }
.ag-pd-top { display: flex; gap: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; box-shadow: var(--shadow-card); }
.ag-gallery { width: 430px; flex-shrink: 0; display: flex; gap: 14px; }
.ag-gallery-thumbs { width: 64px; display: flex; flex-direction: column; gap: 10px; }
.ag-gallery-thumbs img {
    width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--line);
    border-radius: 4px; cursor: pointer; background: var(--bg-soft);
}
.ag-gallery-thumbs img.on { border-color: var(--cyan); }
.ag-gallery-main { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.ag-gallery-main img { width: 100%; height: 414px; object-fit: cover; }
.ag-gallery-main .ag-gallery-ph { width: 100%; height: 414px; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }

.ag-pd-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ag-pd-shopcard {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, #fff 60%);
    border: 1px solid var(--line); border-left: 3px solid var(--cyan);
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.ag-pd-shopcard:hover { border-color: var(--cyan); box-shadow: var(--shadow-card); }
.ag-pd-shopcard .avatar { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(8,40,63,.14); flex-shrink: 0; }
.ag-pd-shopcard .sc-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ag-pd-shopcard .sc-info strong { font-size: 15px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pd-shopcard .sc-info em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.ag-pd-shopcard .sc-go { font-size: 13px; font-weight: 600; color: var(--blue-deep); background: #fff; border: 1px solid var(--blue); border-radius: 999px; padding: 5px 14px; flex-shrink: 0; transition: background .15s, color .15s; }
.ag-pd-shopcard:hover .sc-go { background: var(--blue-deep); color: #fff; }
.ag-pd-title { font-size: 24px; line-height: 1.45; font-weight: 700; }
.ag-pd-cat { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.ag-pd-pricebar {
    background: #eaf6fd; border: 1px solid #d3ecfa;
    border-radius: var(--radius-lg); padding: 18px 22px; margin: 18px 0;
    display: flex; align-items: baseline; gap: 14px;
}
.ag-pd-pricebar .lab { font-size: 13px; color: var(--ink-3); }
.ag-pd-pricebar .now { color: var(--coral); font-size: 30px; font-weight: 800; }
.ag-pd-pricebar .old { color: var(--ink-3); text-decoration: line-through; font-size: 14px; }

.ag-sku {
    max-height: 260px; overflow-y: auto; overscroll-behavior: contain;
    margin-bottom: 16px; padding: 10px 10px 10px 0;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
 .ag-sku::-webkit-scrollbar { width: 6px; }
 .ag-sku::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.ag-sku-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.ag-sku-lab { width: 58px; flex-shrink: 0; padding-top: 7px; color: var(--ink-3); font-size: 13.5px; }
.ag-sku-opts { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; }
.ag-sku-opt {
    border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius);
    max-width: 100%; padding: 7px 12px; font-size: 13.5px; cursor: pointer; color: var(--ink-2);
    line-height: 1.45; text-align: left; white-space: normal; word-break: break-word;
}
.ag-sku-opt:hover { border-color: var(--cyan); color: var(--blue-deep); }
.ag-sku-opt.on { border-color: var(--blue); background: var(--cyan-soft); color: var(--blue-deep); font-weight: 600; }
.ag-pd-stock { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 22px; }
.ag-pd-stock b { color: var(--blue-deep); font-weight: 600; }
.ag-pd-stock em { font-style: normal; color: var(--ink-3); }

.ag-pd-actions { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ag-qty { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.ag-qty button { width: 40px; height: 46px; border: none; background: var(--bg-soft); font-size: 17px; cursor: pointer; color: var(--ink-2); }
.ag-qty button:hover { background: var(--cyan-soft); color: var(--blue-deep); }
.ag-qty input { width: 62px; height: 46px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; outline: none; }
.ag-pd-actions .ag-btn { height: 46px; padding: 0 32px; }
.btn-fav { margin-left: auto; }

.ag-pd-tabs { display: flex; border-bottom: 2px solid var(--line); margin: 36px 0 0; gap: 6px; }
.ag-pd-tab {
    padding: 13px 30px; font-size: 15px; font-weight: 600; color: var(--ink-2);
    background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer;
}
.ag-pd-tab.on { color: var(--blue-deep); border-bottom-color: var(--cyan); }
.ag-pd-pane { display: none; padding: 30px 4px 10px; }
.ag-pd-pane.on { display: block; }
.ag-pd-detail-imgs img { max-width: 100%; margin: 0 auto 18px; border-radius: var(--radius); }
.ag-pd-content { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.ag-pd-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0; }
.ag-spec-table { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ag-spec-row { display: flex; border-bottom: 1px solid var(--line); }
.ag-spec-row:last-child { border-bottom: none; }
.ag-spec-row .k { width: 150px; background: var(--bg-soft); padding: 12px 20px; color: var(--ink-3); font-size: 13.5px; flex-shrink: 0; }
.ag-spec-row .v { flex: 1; padding: 12px 20px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 购物车 ---------- */
.ag-cart-wrap { padding: 26px 0 60px; }
.ag-cart-layout { display: flex; gap: 22px; align-items: flex-start; margin-top: 20px; }
.ag-cart-main { flex: 1; min-width: 0; }
.ag-cart-shop { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px; }
.ag-cart-shop-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; background: var(--bg-tint); border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}
.ag-cart-shop-head span { color: var(--ink-3); font-size: 13px; }
.ag-cart-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ag-cart-item:last-child { border-bottom: none; }
.ag-cart-check { position: relative; width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.ag-cart-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.ag-cart-thumb { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); flex-shrink: 0; border: 1px solid var(--line); }
.ag-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ag-cart-thumb span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 11px; color: var(--ink-3); text-align: center; padding: 6px; }
.ag-cart-info { flex: 1; min-width: 0; }
.ag-cart-title { font-size: 14.5px; font-weight: 500; display: block; margin-bottom: 6px; }
.ag-cart-title:hover { color: var(--blue-deep); }
.ag-cart-meta { font-size: 12.5px; color: var(--ink-3); }
.ag-cart-col { width: 110px; text-align: center; flex-shrink: 0; }
.ag-cart-col .lab { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.ag-cart-col strong { font-size: 14px; }
.ag-cart-qtyform { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.ag-cart-qtyform input { width: 48px; height: 32px; border: none; text-align: center; outline: none; }
.ag-cart-qtyform button { width: 44px; height: 32px; border: none; border-left: 1px solid var(--line); background: var(--bg-soft); cursor: pointer; font-size: 12px; color: var(--ink-2); }
.ag-cart-qtyform button:hover { background: var(--cyan-soft); color: var(--blue-deep); }
.ag-cart-subtotal strong { color: var(--coral); font-size: 16px; }
.ag-cart-del { background: none; border: none; color: var(--ink-3); font-size: 20px; cursor: pointer; line-height: 1; padding: 4px; }
.ag-cart-del:hover { color: var(--coral); }

.ag-cart-side { width: 300px; flex-shrink: 0; }
.ag-summary-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: #fff; position: sticky; top: 20px; box-shadow: var(--shadow-card); }
.ag-summary-card h3 { font-size: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.ag-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.ag-summary-row b { color: var(--ink); }
.ag-summary-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; }
.ag-summary-total span { font-size: 14px; }
.ag-summary-total strong { color: var(--coral); font-size: 26px; }
.ag-summary-card .ag-btn { width: 100%; margin-top: 14px; }
.ag-summary-link { display: block; text-align: center; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.ag-summary-link:hover { color: var(--blue-deep); }
.ag-cart-allcheck { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 14px 0 4px; cursor: pointer; }
.ag-cart-allcheck input { accent-color: var(--blue); }
.ag-cart-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); text-align: center; padding: 70px 20px; }
.ag-cart-empty h2 { font-size: 20px; margin: 16px 0 8px; }
.ag-cart-empty p { color: var(--ink-3); margin-bottom: 22px; }

/* ---------- 结算页 ---------- */
.ag-co-wrap { padding: 26px 0 60px; }
.ag-co-layout { display: flex; gap: 22px; align-items: flex-start; margin-top: 20px; }
.ag-co-main { flex: 1; min-width: 0; }
.ag-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 18px; overflow: hidden; background: #fff; }
.ag-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.ag-panel-head h2 { font-size: 16.5px; }
.ag-panel-head a { font-size: 13px; color: var(--blue-deep); }
.ag-panel-body { padding: 20px 22px; }

.ag-address-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.ag-address-card {
    position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 14px 16px 14px 40px; cursor: pointer; display: block;
}
.ag-address-card input { position: absolute; left: 14px; top: 17px; accent-color: var(--blue); }
.ag-address-card:has(input:checked) { border-color: var(--blue); background: var(--cyan-soft); }
.ag-address-card strong { font-size: 14px; display: block; }
.ag-address-card strong em { font-style: normal; font-size: 11px; color: var(--blue-deep); background: #fff; border: 1px solid #b9e3f2; padding: 1px 7px; border-radius: 3px; margin-left: 8px; }
.ag-address-card small { color: var(--ink-3); font-size: 12.5px; display: block; margin-top: 4px; }

.ag-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.ag-field { display: flex; flex-direction: column; gap: 6px; }
.ag-field.full { grid-column: 1 / -1; }
.ag-field > span { font-size: 13px; color: var(--ink-2); }
.ag-field input, .ag-field select, .ag-field textarea {
    border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px 12px; outline: none;
    background: #fff; font-size: 14px;
}
.ag-field input:focus, .ag-field select:focus, .ag-field textarea:focus { border-color: var(--cyan); }
.ag-field textarea { resize: vertical; }

.ag-co-shop { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.ag-co-shop-head { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--bg-tint); font-size: 14px; border-bottom: 1px solid var(--line); }
.ag-co-line { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ag-co-line:last-child { border-bottom: none; }
.ag-co-line .thumb { width: 60px; height: 60px; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.ag-co-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ag-co-line .info { flex: 1; min-width: 0; }
.ag-co-line .info a { font-size: 14px; display: block; }
.ag-co-line .info a:hover { color: var(--blue-deep); }
.ag-co-line .info small { color: var(--ink-3); font-size: 12.5px; }
.ag-co-line .price { width: 100px; text-align: center; font-size: 13.5px; color: var(--ink-2); }
.ag-co-line .qty { width: 70px; text-align: center; color: var(--ink-3); font-size: 13px; }
.ag-co-line .subtotal { width: 110px; text-align: right; font-weight: 700; color: var(--coral); }

.ag-co-side { width: 300px; flex-shrink: 0; }

/* ---------- 登录 / 注册 ---------- */
.ag-auth-wrap {
    min-height: calc(100vh - var(--header-h));
    background: linear-gradient(180deg, #d6ecfd 0%, #eaf7ff 100%);
}
.ag-auth-box {
    width: 980px; max-width: calc(100% - 48px); margin: 56px auto;
    display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; box-shadow: 0 24px 60px rgba(29,155,224,.18);
}
.ag-auth-aside {
    width: 400px; flex-shrink: 0;
    background: var(--blue);
    color: #fff; padding: 54px 44px; display: flex; flex-direction: column; justify-content: space-between;
}
.ag-auth-aside .ag-auth-kicker { font-size: 11px; letter-spacing: 3px; color: #cfeaff; }
.ag-auth-aside h1 { color: #fff; font-size: 28px; margin: 16px 0 14px; line-height: 1.45; }
.ag-auth-aside p { color: #dff1ff; font-size: 14px; line-height: 1.9; }
.ag-auth-aside .ag-auth-tip { font-size: 12.5px; color: #c4e4f8; line-height: 2; }
.ag-auth-panel { flex: 1; padding: 48px 52px; }
.ag-auth-panel h2 { font-size: 22px; margin-bottom: 6px; }
.ag-auth-panel .ag-auth-sub { color: var(--ink-3); font-size: 13.5px; margin-bottom: 28px; }
.ag-auth-form .ag-field { margin-bottom: 18px; }
.ag-auth-form input { height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0 14px; outline: none; width: 100%; }
.ag-auth-form input:focus { border-color: var(--cyan); }
.ag-auth-form .ag-btn { width: 100%; height: 46px; margin-top: 6px; }
.ag-auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 13.5px; }
.ag-auth-links a { color: var(--blue-deep); }
.ag-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.ag-agree input { margin-top: 4px; accent-color: var(--blue); }
.ag-agree a { color: var(--blue-deep); }

/* ---------- 内容文档页（关于/协议/规则） ---------- */
.ag-doc-hero {
    background: var(--bg-tint);
    padding: 52px 0; border-bottom: 3px solid var(--blue);
}
.ag-doc-hero .ag-crumb a, .ag-doc-hero .ag-crumb { color: var(--ink-3); }
.ag-doc-hero .ag-crumb .sep { color: var(--line-strong); }
.ag-doc-hero h1 { color: var(--ink); font-size: 28px; }
.ag-doc-hero .ag-doc-ver { color: var(--ink-3); font-size: 13.5px; margin-top: 10px; }
.ag-doc-hero .ag-doc-kicker { font-size: 11px; letter-spacing: 3px; color: var(--blue-deep); display: block; margin-bottom: 12px; }

.ag-doc-layout { display: flex; gap: 30px; padding: 36px 0 70px; align-items: flex-start; }
.ag-doc-toc { width: 210px; flex-shrink: 0; position: sticky; top: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ag-doc-toc h4 { padding: 14px 18px; background: var(--bg-tint); color: var(--ink); font-size: 14.5px; border-bottom: 2px solid var(--cyan); }
.ag-doc-toc a { display: flex; gap: 10px; padding: 11px 18px; font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.ag-doc-toc li:last-child a, .ag-doc-toc a:last-child { border-bottom: none; }
.ag-doc-toc a:hover { background: var(--cyan-soft); color: var(--blue-deep); }
.ag-doc-toc .n { color: var(--blue-deep); font-size: 12px; }
.ag-doc-article { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px 46px; font-size: 15px; color: var(--ink-2); line-height: 2; box-shadow: var(--shadow-card); }

.ag-rich h2 { font-size: 19px; margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--cyan); }
.ag-rich h3 { font-size: 16px; margin: 22px 0 10px; }
.ag-rich p { margin-bottom: 12px; }
.ag-rich ul, .ag-rich ol { margin: 0 0 14px 4px; padding-left: 22px; }
.ag-rich ul { list-style: disc; }
.ag-rich ol { list-style: decimal; }
.ag-rich li { margin-bottom: 6px; }
.ag-rich a { color: var(--blue-deep); text-decoration: underline; }
.ag-rich table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.ag-rich th, .ag-rich td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.ag-rich th { background: var(--bg-soft); }
.ag-rich img { max-width: 100%; border-radius: var(--radius); }
.ag-rich strong { color: var(--ink); }

.ag-about-lead { font-size: 17px; line-height: 2; color: var(--ink); border-left: 4px solid var(--cyan); padding-left: 20px; margin-bottom: 28px; }

/* ---------- 商户展厅 ---------- */
.ag-shop-row {
    display: grid; grid-template-columns: 236px 1fr; gap: 0;
    border: 1px solid var(--line); border-radius: var(--radius-lg);
    background: #fff; overflow: hidden; margin-bottom: 16px;
    transition: box-shadow .18s;
}
.ag-shop-row:hover { box-shadow: var(--shadow-hover); }
.ag-shop-row-side {
    background: linear-gradient(165deg, var(--bg-soft) 0%, #fff 100%);
    border-right: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; padding: 28px 18px; text-align: center;
}
.ag-shop-row-side .avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.ag-shop-row-side .name { font-size: 16px; color: var(--ink); line-height: 1.4; }
.ag-shop-row-side .cat { font-size: 12px; color: var(--blue-deep); background: var(--cyan-soft); border-radius: 12px; padding: 2px 12px; }
.ag-shop-row-side .cnt { font-size: 12px; color: var(--ink-3); }
.ag-shop-row-side .ag-btn { margin-top: 6px; }
.ag-shop-row-goods {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
    padding: 18px; align-content: center;
}
.ag-mini { display: block; min-width: 0; }
.ag-mini-media {
    display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius);
    background: var(--bg-soft); border: 1px solid var(--line);
}
.ag-mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ag-mini:hover .ag-mini-media img { transform: scale(1.06); }
.ag-mini-name {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 12.5px; color: var(--ink); line-height: 1.5; margin-top: 8px; height: 37px;
}
.ag-mini:hover .ag-mini-name { color: var(--blue-deep); }
.ag-mini-price { display: block; font-style: normal; font-size: 14px; font-weight: 700; color: var(--coral); margin-top: 3px; }
.ag-mini-empty {
    grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 13px;
    padding: 40px 0; border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.ag-row-pager { margin-top: 24px; }
.ag-row-pager .pagination { display: flex; justify-content: center; gap: 8px; list-style: none; }
.ag-row-pager .pagination li a, .ag-row-pager .pagination li span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius);
    border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13.5px;
}
.ag-row-pager .pagination li span { color: var(--ink-3); }
.ag-row-pager .pagination li.active span { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; font-weight: 700; }
.ag-row-pager .pagination li a:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.ag-shops-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ag-shop-card {
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
    padding: 22px 22px 18px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
.ag-shop-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: var(--cyan); }
.ag-shop-card-top { display: flex; align-items: center; gap: 14px; }
.ag-shop-card-top img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; border: 2px solid var(--bg-tint); }
.ag-shop-card-info { flex: 1; min-width: 0; }
.ag-shop-card-info strong { display: block; font-size: 16px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-shop-card-info span { font-size: 12.5px; color: var(--ink-3); }
.ag-shop-card-go { font-size: 13px; color: var(--blue-deep); font-weight: 600; flex-shrink: 0; }
.ag-shop-card-meta {
    display: flex; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.ag-shop-card-meta span {
    flex: 1; text-align: center; font-size: 11.5px; color: var(--ink-3);
    background: var(--bg-soft); border-radius: var(--radius); padding: 7px 4px;
}
.ag-shop-card-meta b { display: block; font-size: 13.5px; color: var(--blue-deep); margin-bottom: 1px; }
.ag-shop-hero {
    display: flex; align-items: center; gap: 20px; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px;
}
.ag-shop-hero-avatar { width: 74px; height: 74px; border-radius: 18px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.ag-shop-hero-info { flex: 1; min-width: 0; }
.ag-shop-hero-info strong { display: block; font-size: 19px; color: var(--ink); margin-bottom: 5px; }
.ag-shop-hero-info span { font-size: 13px; color: var(--ink-2); line-height: 1.8; display: block; max-width: 560px; }
.ag-shop-hero-stats { display: flex; gap: 14px; }
.ag-shop-hero-stats div { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 20px; min-width: 96px; }
.ag-shop-hero-stats b { display: block; font-size: 17px; color: var(--blue-deep); }
.ag-shop-hero-stats span { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 页脚（浅蓝海洋） ---------- */
.ag-footer { background: #e3f2fc; color: var(--ink-2); position: relative; }
.ag-footer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20 L0 12 Q30 2 60 12 T120 12 T180 12 T240 12 L240 20 Z' fill='%23e3f2fc'/%3E%3C/svg%3E");
    background-repeat: repeat-x; background-size: auto 20px;
}
.ag-footer-top {
    display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
    gap: 42px; padding: 58px 0 42px;
}
.ag-footer-brand .ag-brand { margin-bottom: 18px; }
.ag-brand-light .ag-brand-text strong { color: var(--ink); }
.ag-brand-light .ag-brand-text em { color: var(--blue-deep); }
.ag-footer-desc { font-size: 13px; color: #5d7d92; line-height: 2; margin-bottom: 16px; max-width: 330px; }
.ag-footer-phone {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
    border: 1px solid var(--blue); border-radius: var(--radius);
    color: var(--blue-deep); font-size: 15px; font-weight: 600; letter-spacing: .5px;
    background: #fff; transition: border-color .15s, background .15s;
}
.ag-footer-phone:hover { border-color: var(--blue-deep); background: var(--cyan-soft); color: var(--blue-deep); }
.ag-footer-col h4 { color: var(--ink); font-size: 15px; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 12px; position: relative; }
.ag-footer-col h4::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 2px;
}
.ag-footer-col a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; transition: color .15s, padding-left .15s; }
.ag-footer-col a:hover { color: var(--blue-deep); padding-left: 6px; }
.ag-footer-bottom {
    border-top: 1px solid #cfe6f5; padding: 20px 0 24px;
    font-size: 12.5px; color: var(--ink-3);
    display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center;
}
.ag-footer-records { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.ag-footer-records a { color: var(--ink-3); }
.ag-footer-records a:hover { color: var(--blue-deep); }
.ag-footer-address { color: #8fa9ba; }
.ag-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.ag-contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: var(--bg-soft); border-top: 3px solid var(--cyan); }
.ag-contact-card h3 { font-size: 15px; margin-bottom: 10px; }
.ag-contact-card .val { font-size: 16px; font-weight: 600; }
.ag-contact-card p { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.ag-contact-card a { color: var(--blue-deep); }



/* ---------- 右侧悬浮导航 ---------- */
.ag-floating-tools {
    position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 1040;
    display: flex; flex-direction: column; width: 60px; background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); overflow: hidden;

    animation: agFloatIn .32s ease both;

}
.ag-floating-tool {

    position: relative; width: 60px; min-height: 58px; border: 0; border-bottom: 1px solid var(--line);

    background: #fff; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; justify-content: center;

    gap: 3px; font-size: 12px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: background .18s, color .18s, transform .18s;

}
.ag-floating-tool:last-child { border-bottom: 0; }
.ag-floating-tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-floating-tool:hover { background: var(--cyan-soft); color: var(--blue-deep); transform: translateX(-3px); }
.ag-floating-coupon em {
    position: absolute; right: 5px; top: 5px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--coral); color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center;

}
.ag-service-modal[hidden] { display: none; }
.ag-service-open { overflow: hidden; }
.ag-service-modal { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 18px; }
.ag-service-backdrop { position: absolute; inset: 0; border: 0; background: rgba(13, 38, 56, .55); cursor: default; }
.ag-service-panel {

    position: relative; z-index: 1; width: min(470px, calc(100vw - 32px)); padding: 26px;

    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(13, 38, 56, .22);

    animation: agServiceIn .22s ease both;

}
.ag-service-close {

    position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border: 1px solid var(--line);

    background: #fff; color: var(--ink-2); border-radius: var(--radius); cursor: pointer; font-size: 20px; line-height: 1;

}
.ag-service-close:hover { color: var(--coral); border-color: var(--coral); }
.ag-service-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.ag-service-mark, .ag-service-icon {

    display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--cyan-soft); color: var(--blue-deep); border-radius: var(--radius);

}
.ag-service-mark { width: 42px; height: 42px; }
.ag-service-mark svg, .ag-service-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ag-service-head h2 { font-size: 24px; margin-bottom: 5px; }
.ag-service-head p { color: var(--ink-3); font-size: 13px; line-height: 1.8; }
.ag-service-list { display: grid; gap: 10px; margin: 22px 0 18px; }
.ag-service-row {

    display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center;

    padding: 13px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);

}
.ag-service-icon { width: 38px; height: 38px; background: #fff; }
.ag-service-row span { min-width: 0; }
.ag-service-row small { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.ag-service-row strong { display: block; color: var(--ink); font-size: 15px; word-break: break-word; }
.ag-service-row button {

    height: 32px; border: 1px solid var(--line-strong); background: #fff; color: var(--blue-deep);

    padding: 0 11px; border-radius: var(--radius); font-size: 12px; cursor: pointer;

}
.ag-service-row button:hover { border-color: var(--blue-deep); background: var(--blue-deep); color: #fff; }
.ag-service-actions { display: flex; gap: 10px; }
.ag-service-actions .ag-btn { flex: 1; }

@keyframes agFloatIn { from { opacity: 0; transform: translate(18px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }

@keyframes agServiceIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {

    .ag-floating-tools { display: none; }

}

/* ---------- 商品评价区 ---------- */
.mall-reviews { margin-top: 10px; }
.mall-reviews-summary { display: flex; align-items: center; gap: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 26px; margin-bottom: 22px; }
.mall-review-score { text-align: center; }
.mall-review-score strong { font-size: 34px; color: var(--coral); display: block; line-height: 1.2; }
.mall-review-score span { font-size: 12.5px; color: var(--ink-3); }
.mall-review-stars span { color: #d8dde0; font-size: 18px; margin-right: 2px; }
.mall-review-stars span.on { color: var(--gold); }
.mall-review-count { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.mall-review-form { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; }
.mall-review-form-title { display: flex; justify-content: space-between; margin-bottom: 14px; }
.mall-review-form-title span { font-size: 12.5px; color: var(--ink-3); }
.mall-review-form label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; }
.mall-review-form select, .mall-review-form textarea {
    width: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 9px 12px; outline: none; margin-top: 6px;
}
.mall-review-form textarea { min-height: 90px; resize: vertical; }
.mall-review-field { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mall-review-field > span { font-size: 13.5px; color: var(--ink-2); }
.mall-star-input { display: inline-flex; flex-direction: row-reverse; }
.mall-star-input input { display: none; }
.mall-star-input label { font-size: 22px; color: #d8dde0; cursor: pointer; margin: 0 2px; }
.mall-star-input input:checked ~ label, .mall-star-input label:hover, .mall-star-input label:hover ~ label { color: var(--gold); }
.mall-review-form button { background: var(--blue); color: #fff; border: none; border-radius: var(--radius); padding: 9px 28px; font-size: 14px; cursor: pointer; }
.mall-review-form button:hover { background: var(--blue-deep); }
.mall-review-empty { padding: 30px; text-align: center; color: var(--ink-3); font-size: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--bg-soft); }
.mall-review-empty a { color: var(--blue-deep); }
.mall-review-item { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 22px; margin-bottom: 12px; }
.mall-review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.mall-review-head time { margin-left: auto; color: var(--ink-3); font-size: 12.5px; }
.mall-review-stars b { color: #d8dde0; font-size: 14px; font-weight: 400; }
.mall-review-stars b.on { color: var(--gold); }
.mall-review-item p { font-size: 14px; color: var(--ink-2); }
.mall-review-item p.muted { color: var(--ink-3); }
.mall-review-reply { margin-top: 10px; background: var(--bg-soft); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
