/* =============================================================
 *  秒绘家官网 · 共享样式
 *  index.html / agreement.html / privacy.html 三页共用，
 *  改样式只需改这一个文件（不要在各页里写内联样式）。
 *
 *  色值取自 docs/UI配色规范.md，与小程序 / 后台保持一致。
 * ============================================================= */

:root {
  --brand:        #FF7A2E;   /* 主色（品牌橙） */
  --brand-light:  #FF9A5A;
  --brand-pale:   #FFD7C2;
  --brand-ghost:  #FFF2EA;
  --bg:           #FFF8F4;
  --ink:          #2D2A26;   /* 标题 */
  --text:         #7A5A4A;   /* 正文 */
  --text-sub:     #A67C6C;   /* 次要文字 */
  --shadow:       0 4px 18px rgba(90, 45, 20, 0.06);
  --shadow-brand: 0 8px 24px rgba(255, 122, 46, 0.3);
  --radius:       16px;
  --radius-pill:  999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(90, 45, 20, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 36px; width: auto; display: block; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text); font-size: 15px; }
.nav a:hover { color: var(--brand); text-decoration: none; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: var(--shadow-brand);
}
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-line {
  background: #fff; color: var(--brand);
  border: 1px solid var(--brand-pale); box-shadow: none;
}

/* ---------------- 首屏 ---------------- */
.hero { padding: 76px 0 52px; text-align: center; }
.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill);
  background: #fff; border: 1px solid var(--brand-pale); color: var(--brand);
  font-size: 13px; margin-bottom: 18px;
}
.hero-brand {
  font-size: 56px; font-weight: 800; letter-spacing: 2px; line-height: 1.1;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.hero h1 { font-size: 34px; color: var(--ink); margin: 0 0 14px; line-height: 1.35; }
.hero .lead {
  font-size: 17px; max-width: 760px; margin: 0 auto 30px;
}
.btn-hero { padding: 14px 34px; font-size: 17px; }
.hero .hero-note { margin-top: 16px; }
.hero-tags {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px;
}
.tag {
  background: #fff; border: 1px solid var(--brand-pale); color: var(--brand);
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 14px;
}
.hero-note { font-size: 14px; color: var(--text-sub); }

/* ---------------- 通用区块 ---------------- */
section { padding: 52px 0; }
.alt { background: #fff; }
.section-title { font-size: 30px; color: var(--ink); text-align: center; margin: 0 0 12px; }
.section-desc {
  text-align: center; color: var(--text-sub); max-width: 760px;
  margin: 0 auto 40px; font-size: 16px;
}

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 24px;
}
.alt .card { background: var(--bg); }
.card .icon { font-size: 30px; margin-bottom: 10px; display: block; }
.card h3 { color: var(--ink); font-size: 18px; margin: 0 0 8px; }
.card p { margin: 0; font-size: 15px; }

/* ---------------- 流程步骤 ---------------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 22px;
}
.step::before {
  counter-increment: s; content: counter(s);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; color: var(--ink); font-size: 17px; }
.step p { margin: 0; font-size: 15px; }

/* ---------------- 关于 / 联系 ---------------- */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px dashed var(--brand-pale); font-size: 15px; }
.info-list li:last-child { border-bottom: none; }
.info-list .label { color: var(--ink); font-weight: 600; display: inline-block; min-width: 132px; }

/* ---------------- 文档页（协议 / 隐私政策） ---------------- */
.doc {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 40px; margin: 36px 0;
}
.doc h1 { font-size: 28px; color: var(--ink); margin: 0 0 8px; }
.doc .updated { color: var(--text-sub); font-size: 14px; margin: 0 0 26px; }
.doc h2 { font-size: 19px; color: var(--ink); margin: 28px 0 10px; }
.doc p, .doc li { font-size: 15px; margin: 0 0 10px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc .tips {
  background: var(--brand-ghost); border-radius: 12px; padding: 16px 18px;
  font-size: 14px; color: var(--text); margin: 18px 0;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #fff; border-top: 1px solid var(--brand-ghost);
  margin-top: 32px; padding: 38px 0 26px; font-size: 14px; color: var(--text-sub);
}
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.footer-cols h5 { color: var(--ink); font-size: 15px; margin: 0 0 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: var(--text-sub); }

.beian {
  text-align: center; border-top: 1px dashed var(--brand-pale);
  padding-top: 18px; line-height: 2.1;
}
.beian a { color: var(--text-sub); }
.beian .police { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.beian .police img { height: 16px; width: auto; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .two-col, .footer-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 32px; }
  .doc { padding: 28px 20px; }
}
