/*
Theme Name: SafeW Baby
Theme URI: https://safew.baby/
Description: SafeW 家庭隐私守护单页主题：奶油粉底色、圆润卡片、亲和插画式排版，面向家庭与长辈用户。
Version: 1.0.0
Author: SafeW
Text Domain: safew-baby
Requires at least: 6.0
Tested up to: 6.8
*/

:root {
  --cream: #fff8f2;
  --cream-2: #fdeee3;
  --ink: #4a3730;
  --ink-soft: #8a6f64;
  --rose: #f0708c;
  --rose-soft: #ffd9e2;
  --butter: #ffe6b8;
  --mint: #cdeee2;
  --line: #f3d9cb;
  --white: #fffdfb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(620px 420px at 6% 2%, #ffe9ef 0%, transparent 64%),
    radial-gradient(680px 460px at 98% 12%, #fff0d6 0%, transparent 62%),
    var(--cream);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  line-height: 1.95;
}

a { color: #d94f70; text-decoration: none; }
a:hover { color: var(--rose); }

.box { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }

.top {
  padding: 20px 0;
}
.top .box { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo span {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--rose); color: #fff; display: grid; place-items: center;
  font-size: 17px; box-shadow: 0 8px 18px rgba(240, 112, 140, .35);
}
.menu { display: flex; gap: 22px; font-size: 15px; color: var(--ink-soft); }
.menu a { color: var(--ink-soft); }

.pill {
  display: inline-block; padding: 11px 24px; border-radius: 999px;
  background: var(--rose); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 12px 26px rgba(240, 112, 140, .32);
}
.pill:hover { color: #fff; }
.pill.line { background: var(--white); color: var(--ink); box-shadow: none; border: 2px solid var(--line); }

.hero { padding: 40px 0 30px; }
.hero .box { display: grid; grid-template-columns: 1.04fr .96fr; gap: 40px; align-items: center; }
.hello {
  display: inline-block; background: var(--butter); color: #8a5a12;
  padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
h1 { font-size: clamp(29px, 4vw, 43px); line-height: 1.35; margin: 18px 0 16px; }
h1 u { text-decoration: none; background: linear-gradient(transparent 62%, var(--rose-soft) 62%); padding: 0 4px; }
h2 { font-size: clamp(23px, 2.8vw, 31px); margin: 0 0 14px; }
h3 { font-size: 18.5px; margin: 0 0 8px; }
p { color: var(--ink-soft); margin: 0 0 16px; }
.lead { font-size: 17px; color: #6d5349; }

.photo {
  border-radius: 28px; overflow: hidden; background: var(--white);
  border: 6px solid var(--white); box-shadow: 0 24px 48px rgba(199, 150, 130, .26);
}
.photo img { display: block; width: 100%; height: auto; border-radius: 22px; }
.photo figcaption { padding: 10px 8px 4px; font-size: 13.5px; color: var(--ink-soft); text-align: center; }

section { padding: 60px 0; }
.soft { background: var(--white); border-radius: 34px; }
.soft-2 { background: var(--cream-2); border-radius: 34px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; align-items: center; }

.bubble {
  background: var(--white); border-radius: 24px; padding: 26px 24px;
  border: 2px solid var(--line);
}
.bubble .face { font-size: 26px; margin-bottom: 10px; }
.bubble p:last-child { margin: 0; }

.family-list { display: grid; gap: 14px; }
.family-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
  background: var(--white); border-radius: 20px; padding: 16px 20px;
  border: 2px solid var(--line);
}
.family-row i { font-style: normal; font-size: 26px; text-align: center; }

.timer {
  display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px;
}
.chip {
  background: var(--rose-soft); color: #a8304f; border-radius: 999px;
  padding: 7px 16px; font-size: 14px; font-weight: 600;
}

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step4 {
  background: var(--white); border-radius: 22px; padding: 22px 20px;
  border: 2px dashed var(--line);
}
.step4 b { display: block; color: var(--rose); font-size: 15px; margin-bottom: 6px; }

.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: 20px; overflow: hidden; font-size: 15.5px; border: 2px solid var(--line); }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp th { background: var(--butter); color: #7a4d0c; }
.cmp td { color: var(--ink-soft); }
.cmp tr:last-child td { border-bottom: 0; }

.qa { display: grid; gap: 12px; }
.qa details { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 16px 22px; }
.qa summary { cursor: pointer; font-weight: 700; }
.qa p { margin: 10px 0 0; }

.endbox {
  background: var(--mint); border-radius: 34px; padding: 44px 46px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; align-items: center;
}
.endbox h2 { margin-bottom: 10px; }

footer { padding: 34px 0 46px; color: var(--ink-soft); font-size: 14px; }
footer .box { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.friend-links { padding: 30px 0 6px; border-top: 1px solid var(--line); }
.friend-links p { margin: 0; font-size: 13px; line-height: 1.95; color: #a58c80; word-break: break-word; }
.friend-links .fl-title { color: #b09a8e; }
.friend-links a { color: #a58c80; margin-right: 5px; }
.friend-links a:hover { color: var(--rose); text-decoration: underline; }

@media (max-width: 900px) {
  .hero .box, .two, .three, .steps4, .endbox { grid-template-columns: 1fr; }
  .menu { display: none; }
  section { padding: 46px 0; }
}
