:root {
  --bg: #f2efe9;
  --bg-soft: #e8e4dc;
  --panel: #fbfaf7;
  --line: rgba(20, 21, 26, 0.1);
  --text: #14151a;
  --muted: #6a6761;
  --brand: #1a1f2a;
  --brand-2: #2a3140;
  --accent: #8c7349;
  --ok: #2f6b4f;
  --warn: #9a7a2f;
  --danger: #a34444;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(20, 21, 26, 0.08);
  --font-display: "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(1000px 520px at 0% 0%, rgba(140, 115, 73, 0.08), transparent 55%),
    radial-gradient(800px 480px at 100% 10%, rgba(26, 31, 42, 0.05), transparent 50%),
    linear-gradient(180deg, #f5f2ec 0%, #ece8e0 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.shell { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(242, 239, 233, 0.86);
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  display: inline-flex; gap: .55rem; align-items: center;
}
.brand-mark {
  width: 1.35rem; height: 1.35rem;
  border-radius: 0.3rem;
  background: linear-gradient(145deg, var(--brand), var(--accent));
}
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav span { color: var(--muted); font-size: .92rem; }
.nav a:hover { color: var(--text); }
.credit-pill {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: .35rem .75rem;
  border-radius: 999px;
  color: var(--brand);
  font-weight: 600;
  font-size: .85rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: .8rem 1.35rem;
  font-weight: 700;
  font-family: inherit;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary {
  color: #f7f4ee;
  background: var(--brand);
}
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}
.btn-danger { background: rgba(163,68,68,.1); color: var(--danger); border: 1px solid rgba(163,68,68,.28); }
.btn-sm { padding: .45rem .85rem; font-size: .85rem; }
.btn-xl { padding: .95rem 1.7rem; font-size: 1.02rem; letter-spacing: .04em; }

/* ========== Landing: cinematic ========== */
.page-landing {
  background: #07080a;
  color: #f3f1ec;
}
.page-landing .site-header {
  position: absolute; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  backdrop-filter: none;
  border-bottom: 0;
}
.page-landing .brand,
.page-landing .nav a { color: rgba(243,241,236,.9); }
.page-landing .nav a:hover { color: #fff; }
.page-landing .btn-ghost,
.page-landing .nav-login {
  color: #f3f1ec !important;
  border: 1px solid rgba(243,241,236,.55);
  background: rgba(255,255,255,.06);
}
.page-landing .btn-ghost:hover,
.page-landing .nav-login:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(243,241,236,.85);
  color: #fff !important;
}
.page-landing .btn-primary,
.page-landing .nav-cta {
  background: #d4a24c !important;
  color: #0a0b0d !important;
  border: 1px solid #d4a24c;
}
.page-landing .btn-primary:hover,
.page-landing .nav-cta:hover {
  background: #e0b45f !important;
  color: #0a0b0d !important;
}
.page-landing .site-footer {
  background: #050506;
  color: rgba(243,241,236,.55);
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 0;
  padding: 3rem 0 2.2rem;
}
.land-main { margin: 0; width: 100%; max-width: none; }

.land-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.land-hero-media {
  position: absolute; inset: 0;
  animation: hero-zoom 22s ease-in-out infinite alternate;
}
.land-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.land-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(5,6,8,.88) 0%, rgba(5,6,8,.55) 38%, rgba(5,6,8,.15) 68%, rgba(5,6,8,.45) 100%),
    linear-gradient(180deg, rgba(5,6,8,.35) 0%, transparent 30%, rgba(5,6,8,.75) 100%);
  pointer-events: none;
}
.land-hero-copy {
  position: relative;
  z-index: 2;
  padding: 8rem 0 5rem;
  max-width: 40rem;
  animation: rise 1s cubic-bezier(.16,1,.3,1) both;
}
.land-brand {
  margin: 0 0 1rem;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .92;
  background: linear-gradient(120deg, #fff 20%, #d8b36a 55%, #f3f1ec 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.land-hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  color: rgba(243,241,236,.95);
}
.land-lead {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: rgba(243,241,236,.68);
  font-size: 1.08rem;
  line-height: 1.7;
}
.land-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
}
.land-scroll-hint span {
  display: block;
  width: 1px;
  height: 2.4rem;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

.land-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.08);
  background: #0b0c0f;
  padding: .95rem 0;
}
.land-marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(243,241,236,.38);
}
.land-marquee-track span { white-space: nowrap; }

.land-gallery { padding: 5rem 0 3.5rem; }
.land-section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}
.land-section-head h2 {
  margin: 0 0 .65rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -.03em;
  font-weight: 800;
}
.land-section-head p {
  margin: 0;
  color: rgba(243,241,236,.55);
  line-height: 1.7;
  font-size: 1.05rem;
}
.land-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: .9rem;
  align-items: stretch;
}
.land-shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #15161a;
  min-height: 320px;
  animation: rise .9s ease both;
}
.land-shot:nth-child(1) { animation-delay: .05s; }
.land-shot:nth-child(2) { animation-delay: .12s; }
.land-shot:nth-child(3) { animation-delay: .18s; }
.land-shot-wide { min-height: 420px; }
.land-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.16,1,.3,1);
}
.land-shot:hover img { transform: scale(1.06); }
.land-shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.1rem 1.15rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243,241,236,.9);
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

.land-statement {
  padding: 5.5rem 0;
  background:
    radial-gradient(700px 280px at 20% 50%, rgba(212,162,76,.14), transparent 60%),
    #0b0c0f;
  border-block: 1px solid rgba(255,255,255,.06);
}
.land-statement-text {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  animation: rise .8s ease both;
}

.land-steps { padding: 4.8rem 0 3.5rem; }
.land-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.land-step-list li {
  display: grid;
  gap: .45rem;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(212,162,76,.55);
}
.land-step-list em {
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .18em;
  color: #d4a24c;
  font-weight: 700;
}
.land-step-list strong {
  font-size: 1.15rem;
  letter-spacing: -.01em;
}
.land-step-list span {
  color: rgba(243,241,236,.5);
  font-size: .92rem;
  line-height: 1.45;
}

.land-cta {
  padding: 4.5rem 0 5.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(212,162,76,.08)),
    #07080a;
}
.land-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.2rem 0 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.land-cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
  font-weight: 800;
}

.land-footer {
  display: grid;
  gap: 2rem;
}
.land-footer-brand strong {
  display: block;
  font-size: 1.2rem;
  color: #f3f1ec;
  margin-bottom: .55rem;
  letter-spacing: -.01em;
}
.land-footer-brand p {
  margin: 0;
  max-width: 34rem;
  line-height: 1.7;
  color: rgba(243,241,236,.55);
  font-size: .95rem;
}
.land-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 1.5rem;
}
.land-footer-cols h4 {
  margin: 0 0 .7rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(243,241,236,.4);
  font-weight: 700;
}
.land-footer-cols a,
.land-footer-cols span {
  display: block;
  color: rgba(243,241,236,.72);
  font-size: .92rem;
  line-height: 1.9;
}
.land-footer-cols a:hover { color: #d4a24c; }
.land-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(243,241,236,.38);
  font-size: .85rem;
}
.footer-simple { color: inherit; }

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 4.2rem 0; }
.section-alt {
  background: #ebe6dd;
  border-block: 1px solid var(--line);
}
.section-head { margin-bottom: 1.8rem; max-width: 40rem; }
.section-head h2,
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 .7rem;
  font-weight: 700;
}
.lead { color: var(--muted); margin: 0; line-height: 1.7; font-size: 1.02rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.panel h1, .panel h2 { font-family: var(--font-display); letter-spacing: -0.02em; margin-top: 0; }
.panel-job { margin: 1.5rem 0 3rem; }
.job-header {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
  margin-bottom: .5rem;
}
.job-header h1 { margin: 0; }
.design-quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: .4rem 0 .8rem;
}

.form-grid { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; color: var(--muted); font-size: .9rem; }
.optional { color: #918c84; font-weight: 400; font-size: .8rem; }
.text-accent { color: var(--accent); }
input, textarea, select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: .75rem .9rem;
  font: inherit;
}
textarea { min-height: 100px; resize: vertical; }
input[type="file"] {
  padding: .55rem .7rem;
  background: var(--bg-soft);
  font-size: .85rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.upload-card {
  border: 1px dashed rgba(20,21,26,.18);
  border-radius: 12px;
  padding: 1rem;
  background: linear-gradient(180deg, #fbfaf7, #f0ebe3);
  gap: .45rem;
}
.upload-title { color: var(--text); font-weight: 700; font-size: .95rem; }
.upload-title em { font-style: normal; color: var(--accent); font-size: .75rem; margin-left: .25rem; }
.upload-hint { font-size: .8rem; color: var(--muted); }
.upload-preview { display: flex; flex-wrap: wrap; gap: .4rem; }
.upload-preview img {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--line);
}
.font-row { display: flex; gap: .85rem; flex-wrap: wrap; }
.font-row .grow { flex: 1 1 220px; }

.alert {
  border-radius: 10px;
  padding: .8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}
.alert-error { background: rgba(163,68,68,.08); color: #8a3030; border-color: rgba(163,68,68,.28); }
.alert-ok { background: rgba(47,107,79,.08); color: #245640; border-color: rgba(47,107,79,.28); }
.alert-info { background: rgba(26,31,42,.06); color: #2a3140; border-color: rgba(26,31,42,.15); }
.status-row { display: flex; gap: .6rem; align-items: center; }

.layout-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 1.2rem;
  padding: 1.5rem 0 3rem;
}
.meta { color: var(--muted); font-size: .9rem; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; padding: .7rem .4rem;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: top;
}
.table th { color: var(--muted); font-weight: 600; }
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  border: 1px solid var(--line);
}
.badge-ok { color: var(--ok); border-color: rgba(47,107,79,.35); }
.badge-run { color: var(--brand); border-color: rgba(26,31,42,.25); }
.badge-fail { color: var(--danger); border-color: rgba(163,68,68,.35); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
}
.image-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.1rem;
}
.result-card { margin: 0; display: grid; gap: .55rem; }
.result-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.result-card figcaption {
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-nav {
  display: flex; gap: .6rem; flex-wrap: wrap; margin: 0 0 1.2rem;
}
.admin-nav a {
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.admin-nav a.active, .admin-nav a:hover {
  color: var(--text);
  border-color: rgba(26,31,42,.35);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin-bottom: 1.2rem;
}
.stat {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat .n { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.stat .l { color: var(--muted); font-size: .85rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem 0 2.5rem;
  font-size: .9rem;
}

.auth-wrap {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 0;
}
.auth-card { width: min(420px, 100%); }

.job-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: .8rem;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.job-card:hover {
  border-color: rgba(26,31,42,.28);
  transform: translateY(-1px);
}
.job-card-top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.job-snippet { margin: .4rem 0 0; }
.job-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .4rem;
  margin-top: .7rem;
}
.job-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.spinner {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 2px solid rgba(20,21,26,.15);
  border-top-color: var(--brand);
  animation: spin .8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fade .55s ease both; }
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@media (max-width: 900px) {
  .layout-split, .stats, .result-grid, .upload-grid, .land-step-list {
    grid-template-columns: 1fr;
  }
  .land-gallery-grid { grid-template-columns: 1fr; }
  .land-shot, .land-shot-wide { min-height: 280px; }
  .land-hero-copy { padding: 7rem 0 3.5rem; max-width: none; }
  .land-cta-inner { flex-direction: column; align-items: flex-start; }
  .land-footer-cols { grid-template-columns: 1fr; gap: 1.2rem; }
}
