﻿  /* ===== 全局基础样式 ===== */
  * { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-300: #5eead4;
    --primary-400: #2dd4bf;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;
    --primary-800: #115e59;
    --primary-900: #134e4a;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --bg-page: #faf8f3;
    --bg-card: #ffffff;
    --bg-soft: #f3f0e8;
    --text-ink: #1c1917;
    --text-primary: #292524;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --stall-yellow: #fbbf24;
    --stall-rose: #f43f5e;
    --stall-violet: #8b5cf6;
    --stall-sky: #0ea5e9;
    --stall-emerald: #10b981;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-stall: 0 8px 0 rgba(0,0,0,0.06), 0 16px 32px rgba(0,0,0,0.08);
  }

  @keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
  @keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.6; transform:scale(1.2); } }
  @keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
  @keyframes fadeInRight { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
  @keyframes float { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
  @keyframes bounce { 0%,100% { transform:translateY(0) rotate(-5deg); } 50% { transform:translateY(-8px) rotate(5deg); } }
  @keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
  @keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
  @keyframes toastIn { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }

  body {
    font-family:'AlibabaPuHuiTi',sans-serif;
    background:var(--bg-page);
    color:var(--text-primary);
    line-height:1.6;
    font-size:14px;
    -webkit-font-smoothing:antialiased;
  }
  .display-font { font-family:'AlibabaPuHuiTi',sans-serif; letter-spacing:0.02em; }
  .page { min-height:100vh; padding-top:68px; }
  .container { max-width:1280px; margin:0 auto; padding:0 32px; }

  .btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 20px; border-radius:var(--radius-pill); font-size:14px; font-weight:600; cursor:pointer; border:none; text-decoration:none; transition:all .2s ease; font-family:inherit; white-space:nowrap; }
  .btn-ghost { background:transparent; color:var(--text-secondary); }
  .btn-ghost:hover { background:var(--bg-soft); color:var(--text-primary); }
  .btn-primary { background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); color:#fff; box-shadow:0 4px 12px rgba(13,148,136,.3); }
  .btn-primary:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(13,148,136,.4); }
  .btn-accent { background:linear-gradient(135deg,#fb923c,#f97316); color:#fff; box-shadow:0 4px 12px rgba(249,115,22,.3); }
  .btn-accent:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(249,115,22,.4); }
  .btn-outline { background:#fff; color:var(--primary-600); border:2px solid var(--primary-100); }
  .btn-outline:hover { border-color:var(--primary-500); background:var(--primary-50); }
  .btn-danger { background:linear-gradient(135deg,#ef4444,#dc2626); color:#fff; }
  .btn-lg { padding:14px 28px; font-size:15px; }
  .btn-block { width:100%; }
  .btn-sm { padding:6px 14px; font-size:13px; }
  .btn:disabled { opacity:.5; cursor:not-allowed; }

  .navbar { position:fixed; top:0; left:0; right:0; z-index:100; background:rgba(255,255,255,.9); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid rgba(0,0,0,.04); transition:all .3s ease; }
  .navbar.scrolled { box-shadow:var(--shadow-sm); }
  .nav-inner { max-width:1280px; margin:0 auto; padding:14px 32px; display:flex; align-items:center; justify-content:space-between; }
  .nav-left { display:flex; align-items:center; gap:10px; flex-shrink:0; }
  .logo-img { height:64px; width:auto; display:block; cursor:pointer; flex-shrink:0; transition:transform .3s ease; }
  .logo-img:hover { transform:scale(1.02); }
  .nav-right { display:flex; align-items:center; gap:24px; flex-shrink:0; }
  .nav-links-desktop { display:flex; align-items:center; gap:20px; }
  .nav-link { display:flex; align-items:center; gap:6px; color:var(--text-secondary); font-size:15px; font-weight:500; cursor:pointer; position:relative; padding:6px 0; white-space:nowrap; }
  .nav-link:hover { color:var(--primary-600); }
  .nav-link.active { color:var(--primary-600); }
  .nav-link .badge { position:absolute; top:-4px; right:-14px; min-width:18px; height:18px; background:var(--danger); color:#fff; font-size:11px; font-weight:700; border-radius:9px; padding:0 5px; display:flex; align-items:center; justify-content:center; }
  .nav-divider { width:1px; height:24px; background:var(--bg-soft); flex-shrink:0; }
  .hamburger-btn { display:none; background:none; border:none; color:var(--text-secondary); cursor:pointer; padding:6px; border-radius:8px; align-items:center; justify-content:center; transition:all .2s; flex-shrink:0; }
  .hamburger-btn:hover { color:var(--primary-600); background:var(--bg-soft); }
  .mobile-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,.35); z-index:98; }
  .mobile-overlay.open { display:block; }
  .mobile-menu { position:absolute; top:100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--bg-soft); box-shadow:0 8px 24px rgba(0,0,0,.1); max-height:0; overflow:hidden; transition:max-height .3s ease; z-index:99; }
  .mobile-menu.open { max-height:400px; }
  .mobile-menu-inner { padding:0 16px; display:flex; flex-direction:column; }
  .mobile-menu.open .mobile-menu-inner { padding:8px 16px 16px; }
  .mobile-menu-item { display:flex; align-items:center; gap:10px; padding:14px 16px; border-radius:0; font-size:15px; font-weight:500; color:var(--text-secondary); cursor:pointer; position:relative; white-space:nowrap; transition:color .2s,background .2s; }
  .mobile-menu-item:hover { color:var(--primary-600); background:var(--bg-soft); }
  .mobile-menu-item.active { color:var(--primary-600); background:transparent; }
  .mobile-menu-divider { height:1px; background:var(--bg-soft); margin:8px 16px; }
  .mobile-menu-auth { color:var(--primary-600); font-weight:600; }
  .mobile-menu-auth:hover { background:var(--primary-50); }
  .mobile-badge { position:relative; margin-left:auto; top:0; right:0; min-width:18px; height:18px; background:var(--danger); color:#fff; font-size:11px; font-weight:700; border-radius:9px; padding:0 5px; display:flex; align-items:center; justify-content:center; }
  .user-menu-wrap { position:relative; flex-shrink:0; }
  .user-info { display:flex; align-items:center; gap:8px; padding:4px 8px 4px 4px; border-radius:var(--radius-pill); background:var(--bg-soft); cursor:pointer; transition:background .2s; }
  .user-info:hover { background:var(--bg-soft-hover,var(--bg-soft)); }
  .user-avatar { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:700; background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); flex-shrink:0; }
  .user-name { font-size:14px; font-weight:500; color:var(--text-primary); white-space:nowrap; }
  .user-menu-dropdown { position:absolute; top:calc(100% + 8px); right:0; min-width:180px; background:#fff; border-radius:12px; box-shadow:0 10px 32px rgba(0,0,0,.12); border:1px solid var(--bg-soft); padding:8px; z-index:1000; }
  .user-menu-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:8px; cursor:pointer; font-size:14px; color:var(--text-primary); transition:background .2s; }
  .user-menu-item:hover { background:var(--bg-soft); }
  .user-menu-item svg { width:18px; height:18px; color:var(--text-secondary); flex-shrink:0; }
  .user-menu-divider { height:1px; background:var(--bg-soft); margin:6px 0; }
  .user-menu-logout { color:var(--danger); }
  .user-menu-logout svg { color:var(--danger); }

  .hero { position:relative; min-height:480px; padding:72px 32px 32px; overflow:hidden; background:radial-gradient(ellipse at 20% 80%,rgba(20,184,166,.15) 0%,transparent 50%),radial-gradient(ellipse at 80% 20%,rgba(249,115,22,.1) 0%,transparent 50%),linear-gradient(180deg,#f0fdf4 0%,var(--bg-page) 100%); }
  .hero-pattern { position:absolute; top:0; left:0; right:0; bottom:0; background-image:radial-gradient(circle at 25% 25%,rgba(13,148,136,.08) 2px,transparent 2px),radial-gradient(circle at 75% 75%,rgba(249,115,22,.06) 2px,transparent 2px); background-size:60px 60px; pointer-events:none; }
  .hero-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:1.1fr 1fr; gap:60px; align-items:center; position:relative; z-index:2; }
  .hero-content { animation:fadeInUp .8s ease-out; }
  .hero-badge { display:inline-flex; align-items:center; gap:8px; padding:8px 16px; background:#fff; border-radius:var(--radius-pill); font-size:13px; font-weight:500; color:var(--primary-600); box-shadow:var(--shadow-sm); margin-bottom:28px; border:1px solid var(--primary-100); }
  .hero-badge .dot { width:8px; height:8px; background:var(--primary-500); border-radius:50%; animation:pulse 2s infinite; }
  .hero-title { font-size:56px; font-weight:900; line-height:1.2; color:var(--text-ink); margin-bottom:32px; letter-spacing:-.03em; }
  .hero-title .line { display:block; }
  .hero-title .highlight { position:relative; display:inline-block; color:var(--primary-600); }
  .hero-title .highlight::after { content:''; position:absolute; bottom:4px; left:0; right:0; height:12px; background:#ffedd5; z-index:-1; border-radius:4px; transform:skewX(-5deg); }
  .hero-title .accent-word { color:#f97316; }
  .hero-search { display:flex; align-items:stretch; background:#fff; border-radius:var(--radius-pill); padding:6px; box-shadow:var(--shadow-md); max-width:520px; margin-bottom:24px; border:2px solid transparent; transition:border-color .2s; }
  .hero-search:focus-within { border-color:var(--primary-500); }
  .search-input-wrap { flex:1; display:flex; align-items:center; gap:12px; padding:0 20px; }
  .search-input-wrap svg { flex-shrink:0; color:var(--text-muted); }
  .search-input { flex:1; border:none; outline:none; font-size:16px; font-family:inherit; color:var(--text-primary); background:transparent; padding:14px 0; }
  .search-input::placeholder { color:var(--text-muted); }
  .search-btn { padding:14px 28px; font-size:15px; cursor:pointer; }
  .hero-tags { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
  .hero-tags-label { font-size:13px; color:var(--text-muted); }
  .hero-tag { padding:6px 14px; background:#fff; border:1px solid var(--bg-soft); border-radius:var(--radius-pill); font-size:13px; color:var(--text-secondary); cursor:pointer; transition:all .2s; }
  .hero-tag:hover { border-color:var(--primary-500); color:var(--primary-600); background:var(--primary-50); }

  .hero-visual { position:relative; height:420px; animation:fadeInRight .8s ease-out .2s both; }
  .market-scene { position:relative; width:100%; height:100%; }
  .stall { position:absolute; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-stall); transition:transform .3s ease; background:#fff; width:190px; }
  .stall:hover { transform:translateY(-4px); }
  .stall-canopy { height:34px; position:relative; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; }
  .stall-canopy::before { content:''; position:absolute; bottom:-6px; left:0; right:0; height:12px; background:inherit; clip-path:polygon(0 0,100% 0,100% 100%,83% 0,67% 100%,50% 0,33% 100%,17% 0,0 100%); opacity:.7; }
  .stall-body { background:#fff; padding:14px; }
  .stall-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }
  .stall-name { font-size:14px; font-weight:700; color:var(--text-ink); margin-bottom:2px; }
  .stall-desc { font-size:11px; color:var(--text-muted); }
  .stall-1 { top:10px; left:10px; animation:float 4s ease-in-out infinite; }
  .stall-2 { top:50px; right:0; animation:float 4.5s ease-in-out infinite .5s; }
  .stall-3 { bottom:60px; left:30px; animation:float 5s ease-in-out infinite 1s; }
  .stall-4 { bottom:20px; right:20px; animation:float 4.2s ease-in-out infinite 1.5s; }
  .stall-1 .stall-canopy { background:linear-gradient(135deg,#fbbf24,#f59e0b); }
  .stall-1 .stall-icon { background:#fef3c7; color:#d97706; }
  .stall-2 .stall-canopy { background:linear-gradient(135deg,#f472b6,#ec4899); }
  .stall-2 .stall-icon { background:#fce7f3; color:#db2777; }
  .stall-3 .stall-canopy { background:linear-gradient(135deg,#34d399,#10b981); }
  .stall-3 .stall-icon { background:#d1fae5; color:#059669; }
  .stall-4 .stall-canopy { background:linear-gradient(135deg,#60a5fa,#3b82f6); }
  .stall-4 .stall-icon { background:#dbeafe; color:#2563eb; }
  .deco { position:absolute; pointer-events:none; }
  .deco-bubble { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff; box-shadow:var(--shadow-md); animation:bounce 3s ease-in-out infinite; }
  .deco-1 { top:0; right:160px; color:var(--accent); animation-delay:.2s; }
  .deco-2 { top:160px; left:-10px; color:var(--primary-500); animation-delay:.8s; }
  .deco-3 { bottom:0; right:0; color:var(--stall-violet); animation-delay:1.2s; }

  .stats-bar { background:#fff; border-bottom:1px solid var(--bg-soft); padding:32px; }
  .stats-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:repeat(4,1fr); gap:40px; }
  .stat-item { text-align:center; position:relative; }
  .stat-item:not(:last-child)::after { content:''; position:absolute; right:-20px; top:50%; transform:translateY(-50%); width:1px; height:40px; background:var(--bg-soft); }
  .stat-number { font-size:36px; font-weight:900; color:var(--text-ink); line-height:1; margin-bottom:8px; }
  .stat-number .unit { font-size:20px; color:var(--primary-600); margin-left:2px; }
  .stat-label { font-size:14px; color:var(--text-muted); }

  .categories-section { padding:20px 32px; max-width:1280px; margin:0 auto; }
  .section-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:20px; }
  .section-title-wrap { display:flex; flex-direction:column; gap:8px; }
  .section-eyebrow { font-size:13px; font-weight:600; color:var(--primary-600); text-transform:uppercase; letter-spacing:.1em; }
  .section-title { font-size:32px; font-weight:800; color:var(--text-ink); letter-spacing:-.02em; }
  .section-desc { font-size:15px; color:var(--text-muted); }
  .section-link { display:flex; align-items:center; gap:4px; color:var(--primary-600); font-size:14px; font-weight:600; cursor:pointer; }
  .section-link:hover { gap:8px; }
  .category-tabs { display:flex; align-items:center; gap:12px; overflow-x:auto; padding:4px 2px; scrollbar-width:none; -ms-overflow-style:none; }
  .category-tabs::-webkit-scrollbar { display:none; }
  .category-tab { flex-shrink:0; padding:10px 22px; border-radius:9999px; border:1px solid var(--bg-soft); background:#fff; color:var(--text-secondary); font-size:14px; font-weight:600; cursor:pointer; transition:all .2s ease; white-space:nowrap; font-family:inherit; line-height:1.4; }
  .category-tab:hover { border-color:var(--primary-500); color:var(--primary-600); background:var(--primary-50); }
  .category-tab.active { background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); color:#fff; border-color:transparent; box-shadow:0 4px 12px rgba(13,148,136,.25); }
  .category-tab.active:hover { color:#fff; background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); }
  .category-tab.skeleton { border-color:transparent; pointer-events:none; }

  .filter-row { display:flex; align-items:center; gap:16px; margin-bottom:10px; }
  .filter-label { font-size:15px; font-weight:700; color:var(--text-ink); white-space:nowrap; }
  .region-dropdown { margin:-4px 0 16px 0; padding:16px 20px; background:#fff; border:1px solid var(--bg-soft); border-radius:var(--radius-xl); box-shadow:var(--shadow-md); animation:fadeIn .2s ease; }
  .region-dropdown-title { font-size:13px; font-weight:700; color:var(--text-muted); margin-bottom:12px; }
  .region-dropdown-grid { display:flex; flex-wrap:wrap; gap:10px; }
  .region-dropdown-item { padding:8px 16px; border-radius:9999px; border:1px solid var(--bg-soft); background:#fff; color:var(--text-secondary); font-size:13px; font-weight:600; cursor:pointer; transition:all .2s ease; font-family:inherit; }
  .region-dropdown-item:hover { border-color:var(--primary-500); color:var(--primary-600); background:var(--primary-50); }
  .region-dropdown-header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
  .region-back { padding:6px 12px; border-radius:9999px; border:1px solid var(--bg-soft); background:var(--bg-warm); color:var(--text-secondary); font-size:13px; font-weight:600; cursor:pointer; transition:all .2s ease; font-family:inherit; }
  .region-back:hover { border-color:var(--primary-500); color:var(--primary-600); background:var(--primary-50); }
  .region-dropdown .category-tabs { flex-wrap:wrap; overflow-x:visible; }
  @keyframes fadeIn { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }

  .featured-section { padding:12px 32px 60px; background:linear-gradient(180deg,transparent 0%,rgba(20,184,166,.03) 50%,transparent 100%); }
  .featured-inner { max-width:1280px; margin:0 auto; }
  .stalls-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
  .service-card { background:#fff; border-radius:var(--radius-xl); overflow:visible; box-shadow:var(--shadow-sm); transition:all .3s ease; cursor:pointer; position:relative; display:flex; flex-direction:column; width:100%; box-sizing:border-box; }
  .service-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
  .card-cover { height:180px; position:relative; overflow:hidden; flex-shrink:0; background:#e9edf2; background-size:cover!important; background-position:center!important; border-radius:var(--radius-xl) var(--radius-xl) 0 0; }
  .card-cover > img.cover-img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; display:block; opacity:0; transition:opacity .35s ease; }
  .card-cover > img.cover-img.loaded { opacity:1; }
  .card-cover-bg { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.3); }
  .card-cover-bg svg { width:80px; height:80px; opacity:.6; }
  .card-tag { position:absolute; top:16px; left:16px; padding:6px 12px; background:rgba(255,255,255,.95); backdrop-filter:blur(4px); border-radius:var(--radius-pill); font-size:12px; font-weight:600; color:var(--text-ink); display:flex; align-items:center; gap:4px; }
  .card-tag.hot { background:linear-gradient(135deg,#fef3c7,#fde68a); color:#b45309; }
  .card-tag.new { background:linear-gradient(135deg,#dbeafe,#bfdbfe); color:#1d4ed8; }
  .card-body { padding:20px; display:grid; grid-template-rows:1fr 54px auto; flex:1; }
  .card-body-main { overflow:hidden; }
  .card-category { font-size:12px; font-weight:600; color:var(--primary-600); margin-bottom:8px; text-transform:uppercase; letter-spacing:.05em; }
  .card-title { font-size:18px; font-weight:700; color:var(--text-ink); margin-bottom:8px; line-height:1.4; }
  .card-desc { font-size:14px; color:var(--text-muted); margin-bottom:16px; line-height:1.6; max-height:44.8px; overflow:hidden; word-break:break-word; }
  .card-seller { display:flex; align-items:center; gap:10px; padding-top:16px; border-top:1px solid var(--bg-soft); height:54px; box-sizing:border-box; }
  .seller-avatar { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#fff; flex-shrink:0; }
  .seller-info { flex:1; min-width:0; display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto; align-items:center; column-gap:4px; }
  .seller-name-row { display:flex; align-items:center; gap:4px; min-width:0; line-height:1.1; grid-column:1; grid-row:1; }
  .seller-name-text { font-size:13px; font-weight:600; color:var(--text-primary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; min-width:0; }
  .seller-address { font-size:12px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.1; margin-top:-2px; grid-column:1; grid-row:2; }
  .seller-address:empty { display:none; }
  .seller-level-badge { width:44px; height:44px; flex-shrink:0; vertical-align:middle; display:inline-block; object-fit:contain; grid-column:2; grid-row:1 / 3; align-self:center; justify-self:end; }
  .seller-level-badge-inline { width:52px; height:52px; flex-shrink:0; vertical-align:middle; display:inline-block; object-fit:contain; }
  .card-actions { display:flex; gap:10px; padding-top:16px; }
  .card-actions .btn { flex:1; padding:10px 12px; font-size:13px; }
  .detail-page { padding:32px; }
  .detail-card { background:#fff; border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-sm); }
  .detail-header { padding:28px 32px; border-bottom:1px solid var(--bg-soft); display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
  .detail-title-row { display:flex; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
  .detail-title { font-size:28px; font-weight:800; color:var(--text-ink); letter-spacing:-.02em; }
  .status-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 14px; background:#dcfce7; color:#166534; border-radius:var(--radius-pill); font-size:13px; font-weight:600; }
  .status-badge .dot { width:8px; height:8px; border-radius:50%; background:#22c55e; }
  .status-badge.closed { background:#f3f4f6; color:#6b7280; }
  .status-badge.closed .dot { background:#9ca3af; }
  .detail-meta { display:flex; align-items:center; gap:16px; font-size:14px; color:var(--text-muted); flex-wrap:wrap; }
  .detail-report { width:44px; height:44px; border-radius:50%; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all .2s; color:var(--text-secondary); flex-shrink:0; }
  .detail-report:hover { background:var(--danger-light); color:var(--danger); }
  .detail-body { display:grid; grid-template-columns:1.2fr 1fr; gap:32px; padding:32px; }
  .detail-image { border-radius:var(--radius-lg); overflow:hidden; background:var(--bg-soft); display:flex; align-items:center; justify-content:center; min-height:240px; }
  .detail-image svg { width:120px; height:120px; opacity:.8; }
  .detail-image img { width:100%; height:auto; display:block; }
  .detail-info { display:flex; flex-direction:column; gap:24px; }
  .info-block { background:var(--bg-page); border-radius:var(--radius-lg); padding:20px; }
  .info-label { font-size:13px; font-weight:600; color:var(--text-muted); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
  .info-content { font-size:15px; color:var(--text-primary); line-height:1.7; white-space:pre-wrap; word-break:break-word; }
  .category-pill { display:inline-flex; align-items:center; padding:8px 18px; background:var(--cat-bg,var(--primary-100)); color:var(--cat-color,var(--primary-600)); border-radius:var(--radius-pill); font-size:14px; font-weight:600; border:1px solid currentColor; opacity:.5; }
  .seller-card { display:flex; align-items:center; gap:14px; }
  .seller-card .seller-avatar { width:52px; height:52px; font-size:18px; }
  .detail-footer { padding:20px 32px; border-top:1px solid var(--bg-soft); display:flex; justify-content:flex-end; }

  /* ===== 消息中心样式 ===== */
  .msg-page { padding:32px; }
  .msg-container { background:#fff; border-radius:var(--radius-xl); box-shadow:var(--shadow-sm); overflow:hidden; display:grid; grid-template-columns:320px 1fr; height:calc(100vh - 140px); min-height:600px; }
  .msg-sidebar { border-right:1px solid var(--bg-soft); display:flex; flex-direction:column; overflow:hidden; }
  .msg-sidebar-header { padding:20px; border-bottom:1px solid var(--bg-soft); }
  .msg-sidebar-title { font-size:18px; font-weight:700; color:var(--text-ink); margin-bottom:14px; }
  .msg-tabs { display:flex; gap:6px; background:var(--bg-soft); padding:4px; border-radius:var(--radius-pill); }
  .msg-tab { flex:1; padding:8px 12px; border-radius:var(--radius-pill); font-size:13px; font-weight:500; color:var(--text-secondary); cursor:pointer; text-align:center; transition:all .2s; position:relative; }
  .msg-tab.active { background:#fff; color:var(--primary-600); box-shadow:var(--shadow-sm); }
  .msg-tab-badge { position:absolute; top:2px; right:8px; min-width:16px; height:16px; background:var(--danger); color:#fff; font-size:10px; font-weight:700; border-radius:8px; padding:0 4px; display:flex; align-items:center; justify-content:center; line-height:1; }
  .msg-list { flex:1; overflow-y:auto; }
  .msg-list-item { display:flex; align-items:center; gap:12px; padding:14px 20px; cursor:pointer; border-bottom:1px solid var(--bg-soft); transition:background .2s; position:relative; }
  .msg-list-item:hover { background:var(--bg-page); }
  .msg-list-item.active { background:var(--primary-50); border-left:3px solid var(--primary-500); padding-left:17px; }
  .msg-avatar { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; color:#fff; flex-shrink:0; position:relative; background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); }
  .msg-avatar.system { background:linear-gradient(135deg,var(--primary-500),var(--primary-600)); }
  .msg-avatar.official { background:linear-gradient(135deg,var(--stall-violet),#6d28d9); }
  .msg-avatar.online::after { content:''; position:absolute; bottom:0; right:0; width:12px; height:12px; background:#22c55e; border:2px solid #fff; border-radius:50%; }
  .msg-preview { flex:1; min-width:0; }
  .msg-preview-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; }
  .msg-name { font-size:14px; font-weight:600; color:var(--text-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .msg-time { font-size:11px; color:var(--text-muted); flex-shrink:0; }
  .msg-last { font-size:13px; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .msg-unread { position:absolute; top:14px; right:20px; min-width:18px; height:18px; background:var(--danger); color:#fff; font-size:11px; font-weight:700; border-radius:9px; padding:0 5px; display:flex; align-items:center; justify-content:center; }

  .msg-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }
  .msg-main-header { padding:16px 24px; border-bottom:1px solid var(--bg-soft); display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
  .msg-main-title { display:flex; align-items:center; gap:10px; }
  .msg-main-title .msg-avatar { width:36px; height:36px; font-size:14px; }
  .msg-main-name { font-size:16px; font-weight:700; color:var(--text-ink); }
  .msg-main-status { font-size:12px; color:var(--text-muted); }

  .msg-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
    background: #f7f9fc;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* ★★★ 消息气泡 – 头像与边框留出间距 ★★★ */
  .chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 80%;
    animation: fadeInUp 0.2s ease-out;
    flex-shrink: 0;
    width: fit-content;
  }
  .chat-msg.sent {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
    margin-right: 0;
  }
  .chat-msg:not(.sent) {
    margin-left: 0;
    margin-right: auto;
  }

  .chat-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
  .chat-msg.sent .chat-msg-avatar {
    background: linear-gradient(135deg,var(--primary-500),var(--primary-700));
  }
  .chat-msg:not(.sent) .chat-msg-avatar {
    background: linear-gradient(135deg,#14b8a6,#0d9488);
  }

  .chat-msg-body {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    min-width: 0;
  }

  /* 时间与头像同行，气泡在下 */
  .chat-msg-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
  }
  .chat-msg.sent .chat-msg-meta {
    flex-direction: row-reverse;
  }
  .chat-msg-time {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.2;
  }

  .chat-msg-bubble {
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    width: fit-content;
    min-width: 40px;
  }
  .chat-msg:not(.sent) .chat-msg-bubble {
    background: #ffffff;
    color: #1e293b;
    border-top-left-radius: 4px;
    border: 1px solid #e9edf2;
  }
  .chat-msg.sent .chat-msg-bubble {
    background: linear-gradient(135deg,var(--primary-500),var(--primary-600));
    color: #ffffff;
    border-top-right-radius: 4px;
    border: none;
  }

  .msg-time-stamp { text-align:center; font-size:12px; color:var(--text-muted); padding:8px 0; }
  .msg-input-area { padding:12px 16px; border-top:1px solid var(--bg-soft); background:#fff; flex-shrink:0; }
  .msg-input-row { display:flex; gap:10px; align-items:flex-end; }
  .msg-textarea { flex:1; border:2px solid var(--bg-soft); border-radius:var(--radius-lg); padding:12px 16px; font-size:14px; font-family:inherit; color:var(--text-primary); resize:none; outline:none; transition:border-color .2s; min-height:48px; max-height:120px; line-height:1.5; }
  .msg-textarea:focus { border-color:var(--primary-500); }
  .msg-send-btn { padding:12px 24px; height:48px; }
  .msg-empty { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; color:var(--text-muted); gap:12px; }
  .msg-empty-icon { width:80px; height:80px; background:var(--bg-soft); border-radius:50%; display:flex; align-items:center; justify-content:center; margin-bottom:8px; }

  .msg-sub-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    margin-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .msg-sub-tabs::-webkit-scrollbar { display: none; }
  .msg-sub-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: -1px;
  }
  .msg-sub-tab:hover { color: var(--text-primary); }
  .msg-sub-tab.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
    font-weight: 600;
  }
  .msg-sub-tab-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 2px;
  }
  .msg-sub-tab.active .msg-sub-tab-count {
    color: var(--primary-600);
  }

  .msg-top-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-sm);
  }
  .msg-top-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
  }
  .msg-top-tab:hover { color: var(--text-primary); }
  .msg-top-tab.active {
    background: #fff;
    color: var(--primary-600);
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }
  .msg-top-tab-badge {
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 16px;
    text-align: center;
    line-height: 1.4;
  }
  .msg-top-tab.active .msg-top-tab-badge {
    background: var(--primary-500);
  }

  .seller-page { padding:0 0 60px; }
  .seller-overview { max-width:1280px; margin:0 auto; padding:0 32px; display:grid; grid-template-columns:340px 1fr; gap:24px; position:relative; z-index:3; margin-bottom:48px; }
  .stall-status-card { background:#fff; border-radius:var(--radius-xl); padding:32px 28px; box-shadow:var(--shadow-md); text-align:center; position:relative; overflow:hidden; }
  .stall-status-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--danger),#f97316); }
  .stall-status-title { font-size:17px; font-weight:700; color:var(--text-ink); margin-bottom:8px; display:flex; align-items:center; justify-content:center; gap:8px; }
  .stall-status-title svg { color:var(--danger); }
  .level-text { position:relative; }
  .level-tooltip { position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); background:#1e293b; color:#fff; font-size:13px; font-weight:500; padding:8px 14px; border-radius:8px; white-space:nowrap; opacity:0; visibility:hidden; transition:opacity .2s ease; z-index:100; pointer-events:none; box-shadow:0 8px 24px rgba(0,0,0,.15); }
  .level-tooltip::before { content:''; position:absolute; bottom:100%; left:50%; transform:translateX(-50%); border-width:6px; border-style:solid; border-color:transparent transparent #1e293b transparent; }
  .level-text:hover .level-tooltip { opacity:1; visibility:visible; }
  .stall-count-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 16px; background:var(--danger-light); border-radius:var(--radius-pill); font-size:13px; font-weight:600; color:var(--danger); margin-bottom:24px; }
  .stall-status-circle { width:160px; height:160px; margin:0 auto 20px; border-radius:50%; background:linear-gradient(135deg,#22c55e,#16a34a); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; box-shadow:0 12px 32px rgba(34,197,94,.4); cursor:pointer; transition:all .3s ease; position:relative; }
  .stall-status-circle.closed { background:linear-gradient(135deg,#9ca3af,#6b7280); box-shadow:0 12px 32px rgba(156,163,175,.3); }
  .stall-status-circle:hover { transform:scale(1.05); }
  .stall-status-circle .hand { font-size:38px; margin-bottom:2px; line-height:1; }
  .stall-status-circle .text { font-size:26px; font-weight:900; letter-spacing:.02em; }
  .stall-status-circle .sub { font-size:12px; opacity:.9; margin-top:2px; }
  .stall-status-tip { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:#166534; font-weight:600; background:#dcfce7; padding:6px 14px; border-radius:var(--radius-pill); }
  .stall-status-tip.closed { color:#374151; background:#f3f4f6; }
  .stall-status-tip .dot { width:8px; height:8px; border-radius:50%; background:#22c55e; }
  .stall-status-tip.closed .dot { background:#9ca3af; }
  .data-stats-card { background:#fff; border-radius:var(--radius-xl); padding:28px; box-shadow:var(--shadow-md); position:relative; overflow:hidden; }
  .data-stats-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background:linear-gradient(90deg,var(--danger),#f97316,var(--primary-500)); }
  .data-stats-title { font-size:18px; font-weight:800; color:var(--text-ink); margin-bottom:24px; display:flex; align-items:center; gap:8px; }
  .data-stats-title span { font-size:13px; font-weight:500; color:var(--text-muted); margin-left:4px; }
  .data-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
  .data-stat-item { background:var(--bg-page); border-radius:var(--radius-lg); padding:24px 20px; text-align:center; transition:all .3s ease; border-top:3px solid var(--stat-color,var(--primary-500)); position:relative; }
  .data-stat-item:hover { transform:translateY(-2px); box-shadow:var(--shadow-sm); }
  .data-stat-icon { width:48px; height:48px; margin:0 auto 12px; border-radius:14px; background:#fff; display:flex; align-items:center; justify-content:center; color:var(--stat-color,var(--primary-500)); box-shadow:0 2px 8px rgba(0,0,0,.06); }
  .data-stat-icon svg { width:24px; height:24px; }
  .data-stat-number { font-size:32px; font-weight:900; color:var(--stat-color,var(--primary-500)); line-height:1; margin-bottom:6px; letter-spacing:-.02em; }
  .data-stat-label { font-size:13px; color:var(--text-muted); font-weight:500; }
  .data-stats-tip { margin-top:24px; padding:16px 18px; background:var(--bg-page); border:1px solid var(--gray-100); border-radius:var(--radius-lg); font-size:13px; font-family:'AlibabaPuHuiTi',sans-serif; color:var(--text-muted); font-weight:500; line-height:1.7; text-align:left; }
  .data-stats-tip .tip-line { display:block; }
  .data-stats-tip .tip-line + .tip-line { margin-top:8px; }
  .data-stats-tip strong { color:#333 !important; font-weight:700; }
  .my-stalls-section { max-width:1280px; margin:0 auto; padding:0 32px; margin-bottom:40px; }
  .my-stalls-header { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:24px; }
  .my-stalls-title { font-size:26px; font-weight:900; color:var(--text-ink); margin-bottom:6px; display:flex; align-items:center; gap:10px; letter-spacing:-.02em; }
  .my-stalls-title svg { color:var(--danger); }
  .my-stalls-desc { font-size:14px; color:var(--text-muted); padding-left:2px; }
  .my-stall-card { background:#fff; border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-sm); margin-bottom:24px; transition:all .3s ease; border:1px solid var(--bg-soft); }
  .my-stall-card:hover { box-shadow:var(--shadow-lg); transform:translateY(-2px); }
  .my-stall-topbar { padding:16px 28px; background:linear-gradient(135deg,#fafafa 0%,var(--bg-page) 100%); display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--bg-soft); }
  .my-stall-topbar-left { display:flex; align-items:center; gap:12px; }
  .stall-id-badge { font-size:13px; color:var(--text-muted); background:var(--bg-soft); padding:4px 12px; border-radius:var(--radius-pill); font-weight:600; font-family:'AlibabaPuHuiTi',sans-serif; }
  .my-stall-category-badge { display:inline-flex; align-items:center; padding:4px 12px; background:var(--danger); color:#fff; border-radius:var(--radius-pill); font-size:12px; font-weight:600; }
  .my-stall-status-badge { display:inline-flex; align-items:center; gap:6px; padding:5px 14px; background:#dcfce7; color:#166534; border-radius:var(--radius-pill); font-size:13px; font-weight:600; }
  .my-stall-status-badge .dot { width:8px; height:8px; border-radius:50%; background:#22c55e; animation:pulse 2s infinite; }
  .my-stall-status-badge.closed { background:#fee2e2; color:#dc2626; }
  .my-stall-status-badge.closed .dot { background:#dc2626; }
  .my-stall-status-badge.open { background:#dcfce7; color:#15803d; }
  .my-stall-status-badge.open .dot { background:#22c55e; }
  .my-stall-status-badge.pending { background:#fef3c7; color:#d97706; }
  .my-stall-status-badge.pending .dot { background:#f59e0b; }
  .my-stall-status-badge.draft { background:#e5e7eb; color:#6b7280; }
  .my-stall-status-badge.draft .dot { background:#9ca3af; }
  .my-stall-status-badge.rejected { background:#fee2e2; color:#dc2626; }
  .my-stall-status-badge.rejected .dot { background:#ef4444; }
  .my-stall-body { display:grid; grid-template-columns:360px 1fr auto; gap:28px; padding:28px; align-items:stretch; }
  .my-stall-img { width:360px; height:220px; border-radius:var(--radius-lg); overflow:hidden; display:flex; align-items:center; justify-content:center; flex-shrink:0; position:relative; background-size:cover!important; background-position:center top!important; }
  .my-stall-img svg { width:100px; height:100px; opacity:.85; }
  .my-stall-img::after { content:''; position:absolute; inset:0; border-radius:var(--radius-lg); box-shadow:inset 0 0 0 1px rgba(0,0,0,.05); pointer-events:none; }
  .my-stall-info { display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
  .my-stall-name { font-size:22px; font-weight:800; color:var(--text-ink); margin-bottom:14px; line-height:1.3; letter-spacing:-.01em; }
  .my-stall-detail-box { background:var(--bg-page); border-radius:var(--radius-md); padding:14px 16px; margin-bottom:16px; border-left:3px solid var(--primary-500); }
  .my-stall-detail-label { font-size:12px; font-weight:700; color:var(--primary-600); margin-bottom:6px; text-transform:uppercase; letter-spacing:.05em; }
  .my-stall-detail-text { font-size:14px; color:var(--text-secondary); line-height:1.6; white-space:pre-wrap; word-break:break-word; }
  .my-stall-meta { display:flex; align-items:center; gap:20px; font-size:13px; color:var(--text-muted); flex-wrap:wrap; }
  .my-stall-meta span { display:flex; align-items:center; gap:6px; background:var(--bg-page); padding:6px 12px; border-radius:var(--radius-pill); }
  .my-stall-meta svg { color:var(--text-muted); }
  .my-stall-actions { display:flex; flex-direction:column; gap:12px; justify-content:center; min-width:140px; }
  .my-stall-actions .btn { width:100%; justify-content:center; padding:12px 20px; }

  /* ===== 通用弹窗与表单（编辑摊位等全局弹窗使用） ===== */
  .modal-overlay { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.5); display:flex; align-items:center; justify-content:center; padding:1rem; }
  .modal { background:var(--bg-card); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg); width:100%; max-width:640px; max-height:92vh; overflow:auto; position:relative; animation:fadeInUp .25s ease; }
  .modal-header { padding:24px 32px 0; }
  .modal-title { display:flex; align-items:center; gap:10px; font-size:20px; font-weight:800; color:var(--text-ink); }
  .modal-title-icon { flex-shrink:0; }
  .modal-subtitle { margin-top:6px; }
  .modal-close { position:absolute; top:16px; right:16px; width:32px; height:32px; display:flex; align-items:center; justify-content:center; border:1px solid #e5e5e5; background:#fff; border-radius:50%; cursor:pointer; color:#666; transition:all .2s ease; z-index:30; }
  .modal-close:hover { background:#f5f5f5; color:#000; border-color:#ccc; }
  .modal-body { padding:20px 32px; }
  .modal-footer { padding:16px 32px 24px; display:flex; justify-content:flex-end; gap:12px; }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
  .form-group { margin-bottom:20px; }
  .form-label { display:block; font-size:14px; font-weight:600; color:var(--text-secondary); margin-bottom:6px; }
  .form-label span { color:var(--danger); }
  .form-input, .form-select, .form-textarea { width:100%; border:2px solid var(--bg-soft); border-radius:var(--radius-md); padding:10px 14px; font-size:14px; font-family:inherit; color:var(--text-primary); background:#fff; outline:none; transition:border-color .2s; }
  .form-textarea { resize:vertical; min-height:110px; }
  .form-input:focus, .form-select:focus, .form-textarea:focus { border-color:var(--primary-500); }
  .form-select { cursor:pointer; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:40px; }
  .btn-cancel { background:var(--bg-soft); color:var(--text-secondary); }
  .btn-cancel:hover { background:#e7e2d8; color:var(--text-primary); }
  @media (max-width:640px) { .modal-header, .modal-body, .modal-footer { padding-left:16px; padding-right:16px; } .form-row { grid-template-columns:1fr; } }
  .certify-page { padding:32px; display:flex; justify-content:center; }
  .certify-card { max-width:640px; width:100%; background:var(--bg-card); border-radius:var(--radius-xl); box-shadow:var(--shadow-md); overflow:hidden; padding:32px; position:relative; margin-top:80px; }
  .certify-title { display:flex; align-items:center; gap:10px; font-size:24px; font-weight:700; color:var(--text-ink); margin-bottom:8px; position:relative; }
  .certify-close { margin-left:auto; position:relative; top:auto; right:auto; width:28px; height:28px; display:flex; align-items:center; justify-content:center; border:1px solid #e5e5e5; background:#fff; border-radius:50%; cursor:pointer; color:#333; font-size:16px; font-weight:700; transition:all .2s ease; box-shadow:0 2px 8px rgba(0,0,0,.05); z-index:30; }
  .certify-close:hover { background:#f5f5f5; color:#000; border-color:#ccc; box-shadow:0 4px 12px rgba(0,0,0,.08); }
  .certify-desc { font-size:14px; color:var(--text-muted); margin-bottom:24px; padding-right:20px; }
  .certify-form-group { margin-bottom:20px; }
  .certify-label { display:block; font-size:14px; font-weight:600; color:var(--text-secondary); margin-bottom:6px; }
  .certify-label span { color:var(--danger); }
  .certify-input { width:100%; height:44px; border:2px solid var(--bg-soft); border-radius:var(--radius-md); padding:0 14px; font-size:14px; font-family:inherit; color:var(--text-primary); outline:none; transition:border-color .2s; background:#fff; }
  .certify-input:focus { border-color:var(--primary-500); }
  .certify-select { width:100%; height:44px; border:2px solid var(--bg-soft); border-radius:var(--radius-md); padding:0 14px; font-size:14px; font-family:inherit; color:var(--text-primary); outline:none; transition:border-color .2s; background:#fff; cursor:pointer; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:40px; }
  .certify-select:focus { border-color:var(--primary-500); }
  .upload-area { border:2px dashed #d6d3d1; border-radius:var(--radius-lg); padding:40px 20px; text-align:center; cursor:pointer; transition:all .2s; background:#fafaf9; }
  .upload-area:hover { border-color:var(--primary-500); background:var(--primary-50); }
  .upload-icon { width:56px; height:56px; margin:0 auto 12px; color:var(--text-muted); }
  .upload-text { font-size:16px; font-weight:600; color:var(--text-secondary); margin-bottom:6px; }
  .upload-hint { font-size:13px; color:var(--text-muted); }
  .current-image { margin-top:16px; display:flex; align-items:center; gap:14px; padding:12px; background:var(--bg-page); border-radius:var(--radius-md); }
  .current-image-thumb { width:64px; height:64px; border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; flex-shrink:0; background-size:cover!important; background-position:center!important; }
  .current-image-thumb svg { width:32px; height:32px; opacity:.8; }
  .current-image-info { flex:1; }
  .current-image-name { font-size:14px; font-weight:600; color:var(--text-ink); }
  .current-image-size { font-size:12px; color:var(--text-muted); }
  .current-image-remove { width:28px; height:28px; background:var(--danger); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; border:none; transition:transform .2s; }
  .current-image-remove:hover { transform:scale(1.1); }

  .profile-page .container {
    max-width: 672px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .profile-page .card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    width: 100%;
  }
  .profile-page .card-header {
    padding: 16px 20px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f3f4f6;
  }
  .profile-page .card-header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #ccfbf1;
  }
  .profile-page .card-header-icon svg {
    width: 18px;
    height: 18px;
    color: #0d9488;
  }
  .profile-page .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
  }
  .profile-page .field-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    min-width: 0;
  }
  .profile-page .field-row:last-child {
    border-bottom: none;
  }
  .profile-page .field-label {
    width: 100px;
    flex-shrink: 0;
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
  }
  .profile-page .field-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .profile-page .field-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .profile-page .field-row:hover .field-actions {
    opacity: 1;
  }
  .profile-page .delete-row .field-actions {
    opacity: 1;
  }
  .profile-page .field-edit-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
  }
  .profile-page .field-input {
    flex: 1;
    min-width: 0;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: transparent;
    padding: 0 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    outline: none;
  }
  .profile-page .field-input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px #ccfbf1;
  }
  .profile-page .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s;
  }
  .profile-page .btn-icon:hover {
    color: #1f2937;
  }
  .profile-page .text-primary { color: #0d9488; }
  .profile-page .text-muted { color: #6b7280; }
  .profile-page .text-destructive { color: #ef4444; }
  .profile-page .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
  }
  .profile-page .badge-verified {
    background: #ccfbf1;
    color: #0d9488;
    border-color: #14b8a6;
  }
  .profile-page .badge-pending {
    background: #fef3c7;
    color: #d97706;
    border-color: #f59e0b;
  }
  .profile-page .badge-rejected {
    background: #fee2e2;
    color: #dc2626;
    border-color: #ef4444;
  }
  .profile-page .company-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f3f4f6;
  }
  .profile-page .company-row:last-child {
    border-bottom: none;
  }
  .profile-page .company-row-label {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    padding-top: 1px;
  }
  .profile-page .company-row-value {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
  }
  .profile-page .company-row-value .placeholder {
    color: #9ca3af;
    font-weight: 400;
  }
  .profile-page .company-row-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
  }
  .profile-page .company-row:hover .company-row-actions {
    opacity: 1;
  }
  .profile-page .license-section {
    padding: 16px 20px 20px;
    border-top: 1px solid #f3f4f6;
  }
  .profile-page .license-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 8px;
  }
  .profile-page .license-image-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: box-shadow 0.2s;
    display: inline-block;
  }
  .profile-page .license-image-wrap:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .profile-page .license-image-wrap img {
    display: block;
    height: 128px;
    width: auto;
    object-fit: cover;
  }
  .profile-page .license-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.2s;
  }
  .profile-page .license-image-wrap:hover .license-overlay {
    background: rgba(0,0,0,0.1);
  }
  .profile-page .license-overlay span {
    background: rgba(255,255,255,0.8);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #1f2937;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .profile-page .license-image-wrap:hover .license-overlay span {
    opacity: 1;
  }
  .profile-page .license-placeholder {
    display: flex;
    height: 128px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px dashed #e5e7eb;
    background: #f3f4f6;
  }
  .profile-page .license-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #9ca3af;
  }
  .profile-page .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  .profile-page .modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }
  .profile-page .modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    padding: 24px 28px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s;
  }
  .profile-page .modal-content.modal-wide {
    max-width: 520px;
  }
  .profile-page .modal-overlay.open .modal-content {
    transform: scale(1);
  }
  .profile-page .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
  }
  .profile-page .modal-close:hover {
    background: #f3f4f6;
  }
  .profile-page .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
  }
  .profile-page .modal-body {
    padding: 8px 4px 4px;
  }
  .profile-page .modal-body-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }
  .profile-page .modal-body img {
    max-height: 70vh;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
  }
  .profile-page .modal-body .form-group {
    margin-bottom: 18px;
  }
  .profile-page .modal-body .form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
  }
  .profile-page .modal-body .form-input {
    width: 100%;
    border: 2px solid var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color .2s;
  }
  .profile-page .modal-body .form-input:focus {
    border-color: var(--primary-500);
  }
  .profile-page .pwd-mode-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    background: #f5f3ee;
    border-radius: 10px;
    padding: 4px;
  }
  .profile-page .pwd-mode-switch .btn {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all .2s;
    cursor: pointer;
  }
  .profile-page .pwd-mode-switch .btn.active {
    background: #fff;
    color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .profile-page .pwd-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
    background: #f9f7f3;
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-500);
  }
  .profile-page .pwd-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0ebe1;
  }
  .profile-page .pwd-actions .btn {
    min-width: 100px;
  }
  .profile-page .pwd-generated-box {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
  }
  .profile-page .pwd-generated-box .pwd-label {
    font-size: 13px;
    color: #166534;
    margin-bottom: 8px;
  }
  .profile-page .pwd-generated-box .pwd-value {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'AlibabaPuHuiTi', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #15803d;
  }
  .profile-page .pwd-generated-box .btn-icon {
    padding: 4px;
  }
  .profile-page .toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
  }
  .profile-page .toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    font-size: 14px;
    pointer-events: auto;
    animation: toastIn 0.25s ease-out;
  }
  .profile-page .toast.success { border-color: #ccfbf1; }
  .profile-page .toast.error { border-color: #fee2e2; }
  .profile-page .toast .toast-close {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .profile-page .toast .toast-close:hover {
    background: #f3f4f6;
  }
  @keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .profile-page .fade-in {
    animation: fadeIn 0.3s ease-out;
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @media (max-width: 640px) {
    .profile-page .field-label { width: 84px; font-size: 13px; }
    .profile-page .company-row-label { width: 64px; font-size: 12px; }
    .profile-page .container { padding: 1rem 0.75rem; }
    .profile-page .field-row { padding: 12px 16px; }
    .profile-page .company-row { padding: 12px 16px; }
    .profile-page .field-actions,
    .profile-page .company-row-actions { opacity: 1; }
    .profile-page .field-row-role .field-value { overflow: visible !important; }
    .profile-page .modal-content { max-width: 100%; padding: 20px; }
    .profile-page .modal-content.modal-wide { max-width: 100%; }
    .profile-page .pwd-mode-switch { flex-direction: column; }
    .profile-page .pwd-actions { flex-direction: column-reverse; }
    .profile-page .pwd-actions .btn { width: 100%; }
  }

  .skeleton { background:linear-gradient(90deg,var(--bg-soft) 25%,var(--bg-page) 50%,var(--bg-soft) 75%); background-size:200% 100%; animation:shimmer 1.5s infinite; border-radius:var(--radius-sm); }
  @keyframes shimmer { 0% { background-position:-200% 0; } 100% { background-position:200% 0; } }

  /* ===== 平板端 ≤1024px ===== */
  @media (max-width: 1024px) {
    .hero-inner { grid-template-columns:1fr; gap:40px; }
    .hero-visual { height:380px; max-width:480px; margin:0 auto; }
    .stalls-grid { grid-template-columns:repeat(2,1fr); }
    .stats-inner { grid-template-columns:repeat(2,1fr); gap:32px; }
    .stat-item:not(:last-child)::after { display:none; }
    .detail-body { grid-template-columns:1fr; }
    .seller-overview { grid-template-columns:1fr; }
    .my-stall-body { grid-template-columns:1fr; }
    .my-stall-img { width:100%; }
    .msg-container { grid-template-columns:280px 1fr; }
  }

  /* ===== 大手机/小平板 ≤768px ===== */
  @media (max-width: 768px) {
    .page { padding-top:60px; }
    .nav-inner { padding:10px 16px; gap:8px; }
    .logo-img { height:44px; }
    .nav-right { gap:12px; }
    .user-info { padding:2px 6px 2px 2px; }
    .user-name { display:none; }
    .user-menu-dropdown { right:0; top:calc(100% + 6px); min-width:170px; }
    .hero { padding:48px 16px 24px; min-height:auto; }
    .hero-title { font-size:40px; }
    .hero-badge { font-size:12px; padding:6px 12px; margin-bottom:20px; }
    .hero-tags { gap:8px; }
    .hero-tag { padding:5px 10px; font-size:12px; }
    .hero-visual { height:300px; }
    .stall { width:150px; }
    .categories-section { padding:20px 16px; }
    .filter-row { gap:12px; }
    .filter-label { font-size:14px; }
    .region-dropdown { padding:14px 16px; }
    .featured-section { padding:12px 16px 40px; }
    .section-header { flex-direction:column; align-items:flex-start; gap:12px; }
    .section-title { font-size:26px; }
    .stalls-grid { grid-template-columns:repeat(2,1fr); gap:16px; }
    .card-body { padding:16px; }
    .card-title { font-size:16px; }
    .card-actions { gap:8px; }
    .card-actions .btn { padding:8px 10px; font-size:12px; }
    .detail-page { padding:16px; }
    .detail-header { padding:20px; flex-direction:column; gap:12px; }
    .detail-title { font-size:24px; }
    .detail-body { padding:20px; gap:20px; }
    .detail-footer { padding:16px 20px; }
    .msg-page { padding:16px; }
    .msg-container { grid-template-columns:1fr; height:auto; min-height:auto; }
    .msg-sidebar { max-height:280px; }
    .msg-main { min-height:400px; }
    .msg-main-header { padding:12px 16px; }
    .msg-chat { padding:16px; }
    .msg-input-area { padding:10px 12px; }
    .seller-page { padding:0 0 40px; }
    .seller-overview { padding:0 16px; gap:16px; margin-bottom:32px; }
    .stall-status-card { padding:24px 20px; }
    .stall-status-circle { width:130px; height:130px; }
    .stall-status-circle .text { font-size:22px; }
    .stall-status-circle .hand { font-size:32px; }
    .data-stats-card { padding:20px; }
    .data-stats-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
    .data-stat-item { padding:16px 12px; }
    .data-stat-number { font-size:26px; }
    .data-stats-tip { margin-top:20px; padding:14px 14px; }
    .my-stalls-section { padding:0 16px; }
    .my-stalls-header { flex-direction:column; align-items:flex-start; gap:12px; }
    .my-stalls-title { font-size:22px; }
    .my-stall-body { grid-template-columns:1fr; gap:16px; padding:20px; }
    .my-stall-img { width:100%; height:200px; }
    .my-stall-name { font-size:18px; }
    .my-stall-actions { flex-direction:row; flex-wrap:wrap; min-width:auto; }
    .my-stall-actions .btn { flex:1; min-width:100px; }
    .certify-page { padding:16px; }
    .certify-card { margin-top:40px; padding:24px 20px; }
    .certify-title { font-size:20px; }
    .modal { max-width:100%; max-height:95vh; border-radius:var(--radius-lg); }
    .modal-header { padding:16px 20px 0; }
    .modal-body { padding:16px 20px; }
    .modal-footer { padding:12px 20px 20px; flex-wrap:wrap; }
    .modal-footer .btn { flex:1; min-width:100px; }
  }

  /* ===== 手机端 ≤640px ===== */
  @media (max-width: 640px) {
    .page { padding-top:56px; }
    .nav-inner { padding:8px 12px; }
    .logo-img { height:38px; }
    .nav-right { gap:8px; }
    .nav-link { font-size:13px; padding:4px 0; }
    .nav-link span { display:none; }
    .nav-divider { display:none; }
    .nav-links-desktop { display:none; }
    .nav-divider-desktop { display:none; }
    .nav-auth-desktop { display:none; }
    .hamburger-btn { display:flex; }
    .user-avatar { width:28px; height:28px; font-size:12px; }
    .user-menu-dropdown { min-width:160px; padding:6px; }
    .user-menu-item { padding:8px 10px; font-size:13px; }
    .container { padding:0 12px; }
    .hero { padding:40px 12px 20px; }
    .hero-title { font-size:30px; margin-bottom:20px; }
    .hero-title .line { display:block; }
    .hero-badge { font-size:11px; padding:5px 10px; margin-bottom:16px; }
    .hero-search { flex-direction:row; border-radius:var(--radius-lg); max-width:100%; }
    .search-input-wrap { padding:0 8px 0 12px; }
    .search-input { font-size:14px; padding:10px 0; }
    .search-btn { width:auto; padding:10px 18px; font-size:14px; white-space:nowrap; }
    .hero-tags { gap:6px; }
    .hero-tags-label { font-size:12px; }
    .hero-tag { padding:4px 10px; font-size:12px; }
    .hero-visual { display:none; }
    .categories-section { padding:16px 12px; }
    .section-title { font-size:22px; }
    .section-desc { font-size:13px; }
    .section-eyebrow { font-size:12px; }
    .category-tab { padding:8px 16px; font-size:13px; }
    .featured-section { padding:12px 12px 60px; }
    .stalls-grid { grid-template-columns:1fr; gap:16px; width:100%; }
    .card-cover { height:160px; }
    .card-body { padding:16px; grid-template-rows:1fr 44px auto; }
    .card-title { font-size:16px; }
    .card-seller { padding-top:12px; height:44px; }
    .seller-avatar { width:32px; height:32px; font-size:13px; }
    .seller-name-text { font-size:12px; }
    .seller-level-badge { width:38px; height:38px; }
    .card-actions { gap:8px; padding-top:12px; }
    .card-actions .btn { padding:8px 10px; font-size:12px; }
    .stats-inner { grid-template-columns:1fr 1fr; gap:20px; }
    .cta-section { padding:40px 16px; }
    .cta-inner { padding:32px 24px; }
    .cta-title { font-size:24px; }
    .cta-desc { font-size:14px; margin-bottom:24px; }
    .cta-buttons { gap:12px; }
    .cta-buttons .btn { text-align:center; }
    .stat-number { font-size:26px; }
    .stat-number .unit { font-size:16px; }
    .stat-label { font-size:13px; }
    .detail-page { padding:12px; }
    .detail-card { border-radius:var(--radius-lg); }
    .detail-header { padding:16px; flex-direction:column; gap:12px; }
    .detail-title { font-size:20px; }
    .detail-title-row { flex-wrap:wrap; gap:8px; }
    .detail-meta { gap:10px; font-size:13px; }
    .detail-body { padding:16px; gap:16px; }
    .detail-image { min-height:180px; }
    .detail-footer { padding:12px 16px; }
    .detail-footer .btn { width:100%; }
    .msg-page { padding:12px; }
    .msg-container { grid-template-columns:1fr; height:auto; min-height:auto; border-radius:var(--radius-lg); }
    .msg-sidebar { max-height:260px; }
    .msg-sidebar-header { padding:14px; }
    .msg-sidebar-title { font-size:16px; margin-bottom:10px; }
    .msg-list-item { padding:12px 14px; }
    .msg-avatar { width:38px; height:38px; font-size:14px; }
    .msg-name { font-size:13px; }
    .msg-last { font-size:12px; }
    .msg-main { min-height:360px; }
    .msg-main-header { padding:10px 12px; }
    .msg-main-name { font-size:14px; }
    .msg-chat { padding:12px; gap:10px; }
    .chat-msg { max-width:90%; }
    .chat-msg-avatar { width:30px; height:30px; font-size:12px; }
    .chat-msg-bubble { padding:8px 12px; font-size:13px; }
    .msg-input-area { padding:8px 10px; }
    .msg-textarea { padding:10px 12px; font-size:13px; min-height:40px; }
    .msg-send-btn { padding:10px 16px; height:40px; font-size:13px; }
    .seller-overview { grid-template-columns:1fr; padding:0 12px; gap:16px; margin-bottom:24px; }
    .stall-status-card { padding:20px 16px; }
    .stall-status-title { font-size:15px; }
    .stall-status-circle { width:120px; height:120px; }
    .stall-status-circle .text { font-size:20px; }
    .stall-status-circle .hand { font-size:28px; }
    .stall-status-circle .sub { font-size:11px; }
    .data-stats-card { padding:16px; }
    .data-stats-title { font-size:16px; margin-bottom:16px; }
    .data-stats-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .data-stat-item { padding:14px 10px; }
    .data-stat-icon { width:40px; height:40px; }
    .data-stat-icon svg { width:20px; height:20px; }
    .data-stat-number { font-size:22px; }
    .data-stat-label { font-size:12px; }
    .my-stalls-section { padding:0 12px; }
    .my-stalls-header { flex-direction:column; align-items:flex-start; gap:8px; }
    .my-stalls-title { font-size:20px; }
    .my-stalls-desc { font-size:13px; }
    .my-stall-card { margin-bottom:16px; }
    .my-stall-topbar { padding:12px 16px; }
    .my-stall-body { grid-template-columns:1fr; gap:14px; padding:16px; }
    .my-stall-img { width:100%; height:180px; }
    .my-stall-name { font-size:17px; margin-bottom:10px; }
    .my-stall-detail-box { padding:10px 12px; margin-bottom:12px; }
    .my-stall-detail-text { font-size:13px; }
    .my-stall-meta { gap:8px; font-size:12px; }
    .my-stall-meta span { padding:4px 8px; }
    .my-stall-actions { flex-direction:row; flex-wrap:wrap; min-width:auto; gap:8px; }
    .my-stall-actions .btn { flex:1; min-width:100px; padding:10px 12px; font-size:13px; }
    .certify-page { padding:12px; }
    .certify-card { margin-top:32px; padding:20px 16px; border-radius:var(--radius-lg); }
    .certify-title { font-size:18px; }
    .certify-desc { font-size:13px; margin-bottom:16px; }
    .certify-form-group { margin-bottom:16px; }
    .certify-label { font-size:13px; }
    .certify-input, .certify-select { height:40px; font-size:13px; }
    .upload-area { padding:24px 12px; }
    .upload-icon { width:44px; height:44px; }
    .upload-text { font-size:14px; }
    .upload-hint { font-size:12px; }
    .modal-overlay { padding:0; }
    .modal { max-width:100%; max-height:100vh; border-radius:0; }
    .modal-header { padding:12px 16px 0; }
    .modal-title { font-size:17px; }
    .modal-body { padding:12px 16px; }
    .modal-footer { padding:10px 16px 16px; flex-direction:column-reverse; gap:8px; }
    .modal-footer .btn { width:100%; }
    .form-row { grid-template-columns:1fr; gap:12px; margin-bottom:12px; }
    .form-group { margin-bottom:14px; }
    .form-label { font-size:13px; }
    .form-input, .form-select, .form-textarea { padding:8px 12px; font-size:13px; }
    .form-textarea { min-height:90px; }
    .btn { padding:8px 16px; font-size:13px; }
    .btn-lg { padding:12px 20px; font-size:14px; }
    .btn-sm { padding:5px 10px; font-size:12px; }
  }

  /* ===== 小手机端 ≤480px ===== */
  @media (max-width: 480px) {
    .hero { padding:36px 10px 16px; }
    .hero-title { font-size:24px; margin-bottom:16px; }
    .hero-badge { font-size:10px; padding:4px 8px; margin-bottom:12px; }
    .hero-tag { padding:3px 8px; font-size:11px; }
    .categories-section { padding:12px 10px; }
    .filter-row { gap:10px; }
    .filter-label { font-size:13px; }
    .region-dropdown { padding:12px 14px; }
    .region-dropdown-item { padding:6px 12px; font-size:12px; }
    .section-title { font-size:20px; }
    .category-tab { padding:6px 14px; font-size:12px; }
    .featured-section { padding:10px 10px 50px; }
    .stalls-grid { gap:12px; width:100%; }
    .card-cover { height:140px; }
    .card-body { padding:14px; }
    .card-title { font-size:15px; }
    .card-actions { flex-direction:column; gap:8px; }
    .card-actions .btn { width:100%; }
    .stats-inner { grid-template-columns:1fr; gap:16px; }
    .stat-item { padding:12px 0; }
    .stat-item:not(:last-child)::after { display:none; }
    .stat-item:not(:last-child) { border-bottom:1px solid var(--bg-soft); }
    .stat-number { font-size:24px; }
    .detail-title { font-size:18px; }
    .detail-header { padding:14px; }
    .detail-body { padding:14px; }
    .detail-image { min-height:150px; }
    .info-block { padding:14px; }
    .info-content { font-size:14px; }
    .msg-sidebar { max-height:220px; }
    .msg-main { min-height:320px; }
    .chat-msg { max-width:95%; }
    .data-stats-grid { grid-template-columns:1fr; }
    .my-stall-body { padding:14px; }
    .my-stall-img { height:160px; }
    .my-stall-name { font-size:16px; }
    .my-stall-actions { flex-direction:column; }
    .my-stall-actions .btn { width:100%; }
    .certify-card { padding:16px 12px; }
    .certify-title { font-size:16px; }
  }

  /* ===== 搜索页面移动端覆盖（覆盖内联样式） ===== */
  @media (max-width: 768px) {
    .search-page { padding:16px 16px 40px !important; }
    .search-header { max-width:100% !important; margin:0 auto 20px !important; gap:10px !important; }
    .search-header-top { flex-direction:column !important; align-items:stretch !important; gap:12px !important; }
    .search-header-left { text-align:center; }
    .search-header-left h1 { font-size:22px; }
    .search-header-right { max-width:100% !important; }
    .search-header-right form { max-width:100% !important; }
    .search-header-right .hero-search { flex-direction:column !important; border-radius:var(--radius-lg) !important; }
    .search-header-right .search-btn { width:100% !important; }
    .filter-bar { gap:8px !important; overflow-x:auto; flex-wrap:nowrap !important; padding-bottom:4px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
    .filter-bar::-webkit-scrollbar { display:none; }
    .filter-chip { padding:8px 14px !important; font-size:13px !important; white-space:nowrap !important; flex-shrink:0; }
    .featured-inner { max-width:100% !important; }
  }
  @media (max-width: 480px) {
    .search-page { padding:12px 10px 32px !important; }
    .search-header-left h1 { font-size:20px; }
    .filter-chip { padding:6px 12px !important; font-size:12px !important; }
  }
