/* 晓晓生网页版 - 全局样式 */
:root {
  --primary: #FF6B35;
  --primary-light: #FF8A5C;
  --primary-dark: #E55A2B;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border: #EEEEEE;
  --success: #07C160;
  --warning: #FAAD14;
  --error: #FA5151;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(255,107,53,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input { font-family: inherit; }

/* ===== 顶部导航 ===== */
.header {
  background: white;
  border-bottom: 0.5px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo-area { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 18px;
}
.logo-text { font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 11px; color: var(--text-light); margin-top: -2px; }

.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-item { 
  font-size: 15px; color: var(--text-secondary); cursor: pointer;
  padding: 4px 0; position: relative; transition: color 0.2s; font-weight: 400;
}
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); font-weight: 500; }
.nav-item.active::after {
  content: ''; position: absolute; bottom: -18px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-login {
  padding: 8px 20px; border-radius: 20px; font-size: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; border: none; cursor: pointer; font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,0.3); }

.header-icon {
  width: 36px; height: 36px; border-radius: 50%; background: #f5f5f5;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: background 0.2s;
}
.header-icon:hover { background: #eee; }

/* ===== 页面通用 ===== */
.page { display: none; }
.page.active { display: block; }

.page-wrapper { max-width: 1200px; margin: 0 auto; padding: 24px 24px 40px; }

/* ===== Hero搜索区 ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 48px 24px 56px; text-align: center; color: white;
}
.hero-title { font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin-bottom: 8px; }
.hero-sub { font-size: clamp(14px, 2vw, 16px); opacity: 0.85; margin-bottom: 32px; }

.search-box {
  max-width: 640px; margin: 0 auto; background: white;
  border-radius: 28px; padding: 6px 8px 6px 24px;
  display: flex; align-items: center; box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  cursor: pointer;
}
.search-icon { font-size: 18px; flex-shrink: 0; }
.search-input {
  flex: 1; border: none; outline: none; font-size: 15px; color: var(--text-primary);
  background: transparent; padding: 10px 12px; cursor: pointer;
}
.search-btn {
  padding: 12px 28px; border-radius: 22px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: transform 0.15s; flex-shrink: 0;
}
.search-btn:hover { transform: scale(1.02); }

/* ===== 快捷入口 ===== */
.quick-entry {
  max-width: 1200px; margin: -28px auto 0; padding: 0 24px;
  position: relative; z-index: 10;
}
.quick-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.quick-card {
  background: white; border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  border: 0.5px solid var(--border);
}
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-icon {
  width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: white;
}
.quick-label { font-size: 14px; font-weight: 500; color: var(--text-primary); }

/* ===== 内容区通用 ===== */
.content { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.section-title { font-size: 20px; font-weight: 600; color: var(--text-primary); }
.section-more { font-size: 13px; color: var(--primary); cursor: pointer; transition: opacity 0.15s; }
.section-more:hover { opacity: 0.8; }

/* ===== 品牌馆横向滚动 ===== */
.brand-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: none; -ms-overflow-style: none;
}
.brand-scroll::-webkit-scrollbar { display: none; }
.brand-card {
  flex-shrink: 0; width: 160px; background: white; border-radius: var(--radius-lg);
  padding: 16px; text-align: center; cursor: pointer;
  border: 0.5px solid var(--border); transition: all 0.2s;
}
.brand-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.brand-logo {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 10px;
  background: #f5f5f5; display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--primary);
  overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.brand-count { font-size: 11px; color: var(--text-light); margin-top: 4px; }

/* ===== 分类卡片 ===== */
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.category-card {
  border-radius: var(--radius-lg); padding: 20px 16px; color: white;
  cursor: pointer; transition: transform 0.2s; position: relative; overflow: hidden;
  min-height: 110px; display: flex; flex-direction: column; justify-content: flex-end;
}
.category-card:hover { transform: translateY(-3px); }
.category-name { font-size: 15px; font-weight: 600; }
.category-count { font-size: 11px; opacity: 0.8; margin-top: 4px; }

/* ===== 商品网格 ===== */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px;
}
.product-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; transition: all 0.2s; border: 0.5px solid var(--border);
}
.product-card:hover { 
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.product-img {
  width: 100%; aspect-ratio: 1; background: #f8f8f8;
  display: flex; align-items: center; justify-content: center; color: #ccc;
  font-size: 14px; overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 14px; }
.product-brand { font-size: 12px; color: var(--primary); margin-bottom: 4px; }
.product-name { 
  font-size: 14px; color: var(--text-primary); font-weight: 500; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.5;
}
.product-price { font-size: 18px; color: var(--primary); font-weight: 600; }
.product-price-origin { font-size: 12px; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }

/* ===== 搜索页 ===== */
.search-page { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.filter-sidebar {
  background: white; border-radius: var(--radius-lg); padding: 20px;
  box-shadow: var(--shadow-sm); border: 0.5px solid var(--border);
  align-self: start; position: sticky; top: 88px;
}
.filter-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }
.filter-section { margin-bottom: 20px; }
.filter-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 500; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  padding: 6px 14px; border-radius: 16px; font-size: 12px; cursor: pointer;
  border: 0.5px solid #ddd; color: var(--text-secondary); background: white; transition: all 0.15s;
}
.filter-tag:hover { border-color: var(--primary); color: var(--primary); }
.filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }
.filter-input {
  width: 100%; padding: 8px 12px; border-radius: var(--radius-sm); border: 0.5px solid #ddd;
  font-size: 13px; outline: none; background: #f8f8f8; transition: border 0.15s;
}
.filter-input:focus { border-color: var(--primary); background: white; }
.filter-apply {
  width: 100%; padding: 10px; border-radius: var(--radius-md); border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: transform 0.15s;
}
.filter-apply:hover { transform: translateY(-1px); }

.dimension-tabs {
  display: flex; gap: 0; margin-bottom: 16px; background: white;
  border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow-sm);
  border: 0.5px solid var(--border);
}
.dim-tab { 
  flex: 1; text-align: center; padding: 10px 0; font-size: 14px; color: var(--text-secondary);
  cursor: pointer; border-radius: 10px; transition: all 0.15s; font-weight: 500;
}
.dim-tab:hover { color: var(--primary); }
.dim-tab.active { background: var(--primary); color: white; }

.results-header {
  background: white; border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 16px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-sm); border: 0.5px solid var(--border);
}
.results-count { font-size: 14px; color: var(--text-secondary); }
.results-count strong { color: var(--primary); }
.results-sort { display: flex; gap: 12px; }
.sort-btn { 
  font-size: 13px; color: var(--text-light); cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: all 0.15s;
}
.sort-btn:hover, .sort-btn.active { color: var(--primary); background: rgba(255,107,53,0.08); }

.result-list { display: flex; flex-direction: column; gap: 12px; }
.result-card {
  background: white; border-radius: var(--radius-lg); padding: 16px; display: flex; gap: 16px;
  box-shadow: var(--shadow-sm); border: 0.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.result-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(255,107,53,0.1); }
.result-img {
  width: 120px; height: 120px; border-radius: var(--radius-sm); background: #f8f8f8;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 13px; overflow: hidden;
}
.result-img img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.result-brand { font-size: 12px; color: var(--primary); margin-bottom: 4px; cursor: pointer; }
.result-brand:hover { text-decoration: underline; }
.result-name { font-size: 16px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; }
.result-desc { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.result-price { font-size: 20px; color: var(--primary); font-weight: 600; }
.result-price-origin { font-size: 13px; color: var(--text-light); text-decoration: line-through; margin-left: 8px; }

/* ===== 分类页 ===== */
.category-page {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 0.5px solid var(--border); min-height: 600px;
}
.category-sidebar {
  background: #f8f8f8; border-right: 0.5px solid var(--border); padding: 8px 0;
}
.cat-sidebar-item {
  padding: 14px 20px; font-size: 14px; color: var(--text-secondary); cursor: pointer;
  transition: all 0.15s; border-left: 3px solid transparent;
}
.cat-sidebar-item:hover { background: #f0f0f0; color: var(--text-primary); }
.cat-sidebar-item.active { 
  background: white; color: var(--primary); font-weight: 500;
  border-left-color: var(--primary);
}

.category-main { padding: 24px; }
.cat-breadcrumb { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.cat-breadcrumb a { color: var(--primary); text-decoration: none; }
.cat-section-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }

.cat-sub-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px;
}
.cat-sub-card {
  border-radius: var(--radius-md); padding: 16px; cursor: pointer; color: white;
  transition: transform 0.2s; min-height: 80px; display: flex; flex-direction: column; justify-content: flex-end;
}
.cat-sub-card:hover { transform: translateY(-3px); }
.cat-sub-name { font-size: 14px; font-weight: 600; }
.cat-sub-count { font-size: 11px; opacity: 0.8; margin-top: 4px; }

.cat-product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}

/* ===== 商品详情页 ===== */
.product-detail { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 0.5px solid var(--border); }
.detail-hero { display: grid; grid-template-columns: 440px 1fr; gap: 0; }
.detail-gallery {
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  border-right: 0.5px solid var(--border);
}
.gallery-main {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); background: #f8f8f8;
  display: flex; align-items: center; justify-content: center; color: #ccc;
  font-size: 14px; overflow: hidden; position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); background: #f8f8f8;
  border: 2px solid transparent; cursor: pointer; transition: border 0.15s;
  display: flex; align-items: center; justify-content: center; font-size: 11px; color: #ccc; overflow: hidden;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info { padding: 24px; }
.detail-brand { font-size: 13px; color: var(--primary); cursor: pointer; margin-bottom: 8px; display: inline-flex; align-items: center; gap: 4px; }
.detail-brand:hover { text-decoration: underline; }
.detail-name { font-size: clamp(18px, 3vw, 24px); font-weight: 600; color: var(--text-primary); margin-bottom: 16px; line-height: 1.4; }
.detail-prices {
  background: linear-gradient(135deg, rgba(255,107,53,0.05), rgba(255,138,92,0.08));
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.price-current { font-size: 32px; font-weight: 700; color: var(--primary); }
.price-guide { font-size: 14px; color: var(--text-light); }
.price-guide s { margin-right: 4px; }

.detail-meta { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.meta-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.meta-label { color: var(--text-light); width: 80px; flex-shrink: 0; }
.meta-value { color: var(--text-primary); }
.meta-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.meta-tag {
  display: inline-block; padding: 2px 8px; background: rgba(255,107,53,0.1);
  color: var(--primary); border-radius: 4px; font-size: 12px;
}

.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-primary-lg {
  padding: 14px 36px; border-radius: 25px; font-size: 15px; font-weight: 500;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white;
  border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(255,107,53,0.3);
  transition: transform 0.15s;
}
.btn-primary-lg:hover { transform: translateY(-2px); }
.btn-secondary-lg {
  padding: 14px 36px; border-radius: 25px; font-size: 15px; font-weight: 500;
  background: white; color: var(--primary); border: 1.5px solid var(--primary);
  cursor: pointer; transition: all 0.15s;
}
.btn-secondary-lg:hover { background: rgba(255,107,53,0.05); }

.detail-tabs {
  display: flex; border-bottom: 0.5px solid var(--border); background: white;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
}
.detail-tab {
  padding: 16px 24px; font-size: 15px; color: var(--text-secondary); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.detail-tab:hover { color: var(--primary); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 500; }

.detail-content { padding: 24px; background: white; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.detail-content p { margin-bottom: 12px; line-height: 1.8; color: var(--text-secondary); }

/* ===== 品牌详情页 ===== */
.brand-detail { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 0.5px solid var(--border); }
.brand-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 40px 32px;
  display: flex; gap: 24px; align-items: center; color: white; flex-wrap: wrap;
}
.brand-logo-lg {
  width: 100px; height: 100px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 40px;
  flex-shrink: 0; border: 3px solid rgba(255,255,255,0.3); overflow: hidden;
}
.brand-logo-lg img { width: 100%; height: 100%; object-fit: cover; }
.brand-hero-info { flex: 1; min-width: 200px; }
.brand-hero-name { font-size: clamp(20px, 4vw, 28px); font-weight: 700; margin-bottom: 8px; }
.brand-hero-desc { font-size: 14px; opacity: 0.85; line-height: 1.6; margin-bottom: 12px; }
.brand-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-tag {
  padding: 4px 12px; border-radius: 12px; font-size: 12px;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}
.brand-verified {
  padding: 4px 12px; border-radius: 12px; font-size: 12px;
  background: rgba(255,255,255,0.95); color: var(--primary); font-weight: 500;
}

.brand-content { padding: 32px; }
.brand-section { margin-bottom: 28px; }
.brand-section-title {
  font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 0.5px solid var(--border);
}

.brand-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.contact-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #f8f8f8; border-radius: var(--radius-md); cursor: pointer; transition: background 0.15s;
}
.contact-item:hover { background: #f0f0f0; }
.contact-icon-wrap {
  width: 40px; height: 40px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
  background: linear-gradient(148deg, #dff5f8 0%, #e8f8f2 45%, #eef6ff 100%);
}
.contact-text { font-size: 13px; color: var(--text-primary); }
.contact-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }

.brand-products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px;
}

.brand-actions {
  display: flex; gap: 12px; padding: 20px 32px; border-top: 0.5px solid var(--border);
  background: #f8f8f8; flex-wrap: wrap;
}
.brand-action-btn {
  padding: 10px 24px; border-radius: 20px; font-size: 14px; cursor: pointer;
  transition: all 0.15s; border: none; font-weight: 500;
}
.brand-action-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white;
  box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}
.brand-action-primary:hover { transform: translateY(-1px); }
.brand-action-secondary { background: white; color: var(--primary); border: 1.5px solid var(--primary); }
.brand-action-secondary:hover { background: rgba(255,107,53,0.05); }

/* ===== 意经页 ===== */
.yijing-page { max-width: 800px; margin: 0 auto; }
.yijing-search-bar {
  display: flex; gap: 12px; margin-bottom: 24px;
}
.yijing-search-input {
  flex: 1; padding: 12px 20px; border-radius: 25px; border: 0.5px solid var(--border);
  font-size: 14px; outline: none; background: white; transition: border 0.15s;
}
.yijing-search-input:focus { border-color: var(--primary); }
.yijing-search-btn {
  padding: 12px 28px; border-radius: 25px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 14px; font-weight: 500; cursor: pointer;
}

.yijing-categories { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.yijing-cat {
  padding: 8px 20px; border-radius: 20px; font-size: 13px; cursor: pointer;
  border: 0.5px solid var(--border); color: var(--text-secondary); background: white; transition: all 0.15s;
}
.yijing-cat:hover { border-color: var(--primary); color: var(--primary); }
.yijing-cat.active { background: var(--primary); color: white; border-color: var(--primary); }

.yijing-list { display: flex; flex-direction: column; gap: 16px; }
.yijing-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 0.5px solid var(--border);
  cursor: pointer; transition: all 0.2s;
}
.yijing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.yijing-card-inner { display: flex; gap: 16px; padding: 16px; }
.yijing-cover {
  width: 200px; height: 130px; border-radius: var(--radius-sm); background: #f0f0f0;
  flex-shrink: 0; overflow: hidden; position: relative;
}
.yijing-cover img { width: 100%; height: 100%; object-fit: cover; }
.yijing-cover-tag {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: 4px; font-size: 11px; color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.yijing-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.yijing-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; line-height: 1.5; }
.yijing-summary { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.yijing-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-light); }

/* ===== 空状态 ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--text-light);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-text { font-size: 14px; }

/* ===== 底部 ===== */
.footer {
  background: white; border-top: 0.5px solid var(--border); padding: 40px 24px;
  text-align: center; color: var(--text-light); font-size: 13px;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--primary); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .search-page { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-gallery { border-right: none; border-bottom: 0.5px solid var(--border); }
  .category-page { grid-template-columns: 1fr; }
  .category-sidebar { 
    display: flex; overflow-x: auto; border-right: none; border-bottom: 0.5px solid var(--border);
    padding: 0 8px;
  }
  .cat-sidebar-item { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .cat-sidebar-item.active { border-bottom-color: var(--primary); border-left: none; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  .nav-menu { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-contact-grid { grid-template-columns: 1fr; }
  .yijing-card-inner { flex-direction: column; }
  .yijing-cover { width: 100%; height: 180px; }
  .hero { padding: 32px 16px 40px; }
  .content { padding: 24px 16px; }
  .page-wrapper { padding: 16px 16px 32px; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .quick-card { padding: 14px 10px; }
  .quick-icon { width: 42px; height: 42px; font-size: 20px; }
  .quick-label { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-logo-lg { width: 72px; height: 72px; font-size: 28px; }
  .brand-hero { padding: 24px 20px; }
  .brand-content { padding: 20px; }
}

/* ==================== 核心功能增强样式 ==================== */

/* 数据来源徽章 */
.data-badge {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(0,0,0,0.78);
  color: white;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.data-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px #4caf50;
  animation: pulse 2s infinite;
}
.data-badge.mock .dot { background: #ff9800; box-shadow: 0 0 6px #ff9800; }
.data-badge.error .dot { background: #f44336; box-shadow: 0 0 6px #f44336; animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 骨架屏 */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.skeleton-img { width: 100%; height: 160px; margin-bottom: 12px; }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.mid { width: 80%; }

/* 错误态 */
.error-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}
.error-state-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.error-state-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.error-state-desc { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.error-state-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.error-state-btn:hover { opacity: 0.9; }

/* 空态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.empty-state-icon { font-size: 56px; margin-bottom: 12px; opacity: 0.3; }
.empty-state-text { font-size: 14px; }

/* 图片懒加载占位 + 失败 */
.lazy-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  overflow: hidden;
}
.lazy-img-wrap.loading::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.lazy-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.3s;
}
.lazy-img-wrap img.loaded { opacity: 1; }
.lazy-img-wrap img.error { opacity: 0.3; }

/* 搜索结果项统一卡片 */
.result-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.result-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(255,107,53,0.2);
  transform: translateY(-1px);
}
.result-thumb {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}
.result-thumb.brand {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #fff0e8, #ffe5d6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  font-weight: 700;
}
.result-thumb.company {
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.result-body { flex: 1; min-width: 0; }
.result-type {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  margin-bottom: 6px;
}
.result-type.brand { background: #2EC4B6; }
.result-type.company { background: #00B894; }
.result-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.result-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.result-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.result-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.result-price {
  font-size: 18px;
  color: var(--primary);
  font-weight: 600;
}
.result-price-origin {
  font-size: 12px;
  color: var(--text-light);
  text-decoration: line-through;
}
.result-article {
  font-size: 11px;
  color: var(--text-light);
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

/* 加载更多 */
.load-more {
  text-align: center;
  padding: 24px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.load-more-btn {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 8px 24px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}
.load-more-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.load-more-btn:disabled { cursor: not-allowed; opacity: 0.6; }
.load-more-no-more { color: var(--text-light); font-size: 12px; }

/* 高亮关键词 */
.highlight { color: var(--primary); font-weight: 600; background: rgba(255,107,53,0.08); padding: 0 2px; border-radius: 2px; }

/* 搜索框输入态 */
.search-box.active {
  background: white;
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}
.search-input.live { cursor: text; background: white; }

/* 排序激活态 */
.sort-btn { position: relative; padding: 4px 10px; }
.sort-btn.active { color: var(--primary); font-weight: 500; }
.sort-btn.active::after { content: ' ●'; font-size: 8px; vertical-align: middle; }

/* 移动端搜索结果项 */
@media (max-width: 640px) {
  .result-item { padding: 12px; gap: 12px; }
  .result-thumb { width: 88px; height: 88px; }
  .result-thumb.brand { width: 72px; height: 72px; font-size: 28px; }
  .result-title { font-size: 14px; }
  .result-sub { font-size: 12px; }
}

/* CloudBase 引导卡(匿名登录未开启时) */
.cb-guide {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: cbGuideFadeIn 0.2s ease;
}
@keyframes cbGuideFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cb-guide-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px 24px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: cbGuideSlideUp 0.3s ease;
}
@keyframes cbGuideSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cb-guide-card h3 {
  margin: 0 0 8px;
  color: #FF6B35;
  font-size: 18px;
  font-weight: 600;
}
.cb-guide-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 14px;
  margin: 8px 0;
}
.cb-guide-card code {
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #FF6B35;
  font-family: 'SF Mono', Menlo, monospace;
}
.cb-guide-card a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
}
.cb-guide-card a:hover { text-decoration: underline; }
.cb-guide-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: #94A3B8;
  font-size: 16px;
  transition: all 0.2s;
}
.cb-guide-close:hover {
  background: #F1F5F9;
  color: #475569;
}
.cb-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 8px;
}
.cb-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 3px solid #FF6B35;
}
.cb-step-no {
  font-weight: 700;
  color: #FF6B35;
  flex-shrink: 0;
  font-size: 13px;
  padding-top: 2px;
}
.cb-step-body {
  flex: 1;
}
.cb-step-body b {
  display: block;
  margin-bottom: 6px;
  color: #1E293B;
  font-size: 14px;
}
.cb-step-body ol {
  margin: 4px 0 0;
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.7;
}
.cb-guide-tip {
  font-size: 12px;
  color: #94A3B8;
  background: #FFFBEB;
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 12px;
}
.cb-guide-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.cb-guide-btn-primary {
  background: linear-gradient(135deg, #FF6B35, #FF8A5C);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.cb-guide-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}
@media (max-width: 640px) {
  .cb-guide-card { padding: 20px; }
  .cb-guide-card h3 { font-size: 16px; }
}

/* ============================================================
   通用:Toast
   ============================================================ */
.xxs-toast {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff; padding: 10px 20px;
  border-radius: 24px; font-size: 14px; z-index: 9999;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-width: 90vw; word-break: break-all;
}
.xxs-toast.show { opacity: 1; }
.xxs-toast.success { background: #10b981; }
.xxs-toast.warn { background: #f59e0b; }
.xxs-toast.error { background: #ef4444; }

/* ============================================================
   通用:Loading / Empty
   ============================================================ */
.loading, .empty-state {
  text-align: center; padding: 40px 20px; color: #999; font-size: 14px;
}
.empty-state a { color: var(--primary, #FF6B35); text-decoration: none; }
.empty-state a:hover { text-decoration: underline; }
.load-more-end { text-align: center; padding: 16px; color: #bbb; font-size: 12px; }

/* ============================================================
   通用:Modal
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #fff; border-radius: 12px; padding: 24px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  background: none; border: none; font-size: 20px; color: #999; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #f5f5f5; color: #333; }
.modal-card h3 { margin: 0 0 8px; font-size: 18px; color: #333; }
.modal-sub { color: #666; font-size: 13px; margin: 0 0 20px; }
.modal-tip { background: #fff8e1; border-left: 3px solid #f59e0b; padding: 10px 12px; font-size: 12px; color: #666; margin: 16px 0; border-radius: 4px; line-height: 1.6; }
.modal-actions { display: flex; gap: 8px; margin-top: 20px; }
.modal-actions .btn-primary, .modal-actions .btn-ghost { flex: 1; }
.btn-primary, .btn-ghost {
  padding: 10px 20px; border-radius: 6px; font-size: 14px;
  cursor: pointer; transition: all 0.15s; font-weight: 500;
  border: none; outline: none;
}
.btn-primary { background: var(--primary, #FF6B35); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #ff5722; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-ghost { background: #f5f5f5; color: #333; }
.btn-ghost:hover { background: #ebebeb; }
.btn-my {
  padding: 6px 16px; border-radius: 16px; font-size: 13px;
  background: #f0f9ff; color: var(--primary, #FF6B35); border: 1px solid var(--primary, #FF6B35);
  cursor: pointer;
}
.btn-my:hover { background: var(--primary, #FF6B35); color: #fff; }

/* ============================================================
   通用:Form
   ============================================================ */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; font-weight: 500; }
.form-row input[type=text],
.form-row input[type=tel],
.form-row input[type=number],
.form-row input[type=email],
.form-row input[type=password],
.form-row select,
.form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 14px; outline: none;
  transition: border-color 0.15s; font-family: inherit;
  box-sizing: border-box;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--primary, #FF6B35); }
.form-row textarea { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-group { display: flex; gap: 16px; }
.radio-item { display: flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 400 !important; }
.form-tip { color: #999; font-size: 12px; margin-top: 12px; }

/* ============================================================
   意经:文章列表 / 详情
   ============================================================ */
.yijing-search-bar { display: flex; gap: 8px; max-width: 600px; margin: 0 auto 20px; }
.yijing-search-input {
  flex: 1; padding: 10px 16px; border: 2px solid #e0e0e0; border-radius: 24px;
  font-size: 14px; outline: none;
}
.yijing-search-input:focus { border-color: var(--primary, #FF6B35); }
.yijing-search-btn {
  padding: 10px 24px; background: var(--primary, #FF6B35); color: #fff;
  border: none; border-radius: 24px; cursor: pointer; font-size: 14px;
}
.yijing-categories { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.yijing-cat {
  padding: 6px 16px; border-radius: 20px; background: #f5f5f5; color: #666;
  font-size: 13px; cursor: pointer; user-select: none; transition: all 0.15s;
}
.yijing-cat:hover { background: #ffe0d4; color: var(--primary, #FF6B35); }
.yijing-cat.active { background: var(--primary, #FF6B35); color: #fff; }
.yijing-list { max-width: 900px; margin: 0 auto; }

.article-card {
  display: flex; gap: 16px; padding: 16px; background: #fff; border-radius: 10px;
  margin-bottom: 12px; cursor: pointer; transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.article-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.article-card-cover {
  width: 160px; height: 120px; border-radius: 8px; object-fit: cover;
  background: linear-gradient(135deg,#6C5CE7,#A29BFE); flex-shrink: 0;
}
.article-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.article-card-title {
  font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.article-card-summary {
  font-size: 13px; color: #777; margin-bottom: 8px; line-height: 1.5;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.article-card-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #999; }
.article-card-cat {
  background: #fff3e0; color: var(--primary, #FF6B35); padding: 2px 8px;
  border-radius: 10px; font-size: 11px;
}
.article-tag { color: #6C5CE7; font-size: 11px; }
.article-card-stat { font-size: 11px; color: #999; }
.article-card-time { margin-left: auto; }

/* 意经详情 */
.page-article .page-wrapper { max-width: 800px; }
.article-detail-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.article-detail-cover { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.article-detail-body { padding: 24px 32px; }
.article-detail-title { font-size: 24px; color: #222; margin: 0 0 12px; line-height: 1.4; }
.article-detail-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: #999; font-size: 13px; margin-bottom: 12px; }
.article-detail-tags { margin-bottom: 20px; }
.article-detail-content {
  font-size: 15px; line-height: 1.8; color: #333;
  border-top: 1px solid #f0f0f0; padding-top: 20px;
}
.article-detail-content h1, .article-detail-content h2, .article-detail-content h3 {
  color: var(--primary, #FF6B35); margin: 24px 0 12px; font-weight: 600;
}
.article-detail-content h3 { font-size: 17px; }
.article-detail-content p { margin: 0 0 12px; }
.article-detail-actions { display: flex; gap: 12px; padding: 20px 32px; border-top: 1px solid #f0f0f0; }
.action-btn {
  padding: 8px 16px; background: #f5f5f5; border: 1px solid #ebebeb;
  border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.action-btn:hover { background: #ffe0d4; }
.action-btn.active { background: #ffe0d4; color: var(--primary, #FF6B35); border-color: var(--primary, #FF6B35); }
.article-comments { padding: 24px 32px; border-top: 1px solid #f0f0f0; }
.article-comments h3 { margin: 0 0 16px; font-size: 16px; color: #333; }
.comment-input-row { display: flex; gap: 8px; margin-bottom: 20px; }
.comment-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 20px;
  font-size: 14px; outline: none;
}
.comment-input-row input:focus { border-color: var(--primary, #FF6B35); }
.comment-input-row button {
  padding: 10px 20px; background: var(--primary, #FF6B35); color: #fff;
  border: none; border-radius: 20px; cursor: pointer; font-size: 14px;
}
.comment-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #f0f0f0; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,#FF6B35,#FF8A5C);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.comment-name { font-size: 13px; font-weight: 600; color: #333; }
.comment-time { font-size: 11px; color: #999; }
.comment-content { font-size: 14px; color: #555; line-height: 1.5; word-break: break-all; }

/* ============================================================
   排行榜
   ============================================================ */
.ranking-page { max-width: 900px; margin: 0 auto; }
.ranking-header { text-align: center; margin-bottom: 24px; }
.ranking-title { font-size: 24px; color: #333; margin: 0 0 8px; }
.ranking-sub { color: #999; font-size: 14px; margin: 0; }
.ranking-tabs { display: flex; gap: 0; background: #f5f5f5; border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.ranking-tab {
  flex: 1; padding: 10px 0; text-align: center; font-size: 14px;
  color: #666; cursor: pointer; border-radius: 6px; transition: all 0.15s;
  font-weight: 500;
}
.ranking-tab.active { background: #fff; color: var(--primary, #FF6B35); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.ranking-category-filter { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.ranking-category-filter .rcat {
  padding: 4px 14px; border-radius: 16px; background: #fff; border: 1px solid #e0e0e0;
  font-size: 12px; cursor: pointer; color: #666; user-select: none;
}
.ranking-category-filter .rcat.active { background: var(--primary, #FF6B35); color: #fff; border-color: var(--primary, #FF6B35); }
.ranking-list { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.ranking-item {
  display: flex; gap: 16px; padding: 14px 20px; align-items: center;
  border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s;
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: #fafafa; }
.ranking-item .rank-top {
  width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0;
  color: #999; font-size: 16px; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ranking-item .rank-1 { background: linear-gradient(135deg,#FFD700,#FFA500); color: #fff; }
.ranking-item .rank-2 { background: linear-gradient(135deg,#C0C0C0,#A8A8A8); color: #fff; }
.ranking-item .rank-3 { background: linear-gradient(135deg,#CD7F32,#A56C28); color: #fff; }
.ranking-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ranking-body { flex: 1; min-width: 0; }
.ranking-name { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 4px; }
.ranking-sub { font-size: 12px; color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-score { text-align: center; }
.ranking-score .score-num { font-size: 20px; font-weight: 700; color: var(--primary, #FF6B35); }
.ranking-score .score-label { font-size: 10px; color: #999; }
.ranking-price { font-size: 14px; font-weight: 600; color: #ff5722; min-width: 80px; text-align: right; }

/* ============================================================
   厂商主页
   ============================================================ */
.company-page { max-width: 1100px; margin: 0 auto; }
.company-header {
  display: flex; gap: 24px; background: #fff; padding: 32px;
  border-radius: 12px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.company-logo { width: 100px; height: 100px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.company-info { flex: 1; min-width: 0; }
.company-name { font-size: 24px; font-weight: 700; color: #333; margin-bottom: 8px; }
.company-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.company-tag {
  padding: 3px 10px; border-radius: 12px; font-size: 12px;
  background: #f0f9ff; color: #2EC4B6;
}
.company-tag.tag-type { background: #fff3e0; color: var(--primary, #FF6B35); }
.company-tag.tag-checked { background: #e0f7fa; color: #00B894; }
.company-website { color: #2EC4B6; font-size: 13px; margin-bottom: 6px; word-break: break-all; }
.company-website a { color: #2EC4B6; text-decoration: none; }
.company-website a:hover { text-decoration: underline; }
.company-address { color: #999; font-size: 13px; }
.company-section {
  background: #fff; padding: 24px 32px; border-radius: 12px;
  margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.company-section h3 { margin: 0 0 16px; font-size: 16px; color: #333; }
.company-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.company-brand {
  text-align: center; cursor: pointer; padding: 12px;
  border-radius: 8px; transition: all 0.15s;
}
.company-brand:hover { background: #fafafa; }
.company-brand img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 6px; }
.company-brand div { font-size: 13px; color: #333; }

/* ============================================================
   厂商入驻
   ============================================================ */
.settle-page { max-width: 800px; margin: 0 auto; }
.settle-header { text-align: center; margin-bottom: 24px; }
.settle-title { font-size: 24px; color: #333; margin: 0 0 8px; }
.settle-sub { color: #999; font-size: 14px; margin: 0; }
.settle-status-card { background: #fff; border-radius: 12px; padding: 40px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.settle-state-pending, .settle-state-rejected, .settle-state-approved, .settle-state-none { padding: 20px 0; }
.settle-icon { font-size: 56px; margin-bottom: 16px; }
.settle-state-pending .settle-icon, .settle-state-approved .settle-icon { color: var(--primary, #FF6B35); }
.settle-state-rejected .settle-icon { color: #ef4444; }
.settle-status-card h3 { margin: 0 0 12px; font-size: 18px; color: #333; }
.settle-status-card p { color: #666; font-size: 14px; margin: 0 0 8px; }
.settle-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.settle-form-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.settle-form-card h3 { margin: 0 0 20px; font-size: 18px; color: #333; }

/* ============================================================
   商品发布
   ============================================================ */
.publish-page { max-width: 800px; margin: 0 auto; }
.publish-title { font-size: 24px; color: #333; margin: 0 0 8px; }
.publish-sub { color: #999; font-size: 14px; margin: 0 0 24px; }
.publish-form { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.publish-form label { font-weight: 500; }

/* ============================================================
   个人中心
   ============================================================ */
.my-page { max-width: 1100px; margin: 0 auto; }
.my-header {
  background: linear-gradient(135deg, var(--primary, #FF6B35) 0%, #FF8A5C 100%);
  border-radius: 12px; padding: 32px; color: #fff; margin-bottom: 24px;
}
.my-header-inner { display: flex; align-items: center; gap: 16px; }
.my-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.3);
  color: #fff; font-size: 24px; font-weight: 700; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.5);
}
.my-info { flex: 1; }
.my-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.my-sub { font-size: 13px; opacity: 0.9; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.my-tag {
  background: rgba(255,255,255,0.25); padding: 2px 10px; border-radius: 12px;
  font-size: 11px;
}
.my-header .btn-ghost { background: rgba(255,255,255,0.2); color: #fff; }
.my-header .btn-ghost:hover { background: rgba(255,255,255,0.3); }
.my-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.my-card {
  background: #fff; border-radius: 12px; padding: 20px;
  display: flex; gap: 12px; align-items: center; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.my-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.my-card-icon {
  width: 48px; height: 48px; border-radius: 12px; color: #fff;
  font-size: 22px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.my-card-body { flex: 1; min-width: 0; }
.my-card-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 2px; }
.my-card-sub { font-size: 12px; color: #999; }
.my-panel {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.my-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.my-panel-header h3 { margin: 0; font-size: 18px; color: #333; }
.my-panel-close {
  background: #f5f5f5; border: none; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 16px; color: #666;
}
.my-panel-close:hover { background: #ebebeb; }
.my-list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: 8px; cursor: pointer; transition: background 0.15s;
  border-bottom: 1px solid #f5f5f5;
}
.my-list-item:last-child { border-bottom: none; }
.my-list-item:hover { background: #fafafa; }
.my-list-item img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.my-list-item-body { flex: 1; min-width: 0; }
.my-list-item-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-list-item-sub { font-size: 12px; color: #999; }
.my-list-item-tag {
  background: #fff3e0; color: var(--primary, #FF6B35);
  padding: 2px 10px; border-radius: 12px; font-size: 11px;
  flex-shrink: 0;
}
.my-suggestion-item {
  padding: 16px; border: 1px solid #f0f0f0; border-radius: 8px; margin-bottom: 12px;
}
.my-suggestion-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.my-suggestion-type { background: #f0f9ff; color: #2EC4B6; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.my-suggestion-status { padding: 2px 10px; border-radius: 12px; font-size: 11px; }
.my-suggestion-status.status-pending { background: #fff8e1; color: #f59e0b; }
.my-suggestion-status.status-processed { background: #e0f7fa; color: #10b981; }
.my-suggestion-content { color: #333; font-size: 14px; line-height: 1.6; margin-bottom: 6px; word-break: break-all; }
.my-suggestion-time { color: #999; font-size: 11px; }
.my-suggestion-reply { margin-top: 10px; padding: 8px 12px; background: #f0f9ff; border-radius: 6px; color: #555; font-size: 13px; }
.my-msg-item {
  padding: 14px 16px; border-radius: 8px; margin-bottom: 8px;
  background: #fafafa; transition: all 0.15s;
}
.my-msg-item.unread { background: #fff3e0; border-left: 3px solid var(--primary, #FF6B35); }
.my-msg-title { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; }
.my-msg-content { font-size: 13px; color: #666; line-height: 1.5; }
.my-msg-time { font-size: 11px; color: #999; margin-top: 4px; }

/* ============================================================
   静态页(关于/规则)
   ============================================================ */
.static-page { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 12px; padding: 32px 40px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.static-page h2 { font-size: 24px; color: #333; margin: 0 0 20px; text-align: center; }
.static-content h3 { color: var(--primary, #FF6B35); margin: 20px 0 12px; font-size: 17px; }
.static-content h4 { color: #333; margin: 16px 0 8px; font-size: 15px; }
.static-content p, .static-content li { color: #555; font-size: 14px; line-height: 1.8; }
.static-content ol, .static-content ul { padding-left: 24px; margin: 0 0 12px; }
.static-content li { margin-bottom: 4px; }
.static-content .muted { color: #999; font-size: 12px; text-align: center; margin-top: 24px; }

/* ============================================================
   响应式(平板/手机)
   ============================================================ */
@media (max-width: 768px) {
  .form-row-2 { grid-template-columns: 1fr; }
  .article-card { flex-direction: column; }
  .article-card-cover { width: 100%; height: 180px; }
  .article-detail-body, .article-comments { padding: 20px 16px; }
  .article-detail-title { font-size: 20px; }
  .company-header { flex-direction: column; text-align: center; }
  .company-tags { justify-content: center; }
  .my-header { padding: 20px; }
  .my-header-inner { flex-wrap: wrap; }
  .settle-form-card, .publish-form { padding: 20px 16px; }
  .static-page { padding: 20px 16px; }
  .ranking-item { padding: 12px 16px; gap: 12px; }
  .ranking-item .rank-top { width: 28px; height: 28px; font-size: 14px; }
  .ranking-logo { width: 40px; height: 40px; }
  .ranking-name { font-size: 14px; }
  .ranking-score .score-num { font-size: 16px; }
  .modal-card { padding: 20px; }
}
/* ============================================================
   Admin 后台
   ============================================================ */
.page-admin .admin-page { max-width: 1100px; margin: 0 auto; padding: 20px 0; }
.admin-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-header h2 { font-size: 22px; color: var(--text-primary); }
.admin-tag { background: var(--primary); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.admin-close-btn { margin-left: auto; }

.admin-tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; font-size: 14px; color: var(--text-secondary); transition: all 0.2s; }
.admin-tab:hover { border-color: var(--primary); color: var(--primary); }
.admin-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.admin-body { min-height: 300px; }

/* 总览统计卡片 */
.admin-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.admin-stat-card { border-radius: 12px; padding: 24px 20px; color: #fff; text-align: center; }
.admin-stat-num { font-size: 32px; font-weight: 700; line-height: 1.2; }
.admin-stat-label { font-size: 13px; opacity: 0.9; margin-top: 4px; }

/* 表格 */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: var(--bg-secondary); padding: 12px 16px; text-align: left; font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.admin-table td { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-primary); }
.admin-table tr:hover td { background: var(--bg-secondary); }

/* 反馈列表 */
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-feedback-item { background: #fff; border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); border-left: 3px solid transparent; }
.admin-feedback-item.unread { border-left-color: var(--primary); background: #FFFBF5; }
.admin-feedback-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.admin-feedback-type { background: var(--bg-secondary); padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--text-secondary); }
.admin-feedback-time { font-size: 12px; color: var(--text-muted); }
.admin-badge-unread { background: var(--primary); color: #fff; padding: 1px 8px; border-radius: 4px; font-size: 11px; }
.admin-feedback-content { font-size: 14px; color: var(--text-primary); line-height: 1.6; margin-bottom: 8px; }
.admin-feedback-footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

/* 小按钮 */
.btn-sm { padding: 4px 12px; border-radius: 6px; font-size: 12px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-sm.btn-primary { background: var(--primary); color: #fff; }
.btn-sm.btn-primary:hover { background: var(--primary-dark); }
.btn-sm.btn-danger { background: var(--danger, #EF4444); color: #fff; }
.btn-sm.btn-danger:hover { opacity: 0.85; }
.btn-sm.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-sm.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
