:root {
  --bg-deep: #2d0a0f;
  --bg-warm: #5c111a;
  --surface: #fff6f3;
  --surface-strong: #fff0ea;
  --text: #2a1013;
  --text-soft: #5f2f35;
  --accent: #c21f30;
  --accent-dark: #9f1624;
  --gold-soft: #f0c784;
  --line: rgba(194, 31, 48, 0.2);
  --shadow: 0 18px 45px rgba(36, 8, 12, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(240, 199, 132, 0.25), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(145deg, var(--bg-deep), var(--bg-warm));
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

a:focus-visible {
  outline: 3px solid rgba(240, 199, 132, 0.9);
  outline-offset: 3px;
}

.wrapper {
  width: min(1040px, 92%);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 5;
  background: #fff8f4;
  color: var(--accent-dark);
  padding: 0.7rem 0.95rem;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}

.bg-shape-left {
  width: 360px;
  height: 360px;
  background: rgba(240, 199, 132, 0.18);
  top: -120px;
  left: -80px;
}

.bg-shape-right {
  width: 420px;
  height: 420px;
  background: rgba(255, 242, 238, 0.16);
  bottom: -170px;
  right: -110px;
}

.site-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4.4rem 0 2rem;
}

.site-label {
  margin: 0;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-home-link {
  text-decoration: none;
}

.site-header h1 {
  margin: 0.4rem 0 0;
  color: #fff6f3;
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.15;
}

.subtitle {
  margin: 1rem auto 1.4rem;
  max-width: 680px;
  color: #ffe9dd;
  font-size: 1.05rem;
}

.hero-support {
  margin: 0 auto;
  max-width: 760px;
  color: rgba(255, 233, 221, 0.88);
  font-size: 0.98rem;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chinese-name {
  font-family: "Noto Serif SC", serif;
  font-weight: 700;
  color: var(--gold-soft);
}

.content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  padding: 0.6rem 0 2rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.3rem;
}

.panel h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

.panel p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.benefits-list {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.35rem;
}

.tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #fbe0d8;
  color: var(--accent-dark);
  border: 1px solid rgba(194, 31, 48, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.apps-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.app-card {
  border: 1px solid rgba(194, 31, 48, 0.16);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 1rem;
}

.app-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.app-card p {
  margin: 0 0 0.8rem;
  font-size: 0.96rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  border-radius: 10px;
  padding: 0.48rem 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.app-link:hover {
  background: var(--accent-dark);
}

.secondary-action {
  margin-left: 0.55rem;
}

.section-actions {
  margin-top: 1rem;
}

.outline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--accent-dark);
  border: 1px solid rgba(194, 31, 48, 0.35);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  background: #fff9f7;
  line-height: 1.2;
}

.outline-link:hover {
  background: #fcece7;
}

.muted {
  background: #fcece7;
}

.coming-soon {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.contact-card {
  margin-top: 0.9rem;
  background: var(--surface-strong);
  border: 1px solid rgba(194, 31, 48, 0.18);
  border-radius: 12px;
  padding: 1rem;
}

.contact-card p {
  margin: 0 0 0.5rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.mail-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
}

.social-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.social-link-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(194, 31, 48, 0.16);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

.social-link-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.social-link-card p {
  margin: 0.25rem 0 0;
  font-size: 0.94rem;
}

.social-link-card:hover {
  border-color: rgba(194, 31, 48, 0.32);
  background: #ffe9e2;
}

.social-link-card.is-disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.social-link-card.is-disabled:hover {
  border-color: rgba(194, 31, 48, 0.16);
  background: var(--surface-strong);
}

.social-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
}

.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.3rem 0 2rem;
  color: #ffe6d9;
}

.footer-content {
  border-top: 1px solid rgba(255, 233, 221, 0.22);
  padding-top: 1.2rem;
}

.footer-title {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 1.1rem;
  color: #fff3ee;
}

.footer-copy {
  margin: 0.45rem auto 0;
  max-width: 620px;
  color: rgba(255, 230, 217, 0.86);
}

.footer-links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #fff0e7;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 240, 231, 0.3);
}

.footer-links a:hover {
  border-color: rgba(255, 240, 231, 0.8);
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
}

.top-nav .site-label {
  margin: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.nav-link,
.top-nav .back-link {
  color: #ffe9dd;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  line-height: 1.2;
}

.nav-link:hover,
.top-nav .back-link:hover {
  border-color: rgba(255, 233, 221, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  border-color: rgba(255, 233, 221, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.article-list {
  display: grid;
  gap: 1rem;
}

.article-card {
  border: 1px solid rgba(194, 31, 48, 0.16);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 1rem;
}

.article-card h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.article-card .article-meta {
  margin: 0 0 0.65rem;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.article-tag {
  background: #fbe0d8;
  color: var(--accent-dark);
  border: 1px solid rgba(194, 31, 48, 0.2);
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-layout {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.article-breadcrumb {
  margin-top: 0;
  margin-bottom: 1rem;
}

.article-breadcrumb .back-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.article-breadcrumb .back-link:hover {
  text-decoration: underline;
}

/* About tutor section with profile photo */
.about-tutor {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin-top: 0.5rem;
}

.tutor-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 3px solid rgba(194, 31, 48, 0.2);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

@media (max-width: 480px) {
  .about-tutor {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.article-body {
  color: var(--text-soft);
}

.article-body h2,
.article-body h3 {
  color: var(--text);
  margin-top: 1.3rem;
  margin-bottom: 0.5rem;
}

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

.article-body ul {
  margin-top: 0.4rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 600ms ease forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 160ms;
}

.delay-3 {
  animation-delay: 240ms;
}

.delay-4 {
  animation-delay: 320ms;
}

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

@media (max-width: 640px) {
  .site-header {
    padding-top: 3.1rem;
  }

  .top-nav {
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
  }

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

  .secondary-action {
    margin-left: 0;
  }

  .panel {
    padding: 1.2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a {
    transition: none;
  }

  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
