/* picac.pics — 绯樱映昼品牌体验站 */
:root {
  --rose: #e84393;
  --rose-deep: #c2185b;
  --rose-light: #fd79a8;
  --peach: #ff8fab;
  --cream: #fff5f7;
  --cream-warm: #ffe8ee;
  --ink: #2d1b2e;
  --ink-mid: #5c3d52;
  --ink-soft: #8b6b7a;
  --white: #ffffff;
  --gold: #f9a825;
  --line: rgba(232, 67, 147, 0.14);
  --shadow: 0 8px 32px rgba(194, 24, 91, 0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 56px;
  --sticky-ads-h: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "STSong", "SimSun", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.9;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + var(--sticky-ads-h));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(253, 121, 168, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(255, 143, 171, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(232, 67, 147, 0.06), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--rose-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1300;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 20px rgba(194, 24, 91, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(232, 67, 147, 0.25);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.98rem; color: var(--rose-deep); letter-spacing: 0.03em; }
.brand-text span { font-size: 0.68rem; color: var(--ink-soft); }

.main-nav {
  display: none;
  gap: 4px;
}

.main-nav a {
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--ink-mid);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--cream-warm);
  color: var(--rose-deep);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--rose-deep);
  font-size: 1.2rem;
  cursor: pointer;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: var(--white) !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 67, 147, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232, 67, 147, 0.45);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--rose-deep) !important;
  border: 2px solid var(--rose-light);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--cream-warm);
  color: var(--rose-deep) !important;
}

.nav-btn-dl { display: none; }

/* Sticky ads */
.sticky-ads-wrap {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.sticky-ads-wrap.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Ads block */
.ads-block {
  background: linear-gradient(180deg, var(--cream-warm), var(--cream));
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}

#ads, #sticky-ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  background: transparent;
}

#ads > div, #sticky-ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(25% - 8px);
  box-sizing: border-box;
}

#ads img, #sticky-ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(45, 27, 46, 0.1);
  transition: transform 0.18s, box-shadow 0.18s;
  border: none;
  background: var(--white);
}

#ads a, #sticky-ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover, #sticky-ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(45, 27, 46, 0.15);
}

#ads figcaption, #sticky-ads figcaption,
#ads .caption, #sticky-ads .caption {
  height: 15px;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main sections */
main { padding-bottom: 48px; }

.hero-panel {
  padding: 36px 0 28px;
  text-align: center;
}

.hero-panel .eyebrow {
  display: inline-block;
  padding: 4px 14px;
  background: var(--cream-warm);
  color: var(--rose-deep);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.hero-panel h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 18px;
  font-weight: 700;
}

.hero-panel .lead {
  font-size: 0.95rem;
  color: var(--ink-mid);
  max-width: 720px;
  margin: 0 auto 22px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-block {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.section-block:last-child { border-bottom: none; }

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rose);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-block h3 {
  font-size: 1.05rem;
  color: var(--rose-deep);
  margin: 20px 0 10px;
}

.section-block p {
  font-size: 0.93rem;
  color: var(--ink-mid);
  margin-bottom: 14px;
  text-align: justify;
}

.section-block ul, .section-block ol {
  margin: 12px 0 16px 20px;
  color: var(--ink-mid);
  font-size: 0.93rem;
}

.section-block li { margin-bottom: 8px; }

/* Cards */
.card-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(194, 24, 91, 0.12);
}

.feature-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feature-card strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.feature-card span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* Visual layouts */
.media-row {
  display: grid;
  gap: 20px;
  margin: 22px 0;
  align-items: start;
}

.media-row .visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.media-row .visual img { width: 100%; }

.media-row .visual figcaption {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: var(--white);
  text-align: center;
}

.media-row.reverse .visual { order: 2; }

.highlight-box {
  background: linear-gradient(135deg, var(--cream-warm), var(--white));
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 18px 0;
}

.highlight-box p { margin-bottom: 0; }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--rose); }
.breadcrumb span { margin: 0 6px; }

/* Sub pages */
.page-hero {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  color: var(--ink);
  margin-bottom: 10px;
}

.page-hero .meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.legal-content h2 {
  font-size: 1.15rem;
  color: var(--rose-deep);
  margin: 28px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--line);
}

.legal-content h3 {
  font-size: 1rem;
  color: var(--ink);
  margin: 20px 0 10px;
}

.legal-content p, .legal-content li {
  font-size: 0.9rem;
  color: var(--ink-mid);
  margin-bottom: 12px;
}

/* Error pages */
.error-page {
  text-align: center;
  padding: 60px 20px 80px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--peach));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.error-page p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 32px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  font-size: 0.88rem;
  color: var(--rose-deep);
  margin-bottom: 10px;
}

.footer-grid a, .footer-grid p {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; }
  .nav-btn-dl { display: inline-flex; }

  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

  .media-row {
    grid-template-columns: 1fr 1fr;
  }

  .media-row.wide-text {
    grid-template-columns: 7fr 3fr;
  }

  .media-row.wide-text.reverse {
    grid-template-columns: 3fr 7fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #ads > div, #sticky-ads > div { width: calc(12.5% - 8px); }
  #ads img, #sticky-ads img { width: 72px; height: 72px; }
}

/* Mobile nav open */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 18px 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1299;
}

@media (min-width: 768px) {
  .main-nav.open {
    position: static;
    flex-direction: row;
    padding: 0;
    border: none;
    box-shadow: none;
  }
}
