/* 杭州灯语者 — 艺术文化感 · Mobile-first */
:root {
  --bg-deep: #0f0e12;
  --bg-card: rgba(28, 26, 34, 0.72);
  --text: #f5f0e8;
  --text-muted: #b8aea0;
  --accent: #e8b86d;
  --accent-soft: rgba(232, 184, 109, 0.18);
  --line: rgba(232, 184, 109, 0.25);
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", serif;
  --font-sans: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --radius: 12px;
  --header-h: 64px;
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.85;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 14, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-desktop a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.nav-desktop a:hover {
  color: var(--accent);
  opacity: 1;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--accent);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  padding: 1.5rem;
  background: rgba(15, 14, 18, 0.97);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile li {
  border-bottom: 1px solid var(--line);
}

.nav-mobile a {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  font-size: 1.05rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("hero-bg.jpg") center / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 14, 18, 0.92) 0%,
    rgba(15, 14, 18, 0.55) 45%,
    rgba(15, 14, 18, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 3rem 4rem;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #1a1510;
  border-color: var(--accent);
}

.btn-primary:hover {
  opacity: 1;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

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

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

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

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0;
  font-weight: 600;
}

.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

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

.about-text p:last-child {
  margin-bottom: 0;
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Services */
.services {
  background: linear-gradient(180deg, transparent, rgba(232, 184, 109, 0.04));
}

.service-grid {
  display: grid;
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.service-card .subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--accent);
}

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

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  color: var(--accent);
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1.5rem;
}

.why-item {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.why-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* Contact strip */
.contact-strip {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
}

.contact-strip p {
  margin: 0.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-strip strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
}

.footer-copy {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-beian {
  display: flex;
  justify-content: center;
  margin: 0 0 1rem;
}

.footer-beian a {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

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

.footer-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Tablet+ */
@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

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

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .service-grid:has(.service-card:nth-child(5)) {
    grid-template-columns: repeat(6, 1fr);
  }

  .service-grid .service-card:nth-child(1),
  .service-grid .service-card:nth-child(2),
  .service-grid .service-card:nth-child(3) {
    grid-column: span 2;
  }

  .service-grid .service-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .service-grid .service-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
