/* Pickle English APP — paocaienglish.com */

:root {
  --navy: #0c3d7a;
  --navy-deep: #082958;
  --ink: #1a2a3a;
  --ink-soft: #5a6b7c;
  --lime: #9bc53d;
  --lime-deep: #7ea32e;
  --orange: #f26522;
  --orange-hover: #d95518;
  --sky: #00adef;
  --magenta: #e91e8c;
  --yellow: #ffd200;
  --paper: #f4f6f8;
  --paper-warm: #fafbf9;
  --surface: #ffffff;
  --line: #d5dde5;
  --white: #ffffff;
  --font-display: "Nunito", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1080px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--orange);
}

.site-wrap {
  overflow-x: hidden;
}

.container-pe {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

@media (max-width: 575.98px) {
  .container-pe {
    width: min(100% - 1.5rem, var(--max));
  }
}

/* ——— Nav ——— */
.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark:hover {
  color: var(--navy);
  opacity: 0.88;
}

.brand-mark img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}

.brand-mark .app-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-left: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--lime);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0.26rem auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(0.32rem) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-0.32rem) rotate(-45deg);
}

@media (max-width: 767.98px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-width: 11rem;
    padding: 0.4rem 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }
}

.page-inner .site-nav {
  position: relative;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--paper-warm);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(155, 197, 61, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 80%, rgba(0, 173, 239, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 30% 25% at 60% 90%, rgba(242, 101, 34, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, #fafbf9 0%, #eef3f7 55%, #e8f0e4 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero-dots span {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: dotFloat 7s ease-in-out infinite alternate;
}

.hero-dots span:nth-child(1) {
  width: 12px;
  height: 12px;
  background: var(--yellow);
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}
.hero-dots span:nth-child(2) {
  width: 10px;
  height: 10px;
  background: var(--sky);
  top: 28%;
  right: 18%;
  animation-delay: 0.8s;
}
.hero-dots span:nth-child(3) {
  width: 8px;
  height: 8px;
  background: var(--magenta);
  bottom: 22%;
  left: 22%;
  animation-delay: 1.4s;
}
.hero-dots span:nth-child(4) {
  width: 11px;
  height: 11px;
  background: var(--orange);
  top: 55%;
  right: 12%;
  animation-delay: 0.4s;
}

@keyframes dotFloat {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-14px);
  }
}

.hero-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 575.98px) {
  .hero-grid {
    width: min(100% - 1.5rem, var(--max));
    padding: 5.75rem 0 3rem;
  }
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: heroPop 0.9s var(--ease) 0.1s forwards;
}

.hero-logo-wrap img {
  width: min(100%, 320px);
  filter: drop-shadow(0 18px 40px rgba(12, 61, 122, 0.12));
  animation: logoBob 5s ease-in-out infinite alternate;
}

@keyframes logoBob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

@keyframes heroPop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-copy {
  opacity: 0;
  transform: translateY(22px);
  animation: heroPop 0.9s var(--ease) 0.28s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.hero-brand .app {
  display: inline-block;
  font-size: 0.42em;
  vertical-align: super;
  color: var(--orange);
  letter-spacing: 0.04em;
  margin-left: 0.15em;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 0.7rem;
  max-width: 18em;
}

.hero-lead {
  margin: 0 0 1.85rem;
  max-width: 28em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.btn-pe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-secondary:hover {
  background: rgba(12, 61, 122, 0.06);
  color: var(--navy);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn-pe:hover .btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 991.98px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .hero-copy {
    order: 2;
  }

  .hero-logo-wrap {
    order: 1;
  }

  .hero-logo-wrap img {
    width: min(100%, 240px);
  }

  .hero-headline,
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 0.6rem;
}

.section-desc {
  margin: 0;
  max-width: 36em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 2.25rem;
}

/* ——— Library ——— */
.library {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book-rows {
  display: grid;
  gap: 0;
}

.book-group {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.book-group:first-child {
  border-top: none;
  padding-top: 0;
}

.book-group h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.book-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.book-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.book-chip .spine {
  width: 0.35rem;
  height: 1.35rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.book-chip[data-c="1"] .spine {
  background: var(--lime);
}
.book-chip[data-c="2"] .spine {
  background: var(--sky);
}
.book-chip[data-c="3"] .spine {
  background: var(--orange);
}
.book-chip[data-c="4"] .spine {
  background: var(--magenta);
}
.book-chip[data-c="5"] .spine {
  background: var(--navy);
}
.book-chip[data-c="6"] .spine {
  background: var(--yellow);
}

/* ——— Why ——— */
.why {
  background: var(--paper);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border: none;
}

.why-list li {
  padding: 0;
  border: none;
}

.why-list .mark {
  display: block;
  width: 2.5rem;
  height: 0.35rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  background: var(--lime);
}

.why-list li:nth-child(2) .mark {
  background: var(--orange);
}

.why-list li:nth-child(3) .mark {
  background: var(--sky);
}

.why-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.45rem;
  letter-spacing: -0.015em;
}

.why-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 767.98px) {
  .why-list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ——— Blog (image + text) ——— */
.blog {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-item {
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.blog-item:first-child {
  border-top: 1px solid var(--line);
}

.blog-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-item:nth-child(2) {
  transition-delay: 0.08s;
}
.blog-item:nth-child(3) {
  transition-delay: 0.16s;
}
.blog-item:nth-child(4) {
  transition-delay: 0.24s;
}

.blog-row {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.35rem;
  align-items: center;
  padding: 1.35rem 0;
  color: inherit;
}

a.blog-row:hover .blog-title {
  color: var(--orange);
}

.blog-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
  background: var(--thumb-bg, linear-gradient(135deg, #9bc53d, #0c3d7a));
}

.blog-thumb[data-art="1"] {
  --thumb-bg: linear-gradient(145deg, #9bc53d 0%, #7ea32e 40%, #0c3d7a 100%);
}
.blog-thumb[data-art="2"] {
  --thumb-bg: linear-gradient(145deg, #00adef 0%, #0c3d7a 55%, #f26522 100%);
}
.blog-thumb[data-art="3"] {
  --thumb-bg: linear-gradient(145deg, #ffd200 0%, #f26522 45%, #e91e8c 100%);
}
.blog-thumb[data-art="4"] {
  --thumb-bg: linear-gradient(145deg, #0c3d7a 0%, #00adef 50%, #9bc53d 100%);
}

.blog-thumb .label {
  position: absolute;
  z-index: 1;
  left: 0.75rem;
  bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--white);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.blog-body {
  min-width: 0;
}

.blog-date {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  transition: color 0.25s var(--ease);
}

.blog-excerpt {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-static .blog-row {
  cursor: default;
}

@media (max-width: 575.98px) {
  .blog-row {
    grid-template-columns: 6.5rem 1fr;
    gap: 0.9rem;
    padding: 1.15rem 0;
  }

  .blog-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.88rem;
  }
}

/* ——— Page header ——— */
.page-header {
  background: linear-gradient(135deg, #0c3d7a 0%, #0a4f8a 55%, #1a6b5c 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(155, 197, 61, 0.25);
  top: -40px;
  right: 10%;
}

.page-header .container-pe {
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  color: rgba(255, 255, 255, 0.55);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.page-header p {
  margin: 0;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.75);
}

/* ——— Article ——— */
.article-shell {
  padding: 3rem 0 4.5rem;
  background: var(--paper-warm);
}

.article-body {
  max-width: 40rem;
  margin: 0 auto;
}

.article-hero-art {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.article-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--thumb-bg);
}

.article-hero-art[data-art="1"] {
  --thumb-bg: linear-gradient(145deg, #9bc53d 0%, #7ea32e 40%, #0c3d7a 100%);
}
.article-hero-art[data-art="2"] {
  --thumb-bg: linear-gradient(145deg, #00adef 0%, #0c3d7a 55%, #f26522 100%);
}
.article-hero-art[data-art="3"] {
  --thumb-bg: linear-gradient(145deg, #ffd200 0%, #f26522 45%, #e91e8c 100%);
}
.article-hero-art[data-art="4"] {
  --thumb-bg: linear-gradient(145deg, #0c3d7a 0%, #00adef 50%, #9bc53d 100%);
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.article-meta-bar .tag {
  color: var(--lime-deep);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.8rem;
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.article-body blockquote {
  margin: 1.75rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 4px solid var(--lime);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

.article-nav a {
  color: var(--ink-soft);
}

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

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: flex-end;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.footer-brand-row img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 0.2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.footer-tag {
  margin: 0;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--white);
}
