/* ===========================
   爱读客 IDUBOOK · Replica
   =========================== */

:root {
  --orange: #ff7a1a;
  --orange-soft: #ffb877;
  --ink: #1f2233;
  --ink-soft: #4a5066;
  --muted: #8a8fa3;
  --bg: #ffffff;
  --bg-soft: #fafaf7;
  --bg-cream: #fff7ec;
  --bg-mint: #f1f8f6;
  --bg-blue: #f3f5fb;
  --teal: #79d7ce;
  --red: #ff5252;
  --line: #ececec;
  --shadow: 0 18px 40px -20px rgba(20, 25, 60, 0.18);
  --radius: 14px;
  --max: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.navs {
  display: flex;
  gap: 8px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover { color: var(--orange); }

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-link.active {
  color: var(--orange);
  font-weight: 600;
}
.nav-link.active::after { width: 22px; }

/* ---------- Side dots ---------- */
.dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31, 34, 51, 0.18);
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
}
.dot:hover { background: var(--orange-soft); }
.dot.active { background: var(--orange); transform: scale(1.25); }
.dot span {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.dot:hover span { opacity: 1; }

/* ---------- Pages / Scroll snap ---------- */
.pages {
  height: 100vh;
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.pages::-webkit-scrollbar { width: 0; }

.page {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: var(--header-h);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 56px;
}

/* ---------- Section heads ---------- */
.section-eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--muted);
  font-weight: 500;
}
.section-title {
  margin: 8px 0 0;
  font-size: 38px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.title-bar {
  display: block;
  width: 44px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 18px;
}
.title-bar.center {
  margin-left: auto;
  margin-right: auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

/* ---------- Section 1: Home ---------- */
.page-home {
  background:
    radial-gradient(1100px 600px at 80% 10%, #fff1de 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 100%, #fff5e8 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
}

.hero {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}
.hero-logo img {
  height: 110px;
  width: auto;
  margin: 0 auto;
  animation: floatIn 0.9s ease both;
}
.hero-title {
  margin: 28px 0 0;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--ink);
  animation: floatIn 1s ease both 0.15s;
}
.hero-divider {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 22px auto;
  border-radius: 2px;
  animation: barIn 0.6s ease both 0.4s;
  transform-origin: center;
}
.hero-sub {
  margin: 0;
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--muted);
  text-transform: uppercase;
  animation: floatIn 1s ease both 0.55s;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid rgba(31, 34, 51, 0.35);
  border-radius: 12px;
}
.scroll-cue span {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes barIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

/* ---------- Section 2: About ---------- */
.page-about {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-cream) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 80px;
}
.about-text .section-eyebrow,
.about-text .section-title { text-align: left; }
.about-desc {
  margin: 28px 0 16px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: 520px;
}
.about-highlight {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.about-highlight em {
  font-style: normal;
  color: var(--orange);
  font-size: 36px;
  font-weight: 700;
  margin: 0 6px;
  letter-spacing: 1px;
}

.about-illustration {
  position: relative;
  height: 360px;
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
}
.stack-card {
  position: absolute;
  width: 150px;
  height: 210px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--ink);
}
.stack-card span { text-transform: uppercase; }
.stack-1 {
  top: 50px; left: 20px;
  background: linear-gradient(160deg, #ffe3c2 0%, #ffd29a 100%);
  transform: rotate(-8deg);
}
.stack-2 {
  top: 70px; left: 130px;
  background: linear-gradient(160deg, #ffd09a 0%, #ff9b56 100%);
  color: #fff;
  z-index: 2;
  transform: rotate(2deg);
}
.stack-3 {
  top: 90px; left: 240px;
  background: linear-gradient(160deg, #cfe9e3 0%, #79d7ce 100%);
  color: var(--ink);
  transform: rotate(10deg);
}
.stack-orb {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd29a, #ff7a1a);
  bottom: 10px;
  left: 30px;
  opacity: 0.22;
  filter: blur(20px);
}

/* ---------- Section 3: Business ---------- */
.page-business {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-mint) 100%);
}
.business-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.business-img {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.business-img img { width: 100%; height: auto; }

.business-cards {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.biz-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.biz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -22px rgba(20, 25, 60, 0.28);
}
.biz-num {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 122, 26, 0.12);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -2px;
}
.biz-title {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--ink);
  font-weight: 700;
}
.biz-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background: var(--orange);
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: -3px;
}
.biz-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- Section 4: Products ---------- */
.page-products {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}
.products-lead {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.products-lead em {
  font-style: normal;
  color: var(--orange);
  font-weight: 700;
  margin: 0 4px;
}

.products-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.phone-mock {
  margin: 0;
  flex: 0 0 auto;
  transform: translateY(0) scale(0.94);
  transition: transform 0.4s ease;
  filter: drop-shadow(0 25px 35px rgba(20, 25, 60, 0.18));
  text-align: center;
}
.phone-mock.alt { transform: translateY(-22px) scale(1); }
.phone-mock:hover { transform: translateY(-30px) scale(1.02); }
.phone-mock.alt:hover { transform: translateY(-38px) scale(1.04); }
.phone-mock figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 2px;
}

.phone-frame {
  width: 240px;
  height: 500px;
  background: #1f2233;
  border-radius: 36px;
  padding: 8px;
  position: relative;
  box-shadow: inset 0 0 0 2px #2c3046;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.phone-home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(-50%);
}

/* ---------- Section 5: Advantages ---------- */
.page-advantages {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-blue) 100%);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.adv-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.adv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -22px rgba(20, 25, 60, 0.3);
}
.adv-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff5e8 0%, #ffe3c2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.adv-icon img { width: 52px; height: 52px; }
.adv-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.adv-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- Section 6: Contact ---------- */
.page-contact {
  background: linear-gradient(180deg, #ffffff 0%, #fff5e8 100%);
  align-items: stretch;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 0;
}
.page-contact .container {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.page-contact .footer { margin-top: auto; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.company-name {
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}
.contact-list { margin: 0 0 24px; }
.contact-list li {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink-soft);
}
.contact-list .label {
  color: var(--ink);
  font-weight: 600;
  min-width: 90px;
}
.contact-list .value { color: var(--ink-soft); }

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 480px;
}
.map-wrap img { width: 100%; display: block; }

.contact-codes {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 8px;
}
.qr {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
}
.qr img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}
.qr figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}

.footer {
  margin-top: 50px;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(0,0,0,0.06);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.footer a { color: var(--muted); transition: color 0.2s ease; }
.footer a:hover { color: var(--orange); }
.footer .sep { margin: 0 10px; opacity: 0.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header { padding: 0 24px; }
  .container { padding: 0 24px; }
  .navs { gap: 2px; }
  .nav-link { padding: 6px 10px; font-size: 14px; }
  .about-grid, .business-wrap, .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-illustration { height: 260px; }
  .adv-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-title { font-size: 38px; letter-spacing: 4px; }
  .hero-logo img { height: 80px; }
  .section-title { font-size: 28px; }
  .products-grid { flex-wrap: wrap; gap: 18px; }
  .phone-frame { width: 180px; height: 360px; }
  .dots { display: none; }
  .page { height: auto; min-height: 100vh; padding: calc(var(--header-h) + 40px) 0 60px; }
}

@media (max-width: 640px) {
  .navs { display: none; }
  .header { justify-content: center; }
  .hero-title { font-size: 28px; letter-spacing: 2px; }
  .stack-card { width: 140px; height: 190px; }
  .stack-1 { left: 10px; }
  .stack-2 { left: 90px; }
  .stack-3 { left: 170px; }
  .contact-codes { justify-content: center; flex-wrap: wrap; }
}
