/* =========================================================
   机器人之家 RobotHome — 深色科技风视觉系统
   对标汽车之家栏目结构，面向机器人垂直领域
   ========================================================= */

:root {
  /* 背景层 */
  --bg-0: #070b14;          /* 最底层 */
  --bg-1: #0b1120;          /* 页面背景 */
  --bg-2: #111a2e;          /* 卡片表面 */
  --bg-3: #16223c;          /* 卡片悬浮/输入 */
  --bg-glass: rgba(17, 26, 46, 0.72);

  /* 主色 / 渐变 */
  --cyan: #00e5ff;
  --blue: #2f6bff;
  --purple: #8b5cf6;
  --grad-primary: linear-gradient(135deg, #00e5ff 0%, #2f6bff 100%);
  --grad-hero: radial-gradient(1200px 600px at 75% -10%, rgba(47,107,255,0.28), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(139,92,246,0.20), transparent 55%);

  /* 文本 */
  --text-1: #eaf1fb;        /* 主文本 */
  --text-2: #aab6cc;        /* 次文本 */
  --text-3: #6b7892;        /* 弱文本 */

  /* 线 / 描边 */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* 状态 */
  --green: #22d39a;
  --red: #ff5a6e;           /* 涨/高价预警 */
  --amber: #ffb547;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(0,229,255,0.25), 0 12px 40px rgba(0,229,255,0.12);
  --maxw: 1240px;
  --font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全局背景装饰 */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    var(--grad-hero),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  z-index: -2;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; gap: 20px; flex-wrap: wrap; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.section-title .accent { color: var(--cyan); }
.section-sub { color: var(--text-3); font-size: 14px; margin-top: 6px; }
.see-all { color: var(--cyan); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; opacity: .9; transition: .2s; }
.see-all:hover { opacity: 1; gap: 10px; }

/* ============ 顶部导航 ============ */
header.top {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--grad-primary);
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,229,255,0.35);
}
.brand .logo svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: 10px; font-weight: 500; color: var(--text-3); letter-spacing: 2px; }

.nav-links { display: flex; gap: 6px; margin-left: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; color: var(--text-2); font-size: 15px; font-weight: 600;
  transition: .18s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-1); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--cyan); }

.nav-search { margin-left: auto; position: relative; }
.nav-search input {
  width: 230px; height: 40px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-1); padding: 0 44px 0 18px; font-size: 14px; outline: none; transition: .2s;
}
.nav-search input:focus { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 0 3px rgba(0,229,255,0.12); }
.nav-search button {
  position: absolute; right: 5px; top: 5px; width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--grad-primary); display: grid; place-items: center;
}
.nav-search button svg { width: 15px; height: 15px; }

.nav-cta {
  padding: 9px 18px; border-radius: 20px; border: none; background: var(--grad-primary);
  color: #04121f; font-weight: 800; font-size: 14px; box-shadow: 0 6px 18px rgba(0,229,255,0.3);
  transition: .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0,229,255,0.45); }

/* ============ HERO ============ */
.hero { position: relative; padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px;
  background: rgba(0,229,255,0.1); border: 1px solid rgba(0,229,255,0.3); color: var(--cyan);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 { font-size: 52px; line-height: 1.12; font-weight: 900; letter-spacing: .5px; }
.hero h1 .g { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--text-2); font-size: 17px; margin: 22px 0 30px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px;
  font-weight: 700; font-size: 15px; transition: .2s; border: 1px solid transparent;
}
.btn-primary { background: var(--grad-primary); color: #04121f; box-shadow: 0 10px 28px rgba(0,229,255,0.32); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0,229,255,0.45); }
.btn-ghost { background: rgba(255,255,255,0.05); border-color: var(--line-strong); color: var(--text-1); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.hero-stats { display: flex; gap: 34px; margin-top: 42px; }
.hero-stats .num { font-size: 30px; font-weight: 900; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .lbl { color: var(--text-3); font-size: 13px; }

/* HERO 右侧机器人视觉 */
.hero-visual { position: relative; }
.robot-card {
  background: linear-gradient(160deg, var(--bg-2), var(--bg-3));
  border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.robot-card::before {
  content: ""; position: absolute; top: -40%; right: -20%; width: 70%; height: 120%;
  background: radial-gradient(circle, rgba(0,229,255,0.25), transparent 70%); filter: blur(10px);
}
.robot-svg-wrap { display: grid; place-items: center; padding: 12px 0 18px; }
.robot-card .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 14px; }
.robot-card .meta b { color: var(--cyan); font-size: 16px; }
.float-chip {
  position: absolute; background: var(--bg-glass); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 8px 12px; font-size: 12px; backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.float-chip b { color: var(--cyan); }
.chip-1 { top: 26px; left: -18px; animation: floaty 4s ease-in-out infinite; }
.chip-2 { bottom: 40px; right: -22px; animation: floaty 4s ease-in-out infinite 1.2s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* ============ 分类导航条 ============ */
.cat-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 12px; text-align: center; transition: .22s; cursor: pointer;
}
.cat-item:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.4); background: var(--bg-3); box-shadow: var(--shadow-glow); }
.cat-item .ic { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 13px; background: rgba(0,229,255,0.1); display: grid; place-items: center; }
.cat-item .ic svg { width: 24px; height: 24px; color: var(--cyan); }
.cat-item .t { font-size: 15px; font-weight: 700; }
.cat-item .c { font-size: 12px; color: var(--text-3); margin-top: 2px; }

/* ============ 卡片网格 ============ */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.robot-card-item {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: .25s; cursor: pointer; display: flex; flex-direction: column;
}
.robot-card-item:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.35); box-shadow: var(--shadow-glow); }
.robot-thumb {
  height: 168px; position: relative; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(160deg, #0f1a30, #14233f);
}
.robot-thumb svg { width: 120px; height: 120px; opacity: .92; }
.robot-thumb .tag {
  position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: rgba(7,11,20,0.7); border: 1px solid var(--line-strong); color: var(--cyan); backdrop-filter: blur(4px);
}
.robot-thumb .fav { position: absolute; top: 12px; right: 12px; color: var(--text-3); font-size: 16px; }
.robot-thumb .fav.on { color: var(--red); }

.robot-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rb-top { display: flex; justify-content: space-between; align-items: baseline; }
.rb-name { font-size: 16px; font-weight: 800; }
.rb-brand { font-size: 12px; color: var(--text-3); }
.rb-spec { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rb-spec span { font-size: 11px; color: var(--text-2); background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.rb-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.rb-price { color: var(--red); font-weight: 800; font-size: 17px; }
.rb-price small { color: var(--text-3); font-size: 11px; font-weight: 500; }
.rb-score { font-size: 12px; color: var(--amber); display: flex; align-items: center; gap: 3px; }

/* ============ 排行榜 ============ */
.rank-list { display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  display: flex; align-items: center; gap: 16px; padding: 13px 16px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); transition: .2s;
}
.rank-row:hover { background: var(--bg-3); border-color: var(--line-strong); }
.rank-no { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 14px; background: rgba(255,255,255,0.06); color: var(--text-2); flex-shrink: 0; }
.rank-row:nth-child(1) .rank-no { background: linear-gradient(135deg,#ffd34d,#ff8a3d); color:#1a1205; }
.rank-row:nth-child(2) .rank-no { background: linear-gradient(135deg,#d9e4f5,#9fb4d6); color:#10131a; }
.rank-row:nth-child(3) .rank-no { background: linear-gradient(135deg,#ffb27a,#e0824a); color:#1a1205; }
.rank-info { flex: 1; }
.rank-info .n { font-weight: 700; font-size: 15px; }
.rank-info .b { font-size: 12px; color: var(--text-3); }
.rank-bar { width: 100px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--grad-primary); }
.rank-val { font-size: 13px; color: var(--cyan); font-weight: 700; width: 46px; text-align: right; }

/* ============ 资讯 ============ */
.news-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; cursor: pointer; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.3); box-shadow: var(--shadow); }
.news-thumb { height: 150px; background: linear-gradient(135deg,#13203a,#1c2d4f); position: relative; display:grid; place-items:center; }
.news-thumb .cat-lbl { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--grad-primary); color:#04121f; }
.news-thumb svg { width: 64px; height: 64px; opacity:.55; }
.news-body { padding: 16px; }
.news-body h3 { font-size: 16px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.news-body p { font-size: 13px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* ============ 选型工具 ============ */
.selector { background: linear-gradient(160deg, var(--bg-2), var(--bg-3)); border: 1px solid var(--line); border-radius: 20px; padding: 34px; }
.selector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.select-field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 9px; font-weight: 600; }
.select-field select, .select-field input {
  width: 100%; height: 46px; border-radius: 11px; background: var(--bg-1); border: 1px solid var(--line-strong);
  color: var(--text-1); padding: 0 14px; font-size: 14px; outline: none; transition: .2s;
}
.select-field select:focus, .select-field input:focus { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 0 3px rgba(0,229,255,0.12); }
.selector-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.selector-result { color: var(--text-2); font-size: 14px; }
.selector-result b { color: var(--cyan); font-size: 20px; }

/* ============ 厂商墙 ============ */
.brand-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.brand-cell {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); height: 76px;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--text-2); transition: .2s; cursor: pointer;
}
.brand-cell:hover { color: var(--cyan); border-color: rgba(0,229,255,0.35); background: var(--bg-3); transform: translateY(-3px); }

/* ============ 页脚 ============ */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  background:
    radial-gradient(900px 320px at 80% 0%, rgba(47,107,255,0.18), transparent 60%),
    radial-gradient(700px 280px at 10% 100%, rgba(139,92,246,0.14), transparent 60%),
    linear-gradient(180deg, #0a1428 0%, #050b18 100%);
  color: rgba(255,255,255,0.78);
}
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 30px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: rgba(255,255,255,0.66); font-size: 13px; max-width: 280px; }
.foot-col h4 { font-size: 15px; margin-bottom: 16px; color: #fff; }
.foot-col a { display: block; color: rgba(255,255,255,0.66); font-size: 13px; padding: 5px 0; transition: .18s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,0.55); font-size: 12px; }

/* ============ 通用工具类 ============ */
.pill { display: inline-block; font-size: 12px; padding: 4px 11px; border-radius: 20px; background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.25); }
.muted { color: var(--text-3); }
.center { text-align: center; }

/* ============ 页面标题横幅 ============ */
.page-hero { padding: 52px 0 30px; }
.page-hero h1 { font-size: 38px; font-weight: 900; }
.page-hero p { color: var(--text-2); margin-top: 10px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ============ 筛选栏 ============ */
.filter-bar { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 28px; }
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; }
.filter-row + .filter-row { border-top: 1px solid var(--line); }
.filter-row .label { font-size: 13px; color: var(--text-3); width: 76px; flex-shrink: 0; font-weight: 600; }
.chip-btn {
  padding: 7px 15px; border-radius: 20px; font-size: 13px; color: var(--text-2);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); transition: .18s;
}
.chip-btn:hover { color: var(--text-1); border-color: var(--line-strong); }
.chip-btn.active { color: #04121f; background: var(--grad-primary); border-color: transparent; font-weight: 700; }

/* ============ 详情页 ============ */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.detail-gallery { background: linear-gradient(160deg,#0f1a30,#14233f); border: 1px solid var(--line); border-radius: 20px; height: 380px; display: grid; place-items: center; position: relative; overflow: hidden; }
.detail-gallery svg { width: 230px; height: 230px; }
.detail-info h1 { font-size: 34px; font-weight: 900; }
.detail-info .brand-line { color: var(--text-3); margin: 6px 0 18px; }
.detail-price { font-size: 30px; font-weight: 900; color: var(--red); margin-bottom: 18px; }
.detail-price small { font-size: 13px; color: var(--text-3); font-weight: 500; }
.detail-actions { display: flex; gap: 12px; margin: 22px 0; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { text-align: left; padding: 14px 8px; color: var(--text-3); font-weight: 600; font-size: 14px; width: 38%; }
.spec-table td { padding: 14px 8px; font-size: 14px; }
.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 30px 0 24px; }
.tab-btn { padding: 12px 18px; font-size: 15px; font-weight: 700; color: var(--text-3); border-bottom: 2px solid transparent; transition: .2s; }
.tab-btn.active { color: var(--cyan); border-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pc-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pc-box h4 { margin-bottom: 12px; font-size: 15px; }
.pc-box li { list-style: none; padding: 6px 0 6px 22px; position: relative; font-size: 14px; color: var(--text-2); }
.pc-box.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.pc-box.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ============ 社区 ============ */
.post-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: .22s; }
.post-card:hover { border-color: rgba(0,229,255,0.3); background: var(--bg-3); }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary); display: grid; place-items: center; font-weight: 800; color: #04121f; }
.post-head .meta .n { font-weight: 700; font-size: 14px; }
.post-head .meta .t { font-size: 12px; color: var(--text-3); }
.post-card h3 { font-size: 16px; margin-bottom: 8px; }
.post-card p { font-size: 13px; color: var(--text-3); }
.post-foot { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--text-3); }
.post-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ============ CTA 横幅 ============ */
.cta-banner {
  background: var(--grad-hero), linear-gradient(135deg, #0f1a30, #16223c);
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 46px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: 30px; font-weight: 900; margin-bottom: 12px; }
.cta-banner p { color: var(--text-2); margin-bottom: 24px; }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .hero-grid, .detail-hero { grid-template-columns: 1fr; }
  .cat-strip { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .selector-grid, .pros-cons, .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 36px; }
  .cat-strip, .grid-4, .grid-3, .selector-grid, .brand-wall, .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .container { padding: 0 16px; }
}
