/* ================= UniBaby shared styles ================= */
:root {
  --cream: #FFF9F2;
  --coral: #FF8A5C;
  --coral-dark: #E86F3E;
  --sky: #6FB7E8;
  --pink: #FFB6C1;
  --mint: #9ADBC5;
  --ink: #2D3142;
  --ink-soft: #5C6070;
  --card: #FFFFFF;
  --shadow: 0 10px 30px rgba(45, 49, 66, 0.08);
  --radius: 22px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}
::selection { background: var(--pink); color: #fff; }
a { color: inherit; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,49,66,0.06);
}
.nav {
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); }
.logo-badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 4px 12px rgba(255,138,92,.35);
}
.logo small { font-weight: 500; color: var(--ink-soft); font-size: 12px; display: block; line-height: 1.1; }
nav.links { display: flex; gap: 22px; flex-wrap: wrap; }
nav.links a { color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; white-space: nowrap; }
nav.links a:hover { color: var(--coral); }
nav.links a.active { color: var(--coral); font-weight: 800; }
.lang-btn {
  border: 2px solid var(--coral); background: transparent; color: var(--coral);
  font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px;
  cursor: pointer; transition: all .2s; font-family: inherit; white-space: nowrap;
}
.lang-btn:hover { background: var(--coral); color: #fff; }
@media (max-width: 860px) { nav.links { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 96px 24px 110px;
  overflow: hidden;
}
.hero.compact { padding: 72px 24px 84px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 900; letter-spacing: 1px; line-height: 1.2;
}
.hero.compact h1 { font-size: clamp(30px, 5vw, 46px); }
.hero h1 .accent {
  background: linear-gradient(120deg, var(--coral), var(--pink) 60%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub {
  max-width: 660px; margin: 22px auto 0; color: var(--ink-soft);
  font-size: clamp(16px, 2.4vw, 19px);
}
.hero.compact .sub { font-size: clamp(15px, 2vw, 17px); }
.hero .tags { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tag {
  background: #fff; border: 1px solid rgba(45,49,66,.08); border-radius: 999px;
  padding: 8px 20px; font-size: 14px; font-weight: 600; color: var(--ink-soft);
  box-shadow: 0 4px 14px rgba(45,49,66,.05);
}
.cta-row { margin-top: 40px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 14px 34px; border-radius: 999px; transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 8px 24px rgba(255,138,92,.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255,138,92,.5); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid rgba(45,49,66,.1); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--coral); color: var(--coral); }

.float { position: absolute; opacity: .85; animation: floaty 6s ease-in-out infinite; pointer-events: none; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.f1 { top: 14%; left: 8%; animation-delay: 0s; }
.f2 { top: 22%; right: 10%; animation-delay: 1.2s; }
.f3 { bottom: 16%; left: 14%; animation-delay: 2.1s; }
.f4 { bottom: 22%; right: 13%; animation-delay: .6s; }
@media (max-width: 640px) { .float { display: none; } }

/* ---------- sections ---------- */
section { max-width: 1120px; margin: 0 auto; padding: 84px 24px; }
.kicker {
  display: inline-block; color: var(--coral); font-weight: 800; font-size: 14px;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px;
}
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); max-width: 680px; font-size: 17px; }

.grid { display: grid; gap: 24px; margin-top: 44px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 1px solid rgba(45,49,66,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(45,49,66,.12); }
.card .icon {
  width: 56px; height: 56px; border-radius: 18px; display: flex; align-items: center;
  justify-content: center; font-size: 28px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

.card-link { text-decoration: none; display: block; color: inherit; }
.card-link .more { display: inline-block; margin-top: 14px; color: var(--coral); font-weight: 700; font-size: 14.5px; }
.card-link:hover .more { text-decoration: underline; }

.bg-tint { background: linear-gradient(180deg, transparent, rgba(111,183,232,.08), transparent); border-radius: 40px; }

/* ---------- name story ---------- */
.story-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
@media (max-width: 800px) { .story-wrap { grid-template-columns: 1fr; } }
.story-card {
  border-radius: var(--radius); padding: 40px 36px; color: #fff; position: relative; overflow: hidden;
}
.story-card.uni { background: linear-gradient(135deg, var(--sky), #8CC7F0); }
.story-card.you { background: linear-gradient(135deg, var(--coral), var(--pink)); }
.story-card .big { font-size: 52px; font-weight: 900; line-height: 1; margin-bottom: 14px; }
.story-card p { font-size: 16px; opacity: .95; }
.story-card .deco { position: absolute; right: -30px; bottom: -30px; font-size: 130px; opacity: .15; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 800px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { text-align: center; padding: 26px 14px; }
.value .v-icon { font-size: 40px; margin-bottom: 10px; }
.value h4 { font-size: 17px; margin-bottom: 4px; }
.value p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- article pages ---------- */
.crumbs { margin-bottom: 26px; font-size: 14px; color: var(--ink-soft); }
.crumbs a { color: var(--coral); text-decoration: none; font-weight: 600; }
.article { background: var(--card); border-radius: var(--radius); padding: 40px 38px; box-shadow: var(--shadow); margin-top: 28px; }
@media (max-width: 600px) { .article { padding: 28px 22px; } }
.article > h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.article .sec-icon {
  width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center;
  justify-content: center; font-size: 24px; flex-shrink: 0;
}
.article p, .article li { color: var(--ink-soft); font-size: 15.5px; }
.article ul { margin: 10px 0 0 0; padding-left: 0; list-style: none; }
.article ul li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.article ul li::before { content: "🌱"; position: absolute; left: 0; font-size: 13px; top: 4px; }
.article ul.dots li::before { content: "•"; font-size: 20px; top: -2px; color: var(--coral); }
.article .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: 8px; }
@media (max-width: 720px) { .article .cols { grid-template-columns: 1fr; } }
.note {
  margin-top: 18px; background: #FFF3EC; border-left: 4px solid var(--coral);
  border-radius: 0 14px 14px 0; padding: 14px 18px; font-size: 14.5px; color: var(--ink);
}
.note.blue { background: #EDF6FD; border-left-color: var(--sky); }
.note b { color: var(--coral-dark); }
.note.blue b { color: #3D7FB0; }

/* age badges (milestones) */
.age-badge {
  display: inline-block; background: linear-gradient(135deg, var(--coral), var(--pink));
  color: #fff; font-weight: 800; font-size: 14px; padding: 4px 16px; border-radius: 999px; margin-bottom: 10px;
}

/* book list (reading) */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 16px; }
@media (max-width: 800px) { .book-grid { grid-template-columns: 1fr; } }
.book {
  background: var(--cream); border: 1px solid rgba(45,49,66,.06); border-radius: 16px; padding: 18px 20px;
}
.book .b-age { font-weight: 800; color: var(--coral); font-size: 14px; }
.book p { margin-top: 4px; font-size: 14px; }

/* ---------- FAQ (redesigned) ---------- */
.faq-wrap { max-width: 860px; margin: 40px auto 0; }
.faq-search {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 2px solid rgba(45,49,66,.08); border-radius: 999px;
  padding: 14px 24px; box-shadow: var(--shadow); margin-bottom: 36px; transition: border-color .2s;
}
.faq-search:focus-within { border-color: var(--coral); }
.faq-search input {
  border: none; outline: none; background: transparent; width: 100%;
  font-size: 15.5px; font-family: inherit; color: var(--ink);
}
.faq-search .s-icon { font-size: 18px; }
.faq-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; color: var(--coral); margin: 30px 0 16px; letter-spacing: 1px;
}
.faq-group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255,138,92,.35), transparent); }
.faq-item {
  background: #fff; border-radius: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow); border: 1px solid rgba(45,49,66,.05); overflow: hidden;
  border-left: 4px solid transparent; transition: border-color .25s, transform .25s;
}
.faq-item:hover { border-left-color: var(--coral); transform: translateX(4px); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 14px; font-family: inherit;
}
.faq-q .q-icon {
  width: 36px; height: 36px; border-radius: 12px; background: #FFF0E6;
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0;
}
.faq-q .q-text { flex: 1; }
.faq-q .arrow {
  transition: transform .3s; color: var(--coral); font-size: 20px; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%; background: #FFF0E6;
  display: flex; align-items: center; justify-content: center;
}
.faq-item.open .arrow { transform: rotate(45deg); background: var(--coral); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 2px 24px 22px 74px; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 560px) { .faq-a-inner { padding-left: 24px; } }
.faq-empty {
  text-align: center; color: var(--ink-soft); padding: 40px 20px; display: none;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow);
}
.faq-more { text-align: center; margin-top: 30px; color: var(--ink-soft); font-size: 15px; }
.faq-more a { color: var(--coral); font-weight: 700; text-decoration: none; }
.faq-more a:hover { text-decoration: underline; }

/* ---------- contact ---------- */
.contact-box {
  background: linear-gradient(135deg, var(--coral), var(--pink));
  border-radius: 30px; color: #fff; text-align: center; padding: 70px 30px;
  box-shadow: 0 20px 50px rgba(255,138,92,.35);
}
.contact-box h2 { color: #fff; }
.contact-box p { opacity: .95; max-width: 520px; margin: 0 auto 30px; }
.mail-btn {
  display: inline-block; background: #fff; color: var(--coral-dark);
  font-weight: 800; font-size: 18px; padding: 16px 40px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.15); transition: transform .2s;
}
.mail-btn:hover { transform: translateY(-3px) scale(1.03); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 40px; }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px 32px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 34px; }
.foot-brand { font-weight: 800; font-size: 20px; color: #fff; margin-bottom: 10px; }
.foot-disclaimer {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px;
  font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.55);
}
.foot-disclaimer p { margin-bottom: 10px; }
.disclaimer-en {
  margin-top: 18px; padding: 18px 20px; border: 1px dashed rgba(255,255,255,.25);
  border-radius: 14px; font-size: 12.5px; line-height: 1.85;
  color: rgba(255,255,255,.6); font-style: italic;
}
.foot-copy { text-align: center; margin-top: 22px; font-size: 13px; color: rgba(255,255,255,.4); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.show { opacity: 1; transform: none; }
