:root {
  --bg: #f3f1ec;
  --bg-hero: #171717;
  --card: #fffcf7;
  --text: #171717;
  --muted: #57534e;
  --line: rgba(23, 23, 23, 0.1);
  --brand: #171717;
  --accent: #c2410c;
  --lanzou: #1d4ed8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(23, 23, 23, 0.08);
  --header: 68px;
  --max: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, rgba(194, 65, 12, 0.06), transparent 28%),
    radial-gradient(circle at 100% 8%, rgba(29, 78, 216, 0.06), transparent 26%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  background: rgba(243, 241, 236, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(23, 23, 23, 0.18);
  flex-shrink: 0;
}

.brand-mark::after {
  content: "LL";
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(23, 23, 23, 0.06);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.boot-msg,
.cfg-error {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}

.cfg-error {
  color: #b91c1c;
}

.hero {
  background: var(--bg-hero);
  color: #fafaf9;
  padding: 56px 0 48px;
  margin-bottom: 36px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.hero-visual {
  position: relative;
  height: 300px;
}

.hero-shot.shot-0 {
  right: 0;
  top: 8px;
  width: 86%;
  z-index: 2;
}

.hero-shot.shot-1 {
  left: 0;
  top: auto;
  bottom: 8px;
  z-index: 1;
  width: 64%;
  opacity: 0.92;
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-shot {
  position: absolute;
  width: 78%;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  background: #111;
}

.hero-shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.hero-shot.shot-0 {
  right: 0;
  top: 18px;
  z-index: 2;
}

.hero-shot.shot-1 {
  left: 0;
  top: 88px;
  z-index: 1;
  width: 62%;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero .tagline {
  margin: 0;
  max-width: 640px;
  color: #a8a29e;
  font-size: 1.02rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: #d6d3d1;
}

.pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding: 8px 0 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-rows {
  display: grid;
  gap: 22px;
}

.product-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-row > * {
  min-width: 0;
}

.product-row.is-flip {
  grid-template-columns: 0.95fr 1.15fr;
}

.product-row.is-flip .row-shot {
  order: 2;
}

.row-shot {
  display: block;
  background: #111;
  min-height: 220px;
}

.row-shot img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  object-position: top center;
}

.row-shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #1c1917, #292524);
  color: #e7e5e4;
  min-height: 240px;
}

.row-shot-empty .card-icon {
  margin: 0;
}

.row-copy {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.row-copy h2 {
  margin: 0 0 4px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.row-copy h2 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.row-copy .card-summary {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  flex: 0;
  margin-bottom: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.coming-slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.product-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(23, 23, 23, 0.12);
}

.product-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  background: var(--accent, #c2410c);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent, #c2410c);
  margin-bottom: 14px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card-cat {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.card-en {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 16px 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
}

.card-meta strong {
  color: var(--text);
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  background: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-lanzou {
  background: var(--lanzou);
  color: #fff;
}

.btn-wide {
  width: 100%;
}

.coming-card,
.coming-slot {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  justify-content: center;
  align-items: flex-start;
  color: var(--muted);
}

.coming-slot strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.badge-coming {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tip-card {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  padding: 22px 24px;
  color: #9a3412;
}

.tip-card h2 {
  margin: 0 0 8px;
  color: #7c2d12;
  font-size: 1.15rem;
}

.tip-card p {
  margin: 0;
  font-size: 0.95rem;
}

.tip-card p + p {
  margin-top: 8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--text);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 40px;
}

.detail-hero > * {
  min-width: 0;
}

.detail-copy h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.detail-en {
  margin: 0 0 12px;
  color: var(--muted);
}

.detail-desc,
.guide-list,
.feature-list {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--accent, #c2410c);
}

.dl-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header) + 16px);
}

.dl-panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.dl-meta {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.88rem;
}

.dl-meta li + li {
  margin-top: 6px;
}

.dl-meta strong {
  color: var(--text);
  font-weight: 650;
}

.lanzou-aside {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #1e3a8a;
  line-height: 1.45;
}

.detail-cover {
  margin-top: 22px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.detail-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.gallery-wrap {
  margin: 8px 0 28px;
}

.gallery-wrap h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  cursor: zoom-in;
}

.gallery-item figcaption {
  padding: 10px 12px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.dl-list {
  display: grid;
  gap: 10px;
}

.dl-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
}

.dl-item.is-lanzou {
  border-color: #93c5fd;
  background: #f8fbff;
}

.dl-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dl-item h3 {
  margin: 0;
  font-size: 0.95rem;
}

.code-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.code-row code {
  background: #e7e5e4;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.btn-copy {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 0.75rem;
}

.notes {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.guide-box {
  margin-top: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.guide-box h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.guide-list {
  margin: 0;
  padding-left: 18px;
}

.guide-list li + li {
  margin-top: 6px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.footer-copy {
  margin: 0;
}

.footer-copy a {
  margin-left: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .hero-grid,
  .product-row,
  .product-row.is-flip,
  .product-grid,
  .detail-hero,
  .feature-list,
  .gallery {
    grid-template-columns: 1fr;
  }

  .product-row.is-flip .row-shot {
    order: 0;
  }

  .hero-visual {
    min-height: 200px;
  }

  .dl-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: rgba(243, 241, 236, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    padding: 36px 0 32px;
  }
}
