/* ==========================================
   品牌大全 - Professional Design System v3
   ========================================== */

/* ==================== CSS Variables ==================== */
:root {
  /* Primary Colors */
  --primary: #1a56db;
  --primary-hover: #1e429f;
  --primary-light: #ebf5ff;
  --primary-gradient: linear-gradient(135deg, #1a56db 0%, #6c3be3 100%);
  
  /* Neutral Colors */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;

  /* Status */
  --success: #059669;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #0891b2;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 10px 10px -5px rgba(0,0,0,.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.15);

  /* Border Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 200ms ease;
  --t-slow: 300ms ease;

  /* Layout */
  --header-h: 68px;
  --container: 1300px;
  --gutter: 28px;
  --sidebar-w: 260px;
}

/* ==================== Reset ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ==================== Layout ==================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page-content { padding-top: var(--header-h); }
.page-wrapper { padding: 40px 0 80px; }
.main-layout { display: flex; gap: 32px; align-items: flex-start; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: var(--sidebar-w); flex-shrink: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ==================== Typography ==================== */
h1 { font-size: 38px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.15; }
h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.8px; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; }
h4 { font-size: 16px; font-weight: 600; }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 15px; }
.text-lg { font-size: 17px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-muted { color: var(--text-secondary); }
.text-light { color: var(--text-tertiary); }
.text-accent { color: var(--primary); }
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== Header ==================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--t-base);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  margin-right: 40px;
  color: var(--text-primary);
}
.site-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--primary-gradient);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

/* Primary Navigation */
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.site-nav__link:hover { color: var(--text-primary); background: var(--surface-2); }
.site-nav__link.active { color: var(--primary); background: var(--primary-light); }
.site-nav__link .arrow {
  font-size: 10px;
  opacity: 0.6;
  transition: transform var(--t-fast);
}
.site-nav__item:hover .arrow { transform: rotate(180deg); }

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2xl);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
  pointer-events: none;
  z-index: 200;
}
.site-nav__item:hover > .mega-dropdown,
.mega-dropdown:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mega-dropdown__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mega-dropdown__col-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.mega-dropdown__col ul { display: flex; flex-direction: column; gap: 4px; }
.mega-dropdown__col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
}
.mega-dropdown__col ul li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Header Actions */
.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Header Search */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  width: 240px;
  position: relative;
}
.header-search:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
  width: 300px;
}

/* 桌面端：搜索框在 header-search 里，隐藏图标按钮 */
/* 移动端：显示搜索图标和菜单按钮 */
@media (min-width: 769px) {
  .btn-search,
  .site-header__menu { display: none !important; }
}
.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}
.header-search input::placeholder { color: var(--text-tertiary); }
.header-search__btn {
  color: var(--text-tertiary);
  padding: 0;
  line-height: 1;
  transition: color var(--t-fast);
  font-size: 16px;
  cursor: pointer;
}
.header-search__btn:hover { color: var(--primary); }

/* Mobile Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--t-base); }

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(26,86,219,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(108,59,227,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  padding: 72px 0 64px;
  position: relative;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--r-full);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero__title {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 680px;
}
.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Hero Search */
.hero-search {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-search__input {
  flex: 1;
  padding: 16px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  font-size: 16px;
  background: var(--surface);
  color: var(--text-primary);
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.hero-search__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
}
.hero-search__btn {
  padding: 16px 32px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--r-xl);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--t-fast);
  box-shadow: 0 4px 14px rgba(26,86,219,0.3);
  white-space: nowrap;
}
.hero-search__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,0.4); }

/* Hero Stats */
.hero__stats {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
}
.hero__stat-value { font-size: 32px; font-weight: 800; color: var(--text-primary); letter-spacing: -1px; }
.hero__stat-label { font-size: 13px; color: var(--text-tertiary); margin-top: 2px; }

/* Hero Quick Cats */
.hero__quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-base);
  box-shadow: var(--shadow-xs);
}
.hero-cat-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ==================== Section ==================== */
.section { padding: 40px 0; }
.section--alt { background: var(--surface); }
.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.section__title-desc {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 400;
}
.section__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--r-full);
  transition: all var(--t-fast);
}
.section__more:hover { background: var(--primary-light); }

/* ==================== Quick Filter ==================== */
.quick-filter {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}
.quick-filter__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.quick-filter__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  white-space: nowrap;
  min-width: 70px;
}
.quick-filter__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  font-weight: 500;
}
.filter-tag:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.filter-tag.active { background: var(--primary); color: white; border-color: var(--primary); }
.quick-filter + .quick-filter { margin-top: -20px; border-top: none; border-radius: 0 0 var(--r-xl) var(--r-xl); }

/* ==================== Brand Card ==================== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.brand-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--t-base);
  position: relative;
}
.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  border: 2px solid transparent;
  transition: border-color var(--t-base);
  pointer-events: none;
}
.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.brand-card:hover::after { border-color: var(--primary); }

.brand-card__link { display: block; padding: 24px; }
.brand-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.brand-card__logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-card__logo { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.brand-card__logo-fallback {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white;
}
.brand-card__score {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.brand-card__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.brand-card__name-en {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}
.brand-card__slogan {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.brand-card__price {
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg);
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.brand-card__tags { display: flex; flex-wrap: wrap; gap: 5px; }
.brand-card__tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

/* Brand Card - Horizontal List Item */
.brand-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
  margin-bottom: 12px;
}
.brand-list-item:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateX(4px); }
.brand-list-item__logo {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-list-item__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.brand-list-item__logo-fb {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: white;
  flex-shrink: 0;
}
.brand-list-item__info { flex: 1; min-width: 0; }
.brand-list-item__name { font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.brand-list-item__desc { font-size: 13px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-list-item__meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-list-item__cat {
  font-size: 12px;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--r-full);
  font-weight: 500;
}

/* ==================== Ranking ==================== */
.ranking-block {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ranking-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.ranking-block__title { font-size: 17px; font-weight: 700; }
.ranking-block__type {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-weight: 500;
}
.ranking-block__type--hot { background: #fef2f2; color: #dc2626; }
.ranking-block__type--reputation { background: #f0fdf4; color: #059669; }
.ranking-block__type--new { background: var(--primary-light); color: var(--primary); }
.ranking-block__type--domestic { background: #fffbeb; color: #d97706; }

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}
.ranking-item:last-child { border-bottom: none; }
.ranking-item:hover { background: var(--bg); }
.ranking-item a { color: inherit; }

.ranking-item__rank {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.ranking-item--top1 .ranking-item__rank { background: linear-gradient(135deg,#fef08a,#fde047); color: #713f12; }
.ranking-item--top2 .ranking-item__rank { background: linear-gradient(135deg,#e5e7eb,#d1d5db); color: #374151; }
.ranking-item--top3 .ranking-item__rank { background: linear-gradient(135deg,#fed7aa,#fdba74); color: #92400e; }

.ranking-item__logo {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ranking-item__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.ranking-item__logo-fb {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: white; flex-shrink: 0;
}
.ranking-item__info { flex: 1; min-width: 0; }
.ranking-item__name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.ranking-item__highlight { font-size: 12px; color: var(--text-tertiary); }
.ranking-item__score { font-size: 15px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.ranking-item__score span { font-size: 11px; color: var(--text-tertiary); font-weight: 400; }

/* ==================== News Card ==================== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.news-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.news-card__image {
  height: 180px;
  background: linear-gradient(135deg, var(--surface-2), var(--border));
  overflow: hidden;
  position: relative;
}
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.news-card:hover .news-card__image img { transform: scale(1.05); }
.news-card__image-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.3;
}
.news-card__body { padding: 20px; flex: 1; }
.news-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.news-card__cat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary);
}
.news-card__date { font-size: 12px; color: var(--text-tertiary); }
.news-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.news-card:hover .news-card__title { color: var(--primary); }
.news-card__summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.news-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.news-card__brand span { color: var(--primary); font-weight: 500; }

/* ==================== Brand Detail ==================== */
.brand-detail { }

.brand-detail__header {
  background: var(--surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 28px;
  display: flex;
  gap: 36px;
  align-items: flex-start;
}
.brand-detail__logo-box {
  width: 120px;
  height: 120px;
  border-radius: var(--r-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-detail__logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.brand-detail__logo-fb {
  width: 120px; height: 120px;
  border-radius: var(--r-xl);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: white; flex-shrink: 0;
}
.brand-detail__head-info { flex: 1; min-width: 0; }
.brand-detail__name { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; }
.brand-detail__name-en { font-size: 14px; color: var(--text-tertiary); margin-bottom: 12px; }
.brand-detail__slogan {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 14px;
}
.brand-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.brand-detail__tag {
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.brand-detail__tag--primary { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.brand-detail__actions { display: flex; gap: 12px; }

/* Brand Info Cards */
.brand-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.brand-info-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 20px;
  text-align: center;
}
.brand-info-card__label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 6px; }
.brand-info-card__value { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* Brand Content Sections */
.brand-section {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 20px;
}
.brand-section__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-section__title-icon { font-size: 20px; }
.brand-section__text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* ==================== Brand Feed ==================== */
.brand-feed__total { font-size: 13px; color: var(--text-tertiary); font-weight: 400; margin-left: 6px; }

/* Feed Tabs */
.brand-feed__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.brand-feed__tab {
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t-fast);
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.brand-feed__tab:hover { color: var(--text-secondary); background: var(--bg); }
.brand-feed__tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* Feed Card */
.feed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow var(--t-fast);
}
.feed-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feed-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.feed-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.feed-card__avatar--default {
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.feed-card__meta { flex: 1; min-width: 0; }
.feed-card__author { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.feed-card__time { font-size: 12px; color: var(--text-tertiary); }
.feed-card__type-badge { font-size: 18px; }
.feed-card__title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.5; }
.feed-card__pinned { color: var(--primary); margin-right: 6px; font-size: 12px; background: var(--primary-light); padding: 2px 6px; border-radius: var(--r-sm); }
/* ===================== Feed 多图布局（微信朋友圈风格） ===================== */
.feed-images { margin-bottom: 12px; border-radius: var(--r-lg); overflow: hidden; }
.feed-images__item { overflow: hidden; background: var(--bg-secondary); }
.feed-images__item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 单图：宽度50%，居左，高度自适应 */
.feed-images--1 { width: 50%; border-radius: var(--r-lg); overflow: hidden; }
.feed-images--1 .feed-images__item--single { width: 100%; }
.feed-images--1 .feed-images__item--single img { width: 100%; height: auto; max-height: 60vh; object-fit: cover; }

/* 2张：左右并排 */
.feed-images--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.feed-images--2 .feed-images__item { aspect-ratio: 1; }

/* 3张：2左 + 1右 */
.feed-images--3 { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; }
.feed-images--3 .feed-images__col { display: flex; flex-direction: column; gap: 3px; }
.feed-images--3 .feed-images__col--2 .feed-images__item { flex: 1; aspect-ratio: 1; }
.feed-images--3 .feed-images__col--1 .feed-images__item { flex: 1; aspect-ratio: 1; }

/* 4张：2×2 网格 */
.feed-images--4 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.feed-images--4 .feed-images__item { aspect-ratio: 1; }

/* 5-6张：2×3 网格 */
.feed-images--6 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.feed-images--6 .feed-images__item { aspect-ratio: 1; }

/* 7-9张：3×3 网格 */
.feed-images--9 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3px; }
.feed-images--9 .feed-images__item { aspect-ratio: 1; }

/* >9张遮罩 */
.feed-images--overflow { position: relative; }
.feed-images__more {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: #fff;
  pointer-events: none;
}
.feed-card__content-text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.feed-card__stats { display: flex; gap: 16px; font-size: 13px; color: var(--text-tertiary); }
.feed-card__link { font-size: 13px; color: var(--primary); text-decoration: none; font-weight: 600; }
.feed-card__link:hover { text-decoration: underline; }

/* Feed Loading */
.brand-feed__loading { text-align: center; padding: 24px; color: var(--text-tertiary); font-size: 14px; }
.loading-dots span { animation: loadingDots 1.4s infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadingDots { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }

/* Feed Empty */
.brand-feed__empty { text-align: center; padding: 48px 24px; }
.brand-feed__empty-icon { font-size: 48px; margin-bottom: 12px; }
.brand-feed__empty-text { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.brand-feed__empty-sub { font-size: 13px; color: var(--text-tertiary); }

/* Feed End */
.brand-feed__end { text-align: center; padding: 20px; color: var(--text-tertiary); font-size: 13px; }

/* Fallback Product Cards (Mini) */
.product-grid-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow var(--t-fast); cursor: pointer; }
.fp-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.fp-card__image { width: 100%; aspect-ratio: 1; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.fp-card__img { width: 100%; height: 100%; object-fit: cover; }
.fp-card__img--empty { font-size: 32px; }
.fp-card__info { padding: 10px; }
.fp-card__name { font-size: 13px; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.fp-card__price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.fp-card__price { font-size: 15px; font-weight: 700; color: var(--primary); }
.fp-card__orig { font-size: 11px; color: var(--text-tertiary); text-decoration: line-through; }
.fp-card__tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.fp-card__tags > span { font-size: 11px; padding: 2px 6px; border-radius: var(--r-sm); }
.fp-card__coupon { background: #FFF3E0; color: #E65100; }

/* Brand Sidebar Story */
.brand-sidebar-story .widget { }
.brand-story__text { font-size: 14px; line-height: 1.85; color: var(--text-secondary); max-height: 300px; overflow: hidden; position: relative; }
.brand-story__text::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--surface)); }

/* ==================== Sidebar Widgets ==================== */
.widget {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 24px;
  margin-bottom: 20px;
}
.widget__title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Filter Sidebar */
.filter-sidebar { }
.filter-group { margin-bottom: 24px; }
.filter-group__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.filter-options { display: flex; flex-direction: column; gap: 4px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: 14px;
  color: var(--text-secondary);
}
.filter-option:hover { background: var(--bg); color: var(--text-primary); }
.filter-option.active { background: var(--primary-light); color: var(--primary); font-weight: 500; }
.filter-option__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg);
  padding: 1px 7px;
  border-radius: var(--r-full);
}
.filter-option.active .filter-option__count { background: rgba(26,86,219,0.15); color: var(--primary); }

/* ==================== Sort Bar ==================== */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.sort-bar__count { font-size: 14px; color: var(--text-secondary); }
.sort-bar__count strong { color: var(--text-primary); font-weight: 700; }
.sort-bar__options { display: flex; gap: 6px; }
.sort-option {
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
  border: 1px solid transparent;
  font-weight: 500;
}
.sort-option:hover { background: var(--bg); }
.sort-option.active { background: var(--primary); color: white; }

/* ==================== Breadcrumb ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-secondary); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text-primary); font-weight: 500; }

/* ==================== Pagination ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t-fast);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-btn--prev, .page-btn--next { font-size: 16px; }

/* ==================== Compare Tool ==================== */
.compare-tool {
  background: var(--surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  padding: 36px;
  margin-bottom: 32px;
}
.compare-search-wrap { position: relative; margin-bottom: 20px; }
.compare-search {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 15px;
  background: var(--bg);
  transition: all var(--t-fast);
}
.compare-search:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(26,86,219,0.1); }
.compare-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2xl);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.compare-dropdown.show { display: block; }
.compare-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--border-light);
}
.compare-dropdown__item:last-child { border-bottom: none; }
.compare-dropdown__item:hover { background: var(--bg); }
.compare-dropdown__logo {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg); object-fit: contain; padding: 4px;
}
.compare-selected { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; min-height: 52px; }
.compare-selected__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary-light);
  border-radius: var(--r-lg);
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  border: 1px solid rgba(26,86,219,0.2);
}
.compare-selected__remove { cursor: pointer; opacity: 0.7; font-size: 16px; }
.compare-selected__remove:hover { opacity: 1; }

.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.compare-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.compare-table td { vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table__brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.compare-table__brand-logo {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg); object-fit: contain; padding: 4px;
}

/* ==================== Search Page ==================== */
.search-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.search-box-lg {
  display: flex;
  gap: 12px;
  max-width: 700px;
}
.search-box-lg input {
  flex: 1;
  padding: 16px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  font-size: 16px;
  transition: all var(--t-fast);
  background: var(--bg);
}
.search-box-lg input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26,86,219,0.1);
  background: var(--surface);
}
.search-box-lg button {
  padding: 16px 32px;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--r-xl);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--t-fast);
}
.search-box-lg button:hover { transform: translateY(-1px); }

.search-result {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all var(--t-base);
}
.search-result:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); transform: translateX(4px); }
.search-result__logo {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.search-result__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.search-result__logo-fb {
  width: 60px; height: 60px;
  border-radius: var(--r-lg);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: white; flex-shrink: 0;
}
.search-result__info { flex: 1; }
.search-result__name { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.search-result__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.search-result__desc { font-size: 13px; color: var(--text-secondary); }

/* ==================== Rankings Page Full ==================== */
.ranking-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ranking-tab {
  padding: 10px 20px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--t-fast);
}
.ranking-tab:hover { border-color: var(--primary); color: var(--primary); }
.ranking-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.ranking-full-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  transition: all var(--t-base);
}
.ranking-full-item:hover { box-shadow: var(--shadow-lg); border-color: var(--primary); }
.ranking-full-item__rank {
  font-size: 28px;
  font-weight: 800;
  width: 50px;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
}
.ranking-full-item--top1 .ranking-full-item__rank { color: #ca8a04; }
.ranking-full-item--top2 .ranking-full-item__rank { color: #6b7280; }
.ranking-full-item--top3 .ranking-full-item__rank { color: #c2410c; }
.ranking-full-item__logo {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ranking-full-item__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.ranking-full-item__logo-fb {
  width: 64px; height: 64px;
  border-radius: var(--r-lg);
  background: var(--primary-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: white; flex-shrink: 0;
}
.ranking-full-item__info { flex: 1; min-width: 0; }
.ranking-full-item__name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ranking-full-item__highlight { font-size: 14px; color: var(--text-secondary); }
.ranking-full-item__meta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.ranking-full-item__score { font-size: 24px; font-weight: 800; color: var(--primary); }
.ranking-full-item__score-label { font-size: 12px; color: var(--text-tertiary); }

/* ==================== News Detail ==================== */
.news-detail { max-width: 860px; margin: 0 auto; }
.news-detail__header { margin-bottom: 32px; }
.news-detail__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.news-detail__cat {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.news-detail__title { font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; margin-bottom: 16px; }
.news-detail__meta { display: flex; align-items: center; gap: 20px; color: var(--text-tertiary); font-size: 13px; }
.news-detail__cover { border-radius: var(--r-xl); overflow: hidden; margin-bottom: 36px; max-height: 480px; }
.news-detail__cover img { width: 100%; object-fit: cover; }
.news-detail__content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-secondary);
}
.news-detail__content p { margin-bottom: 20px; }
.news-detail__content h2 { font-size: 22px; margin: 32px 0 16px; color: var(--text-primary); }
.news-detail__content h3 { font-size: 18px; margin: 28px 0 12px; color: var(--text-primary); }

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--primary-gradient); color: white; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,86,219,0.3); }
.btn-secondary { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--text-primary); border-color: var(--text-secondary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-md); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--r-xl); }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-md); }

/* ==================== Tags / Badges ==================== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
}
.tag--primary { background: var(--primary-light); color: var(--primary); }
.tag--success { background: #f0fdf4; color: var(--success); }
.tag--warning { background: #fffbeb; color: var(--warning); }
.tag--danger { background: #fef2f2; color: var(--danger); }
.tag--gray { background: var(--surface-2); color: var(--text-secondary); }
.tag--outline { background: transparent; border: 1px solid currentColor; }

/* ==================== Empty State ==================== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state__icon { font-size: 64px; opacity: 0.3; margin-bottom: 20px; }
.empty-state__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-state__desc { font-size: 14px; color: var(--text-secondary); }

/* ==================== Loading ==================== */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==================== Toast ==================== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--text-primary);
  color: white;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-xl);
  animation: toast-in 0.2s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }

/* ==================== Footer ==================== */
.site-footer {
  background: var(--text-primary);
  color: var(--text-inverse);
  padding: 60px 0 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); }
.footer-col__title { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color var(--t-fast); }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.copyright { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ==================== Category Page ==================== */
.cat-header {
  background: var(--surface);
  border-radius: var(--r-2xl);
  border: 1px solid var(--border);
  padding: 48px 40px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.cat-header__icon { font-size: 56px; }
.cat-header__title { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.cat-header__desc { font-size: 16px; color: var(--text-secondary); }
.cat-header__stat { font-size: 14px; color: var(--text-tertiary); margin-top: 10px; }

/* Sub-category tabs */
.subcat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.subcat-tab {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
}
.subcat-tab:hover { border-color: var(--primary); color: var(--primary); }
.subcat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Sub-category chips */
.subcat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.subcat-chip {
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--t-fast);
}
.subcat-chip:hover { border-color: var(--primary); color: var(--primary); }
.subcat-chip.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ==================== About Page ==================== */
.about-section { max-width: 800px; margin: 0 auto; }
.about-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 40px;
  margin-bottom: 24px;
}
.about-card__title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.about-card__text { font-size: 15px; line-height: 1.85; color: var(--text-secondary); }

/* ==================== Misc ==================== */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

/* ==================== Animations ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease forwards; }
.brand-card { animation: fadeUp 0.35s ease both; }
.brand-card:nth-child(2) { animation-delay: 0.05s; }
.brand-card:nth-child(3) { animation-delay: 0.1s; }
.brand-card:nth-child(4) { animation-delay: 0.15s; }
.brand-card:nth-child(5) { animation-delay: 0.2s; }
.brand-card:nth-child(6) { animation-delay: 0.25s; }
.brand-card:nth-child(7) { animation-delay: 0.3s; }
.brand-card:nth-child(8) { animation-delay: 0.35s; }

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  :root { --container: 100%; --gutter: 24px; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  .mega-dropdown { display: none !important; }
  h1 { font-size: 32px; }
  .hero__title { font-size: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--header-h);
    background: var(--surface);
    z-index: 999;
    padding: 24px 20px;
    overflow-y: auto;
    gap: 8px;
  }
  .site-nav__link { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .header-search { display: none; }
  .btn-search { display: flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: white; text-decoration: none; flex-shrink: 0; }
  .site-header__menu { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: none; background: transparent; cursor: pointer; font-size: 20px; border-radius: var(--r-md); }
  .site-header__menu:hover { background: var(--primary-light); }
  .hero__title { font-size: 30px; letter-spacing: -1px; }
  .hero__subtitle { font-size: 15px; }
  .hero-search { flex-direction: column; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__stat-value { font-size: 26px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .news-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .brand-detail__header { flex-direction: column; align-items: center; text-align: center; padding: 28px 24px; }
  .brand-detail__slogan { text-align: left; }
  .brand-detail__actions { justify-content: center; }
  .cat-header { flex-direction: column; text-align: center; padding: 32px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .search-box-lg { flex-direction: column; }
  .compare-tool { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .brand-grid { grid-template-columns: 1fr; }
  .hero__stats { justify-content: space-around; }
  .ranking-full-item { padding: 18px 16px; }
  .ranking-full-item__rank { width: 36px; font-size: 22px; }
}

/* ==================== Autocomplete ==================== */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2xl);
  max-height: 320px;
  overflow-y: auto;
  z-index: 500;
  display: none;
}
.autocomplete-dropdown.show { display: block; }
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid var(--border-light);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover, .autocomplete-item.highlighted { background: var(--primary-light); }
.autocomplete-item__logo {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg);
  object-fit: contain;
  padding: 4px;
}
.autocomplete-item__name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.autocomplete-item__cat { font-size: 12px; color: var(--text-tertiary); }

/* ==================== 京东商品榜单卡片 ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.product-card--top1 { border-color: #ca8a04; }
.product-card--top2 { border-color: #6b7280; }
.product-card--top3 { border-color: #c2410c; }
.product-card__rank { 
  position: absolute; 
  top: 8px; 
  left: 8px; 
  background: rgba(0,0,0,0.55); 
  color: #fff; 
  font-size: 12px; 
  font-weight: 700; 
  padding: 2px 8px; 
  border-radius: 20px; 
  z-index: 2; 
}
.product-card--top1 .product-card__rank { background: #ca8a04; }
.product-card--top2 .product-card__rank { background: #6b7280; }
.product-card--top3 .product-card__rank { background: #c2410c; }
.product-card__img-wrap { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 1; 
  background: var(--bg); 
}
.product-card__img-wrap img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}
.product-card__info { 
  padding: 12px 12px 8px; 
  flex: 1; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.product-card__name { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__badges { display: flex; gap: 4px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--bg); color: var(--text-secondary); }
.badge--self { background: #fef3c7; color: #92400e; }
.badge--coupon { background: #fee2e2; color: #991b1b; }
.product-card__price-row { display: flex; align-items: baseline; gap: 6px; }
.product-card__price { font-size: 20px; font-weight: 800; color: #e8340c; }
.product-card__orig-price { font-size: 12px; color: var(--text-tertiary); text-decoration: line-through; }
.product-card__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.product-card__stat { font-size: 12px; color: var(--text-tertiary); }
.product-card__stat strong { color: var(--text-primary); }
.product-card__brand { font-size: 12px; color: var(--text-tertiary); margin-top: auto; }
.product-card__action { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.product-card__action-row { display: flex; gap: 6px; justify-content: center; }
.btn-sm { font-size: 13px; padding: 7px 0; border-radius: var(--r-lg); font-weight: 600; cursor: pointer; border: none; transition: all var(--t-fast); flex: 1; text-align: center; }
.btn-buy { background: linear-gradient(135deg, #e8340c, #ff6b35); color: #fff; }
.btn-buy:hover { opacity: 0.9; }
.btn-buy:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-coupon { background: #fee2e2; color: #991b1b; }
.btn-coupon:hover { background: #fdd; }
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .product-grid { grid-template-columns: 1fr; } }

/* ============================================
   Search Module Styles (Production-Grade)
   ============================================ */

/* Search Results Container */
.search-results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.view-all-link {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t-fast);
}

.view-all-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Source Badge */
.source-badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.source-badge.jd {
  background: var(--primary);
  color: white;
}

.source-badge.local {
  background: var(--surface-2);
  color: var(--text-secondary);
}

/* Context Message */
.context-message {
  background: var(--surface-2);
  padding: 12px 16px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-left: 3px solid var(--primary);
}

/* Brand Grid */
.brand-results {
  margin-bottom: 48px;
}

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

.brand-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 24px;
}

.brand-info {
  flex: 1;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-categories {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-image {
  height: 200px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.product-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--t-base);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 14px;
  line-height: 1.5;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  font-weight: 500;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: #f00;
}

.coupon-badge {
  background: #f00;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.product-brand {
  font-size: 12px;
  color: var(--text-tertiary);
  margin: 0;
  margin-top: auto;
}

/* Loading State */
.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 20px;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

.empty-state a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.empty-state a:hover {
  text-decoration: underline;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 60px 20px;
}

.error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-state h3 {
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--danger);
}

.error-state p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-results-container {
    padding: 30px 16px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .section-meta {
    width: 100%;
    justify-content: space-between;
  }
  
  .brand-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .product-image {
    height: 150px;
    padding: 12px;
  }
  
  .product-name {
    font-size: 13px;
    height: 39px;
  }
  
  .product-price {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .brand-card {
    padding: 16px;
  }
  
  .brand-logo {
    width: 50px;
    height: 50px;
  }
  
  .brand-placeholder {
    font-size: 20px;
  }
}

/* ==========================================
   搜索页品牌卡片样式
   ========================================== */
.search-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
