:root {
  --bg: #0b0a09;
  --bg-elev: #121110;
  --bg-card: #161412;
  --ink: #f3ece3;
  --muted: #a89a8c;
  --gold: #c9a27a;
  --gold-bright: #e4c8a4;
  --line: rgba(201, 162, 122, 0.22);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.06;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 6vw;
  background: rgba(11, 10, 9, 0.88);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  background: #fff;
  border-radius: 4px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.18em;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--muted);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  padding: 8px 12px;
  letter-spacing: 0.28em;
  font-size: 11px;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.55) 0%, rgba(11, 10, 9, 0.72) 48%, #0b0a09 100%),
    url("../assets/images/hero-set.png") center/cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 860px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: 0.12em;
  line-height: 1.45;
  margin: 0 0 22px;
}

.hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 42px;
  font-size: 15px;
  font-weight: 300;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 14px 22px;
  border: 1px solid var(--gold);
  letter-spacing: 0.28em;
  font-size: 11px;
  transition: 0.28s ease;
}

.btn.primary {
  background: var(--gold);
  color: #16110c;
}

.btn.ghost {
  color: var(--gold-bright);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 122, 0.18);
}

.section {
  padding: 110px 7vw;
  position: relative;
}

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: 0.1em;
  margin: 8px 0 16px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

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

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, #171513, #12100e);
  border: 1px solid var(--line);
  padding: 32px 26px;
  min-height: 188px;
}

.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.14em;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.card .tag {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-bottom: 16px;
}

.inquiry-list {
  display: grid;
  gap: 18px;
}

.inquiry-card {
  min-height: 0;
}

.inquiry-card p {
  margin-bottom: 8px;
}

.login-box {
  max-width: 420px;
}

.login-box h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 8px 0 16px;
}

.login-box p {
  color: var(--muted);
}

.login-error {
  color: #e8b4b4;
  font-size: 13px;
  margin-top: 12px;
}

.featured {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.featured-media {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #0e0d0b;
}

.featured-media img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.featured-copy {
  padding: 72px 7vw 72px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-copy h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.12em;
  margin: 10px 0 18px;
}

.featured-copy p {
  color: var(--muted);
  max-width: 520px;
}

.about-visual {
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.18), rgba(11, 10, 9, 0.62)),
    url("../assets/images/hero-set.png") center/cover no-repeat;
  border: 1px solid var(--line);
}

.quote {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: var(--gold-bright);
}

.intro {
  max-width: 760px;
}

.intro p {
  color: var(--muted);
  margin: 0 0 16px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.work-card img[alt="《雨落十七夏》"] {
  object-fit: contain;
  background: #0e0d0b;
}

.work-card .meta {
  padding: 22px 20px 26px;
}

.work-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 6px 0 8px;
  letter-spacing: 0.16em;
}

.work-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.detail {
  padding-top: 128px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
}

.poster {
  width: 100%;
  max-width: 380px;
  height: auto;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0e0d0b;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.info-list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.info-list span {
  width: 88px;
  color: var(--gold);
  letter-spacing: 0.18em;
}

.notice {
  border: 1px solid var(--line);
  background: rgba(201, 162, 122, 0.06);
  color: var(--ink);
  padding: 16px 18px;
  font-size: 14px;
  margin-bottom: 8px;
}

.principle {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.principle p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
  max-width: 560px;
}

.featured-link {
  text-decoration: none;
}

.featured-link:hover {
  border-color: var(--gold);
}

.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.partner-list span {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-bright);
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  font-family: inherit;
}

.contact-form option {
  background: #161412;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.footer {
  padding: 48px 7vw 36px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: #161412;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 12px 18px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 7vw;
    flex-direction: column;
    background: #121110;
    border: 1px solid var(--line);
    padding: 18px 22px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .grid-3,
  .grid-2,
  .featured,
  .works-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .featured-copy {
    padding: 40px 7vw 64px;
  }

  .footer {
    flex-direction: column;
  }
}
