:root {
  --bg: #f4f0e7;
  --paper: #fffdf9;
  --ink: #1c1916;
  --muted: #5f584e;
  --line: #e5ddd0;
  --blue: #1a6fc4;
  --blue-dark: #0e3f78;
  --navy: #122033;
  --soft: #eef5fb;
  --warn: #fff6e6;
  --warn-line: #efd7a8;
  --shadow: 0 16px 40px rgba(18, 32, 51, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

img { max-width: 100%; height: auto; }

.dock {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: block;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.nav {
  margin-left: auto;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.nav-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px 18px;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--blue);
}

.nav-menu a[aria-current="page"] {
  font-weight: 700;
}

#ads:empty { display: none; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 64px;
}

.sheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px 40px;
  box-shadow: var(--shadow);
}

h1, h2, h3 {
  font-family: "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  line-height: 1.35;
  font-weight: 700;
}

h1 { font-size: 32px; margin: 8px 0 12px; letter-spacing: 0.01em; }
h2 { font-size: 26px; margin: 34px 0 10px; color: var(--blue-dark); }
h3 { font-size: 20px; margin: 22px 0 8px; }

.lead { font-size: 18px; color: #2d2924; margin-top: 0; }

.age, .note {
  border-radius: 14px;
  padding: 12px 14px;
  margin: 16px 0 8px;
}

.age { background: var(--warn); border: 1px solid var(--warn-line); }
.note { background: var(--soft); border-left: 4px solid var(--blue); }

.pair {
  display: grid;
  gap: 18px;
  align-items: start;
  margin: 28px 0;
}

figure.phone {
  margin: 0 auto;
  width: min(100%, 320px);
  background: var(--navy);
  border-radius: 28px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
}

figure.phone img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

figure.phone figcaption {
  color: #d7deea;
  font-size: 13px;
  line-height: 1.55;
  padding: 8px 6px 2px;
}

.table-wrap { overflow-x: auto; margin: 12px 0 18px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { color: var(--muted); font-weight: 650; white-space: nowrap; }

ol, ul { padding-left: 1.3em; }
li { margin: 6px 0; }

.site-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 18px 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-foot a { margin-right: 8px; }

.miss {
  text-align: center;
  padding: 28px 10px 10px;
}

.miss .code {
  font-family: "Palatino Linotype", "Songti SC", serif;
  font-size: 72px;
  line-height: 1;
  margin: 0;
  color: var(--blue-dark);
}

.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 18px;
}

.btn:hover { background: var(--blue-dark); color: #fff; }

@media (min-width: 900px) {
  .sheet { padding: 40px 48px 56px; }
  h1 { font-size: 40px; }
  .pair { grid-template-columns: 300px minmax(0, 1fr); gap: 28px 36px; align-items: center; }
  .pair.flip { grid-template-columns: minmax(0, 1fr) 300px; }
  .pair.flip figure.phone { order: 2; }
}

@media (max-width: 860px) {
  .nav-btn { display: flex; }
  .nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu {
    display: none;
    position: absolute;
    z-index: 50;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 12px 12px;
    background: #fffdf9;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-menu a {
    padding: 12px 8px;
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .top { padding: 8px 12px; }
  .wrap { padding: 14px 12px 48px; }
  .sheet { padding: 18px 14px 28px; border-radius: 16px; }
}
