/* 站点共享样式：暖色调、明亮温暖 */
:root {
  --cream: #FFF9F2;
  --cream-deep: #FFF1E0;
  --amber: #F5A623;
  --amber-deep: #E8890C;
  --orange: #FF7E42;
  --coral: #FF9E7D;
  --ink: #4A342A;
  --ink-soft: #7A655A;
  --card: #FFFFFF;
  --line: #F3E2CF;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(232, 137, 12, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}
a { color: var(--amber-deep); text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 242, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--amber), var(--orange)); display: inline-block; }
.nav a.item { color: var(--ink-soft); margin-left: 22px; font-size: 15px; }
.nav a.item:hover { color: var(--amber-deep); }

/* Hero */
.hero {
  padding: 84px 0 72px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(255, 158, 125, .35), transparent 65%),
    radial-gradient(500px 260px at 5% 20%, rgba(245, 166, 35, .22), transparent 60%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-text { text-align: left; }
.kicker { color: var(--amber-deep); font-weight: 600; letter-spacing: 2px; font-size: 14px; margin-bottom: 14px; }
.hero h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--amber-deep); }
.hero p.sub { color: var(--ink-soft); font-size: 17px; margin: 0 0 30px; }
.hero-note { color: var(--ink-soft); font-size: 13px; margin-top: 16px; }
.hero-img img { width: 100%; max-width: 380px; border-radius: 24px; box-shadow: var(--shadow); display: block; margin: 0 auto; }

/* 五主题配色 */
.themes { background: var(--cream-deep); padding: 22px 0; text-align: center; }
.theme-row { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.theme-dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px rgba(255,255,255,.8), 0 2px 8px rgba(0,0,0,.12);
}
.themes p { color: var(--ink-soft); font-size: 13px; }

/* 功能区 */
.section.alt { background: var(--cream-deep); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .18s, box-shadow .18s;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-ico { font-size: 28px; margin-bottom: 10px; }
.feat h3 { font-size: 17px; margin-bottom: 8px; }
.feat p { font-size: 14px; color: var(--ink-soft); }

/* 对比表 */
.cmp { padding: 0; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 110px 1fr 1.2fr; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.cmp-row:last-child { border-bottom: none; }
.cmp-row > span:first-child { color: var(--ink-soft); }
.cmp-row b { color: var(--amber-deep); font-weight: 600; }
.cmp-head { background: var(--cream); font-weight: 600; }
.cmp-head span { color: var(--ink); }

/* 视频 */
.video-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-box video { width: 100%; display: block; }

/* 规格表 */
.spec-list { padding: 6px 26px; }
.spec-row { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: none; }
.spec-row > span { flex: 0 0 70px; color: var(--ink-soft); }
.spec-row b { font-weight: 600; }

.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--amber), var(--orange)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--amber-deep); border: 2px solid var(--amber); margin-left: 12px; }

/* 区块标题 */
.section { padding: 64px 0; }
.section h2 { font-size: 30px; text-align: center; margin-bottom: 8px; }
.section p.desc { text-align: center; color: var(--ink-soft); margin-bottom: 36px; }

/* 产品卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .thumb { height: 190px; background: var(--cream-deep); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { color: #D9BE9E; font-size: 14px; }
.card .badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, var(--amber), var(--orange)); color: #fff;
  font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px;
}
.card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card .tagline { color: var(--ink-soft); font-size: 14px; flex: 1; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.card .price { color: var(--orange); font-weight: 700; font-size: 18px; }
.card .btn { padding: 8px 22px; font-size: 14px; }

.empty { text-align: center; color: var(--ink-soft); padding: 60px 0; font-size: 15px; }

/* 页脚 */
footer { border-top: 1px solid var(--line); padding: 30px 0; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* 管理后台 */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--cream);
  outline: none; transition: border .15s;
}
.field input:focus, .field textarea:focus { border-color: var(--amber); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { color: var(--ink-soft); font-weight: 600; background: var(--cream); }
.table img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.pill { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.pill.on { background: #FFF1DC; color: var(--amber-deep); }
.pill.off { background: #F2EDE7; color: var(--ink-soft); }
.mini-btn { padding: 5px 14px; font-size: 13px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-right: 6px; }
.mini-btn:hover { border-color: var(--amber); color: var(--amber-deep); }
.mini-btn.danger:hover { border-color: #E25B4A; color: #E25B4A; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; display: none; }
.msg.ok { display: block; background: #FFF1DC; color: var(--amber-deep); }
.msg.err { display: block; background: #FDE8E5; color: #C74A38; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-text { text-align: center; }
  .hero h1 { font-size: 30px; }
  .hero-img img { max-width: 260px; }
  .section h2 { font-size: 24px; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; }
  .cmp-head { display: none; }
}

/* 下载与安装指引 */
.guide {
  margin-top: 44px;
  padding: 28px 30px 26px;
  background: #FFFDF8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.guide h3 { font-size: 18px; color: var(--ink); margin-bottom: 10px; text-align: center; }
.guide-sub { color: var(--ink-soft); font-size: 14px; text-align: center; max-width: 720px; margin: 0 auto 22px; }
.guide-sub b { color: var(--amber-deep); }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.gstep { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.gstep-n {
  flex: 0 0 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.gstep b { font-size: 14px; color: var(--ink); display: block; margin-top: 4px; }
.gstep p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
@media (max-width: 800px) {
  .guide-steps { grid-template-columns: 1fr; }
}
