/* 喜拆拆盲盒 - 桌面端官网样式 */
:root {
  --bg: #fff9fb;
  --bg-card: #ffffff;
  --ink: #2a1f24;
  --muted: #6b5a62;
  --accent: #e84a7f;
  --accent-dark: #c12d62;
  --gold: #d4a017;
  --line: #f0e4ea;
  --shadow: 0 18px 50px rgba(232, 74, 127, 0.12);
  --radius: 16px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1180px, 92vw);
  margin-inline: auto;
}

/* 顶栏 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #ff9ec4);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-main a {
  color: var(--ink);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.header-cta {
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(232, 74, 127, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--accent-dark);
  border: 2px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 页脚 */
.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, #fff0f5 0%, #ffe8f0 100%);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 28ch;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* 通用区块 */
.section {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  margin-inline: auto;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #ffe0eb;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

/* 首页 Hero */
.hero {
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 182, 210, 0.45), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  color: var(--accent);
  font-weight: 800;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-box {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #ffe8f2 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 4rem;
  animation: float 5s ease-in-out infinite;
}

.hero-box:nth-child(1) {
  top: 0;
  right: 15%;
}

.hero-box:nth-child(2) {
  top: 100px;
  right: 45%;
  width: 140px;
  height: 140px;
  font-size: 2.5rem;
  animation-delay: -1.5s;
  background: linear-gradient(145deg, #fff8e7 0%, #ffe4a8 100%);
}

.hero-box:nth-child(3) {
  bottom: 0;
  right: 25%;
  width: 120px;
  height: 120px;
  font-size: 2rem;
  animation-delay: -3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffe8f0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 双栏内容 */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 65ch;
}

.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--muted);
  margin: 0 0 1rem;
}

.prose ul {
  color: var(--muted);
  padding-left: 1.25rem;
}

/* 时间线 */
.timeline {
  border-left: 3px solid var(--line);
  padding-left: 1.5rem;
  margin: 0;
}

.timeline li {
  list-style: none;
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline time {
  display: block;
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: #fff5f8;
  font-weight: 600;
  color: var(--ink);
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 300;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 联系表单 */
.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(232, 74, 127, 0.35);
  border-color: var(--accent);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* 系列页大卡片 */
.series-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (max-width: 700px) {
  .series-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.series-thumb {
  width: 220px;
  height: 160px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffe8f0, #ffd6e8);
  display: grid;
  place-items: center;
  font-size: 4rem;
  margin-inline: auto;
}

.series-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: #f5f0f2;
  color: var(--muted);
}

.badge-hot {
  background: #ffe0e0;
  color: #c62828;
}

/* 活动列表 */
.event-list article {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.event-list article:last-child {
  border-bottom: none;
}

.event-date {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
}

.event-date .d {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.event-date .m {
  font-size: 0.8rem;
  color: var(--muted);
}

/* 页内横幅 */
.page-banner {
  padding: 2.75rem 0;
  text-align: center;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ef 50%, #fff9e6 100%);
  border-bottom: 1px solid var(--line);
}

.page-banner h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
}

.page-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 50ch;
  margin-inline: auto;
}
