/* ═══════════════════════════════════════════
   万众摄影师网 — 全局样式
   罗马庄严 · 现代摄影 · 白金大理石 · 移动优先
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── CSS 变量 ─────────────────────── */
:root {
    /* 罗马金 — 主色调 */
    --gold: #B0922A;
    --gold-light: #C9AE52;
    --gold-dark: #8B7220;
    --gold-pale: rgba(184,153,46,0.08);
    --gold-glow: rgba(184,153,46,0.15);

    /* 大理石 — 背景与卡片 */
    --bg: #F8F6F1;
    --bg-light: #F2EFE8;
    --surface: #FFFFFF;
    --surface-light: #FCFBF8;
    --surface-warm: #FAF8F4;
    --surface-border: #E3DFD4;

    /* 庄严红 — 强调 */
    --roman-red: #8A2D2D;
    --roman-red-light: #A84444;
    --roman-red-dark: #6B2020;
    --roman-red-glow: rgba(138,45,45,0.06);

    /* 月桂绿 */
    --laurel: #4A5E3A;

    /* 文本 */
    --text: #1C1A16;
    --text-secondary: #6B6560;
    --text-muted: #9A9590;
    --text-inverse: #F8F6F1;

    /* 语义 */
    --success: #558B55;
    --danger: #A04040;

    /* 尺寸 */
    --nav-height: 48px;
    --banner-height: 40px;
    --category-height: 44px;
    --tab-bar-height: 56px;
    --card-radius: 4px;
    --btn-radius: 4px;
    --max-width: 1200px;

    /* 阴影 — 轻量精致 */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-gold: 0 2px 14px rgba(184,153,46,0.12);
    --shadow-gold-strong: 0 4px 24px rgba(184,153,46,0.2);
    --shadow-overlay: 0 -4px 24px rgba(0,0,0,0.1);

    /* 动画 */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Cormorant Garamond", "Noto Serif SC", "Source Han Serif CN",
                 "STSong", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + var(--banner-height));
    padding-bottom: var(--tab-bar-height);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 大理石纹理 — 白金基调 */
body::before {
    content: '';
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        /* 顶部暖金光照 */
        radial-gradient(ellipse 80% 60% at 50% 0%,
            rgba(200,180,140,0.10) 0%, transparent 60%),
        /* 右侧冷光 */
        radial-gradient(ellipse 50% 80% at 85% 20%,
            rgba(180,170,155,0.06) 0%, transparent 50%),
        /* 左下方暖光 */
        radial-gradient(ellipse 60% 70% at 15% 60%,
            rgba(200,185,150,0.05) 0%, transparent 55%),
        /* 底部金色氛围 */
        radial-gradient(ellipse 70% 50% at 50% 100%,
            rgba(184,153,46,0.04) 0%, transparent 50%);
    opacity: 0.85;
}

a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea { font: inherit; }

.noscript-banner {
    position: sticky; top: 0; z-index: 999;
    padding: 10px 14px;
    background: #1C1A16; color: #F8F6F1;
    text-align: center; font-size: 13px; letter-spacing: 0.5px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.item-card:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* ── 通用组件 ─────────────────────── */
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; color: var(--text-secondary);
}
.icon-btn:active { background: var(--gold-pale); color: var(--gold-dark); }
.icon-btn svg { width: 22px; height: 22px; }

/* 罗马金钮 — 精致高光 */
.btn-gold {
    background: linear-gradient(135deg, #C9AE52 0%, #B0922A 40%, #9B7D24 100%);
    color: #FFFFFF; font-size: 15px; font-weight: 700;
    font-family: "Cinzel", "Cormorant Garamond", serif;
    border-radius: var(--btn-radius); padding: 12px 24px;
    transition: all 0.25s; letter-spacing: 2px;
    box-shadow: 0 2px 8px rgba(176,146,42,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative; overflow: hidden;
}
.btn-gold::after {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.8s;
}
.btn-gold:hover::after { left: 100%; }
.btn-gold:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(176,146,42,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary {
    background: var(--gold-dark); color: #FFFFFF;
    font-size: 15px; font-weight: 600;
    border-radius: var(--btn-radius); padding: 12px 24px;
    transition: all 0.2s; letter-spacing: 1px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
    box-shadow: var(--shadow-xs);
}
.btn-primary:active { background: #7A6320; transform: scale(0.98); }

.btn-block { display: block; width: 100%; text-align: center; }

.btn-outline {
    display: inline-block; padding: 10px 18px;
    border: 1.5px solid var(--gold); border-radius: var(--btn-radius);
    color: var(--gold-dark); font-size: 13px; font-weight: 600;
    text-align: center; transition: all 0.2s; letter-spacing: 1px;
    background: transparent;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.btn-outline:active { background: var(--gold-pale); border-color: var(--gold-dark); }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 3px; }

.section-title {
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
    color: var(--gold-dark); padding-left: 2px;
    letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}

/* ── 顶部导航栏 ───────────────────── */
#top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-height);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(184,153,46,0.12);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 12px;
}

.nav-left { display: flex; align-items: center; gap: 8px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-icon {
    width: 28px; height: 28px;
    filter: drop-shadow(0 1px 4px rgba(184,153,46,0.3));
}
.logo-text {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, #B0922A, #8B7220);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}

.nav-right { display: flex; gap: 4px; align-items: center; }

/* ── 理念横幅 — 金箔质感 ──────────── */
#slogan-banner {
    position: fixed; top: var(--nav-height); left: 0; right: 0; z-index: 99;
    height: var(--banner-height);
    background:
        linear-gradient(90deg,
            rgba(176,146,42,0.04) 0%,
            rgba(201,174,82,0.12) 15%,
            rgba(184,153,46,0.16) 50%,
            rgba(201,174,82,0.12) 85%,
            rgba(176,146,42,0.04) 100%);
    border-bottom: 1px solid rgba(184,153,46,0.15);
    display: flex; align-items: center; justify-content: center;
    gap: 16px; overflow: hidden;
}
#slogan-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 4px,
            rgba(184,153,46,0.03) 4px,
            rgba(184,153,46,0.03) 5px
        );
    pointer-events: none;
}
#slogan-banner .slogan-text {
    font-size: 14px; font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 5px; white-space: nowrap;
    font-family: "Cinzel", "Cormorant Garamond", serif;
    position: relative; z-index: 1;
}
#slogan-banner .slogan-dot {
    width: 3px; height: 3px; transform: rotate(45deg);
    background: var(--gold); flex-shrink: 0; position: relative; z-index: 1;
}

/* ── 分类检索栏 ───────────────────── */
#category-bar {
    position: sticky; top: calc(var(--nav-height) + var(--banner-height));
    z-index: 98;
    background: rgba(252,251,248,0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(184,153,46,0.1);
    height: var(--category-height); overflow: hidden;
}

.category-list {
    display: flex; gap: 0; overflow-x: auto;
    scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    padding: 0 12px; height: 100%; align-items: center;
    scrollbar-width: none;
}
.category-list::-webkit-scrollbar { display: none; }

.category-item {
    flex-shrink: 0; padding: 7px 15px; font-size: 12px;
    color: var(--text-secondary); border-radius: 2px;
    transition: all 0.3s; white-space: nowrap; cursor: pointer;
    font-weight: 500; letter-spacing: 1px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
    position: relative;
}
.category-item::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 2px; background: var(--gold);
    transition: width 0.3s var(--ease-out);
}
.category-item.active {
    color: var(--gold-dark); font-weight: 700;
    background: transparent;
}
.category-item.active::after { width: 60%; }
.category-item:active { transform: scale(0.95); }

/* ═══════════════════════════════════
   瀑布流网格
   ═══════════════════════════════════ */
#item-feed {
    max-width: var(--max-width); margin: 0 auto;
    padding: 12px 8px; columns: 2; column-gap: 10px;
}

/* ── 摄影师卡片 — 白金浮雕 ════════ */
.item-card {
    break-inside: avoid; margin-bottom: 10px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    position: relative;
}
/* 左金线装饰 */
.item-card::before {
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    top: 16px; bottom: 16px; left: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(184,153,46,0.3) 20%,
        rgba(184,153,46,0.5) 50%,
        rgba(184,153,46,0.3) 80%,
        transparent 100%);
    border-radius: 0 1px 1px 0;
    transition: opacity 0.3s, width 0.3s;
}

.item-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md), 0 2px 16px rgba(184,153,46,0.1);
    border-color: rgba(184,153,46,0.25);
}
.item-card:active::before { width: 3px; }

.card-cover {
    position: relative; background: #F0EDE6; overflow: hidden;
}
.card-cover img {
    width: 100%; display: block; aspect-ratio: 4/3;
    object-fit: cover; background: #F0EDE6;
    transition: transform 0.6s var(--ease-out);
}
.item-card:active .card-cover img { transform: scale(1.03); }

.card-category-tag {
    position: absolute; top: 10px; left: 10px;
    background: rgba(255,255,255,0.92); color: var(--gold-dark);
    font-size: 9px; padding: 3px 9px; border-radius: 2px;
    font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid rgba(184,153,46,0.2);
    font-family: "Cinzel", "Cormorant Garamond", serif;
    backdrop-filter: blur(4px);
}

.card-body { padding: 12px 14px 14px; }

.card-title {
    font-size: 15px; font-weight: 700; line-height: 1.3;
    margin-bottom: 4px; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    letter-spacing: 0.5px;
}

.card-desc {
    font-size: 12px; color: var(--text-secondary);
    line-height: 1.4; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.card-photographer {
    font-size: 11px; color: var(--text-muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 5px;
}

.card-price {
    font-size: 20px; font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 8px; letter-spacing: 1px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.card-price span { font-size: 11px; color: var(--text-muted); font-family: inherit; }

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 10px; color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.04); padding-top: 8px;
}
.card-badge {
    display: flex; align-items: center; gap: 3px;
    color: var(--gold-dark); font-weight: 600; font-size: 10px;
}
.card-badge svg { width: 11px; height: 11px; }

/* ── 加载提示 ─────────────────────── */
#load-more { text-align: center; padding: 28px; color: var(--text-muted); font-size: 13px; }

.loading-spinner {
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.spinner {
    width: 20px; height: 20px; border: 2px solid rgba(184,153,46,0.12);
    border-top-color: var(--gold); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════
   底部导航栏
   ═══════════════════════════════════ */
#bottom-tab-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    height: var(--tab-bar-height);
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex; align-items: center; padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    color: var(--text-muted); font-size: 10px; transition: color 0.3s;
    position: relative; letter-spacing: 1px;
}
.tab-item svg { width: 22px; height: 22px; }
.tab-item.active { color: var(--gold-dark); }
.tab-item.active svg { filter: drop-shadow(0 1px 3px rgba(184,153,46,0.3)); }
.tab-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px; background: var(--gold); border-radius: 0 0 1px 1px;
}

/* 中央入驻钮 */
.tab-item-publish {
    flex: 0 0 auto;
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, #D4BC6A 0%, #B0922A 40%, #8B7220 100%);
    box-shadow:
        0 -2px 16px rgba(176,146,42,0.35),
        0 0 0 6px rgba(255,255,255,0.9),
        inset 0 1px 0 rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    margin-top: -22px;
    transition: all 0.3s var(--ease-spring);
    animation: publish-glow 3s ease-in-out infinite;
}
.tab-item-publish svg { width: 26px; height: 26px; color: #FFFFFF; }
.tab-item-publish:active {
    transform: scale(0.9);
    box-shadow:
        0 -2px 24px rgba(176,146,42,0.5),
        0 0 0 6px rgba(255,255,255,0.9);
}
@keyframes publish-glow {
    0%, 100% { box-shadow: 0 -2px 16px rgba(176,146,42,0.35), 0 0 0 6px rgba(255,255,255,0.9); }
    50% { box-shadow: 0 -2px 28px rgba(176,146,42,0.55), 0 0 0 6px rgba(255,255,255,0.9); }
}

/* ═══════════════════════════════════
   详情浮层
   ═══════════════════════════════════ */
.detail-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200; background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    display: flex; flex-direction: column; overflow: hidden;
}
.detail-overlay.open { transform: translateX(0); }

.detail-header {
    position: absolute; top: 0; left: 0; right: 0; z-index: 10;
    display: flex; justify-content: space-between; padding: 8px 12px;
}
.detail-header .icon-btn {
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm); color: var(--gold-dark);
}

.detail-header-actions { display: flex; gap: 8px; }

.detail-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
}

/* 封面 */
.detail-cover {
    width: 100%; aspect-ratio: 4/3; background: #F0EDE6; overflow: hidden;
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

/* 基本信息 */
.detail-basic {
    background: var(--surface); padding: 20px 16px; margin-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.detail-basic .detail-category {
    display: inline-block; font-size: 10px; text-transform: uppercase;
    color: var(--gold-dark); background: var(--gold-pale);
    padding: 4px 12px; border-radius: 2px;
    margin-bottom: 10px; font-weight: 700; letter-spacing: 2px;
    border: 1px solid rgba(184,153,46,0.15);
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.detail-title {
    font-size: 22px; font-weight: 700; line-height: 1.3; margin-bottom: 10px;
    color: var(--text); letter-spacing: 1px;
}
.detail-photographer {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--text-secondary);
}

/* 价格与属性 */
.detail-price-block {
    background: var(--surface); padding: 20px 16px; margin-bottom: 4px;
}
.detail-price {
    font-size: 34px; font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 16px; letter-spacing: 1px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.detail-price small {
    font-size: 14px; color: var(--text-muted);
    font-family: "Cormorant Garamond", serif; font-weight: 400;
}
.detail-attrs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
}
.detail-attr {
    font-size: 12px; color: var(--text-secondary);
    padding: 10px 12px; background: var(--surface-warm);
    border-radius: 3px; border-left: 3px solid rgba(184,153,46,0.2);
    transition: border-color 0.2s;
}
.detail-attr strong {
    color: var(--gold-dark); font-weight: 600; margin-right: 4px;
}

/* 承诺区块 */
.detail-authenticity { background: var(--surface); padding: 20px 16px; margin-bottom: 4px; }
.auth-card {
    background: linear-gradient(135deg, rgba(184,153,46,0.03), transparent);
    border: 1px solid rgba(184,153,46,0.15); border-radius: var(--btn-radius);
    padding: 20px 18px; position: relative;
}
/* SPQR 罗马封印 */
.auth-card::after {
    content: 'SPQR'; position: absolute; top: 12px; right: 14px;
    font-size: 10px; font-weight: 700; color: var(--roman-red);
    border: 1px solid var(--roman-red); border-radius: 2px;
    padding: 2px 9px; letter-spacing: 2px;
    opacity: 0.7;
    font-family: "Cinzel", serif;
    background: rgba(255,255,255,0.5);
}
.auth-card-title {
    font-size: 13px; font-weight: 700; color: var(--gold-dark);
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
    letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.auth-card-title svg { width: 16px; height: 16px; color: var(--gold); }
.auth-items { display: flex; flex-direction: column; gap: 10px; }
.auth-item {
    font-size: 13px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 10px;
}
.auth-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.auth-item .check { color: var(--gold-dark); }
.auth-item .shield { color: var(--success); }

/* Tab 切换 */
.detail-tabs { background: var(--surface); margin-bottom: 4px; }
.tab-nav {
    display: flex; border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky; top: 0; background: var(--surface);
}
.tab-btn {
    flex: 1; padding: 13px 0; font-size: 13px;
    color: var(--text-secondary); text-align: center;
    transition: all 0.3s; position: relative; font-weight: 500;
    letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.tab-btn::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: var(--gold); transition: width 0.3s var(--ease-out);
}
.tab-btn.active { color: var(--gold-dark); font-weight: 700; }
.tab-btn.active::after { width: 40px; }

.tab-content { padding: 16px; }
.story-content { font-size: 14px; line-height: 1.85; color: var(--text-secondary); }
.story-content h3 {
    font-size: 16px; color: var(--gold-dark); margin: 20px 0 10px;
    letter-spacing: 2px;
    padding-left: 12px; border-left: 3px solid var(--gold);
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.story-content h3:first-child { margin-top: 0; }
.story-content p { margin-bottom: 10px; }
.story-content ul { padding-left: 18px; list-style: none; margin-bottom: 10px; }
.story-content li {
    margin-bottom: 5px; position: relative; padding-left: 16px;
}
.story-content li::before {
    content: '›'; position: absolute; left: 0; color: var(--gold);
    font-weight: 700; font-size: 16px; top: -2px;
}

/* 作品集预览 */
.portfolio-strip {
    display: flex; gap: 6px; overflow-x: auto;
    padding: 0 0 8px; margin-bottom: 12px;
    scrollbar-width: none;
}
.portfolio-strip::-webkit-scrollbar { display: none; }
.portfolio-strip img {
    width: 90px; height: 68px; object-fit: cover; border-radius: 3px;
    flex-shrink: 0; border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-xs);
}
.portfolio-strip img:active {
    transform: scale(1.12);
    box-shadow: var(--shadow-md);
}

/* 留言 */
.comment-item {
    display: flex; gap: 12px; margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.comment-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #B0922A, #8B7220);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #FFF; font-weight: 600;
    font-family: "Cinzel", serif;
}
.comment-body { flex: 1; min-width: 0; }
.comment-author { font-size: 13px; font-weight: 700; display: inline; color: var(--text); }
.comment-time { font-size: 11px; color: var(--text-muted); display: inline; margin-left: 8px; }
.comment-text { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
.comment-reply {
    margin-top: 8px; padding: 10px 12px;
    background: var(--surface-warm);
    border-radius: 3px; font-size: 12px; color: var(--text-secondary);
    border-left: 3px solid rgba(184,153,46,0.25);
}
.reply-badge {
    font-size: 10px; color: var(--gold-dark); font-weight: 700;
    display: block; margin-bottom: 2px;
    letter-spacing: 1px;
}

/* 详情底部固定栏 */
.detail-bottom-bar {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: var(--shadow-overlay); display: flex; gap: 12px;
}
.detail-bottom-bar .btn-outline { flex-shrink: 0; }
.detail-bottom-bar .btn-gold { flex: 1; }

/* ═══════════════════════════════════
   预约/登录弹窗
   ═══════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(2px);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-sheet {
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    width: 100%; max-width: 480px; max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s var(--ease-spring);
    box-shadow: var(--shadow-lg), 0 -4px 30px rgba(0,0,0,0.08);
}
.modal-overlay.open .modal-sheet { transform: translateY(0); }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.modal-header h3 {
    font-size: 17px; color: var(--gold-dark); letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif; font-weight: 700;
}
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s;
}
.modal-close svg { width: 20px; height: 20px; }
.modal-close:active { background: rgba(0,0,0,0.04); color: var(--text); }

.modal-body { padding: 20px; }

.modal-item-summary {
    padding: 14px; background: var(--surface-warm);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--btn-radius); font-size: 14px;
    font-weight: 600; color: var(--gold-dark); margin-bottom: 18px;
    display: flex; justify-content: space-between; align-items: center;
}

.modal-field { margin-bottom: 18px; }
.modal-field label {
    display: block; font-size: 13px; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
    letter-spacing: 1px;
}
.modal-field input[type="text"],
.modal-field input[type="date"] {
    width: 100%;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--btn-radius); padding: 11px 14px;
    font-size: 15px; outline: none;
    background: var(--surface-warm); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-pale);
}

.modal-field textarea {
    width: 100%;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--btn-radius); padding: 11px 14px;
    font-size: 15px; outline: none; resize: vertical; min-height: 64px;
    background: var(--surface-warm); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.modal-field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-pale);
}

.payment-options { display: flex; gap: 12px; }
.payment-option {
    display: flex; align-items: center; gap: 6px;
    padding: 11px 18px;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--btn-radius); font-size: 13px;
    cursor: pointer; transition: all 0.2s;
    flex: 1; justify-content: center; color: var(--text-secondary);
    background: var(--surface-warm);
}
.payment-option.selected {
    border-color: var(--gold); background: var(--gold-pale);
    color: var(--gold-dark); font-weight: 600;
}

.modal-total {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; font-size: 15px; font-weight: 600;
}
.total-price {
    font-size: 26px; font-weight: 700;
    color: var(--gold-dark);
    font-family: "Cinzel", "Cormorant Garamond", serif;
}

.modal-agreement {
    font-size: 12px; color: var(--text-muted);
    text-align: center; margin-top: 14px;
}
.modal-agreement a { color: var(--gold-dark); text-decoration: underline; }

/* ═══════════════════════════════════
   登录弹窗额外样式
   ═══════════════════════════════════ */
.auth-tabs {
    display: flex; margin-bottom: 20px;
    background: var(--surface-warm); border-radius: 6px; padding: 4px;
}
.auth-tab {
    flex: 1; padding: 9px 0; text-align: center;
    font-size: 14px; font-weight: 600; border-radius: 4px;
    color: var(--text-muted); transition: all 0.2s;
}
.auth-tab.active {
    background: #FFF; color: var(--gold-dark);
    box-shadow: var(--shadow-xs);
}

.flex-grow { flex: 1; }

.input-row { display: flex; gap: 8px; }
.btn-code {
    padding: 11px 16px;
    border: 1.5px solid var(--gold); border-radius: var(--btn-radius);
    color: var(--gold-dark); font-size: 13px; white-space: nowrap;
    font-weight: 700; transition: all 0.2s; flex-shrink: 0;
    background: transparent;
    letter-spacing: 1px;
}
.btn-code:disabled { opacity: 0.35; border-color: var(--text-muted); color: var(--text-muted); }
.btn-code:not(:disabled):active { background: var(--gold-pale); }

.btn-lg { padding: 15px 24px; font-size: 17px; border-radius: 6px; }

/* ═══════════════════════════════════
   导航扩展（子页面）
   ═══════════════════════════════════ */
.back-link {
    display: flex; align-items: center; gap: 4px;
    font-size: 14px; color: var(--text-secondary);
    padding: 4px 0;
}
.back-link svg { width: 20px; height: 20px; }

.nav-title {
    font-size: 16px; font-weight: 700; color: var(--text);
    letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}

.admin-badge {
    font-size: 10px;
    background: linear-gradient(135deg, var(--roman-red-dark), var(--roman-red));
    color: #FFF; padding: 3px 12px; border-radius: 2px;
    font-weight: 700; letter-spacing: 2px;
    font-family: "Cinzel", serif;
}

/* ═══════════════════════════════════
   用户页
   ═══════════════════════════════════ */
.user-body { padding-top: var(--nav-height); padding-bottom: var(--tab-bar-height); }
.user-main { padding: 0 12px 40px; }

/* 用户卡片 */
.profile-card {
    background: var(--surface); border-radius: var(--card-radius);
    padding: 24px 20px; margin-top: 12px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}
.profile-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #C9AE52, #8B7220);
    color: #FFF; font-size: 22px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: "Cinzel", serif;
    box-shadow: 0 2px 8px rgba(184,153,46,0.25);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 700; margin-bottom: 2px; color: var(--text); }
.profile-phone { font-size: 13px; color: var(--text-muted); }

.btn-logout {
    font-size: 12px; color: var(--roman-red-light);
    padding: 7px 16px; border: 1.5px solid rgba(168,68,68,0.2);
    border-radius: var(--btn-radius); transition: all 0.2s;
    flex-shrink: 0; background: transparent; font-weight: 600;
    letter-spacing: 1px;
}
.btn-logout:active { background: var(--roman-red-glow); }

/* 页面内 Tab */
.page-tabs {
    display: flex;
    background: var(--surface);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: var(--nav-height); z-index: 99;
    margin: 12px -12px 0;
}
.page-tab {
    flex: 1; padding: 13px 0; font-size: 12px; font-weight: 600;
    text-align: center; color: var(--text-secondary);
    position: relative; transition: all 0.3s; letter-spacing: 2px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.page-tab::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 0; height: 2px;
    background: var(--gold); transition: width 0.3s var(--ease-out);
}
.page-tab.active { color: var(--gold-dark); }
.page-tab.active::after { width: 36px; }

.tab-badge {
    font-size: 10px; background: var(--roman-red); color: #FFF;
    padding: 2px 7px; border-radius: 10px; margin-left: 4px;
    font-weight: 700;
}

.page-panel { display: none; }
.page-panel.active { display: block; }

/* 表单系统 */
.form-section {
    background: var(--surface); padding: 18px; margin-bottom: 8px;
    border-radius: var(--card-radius);
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-xs);
}

.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: block; font-size: 13px; font-weight: 700;
    margin-bottom: 6px; color: var(--text);
    letter-spacing: 1px;
}
.form-label.required::after { content: ' *'; color: var(--roman-red-light); }

.form-input, .form-textarea, .form-select {
    width: 100%;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--btn-radius); padding: 11px 14px;
    font-size: 15px; outline: none;
    background: var(--surface-warm); color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-pale);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B0922A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 40px;
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-row { display: flex; gap: 12px; }
.form-col { flex: 1; }
.form-col-sm { flex: 0 0 100px; }

.cover-preview {
    margin-top: 8px; position: relative; display: inline-block;
}
.cover-preview img {
    width: 200px; height: 120px; object-fit: cover;
    border-radius: 3px; border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-xs);
}
.cover-remove {
    position: absolute; top: -7px; right: -7px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #FFF; color: var(--roman-red-light);
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; border: 1px solid rgba(0,0,0,0.1);
    box-shadow: var(--shadow-sm);
}

.submit-bottom-spacer { height: 80px; }

/* 列表项 */
.product-list-item {
    background: var(--surface); border-radius: var(--card-radius);
    padding: 14px 16px; margin-bottom: 8px;
    box-shadow: var(--shadow-xs);
    border: 1px solid rgba(0,0,0,0.04);
}
.product-list-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 6px;
}
.product-list-header h4 { font-size: 15px; font-weight: 600; flex: 1; margin-right: 8px; color: var(--text); }
.product-list-meta {
    display: flex; gap: 16px; font-size: 12px; color: var(--text-muted);
}
.product-list-stats {
    display: flex; gap: 16px; font-size: 12px; color: var(--text-secondary);
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid rgba(0,0,0,0.03);
}
.product-list-note {
    margin-top: 8px;
    font-size: 12px; color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.04);
}

/* 状态标签 */
.status-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 2px; letter-spacing: 1px;
}
.status-pending { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid rgba(184,153,46,0.2); }
.status-approved { background: rgba(85,139,85,0.08); color: #4A7A4A; border: 1px solid rgba(85,139,85,0.2); }
.status-rejected { background: var(--roman-red-glow); color: var(--roman-red-light); border: 1px solid rgba(168,68,68,0.15); }

.profile-reject-reason {
    font-size: 12px; color: var(--roman-red-light);
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid rgba(168,68,68,0.08);
}

/* 审核管理 */
.admin-card {
    background: var(--surface); margin: 8px 0; padding: 18px;
    border-radius: var(--card-radius); box-shadow: var(--shadow-xs);
    border: 1px solid rgba(0,0,0,0.04);
}
.admin-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 8px;
}
.admin-card-title { font-size: 16px; font-weight: 600; flex: 1; margin-right: 8px; color: var(--text); }
.admin-card-meta {
    display: flex; flex-wrap: wrap; gap: 6px 16px;
    font-size: 12px; color: var(--text-muted); margin-bottom: 8px;
}
.admin-review-note {
    font-size: 13px; color: var(--gold-dark);
    padding: 8px 12px; background: var(--gold-pale);
    border-radius: 3px; margin-bottom: 8px;
}
.admin-actions { display: flex; gap: 10px; margin-top: 12px; }
.admin-actions button { flex: 1; text-align: center; }

.btn-success {
    background: var(--success); color: #FFF;
    border-radius: var(--btn-radius); padding: 9px 18px;
    font-size: 13px; font-weight: 600; transition: all 0.2s;
    letter-spacing: 1px;
}
.btn-success:active { opacity: 0.85; }

.btn-danger {
    background: var(--danger); color: #FFF;
    border-radius: var(--btn-radius); padding: 9px 18px;
    font-size: 13px; font-weight: 600; transition: all 0.2s;
    letter-spacing: 1px;
}
.btn-danger:active { opacity: 0.85; }

.admin-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.profile-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════
   页脚 — 联系方式 + APP下载
   ═══════════════════════════════════ */
#site-footer {
    background: var(--surface);
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 0; margin-top: 4px;
    margin-bottom: 8px;
}

.footer-app-download {
    padding: 28px 16px 20px;
    text-align: center;
}

.footer-section-title {
    font-size: 13px; font-weight: 600; color: var(--gold-dark);
    letter-spacing: 4px; margin-bottom: 18px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}

.app-download-grid {
    display: flex; gap: 10px;
    max-width: 520px; margin: 0 auto;
}

.app-download-card {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 16px 8px;
    background: var(--surface-warm);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--card-radius);
    transition: all 0.3s; cursor: pointer;
    box-shadow: var(--shadow-xs);
}
.app-download-card:active {
    border-color: var(--gold);
    background: #FFF;
    transform: scale(0.97);
    box-shadow: var(--shadow-md), 0 2px 12px rgba(184,153,46,0.1);
}
.app-download-card svg {
    width: 28px; height: 28px; color: var(--gold);
    margin-bottom: 4px;
}

.app-platform {
    font-size: 12px; font-weight: 700; color: var(--text);
    letter-spacing: 1px;
}
.app-store-name {
    font-size: 10px; color: var(--text-muted);
    margin-bottom: 6px;
}
.app-dl-btn {
    display: inline-block; font-size: 11px; font-weight: 700;
    color: var(--gold-dark); border: 1.5px solid var(--gold);
    border-radius: 3px; padding: 3px 18px;
    letter-spacing: 2px;
    transition: all 0.2s;
    font-family: "Cinzel", serif;
}
.app-download-card:active .app-dl-btn {
    background: var(--gold); color: #FFF;
}

.footer-divider {
    width: 50%; height: 1px; margin: 0 auto;
    background: linear-gradient(90deg, transparent, rgba(184,153,46,0.2), transparent);
}

.footer-inner {
    display: flex; flex-wrap: wrap; gap: 16px;
    max-width: var(--max-width); margin: 0 auto;
    padding: 22px 16px;
}

.footer-brand {
    flex: 1 1 100%;
    text-align: center; margin-bottom: 4px;
}
.footer-logo {
    display: block; font-size: 16px; font-weight: 700;
    color: var(--gold-dark); letter-spacing: 5px;
    font-family: "Cinzel", "Cormorant Garamond", serif;
}
.footer-slogan {
    display: block; font-size: 11px; color: var(--text-muted);
    margin-top: 4px; letter-spacing: 2px;
}

.footer-contact {
    flex: 1 1 200px;
    display: flex; flex-direction: column; gap: 8px;
}

.contact-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-secondary);
}
.contact-item svg {
    width: 14px; height: 14px; flex-shrink: 0;
    color: var(--gold);
}

.footer-qr {
    flex: 0 0 auto;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; margin: 0 auto;
}
.qr-placeholder {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 3px; background: var(--surface-warm);
}
.qr-placeholder svg { width: 48px; height: 48px; color: var(--gold); }
.footer-qr span { font-size: 10px; color: var(--text-muted); }

.footer-bottom {
    text-align: center; margin-top: 16px; padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.04);
    font-size: 11px; color: var(--text-muted); letter-spacing: 2px;
}

@media (min-width: 600px) {
    .footer-inner { flex-wrap: nowrap; align-items: flex-start; }
    .footer-brand { flex: 0 0 auto; text-align: left; }
    .footer-contact { flex: 1; }
    .footer-qr { margin: 0; }
}

/* ═══════════════════════════════════
   响应式
   ═══════════════════════════════════ */
@media (max-width: 360px) {
    #item-feed { columns: 1; padding: 8px 6px; }
    .item-card { margin-bottom: 8px; }
    .card-body { padding: 10px 12px 12px; }
}

@media (min-width: 600px) {
    #top-nav { padding: 0 20px; }
    #item-feed { columns: 3; column-gap: 12px; padding: 14px 12px; }
    .item-card { margin-bottom: 12px; }
    .detail-cover { aspect-ratio: 16/9; }
}

@media (min-width: 960px) {
    #item-feed { columns: 4; column-gap: 14px; padding: 18px 14px; }
    .item-card { margin-bottom: 14px; }
    .item-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md), 0 4px 20px rgba(184,153,46,0.1);
        border-color: rgba(184,153,46,0.3);
    }
    .item-card:hover::before { width: 3px; }
    .item-card:hover .card-cover img { transform: scale(1.03); }
    .app-download-card:hover {
        border-color: var(--gold);
        background: #FFF;
        box-shadow: var(--shadow-md), 0 2px 12px rgba(184,153,46,0.1);
    }
    .app-download-card:hover .app-dl-btn {
        background: var(--gold); color: #FFF;
    }
}

@media (min-width: 1200px) {
    #item-feed { columns: 5; }
}

@media (max-height: 500px) and (orientation: landscape) {
    #item-feed { columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
