/* ============================================================
   服务器产业研究 — 深蓝+浅灰商务科技风样式
   ============================================================ */

/* ---- CSS 变量 ---- */
:root {
  --bg-primary: #f0f2f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --bg-surface: #f7f8fa;
  --border-color: #d9dee8;
  --border-light: #e5e8f0;

  --text-primary: #1a2a5a;
  --text-secondary: #56668a;
  --text-muted: #8b99b5;

  --accent-blue: #1a56db;
  --accent-hover: #1e40af;
  --accent-cyan: #0ea5e9;
  --accent-purple: #7c3aed;
  --accent-pink: #db2777;
  --accent-green: #059669;
  --accent-red: #dc2626;
  --accent-orange: #d97706;
  --accent-yellow: #ca8a04;

  --gradient-hero: linear-gradient(135deg, #1a2a5a 0%, #1e3a8a 40%, #1a4a6a 100%);
  --gradient-accent: linear-gradient(135deg, #1a56db, #7c3aed);
  --gradient-cyan: linear-gradient(135deg, #0ea5e9, #1a56db);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(26,42,90,0.08);
  --shadow: 0 4px 12px rgba(26,42,90,0.1);
  --shadow-lg: 0 8px 30px rgba(26,42,90,0.12);
  --shadow-glow-blue: 0 0 20px rgba(26,86,219,0.1);
  --shadow-glow-purple: 0 0 20px rgba(124,58,237,0.1);

  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;

  --transition: 0.25s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-cyan); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* ===== 第一行：工具行 ===== */
.header-toolbar {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border-light);
}

.header-toolbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.header-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ===== 搜索输入框（桌面端） ===== */
.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 6px 16px;
  transition: all 0.25s;
  cursor: pointer;
  min-width: 200px;
  max-width: 320px;
}
.header-search:hover,
.header-search:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
  background: #fff;
}
.header-search-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}
.header-search-input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-primary);
  width: 100%;
  cursor: pointer;
}
.header-search-input::placeholder {
  color: var(--text-muted);
}
.header-search-hint {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}
.logo:hover { color: var(--text-primary); opacity: 0.9; text-decoration: none; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-icon { font-size: 1.4rem; }
.logo-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 工具行按钮 ===== */
.hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.hdr-btn-register {
  color: #fff;
  background: var(--accent-blue);
  font-weight: 600;
}
.hdr-btn-register:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}
.hdr-btn-login {
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border-color);
}
.hdr-btn-login:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  text-decoration: none;
}
.hdr-btn-user {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 24px;
  background: none;
  border: 1px solid var(--border-color);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.hdr-btn-user:hover {
  border-color: var(--accent-blue);
  text-decoration: none;
  color: var(--text-primary);
}
.hdr-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ===== 第二行：导航行 ===== */
.header-nav {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 24px;
}

.main-nav { display: flex; }
.nav-list { display: flex; gap: 0; }
.nav-item { list-style: none; }
.nav-link {
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 0.88rem;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--accent-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
  text-decoration: none;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-item.active .nav-link {
  color: var(--accent-blue);
  font-weight: 600;
}
.nav-item.active .nav-link::after {
  transform: scaleX(1);
}

.search-toggle { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(4px,4px); }
.hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(4px,-4px); }

/* Mobile: 工具行按钮缩小 */
.hdr-icon-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  border-radius: 6px;
}
.hdr-icon-btn:hover { color: var(--text-primary); background: var(--bg-surface); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  right: -300px;
  width: 280px;
  height: calc(100vh - 64px);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}
.mobile-menu-backdrop.open { display: block; }
.mobile-nav-list { padding: 16px 0; }
.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  color: var(--text-primary);
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--transition);
}
.mobile-nav-link:hover { background: var(--bg-surface); text-decoration: none; }
.mobile-nav-item.active .mobile-nav-link { color: var(--accent-blue); background: rgba(26,86,219,0.08); }

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
}
.search-modal.open { display: block; }
.search-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.search-modal-content {
  position: relative;
  max-width: 640px;
  margin: 120px auto 0;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 1;
}
.search-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}
.search-modal-header { padding: 24px 24px 0; }
.search-modal-header h2 { font-size: 1.2rem; color: var(--text-primary); }
.search-modal-body { padding: 24px; }
.search-form { margin-bottom: 16px; }
.search-input-group { display: flex; gap: 8px; }
.search-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  color: var(--text-primary);
  background: var(--bg-surface);
}
.search-input:focus { border-color: var(--accent-blue); }
.search-submit-btn {
  padding: 12px 24px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-submit-btn:hover { background: #1e40af; }
.search-hot-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hot-tag-label { font-size: 0.85rem; color: var(--text-muted); }
.hot-tag {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  background: var(--bg-surface);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.hot-tag:hover { background: rgba(26,86,219,0.1); color: var(--accent-blue); text-decoration: none; }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
  padding: 56px 0 32px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: flex;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-col-about { flex: 1; max-width: 320px; }
.footer-col-links { flex: 0 0 160px; }
.footer-col-contact { flex: 0 0 200px; }
.footer-col-follow { flex: 0 0 200px; }

.footer-heading {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-logo-icon { font-size: 1.2rem; }

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  display: block;
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-link:hover { color: var(--accent-blue); text-decoration: none; }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-contact-icon { font-size: 1rem; flex-shrink: 0; }

.footer-col-follow p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.footer-social-links {
  display: flex;
  gap: 8px;
}

.footer-social-link {
  padding: 6px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer-social-link:hover { background: var(--accent-blue); color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-icp { margin-top: 6px; }
.footer-icp a { color: var(--text-muted); }
.footer-icp a:hover { color: var(--accent-blue); }

/* ---- Hero Banner ---- */
.hero-banner {
  background: var(--gradient-hero);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner .container { position: relative; z-index: 1; }

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
}

.hero-stat {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hero-stat:last-child { border-right: none; }

.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0ea5e9;
  font-family: var(--font-mono);
}

.hero-stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: var(--gradient-accent);
  color: white;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  box-shadow: var(--shadow-glow-blue);
  text-decoration: none;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(26,86,219,0.3);
  color: white;
  text-decoration: none;
}

/* ---- Section ---- */
.section {
  padding: 64px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-more {
  color: var(--accent-blue);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  text-decoration: none;
}
.section-more:hover { color: var(--accent-cyan); text-decoration: none; }

/* ---- Price Tabs ---- */
.price-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.price-tab {
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.price-tab:hover { color: var(--text-primary); border-color: var(--accent-blue); }
.price-tab.active {
  color: white;
  background: var(--accent-blue);
  border-color: transparent;
}

/* ---- Price Table ---- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.price-table thead {
  background: var(--bg-surface);
}

.price-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.price-table td {
  padding: 14px 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.price-table tbody tr:hover { background: var(--bg-card-hover); }
.price-table tbody tr:last-child td { border-bottom: none; }

.price-model {
  font-weight: 600;
  color: var(--text-primary);
}

.price-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(26,86,219,0.1);
}

.price-brand { color: var(--text-secondary); }

.price-spot {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-cyan);
}

.price-change-up {
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-weight: 500;
}

.price-change-down {
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-weight: 500;
}

.price-change-stable {
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.price-channel {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.price-trend {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
}
.price-trend.up {
  color: var(--accent-green);
  background: rgba(5,150,105,0.1);
}
.price-trend.down {
  color: var(--accent-red);
  background: rgba(220,38,38,0.1);
}
.price-trend.stable {
  color: var(--text-muted);
  background: rgba(139,153,181,0.1);
}

.price-category.cpu { color: #d97706; background: rgba(217,119,6,0.1); }
.price-category.memory { color: #0ea5e9; background: rgba(14,165,233,0.1); }
.price-category.gpu { color: #7c3aed; background: rgba(124,58,237,0.1); }
.price-category.ssd { color: #059669; background: rgba(5,150,105,0.1); }
.price-category.hdd { color: #db2777; background: rgba(219,39,119,0.1); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-title { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 8px; }
.empty-desc { font-size: 0.9rem; }

/* ---- News Grid ---- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.news-main {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.news-main:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.news-main-cover {
  height: 220px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}

.news-main-body {
  padding: 24px;
  flex: 1;
}

.news-main .news-category { margin-bottom: 12px; }

.news-main .news-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.news-main .news-summary {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-main .news-time {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.news-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.news-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(26,86,219,0.1);
  margin-bottom: 8px;
}

.news-category.industry { color: #d97706; background: rgba(217,119,6,0.1); }
.news-category.supply_chain { color: #0ea5e9; background: rgba(14,165,233,0.1); }
.news-category.inventory { color: #059669; background: rgba(5,150,105,0.1); }
.news-category.new_product { color: #7c3aed; background: rgba(124,58,237,0.1); }
.news-category.overseas { color: #db2777; background: rgba(219,39,119,0.1); }
.news-category.compute { color: #dc2626; background: rgba(220,38,38,0.1); }
.news-category.purchase { color: #ca8a04; background: rgba(202,138,4,0.1); }

.news-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-time {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Topics ---- */
.topics-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.topics-row::-webkit-scrollbar { height: 4px; }
.topics-row::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 4px; }
.topics-row::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.topic-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-purple);
}

.topic-cover {
  height: 160px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2a4a8a 50%, #1a3a6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.topic-cover::before {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(124,58,237,0.15);
  filter: blur(30px);
}

.topic-cover-icon {
  font-size: 2.8rem;
  position: relative;
  z-index: 1;
}

.topic-body {
  padding: 20px;
}

.topic-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.topic-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.report-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.report-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple);
  background: rgba(124,58,237,0.1);
  margin-bottom: 14px;
  align-self: flex-start;
}

.report-category.market { color: #1a56db; background: rgba(26,86,219,0.1); }
.report-category.supply_chain { color: #0ea5e9; background: rgba(14,165,233,0.1); }
.report-category.forecast { color: #d97706; background: rgba(217,119,6,0.1); }
.report-category.procurement { color: #059669; background: rgba(5,150,105,0.1); }
.report-category.quarterly { color: #db2777; background: rgba(219,39,119,0.1); }
.report-category.annual { color: #ca8a04; background: rgba(202,138,4,0.1); }
.report-category.industry { color: #7c3aed; background: rgba(124,58,237,0.1); }

.report-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.report-summary {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.report-date {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---- CTA ---- */
.cta-section {
  background: var(--gradient-hero);
  padding: 64px 0;
  text-align: center;
  border-radius: var(--radius-xl);
  margin-top: 64px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 180px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.cta-form {
  display: flex;
  justify-content: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-input {
  flex: 1;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.cta-input::placeholder { color: rgba(255,255,255,0.4); }
.cta-input:focus { border-color: rgba(255,255,255,0.5); }

.cta-btn {
  padding: 12px 28px;
  border-radius: var(--radius);
  border: none;
  background: var(--gradient-accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(26,86,219,0.3);
}

/* ---- Supplier cards ---- */
.sh-supplier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sh-supplier-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border-color); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer; text-decoration: none; display: block;
}
.sh-supplier-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.sh-supplier-card-img {
  height: 130px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sh-supplier-card-icon { font-size: 去打3rem; position: relative; z-index: 1; }
.sh-supplier-card-body { padding: 20px; }
.sh-supplier-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.sh-supplier-card-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-supplier-card-tag {
  display: inline-block; padding:ex2px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 500; margin-top: 10px;
  color: var(--accent-cyan); background: rgba(14,165,233,0.1);
}

/* ---- Supplier detail ---- */
.sh-breadcrumb { padding: 16px 0; color: var(--text-muted); font-size: 0.9rem; }
.sh-breadcrumb a { color: var(--accent-blue); }
.sh-supplier-detail-header { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; margin-bottom: 冒24px; }
.sh-supplier-detail-banner { height: 160px; display: flex; align-items: center; justify-content: center; }
.sh-supplier-detail-info { padding: 24px; }
.sh-supplier-detail-name { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.sh-supplier-detail-meta { color: var(--text-secondary); font-size: 0.9rem; display: flex; gap: 12px 20px; flex-wrap: wrap; }

.sh-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sh-filter-bar::-webkit-scrollbar { display: none; }
.sh-filter-bar .sh-tag { flex-shrink: 0; white-space: nowrap; cursor: pointer; }
.sh-supplier-detail-body { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); padding: 24px; }
.sh-supplier-detail-section { margin-bottom: 24px; }
.sh-supplier-detail-section:last-child { margin-bottom: 0; }
.sh-supplier-detail-section h3 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-blue); }
.sh-supplier-detail-section p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }

/* ---- Article/Report Detail Layout (shared) ---- */
.sh-detail-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.sh-detail-main { min-width: 0; }
.sh-detail-content { word-break: break-word; overflow-wrap: break-word; }
.sh-detail-content img { max-width: 100%; height: auto; border-radius: 8px; }
.sh-detail-content table { width: 100%; overflow-x: auto; display: block; }
.sh-detail-content pre { overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.sh-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sh-sidebar-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 16px; }
.sh-sidebar-card h3 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text-primary); }
.sh-sidebar-item { display: block; padding: 8px 0; border-bottom: 1px solid var(--border-light); color: var(--text-secondary); font-size: 0.88rem; text-decoration: none; transition: color 0.15s; }
.sh-sidebar-item:last-child { border-bottom: none; }
.sh-sidebar-item:hover { color: var(--accent-blue); }

@media (max-width: 768px) {
  .sh-detail-layout { grid-template-columns: 1fr; }
  .sh-sidebar { display: none; }
  .sh-detail-title { font-size: 1.3rem !important; line-height: 1.4 !important; }
  .sh-detail-content { font-size: 15px !important; line-height: 1.8 !important; }
}

/* ---- Site-specific utility classes ---- */
.sh-container { max-width: 1280px; margin: 0 auto; padding: 缤纷0 24px; }
.sh-section { padding: 64px 0; }
.sh-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: ご32px; }
.sh-section-title { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.sh-section-tags { display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.sh-section-tags::-webkit-scrollbar { display: none; }
.sh-tag { flex-shrink: 0; white-space: nowrap;
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: 0.88rem; color: var(--text-secondary); background: var(--bg-card);
  border: 1px solid var(--border-color); cursor: pointer; transition: all var(--transition);
}
.sh-tag:hover { border-color: var(--accent-blue); }
.sh-tag-active, .sh-tag.sh-tag-active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }
.sh-tag-sm { font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; }
.sh-tag-sm:not(.sh-tag-active) { background: rgba(26,86,219,0.1); color: var(--accent-blue); border: none; cursor: default; }
.sh-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.sh-table {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
}
.sh-table thead { background: var(--bg-surface); }
.sh-table th { padding: 14px 16px; text-align: left; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border-color); }
.sh-table td { padding: 14px 16px; font-size: 0.92rem; border-bottom: 1px solid var(--border-color); }
.sh-table tbody tr:hover { background: var(--bg-card-hover); }
.sh-table tbody tr:last-child td { border-bottom: none; }
.sh-link { color: var(--text-primary); } .sh-link:hover { color: var(--accent-blue); }
.sh-price-cell { font-family: var(--font-mono); font-weight: 600; color: var(--accent-cyan); }
.sh-up { color: var(--accent-green); font-weight: 500; }
.sh-down { color: var(--accent-red); font-weight: 500; }
.sh-trend-up { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; color: var(--accent-green); background: rgba(5,150,105,0.1); }
.sh-trend-down { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; color: var(--accent-red); background: rgba(220,38,38,0.1); }
.sh-trend-stable { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78rem; color: var(--text-muted); background: rgba(139,153,181,0.1); }
.sh-link-more { color: var(--accent-blue); font-size: 0.9rem; }
.sh-link-more:hover { color: var(--accent-cyan); }
.sh-section-footer { margin-top: 20px; }

.sh-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.sh-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.sh-empty-text { font-size: 1.1rem; color: var(--text-secondary); }

.sh-news-grid { display: grid; grid-template-columns: compare1fr 1fr 1fr; gap: 20px; }
.sh-news-card { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.sh-news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sh-news-card-featured { grid-column: span 2; grid-row: span 2; }
.sh-news-card-img { height: 160px; background: var(--gradient-hero); display: flex; align-items: center; justify-content: center; }
.sh-img-placeholder { font-size: 2.5rem; color: rgba(255,255,255,0.一枝3); }
.sh-news-card-featured .sh-news-card-img { height: 240px; }
.sh-news-card-body { padding: 20px; }
.sh-news-card-title { font-size: 0.95rem; font-weight: 600; margin: 8px 0; line-height: 1.5; }
.sh-news-card-featured .sh-news-card-title { font-size: 1.2rem; }
.sh-news-card-summary { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.sh-news-card-date { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; display: block; }

.sh-topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.sh-topic-card {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); text-decoration: none;
}
.sh-topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.sh-topic-card-img { height: 140px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.sh-topic-card-icon { font-size: 2.8rem; position: relative; z-index: 1; }
.sh-topic-card-body { padding: 20px; }
.sh-topic-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.sh-topic-card-desc { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sh-report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.sh-report-card {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); text-decoration: none;
}
.sh-report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.sh-report-card-img { height: 130px; display: flex; align-items: center; justify-content: center; }
.sh-report-card-icon { font-size: 2.5rem; color: rgba(255,255,255,隻0.4); }
.sh-report-card-body { padding: 20px; }
.sh-report-card-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.5; }
.sh-report-card-summary { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-report-card-date { display: block; margin-top: 16px; color: var(--text-muted); font-size: 0.82rem; }

.sh-btn { display: inline-block; padding: 10px 24px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; }
.sh-btn-primary { background: var(--accent-blue); color: #fff; }
.sh-btn-primary:hover { background: #1e40af; color: #fff; }
.sh-btn-lg { padding: 14px 40px; font-size: 1.05rem; }
.sh-input { padding: 12px 18px; border: 1px solid var(--border-color); border-radius: var(--radius); font-size: 0.95rem; outline: none; }

.sh-cta { background: var(--gradient-hero); border-radius: var(--radius-xl); padding: 64px 0; margin-top: 64px; text-align: center; }
.sh-cta-content h3 { font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.sh-cta-content p { color: rgba(255,255,255, 0.7); margin-bottom: 28px; }
.sh-cta-form { display: flex; justify-content: center; gap: 12px; max-width: 480px; margin: 0 auto; }
.sh-cta-form .sh-btn { white-space: nowrap; }

.sh-hero { background: var(--gradient-hero); padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden; }
.sh-hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.sh-hero p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 0; }
.sh-hero-bg { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 250px; background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%); pointer-events: none; }
.sh-hero-content { position: relative; z-index: 1; }
.sh-hero-title { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.sh-hero-subtitle { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 48px; }
.sh-hero-stats { display: flex; justify-content: center; gap: 48px; margin-bottom: 40px; }
.sh-hero-stat-item { text-align: center; padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.15); }
.sh-hero-stat-item:last-child { border-right: none; }
.sh-hero-stat-num { font-size: 2rem; font-weight: 800; color: #0ea5e9; font-family: var(--font-mono); display: block; }
.sh-hero-stat-label { color: rgba(255,255,255,0.6); font-size: 0.88rem; margin-top: 4px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-title, .sh-hero-title { font-size: 2.2rem; }
  .hero-stats, .sh-hero-stats { gap: 24px; }
  .hero-stat, .sh-hero-stat-item { padding: 0 16px; }
  .hero-stat-value, .sh-hero-stat-num { font-size: 1.6rem; }

  .news-grid { grid-template-columns: 1fr; }
  .news-main { flex-direction: row; }
  .news-main-cover { width: 200px; height: auto; min-height: 100%; flex-shrink: 0; }
  .news-side { grid-template-columns: 1fr 1fr; }

  .sh-news-grid { grid-template-columns: 1fr 1fr; }
  .sh-news-card-featured { grid-column: span 2; grid-row: span 1; }

  .footer-grid { flex-direction: column; gap: 40px; }
  .footer-col-about { max-width: none; }

  /* header 平板适配 */
  .nav-link { padding: 8px 10px; font-size: 0.82rem; }
  .header-search { min-width: 160px; max-width: 240px; }
  .header-search-hint { display: none; }
}

@media (max-width: 768px) {
  .container, .header-toolbar, .header-nav, .footer-container, .sh-container { padding: 0 12px; }

  /* 桌面端搜索框隐藏 */
  .header-search { display: none; }
  /* 图标按钮显示 */
  .hdr-icon-btn { display: flex; }
  .search-toggle { display: flex; }
  /* 导航行 → 横向滚动 */
  .header-nav { padding: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .main-nav { display: flex; }
  .nav-link { padding: 8px 10px; font-size: 0.82rem; }
  .nav-link::after { left: 10px; right: 10px; }
  /* 移动端隐藏注册/登录文字按钮，改用 hamburger 菜单中的 mobile-auth */
  .hdr-btn-register, .hdr-btn-login, .hdr-btn-user { display: none; }
  .hdr-btn-user-mobile { display: flex; }
  .hamburger { display: flex; }
  .hdr-user-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hero-banner, .sh-hero { padding: 48px 0 40px; }
  .hero-title, .sh-hero-title { font-size: 1.6rem; }
  .hero-subtitle, .sh-hero-subtitle { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-stats, .sh-hero-stats { gap: 12px; }
  .hero-stat, .sh-hero-stat-item { padding: 0 8px; border-right: none; }
  .hero-stat-value, .sh-hero-stat-num { font-size: 1.3rem; }
  .hero-stat-label, .sh-hero-stat-label { font-size: 0.75rem; }
  .hero-cta { padding: 12px 28px; font-size: 0.95rem;ここ}

  .section, .sh-section { padding: 40px 0; }
  .section-title, .sh-section-title { font-size: 1.3rem; }

  .price-table, .sh-table { font-size: 0.8rem; overflow-x: auto; display: block; }
  .price-table th, .price-table td, .sh-table th, .sh-table td { padding: 10px 12px; white-space: nowrap; }

  .news-main { flex-direction: column; }
  .news-main-cover { width: 100%; height: 160px; }
  .news-side { grid-template-columns: 1fr; }

  .sh-news-grid { grid-template-columns: 1fr; }
  .sh-news-card-featured { grid-column: span 1; grid-row: span 1; }

  .topics-row { gap: 12px; }
  .topic-card { flex: 0 0 240px; }

  .reports-grid, .sh-report-grid { grid-template-columns: 1fr; }
  .sh-topic-grid { grid-template-columns: 1fr; }
  .sh-supplier-grid { grid-template-columns: 1fr; }

  .cta-section, .sh-cta { border-radius: var(--radius-lg); padding: 40px 16px; }
  .cta-form, .sh-cta-form { flex-direction: column; max-width: 100%; }
  .cta-input, .cta-btn, .sh-cta-form .sh-btn { width: 100%; }

  /* Supplier detail mobile */
  .sh-supplier-detail-header { flex-direction: column; text-align: center; }
  .sh-supplier-detail-header img { max-width: 120px !important; margin: 0 auto; }

  /* Article/report detail images */
  .sh-article-content img, .sh-report-content img { max-width: 100% !important; height: auto !important; }

  /* Breadcrumb */
  .sh-breadcrumb { font-size: 0.8rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .sh-hero-title { font-size: 1.4rem; }
  .sh-hero-subtitle { font-size: 0.88rem; }
  .sh-hero-stats { gap: 8px; }
  .sh-hero-stat-num { font-size: 1.1rem; }
  .sh-hero-stat-label { font-size: 0.7rem; }
  .sh-hero-stat-item { padding: 0 6px; }

  .sh-section { padding: 32px 0; }
  .sh-section-title { font-size: 1.15rem; }

  .sh-section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sh-section-tags { gap: 6px; }
  .sh-tag { font-size: 0.78rem; padding: 3px 10px; }

  .sh-news-hotitem { padding: 12px 14px; gap: 10px; }
  .sh-news-hotrank { font-size: 1.1rem; width: 28px; }
  .sh-news-hottitle { font-size: 0.88rem; }

  .sh-widget-header { padding: 12px 14px 8px; }
  .sh-topic-minilist, .sh-report-minilist { padding: 0 14px 12px; }
  .sh-topic-mini { padding: 8px 0; gap: 6px; }
  .sh-report-mini { padding: 10px 0; }

  .sh-cta { padding: 32px 16px; }
  .sh-cta h3 { font-size: 1.1rem; }
  .sh-cta p { font-size: 0.88rem; }

  .sh-table th, .sh-table td { padding: 8px 10px; font-size: 0.78rem; }

  /* Footer mobile */
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* Search result items */\n.sr-item:hover {\n  border-color: #2563eb !important;\n  box-shadow: 0 2px 8px rgba(37,99,235,0.1);\n}

/* ===== Price Colors (V0.3) ===== */
.price-up{color:#e74c3c;font-weight:600;white-space:nowrap;}
.price-down{color:#27ae60;font-weight:600;white-space:nowrap;}
.price-flat{color:#9ca3af;font-weight:500;white-space:nowrap;}
.trend-up{color:#e74c3c;font-weight:600;}
.trend-down{color:#27ae60;font-weight:600;}
.trend-flat{color:#9ca3af;}

/* Chart button */
.chart-btn,.chart-btn-sm{
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:2px 8px;
  cursor:pointer;
  font-size:0.9rem;
  transition:all 0.2s;
}
.chart-btn:hover,.chart-btn-sm:hover{background:#2563eb;border-color:#2563eb;color:#fff;transform:scale(1.05);}
.chart-btn-sm{padding:2px 6px;font-size:0.8rem;}

/* ===== 走势图时间段选择器 ===== */
.chart-range-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--bg-secondary, #f3f4f6);
  border-radius: 10px;
}
.chart-range-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #9ca3af);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-align: center;
}
.chart-range-btn:hover {
  color: var(--text-primary, #1f2937);
  background: rgba(37,99,235,0.08);
}
.chart-range-btn.active {
  background: var(--accent, #2563eb);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.chart-range-btn.locked {
  opacity: 0.65;
}
.chart-range-btn.locked:hover {
  color: var(--text-muted, #9ca3af);
  background: transparent;
}
.chart-login-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 500;
}
.chart-login-hint.show {
  display: flex;
}
.chart-login-hint a {
  color: var(--accent, #2563eb);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.chart-login-hint a:hover {
  text-decoration: underline;
}
.chart-footer-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted, #9ca3af);
}

/* ===== V0.3 Dashboard Layout (资讯热榜 + 专题/报告 分栏) ===== */
.sh-dashboard-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: stretch;
}

.sh-dashboard-left {
  display: flex;
  flex-direction: column;
}
.sh-dashboard-left .sh-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sh-dashboard-left .sh-widget .sh-news-hotlist {
  flex: 1;
}
.sh-dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --- 资讯热榜 items --- */
.sh-news-hotlist {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.sh-news-hotitem {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}
.sh-news-hotitem:last-child { border-bottom: none; }
.sh-news-hotitem:hover { background: var(--bg-card-hover); }

.sh-news-hotrank {
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
  color: var(--text-muted);
  padding-top: 2px;
}
.sh-news-hotitem:hover .sh-news-hotrank { color: var(--accent-blue); }

.sh-news-hotbody {
  flex: 1;
  min-width: 0;
}

.sh-news-hottitle {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.sh-news-hotitem:hover .sh-news-hottitle { color: var(--accent-blue); }

.sh-news-hotmeta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sh-news-hotdate {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.sh-news-hotnum {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- 右侧小部件 --- */
.sh-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sh-widget-header供与 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
}

.sh-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* 专题迷你列表 */
.sh-topic-minilist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 20px 16px;
}

.sh-topic-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}
.sh-topic-mini:last-child { border-bottom: none; }
.sh-topic-mini:hover { color: var(--accent-blue); }
.sh-topic-minititle {
  font-size: 0.9rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 报告迷你列表 */
.sh-report-minilist {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 20px 16px;
}

.sh-report-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: color 0.15s;
}
.sh-report-mini:last-child { border-bottom: none; }
.sh-report-mini:hover { color: var(--accent-blue); }

.sh-report-minititle {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sh-report-minimeta {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Extra small tag */
.sh-tag-xs {
  font-size: 0.7rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

/* Responsive */
@media (max-width: 900px) {
  .sh-dashboard-row {
    grid-template-columns: 1fr;
  }
}

/* ===== AI 助手小智 全局浮窗 (V0.3) ===== */

/* Navigation button */
.ai-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s;
}
.ai-toggle:hover { background: var(--bg-card-hover); border-color: var(--accent-blue); }
.ai-toggle-icon { font-size: 1.2rem; }

/* Floating orb button (bottom-right) */
.ai-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a2a5a, #2563eb);
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid rgba(255,255,255,0.2);
}
.ai-float-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,99,235,0.5);
}
.ai-float-icon { font-size: 1.6rem; }

/* Floating chat panel */
.ai-float-panel {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 390px;
  max-height: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ai-float-panel.open { display: flex; }

.ai-float-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1a2a5a 0%, #1e3a8a 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.ai-float-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-float-close:hover { background: rgba(255,255,255,0.35); }

.ai-float-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  background: #f8f9fb;
}

/* Message bubbles (shared with old AI panel styles) */
.sh-ai-msg { display: flex; }
.sh-ai-msg-user { justify-content: flex-end; }
.sh-ai-msg-bot { justify-content: flex-start; }
.sh-ai-msg-content {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.65;
}
.sh-ai-msg-user .sh-ai-msg-content {
  background: var(--accent-blue);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.sh-ai-msg-bot .sh-ai-msg-content {
  background: #fff;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.sh-ai-msg-bot .sh-ai-msg-content p { margin: 0 0 8px; }
.sh-ai-msg-bot .sh-ai-msg-content p:last-child { margin-bottom: 0; }
.sh-ai-msg-bot .sh-ai-msg-content strong { color: var(--accent-blue); }

/* Quick tags inside panel */
.ai-float-quick {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.ai-float-quick span {
  background: #f0f4ff;
  color: var(--accent-blue);
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.ai-float-quick span:hover { background: var(--accent-blue); color: #fff; }

/* Input row */
.ai-float-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--border-light);
}
.ai-float-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  outline: none;
  transition: border 0.2s;
}
.ai-float-input:focus { border-color: var(--accent-blue); }
.ai-float-send {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.ai-float-send:hover { background: #1d4ed8; }

/* Loading dots (shared) */
.ai-float-loading {
  padding: 8px 16px;
  border-top: 1px solid var(--border-light);
}
.sh-ai-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.sh-ai-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: aiDots 1.4s infinite ease-in-out both;
}
.sh-ai-dots span:nth-child(1) { animation-delay: 0s; }
.sh-ai-dots span:nth-child(2) { animation-delay: 0.2s; }
.sh-ai-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiDots {
  0%,80%,100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* 小智 Markdown 渲染扩展样式 */
.sh-ai-msg-bot .sh-ai-msg-content h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 8px 0 4px;
}
.sh-ai-msg-bot .sh-ai-msg-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin: 6px 0 3px;
}
.sh-ai-msg-bot .sh-ai-msg-content ul, .sh-ai-msg-bot .sh-ai-msg-content ol {
  margin: 4px 0;
  padding-left: 18px;
}
.sh-ai-msg-bot .sh-ai-msg-content li {
  margin: 2px 0;
}
.sh-ai-msg-bot .sh-ai-msg-content code {
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: #e11d48;
}
.sh-ai-msg-bot .sh-ai-msg-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  overflow-x: auto;
  margin: 6px 0;
}
.sh-ai-msg-bot .sh-ai-msg-content table {
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.85rem;
  width: 100%;
}
.sh-ai-msg-bot .sh-ai-msg-content th, .sh-ai-msg-bot .sh-ai-msg-content td {
  border: 1px solid #d1d5db;
  padding: 4px 8px;
  text-align: left;
}
.sh-ai-msg-bot .sh-ai-msg-content th {
  background: #f3f4f6;
  font-weight: 600;
}
.sh-ai-msg-bot .sh-ai-msg-content strong {
  color: #1e3a5f;
}
.sh-ai-msg-bot .sh-ai-msg-content a {
  color: #2563eb;
  text-decoration: underline;
}
.sh-ai-msg-bot .sh-ai-msg-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 10px 0;
}

@media (max-width: 480px) {
  .ai-float-panel {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 80px;
    max-height: 70vh;
  }
}
