:root {
  --color-primary: #E8A598;
  --color-primary-dark: #D68B82;
  --color-secondary: #8BA4B4;
  --color-text: #3E2C26;
  --color-text-light: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAF7F5;
  --color-bg-warm: #F4DAD6;
  --color-footer: #2C2422;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(62, 44, 38, 0.08);
  --shadow-hover: 0 12px 32px rgba(62, 44, 38, 0.14);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.section-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 165, 152, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232, 165, 152, 0.45);
}

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

.btn-outline:hover {
  background: var(--color-text);
  color: #fff;
  transform: translateY(-2px);
}

.text-accent {
  color: var(--color-primary-dark);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(62, 44, 38, 0.06);
  transition: box-shadow 0.3s var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(62, 44, 38, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 86px;
  width: auto;
  max-width: none;
}

.main-nav {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 4px 0;
}

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

.main-nav a:hover::after {
  width: 100%;
}

.header-cta {
  padding: 10px 24px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: linear-gradient(135deg, #FFF9F8 0%, #FAF7F5 50%, #F4DAD6 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 165, 152, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s var(--transition) both;
}

.hero-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--color-primary-dark);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(232, 165, 152, 0.12);
  border-radius: 100px;
}

.hero-title {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 17px;
  color: var(--color-text-light);
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  position: relative;
  animation: fadeInUp 0.8s 0.2s var(--transition) both;
}

.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: transform 0.5s var(--transition);
}

.hero-visual:hover img {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll a {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text);
  border-radius: 12px;
  position: relative;
}

.hero-scroll a span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--color-text);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 1.8s infinite;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 2px solid var(--color-bg-warm);
  border-radius: var(--radius);
  z-index: -1;
}

.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-content {
  animation: fadeInUp 0.6s var(--transition) both;
  animation-play-state: paused;
}

.about-content.in-view {
  animation-play-state: running;
}

.about-text {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.feature-icon {
  color: var(--color-primary);
  font-size: 12px;
}

/* Courses */
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.course-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

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

.course-image {
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.course-card:hover .course-image img {
  transform: scale(1.04);
}

.course-body {
  padding: 28px;
}

.course-body h3 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
  margin-bottom: 12px;
}

.course-body p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-tags span {
  font-size: 13px;
  padding: 6px 12px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 100px;
}

/* Works */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
}

.work-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.5s var(--transition);
}

.work-item:hover img {
  transform: scale(1.03);
}

.work-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(62, 44, 38, 0.75));
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s var(--transition);
}

.work-item:hover figcaption {
  transform: translateY(0);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}

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

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 15px;
  color: var(--color-text-light);
}

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 72px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  text-align: center;
}

.footer-brand img {
  height: 96px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.95;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 260px;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 24px;
}

.footer-nav ul,
.footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  transition: color 0.3s var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.footer-contact li span:first-child {
  color: rgba(255, 255, 255, 0.4);
  min-width: 36px;
}

.footer-contact li:last-child span:last-child {
  white-space: nowrap;
}

.footer-bottom {
  padding: 24px 0;
  background: rgba(0, 0, 0, 0.15);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-icp a {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  transition: color 0.3s var(--transition);
}

.footer-icp a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  80% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    transform: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .course-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-contact li:last-child span:last-child {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .header-inner {
    height: 96px;
  }

  .logo img {
    height: 72px;
  }

  .main-nav {
    position: fixed;
    top: 96px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 24px;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s var(--transition);
    box-shadow: 0 8px 24px rgba(62, 44, 38, 0.08);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .work-item figcaption {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(62, 44, 38, 0.6));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-nav ul,
  .footer-contact ul {
    align-items: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 24px;
  }

  .btn {
    padding: 12px 24px;
    width: 100%;
  }
}

/* Preview watermark */
.preview-watermark {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-watermark span {
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(128, 128, 128, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transform: rotate(-30deg);
  white-space: nowrap;
  user-select: none;
}
