/* Maid Cafe Simulator Guide — custom theme
   Design language: candy maid cafe. Cream paper, strawberry pink, chocolate ink,
   rounded chunky cards, dashed sticker labels, awning stripes. */

:root {
  --bg: #fff5ef;
  --bg-2: #ffeaf2;
  --card: #ffffff;
  --ink: #46303c;
  --muted: #8d7280;
  --pink: #f0559a;
  --pink-2: #ff8ab8;
  --pink-deep: #d6407f;
  --pink-soft: #ffe0ec;
  --red: #e0505e;
  --gold: #f5a93f;
  --lav: #b39cf2;
  --mint: #74cdb9;
  --line: #f6cfdc;
  --line-2: #ffe3ef;
  --shadow: 0 8px 22px rgba(240, 85, 154, .14);
  --shadow-sm: 0 3px 10px rgba(240, 85, 154, .12);
  --radius: 18px;
  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  background:
    radial-gradient(circle at 12% 60px, rgba(255, 214, 232, .5), transparent 420px),
    radial-gradient(circle at 88% 240px, rgba(255, 236, 214, .55), transparent 460px),
    linear-gradient(180deg, #fff6f1 0%, #ffeaf2 46%, #fff5ef 100%);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pink-deep); text-decoration-color: rgba(240,85,154,.4); text-underline-offset: 3px; }
a:hover { color: var(--pink); }
a:focus-visible { outline: 2px dashed var(--pink); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 10px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; display: block; height: 6px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 26px, #fff 26px 52px);
}
.bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand span { line-height: 1.15; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav li { position: relative; }
.nav a { display: inline-block; padding: 8px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--pink-soft); color: var(--pink-deep); }
.nav li.active > a { background: #c92d6e; color: #fff; }
.nav .kids {
  display: none; position: absolute; top: 100%; left: 0; min-width: 232px; z-index: 40;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; margin-top: 6px; flex-direction: column;
}
/* hover 桥：下拉面板与父项之间的空隙不能断 hover（舰队列规） */
.nav li.has-kids::after { content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 14px; z-index: 39; }
.nav li.has-kids > a::after { content: " ▾"; opacity: .55; }
.nav li.has-kids:hover .kids, .nav li.has-kids:focus-within .kids { display: flex; }
.kids a { display: block; border-radius: 10px; font-weight: 600; font-size: 14.5px; padding: 8px 10px; }
.cta {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: linear-gradient(180deg, #e04c8a, #c92d6e);
  color: #fff !important; font-weight: 800; font-size: 14px;
  padding: 9px 16px; border-radius: 999px; text-decoration: none;
  box-shadow: var(--shadow-sm); margin-left: 8px;
}
.cta:hover { transform: translateY(-1px); color: #fff !important; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 22px; }
.hero-in {
  position: relative;
  background-image:
    linear-gradient(90deg, rgba(58, 26, 42, .62) 0%, rgba(58, 26, 42, .30) 56%, rgba(58, 26, 42, .04) 86%),
    linear-gradient(180deg, rgba(58, 26, 42, .05) 0%, rgba(58, 26, 42, .40) 58%, rgba(58, 26, 42, .80) 100%),
    var(--hero, none);
  background-size: cover; background-position: center 28%;
  border-radius: 26px; border: 3px solid #fff;
  box-shadow: var(--shadow);
  padding: 150px 34px 30px; color: #fff;
}
.eyebrow {
  display: inline-block; margin: 0 0 10px;
  background: rgba(255, 255, 255, .94); color: var(--pink-deep);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  letter-spacing: .04em; padding: 5px 14px; border-radius: 999px;
  border: 1.5px dashed var(--pink); transform: rotate(-1.5deg);
}
.hero h1 { font-family: var(--font-head); font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.12; margin: 0 0 10px; text-shadow: 0 2px 10px rgba(40, 10, 28, .6), 0 1px 3px rgba(40, 10, 28, .55); }
.lead { max-width: 640px; margin: 0 0 16px; font-size: 17px; font-weight: 600; text-shadow: 0 2px 10px rgba(40, 10, 28, .6), 0 1px 3px rgba(40, 10, 28, .5); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.btn {
  display: inline-block; background: linear-gradient(180deg, #e04c8a, #c92d6e);
  color: #fff !important; font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  padding: 11px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(150, 30, 90, .35);
}
.btn:hover { transform: translateY(-1px); color: #fff !important; }
.btn.ghost { background: rgba(255, 255, 255, .94); color: var(--pink-deep) !important; box-shadow: var(--shadow-sm); }

/* ---------- facts strip ---------- */
.facts-strip { margin: 20px 0 4px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.fact { flex: 1 1 150px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-sm); }
.fact-k { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact-v { display: block; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--pink-deep); }

/* ---------- sections & cards ---------- */
.section-head { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; flex-wrap: wrap; }
.overline { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.section-head h2 { margin: 0; font-family: var(--font-head); font-size: 1.55rem; border: 0; }
.count-pill { display: inline-block; margin-left: 8px; background: var(--pink-soft); color: var(--pink-deep); font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.grid { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 8px; }
.card {
  flex: 1 1 280px; max-width: 100%;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pink-soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill-tag {
  position: absolute; left: 10px; top: 10px;
  background: rgba(255, 255, 255, .95); color: var(--pink-deep);
  border: 1.5px dashed var(--pink); border-radius: 999px;
  font-size: 12px; font-weight: 800; padding: 3px 10px;
}
.card-body { padding: 13px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.card-body h3, .card h3 { font-family: var(--font-head); font-size: 1.06rem; margin: 0; }
.card-body p, .card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card .go { color: var(--pink); font-weight: 800; font-size: 13.5px; margin-top: auto; }
.stamp, .card .stamp { font-size: 12.5px; color: var(--pink); font-weight: 800; }
.card.sm { flex: 1 1 210px; }
.card.sm h3 { font-size: 16px; }
.grid-title { margin-bottom: 0; }

/* ---------- article pages ---------- */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 34px; align-items: start; margin-top: 26px; }
.article-grid > div { min-width: 0; }
.crumb { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--pink-deep); }
.crumb .sep { margin: 0 6px; color: var(--pink); }
.crumb .here { color: var(--ink); font-weight: 700; }
article { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 32px 34px; }
article h1 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.16; margin: 0 0 6px; }
article h2 { font-family: var(--font-head); font-size: 1.42rem; margin: 30px 0 10px; border: 0; padding: 0; }
article h2::before { content: "✦ "; color: var(--pink); font-size: .8em; }
article h3 { font-family: var(--font-head); font-size: 1.14rem; margin: 22px 0 8px; }
article p { margin: 0 0 14px; }
article ul, article ol { padding-left: 22px; margin: 0 0 16px; }
article li { margin: 4px 0; }
article img.zoom { display: block; width: 100%; border-radius: 14px; border: 1.5px solid var(--line); margin: 6px 0 8px; box-shadow: var(--shadow-sm); cursor: zoom-in; }
article img.zoom.open { max-width: min(1200px, 96vw); cursor: zoom-out; border-color: var(--pink); }
article strong, article b { color: var(--pink-deep); }
table strong, table b { color: inherit; }
.tbl-wrap { overflow-x: auto; margin: 0 0 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.tbl-wrap table { min-width: 520px; }
table { border-collapse: collapse; width: 100%; font-size: 14.8px; }
th, td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { background: linear-gradient(180deg, var(--pink-soft), #ffd0e3); color: var(--pink-deep); font-family: var(--font-head); font-size: 14px; letter-spacing: .02em; }
tbody tr:nth-child(even) { background: #fff8fb; }
tbody tr:last-child td { border-bottom: 0; }

.callout { border-radius: 14px; padding: 13px 16px; margin: 16px 0; border: 1.5px solid var(--line); background: #fff8fb; }
.callout.note { background: #fff6e6; border-color: #f5deb4; }
.callout.note::before { content: "☕ Note "; font-weight: 800; color: #b97a12; }
.callout.warn { background: #ffeef0; border-color: #f7c3c9; }
.callout.warn::before { content: "⚠ Watch out "; font-weight: 800; color: var(--red); }
.callout.tip { background: #effaf6; border-color: #bfe8dc; }
.callout.tip::before { content: "★ Tip "; font-weight: 800; color: #1d8a6d; }
blockquote { border-left: 4px solid var(--pink-soft); margin: 16px 0; padding: 4px 16px; color: var(--muted); }
code { background: var(--pink-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }

.quick-answer { position: relative; background: linear-gradient(180deg, #fff, #fff4f9); border: 2px solid var(--pink-soft); border-left: 6px solid var(--pink); border-radius: 14px; padding: 15px 18px; margin: 0 0 20px; box-shadow: var(--shadow-sm); }
.quick-answer p { margin: 0; }
.qa-stamp { display: inline-block; position: absolute; right: 12px; top: -12px; background: #c92d6e; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; border-radius: 999px; padding: 3px 11px; }
.art-lead { font-size: 17.5px; color: #6b4b5c; font-weight: 600; margin: 6px 0 4px; max-width: 74ch; }
.art-meta { font-size: 13px; color: var(--muted); margin: 0 0 18px; }

/* ---------- TOC ---------- */
.toc { position: sticky; top: 92px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; }
.toc .overline { display: block; margin-bottom: 8px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc-list a { display: block; font-size: 14px; color: var(--ink); text-decoration: none; padding: 5px 9px; border-radius: 9px; border-left: 3px solid transparent; opacity: .92; }
.toc-list a:hover { background: var(--pink-soft); border-left-color: var(--pink); opacity: 1; }

/* ---------- all guides / misc ---------- */
.all-guides { margin-top: 34px; }
.all-guides h2 { font-family: var(--font-head); font-size: 1.3rem; }
.muted { color: var(--muted); }
.ribbon { display: none; }

/* ---------- ads（桌面指针门控：移动端不加载） ---------- */
@media (hover: hover) and (pointer: fine) {
  .ad-slot { display: flex; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .ad-slot { display: none; }
}
.ad-slot { justify-content: center; margin: 26px auto; max-width: 728px; min-height: 60px; }
.ad-inner { width: 100%; display: flex; justify-content: center; min-height: 60px; overflow: hidden; }
.ad-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- footer ---------- */
.foot { margin-top: 48px; background: #46283a; color: #ffe7f1; padding: 30px 0 22px; border-top: 6px solid var(--pink); }
.foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.disclaimer { margin: 0; font-size: 14.5px; color: #f3c9dc; max-width: 780px; }
.foot-links { margin: 0; font-size: 14px; }
.foot-links a { color: #ffd9e9; }
.foot-links a:hover { color: #fff; }
.foot .muted { color: #cf9cb4; font-size: 13px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .bar { flex-wrap: wrap; padding: 8px 0; }
  .nav { margin-left: 0; width: 100%; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .nav ul { flex-wrap: nowrap; }
  .nav .kids { position: static; display: flex; border: 0; box-shadow: none; padding: 0; margin: 0; }
  .hero-in { padding: 110px 20px 24px; }
  article { padding: 22px 18px 26px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .cta { margin-left: 0; }
}
