:root {
  --bg: #f5f0e6;
  --panel: #fffdf7;
  --ink: #1b1d21;
  --accent: #d04f1f;
  --accent-2: #0f6b7b;
  --muted: #555a61;
  --border: #eadfca;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #ffd7b7 0%, transparent 42%),
    radial-gradient(circle at 85% 10%, #c8e9ef 0%, transparent 36%),
    var(--bg);
  min-height: 100vh;
  padding: 32px 16px 56px;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image: linear-gradient(to right, #d8cab0 1px, transparent 1px),
    linear-gradient(to bottom, #d8cab0 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 95%);
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.5;
}

.bg-shape-1 {
  width: 260px;
  height: 260px;
  background: #ffd6b8;
  left: -70px;
  top: 40%;
}

.bg-shape-2 {
  width: 240px;
  height: 240px;
  background: #bae8f2;
  right: -60px;
  top: 12%;
}

.hero {
  max-width: 980px;
  margin: 0 auto 24px;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 234, 0.8));
  box-shadow: 0 16px 40px rgba(20, 24, 30, 0.08);
  animation: reveal 0.6s ease-out;
}

.tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #1f2328;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
}

.intro {
  margin: 12px 0 16px;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.notice {
  margin: 0;
  color: #7a6138;
  font-size: 14px;
  font-weight: 600;
}

.intro-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-btn {
  display: inline-block;
  text-decoration: none;
  color: #184650;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #bcd7de;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
}

.admin-link {
  display: inline-flex;
  text-decoration: none;
  color: var(--accent-2);
  font-weight: 700;
}

.download-home .admin-link {
  display: none !important;
}

.grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.grid.single {
  grid-template-columns: 1fr;
}

.intro-layout {
  gap: 14px;
}

.preview-zone {
  overflow: hidden;
}

.preview-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.preview-item {
  border: 1px solid #d9d8d2;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(160deg, #f8fbfd, #f0f5f8);
  animation: floatIn 0.55s ease both;
}

.preview-title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #194f5b;
}

.preview-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.card,
.empty {
  background: color-mix(in srgb, var(--panel) 92%, white 8%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  animation: reveal 0.5s ease-out;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 26, 35, 0.12);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card h2,
.empty h2 {
  margin: 0;
  font-size: 22px;
}

.version {
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 700;
}

.desc {
  margin: 10px 0 16px;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.feature-item {
  background: #fff;
  border: 1px solid #e8ddca;
  border-radius: 12px;
  padding: 12px;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.steps {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.faq p {
  color: var(--muted);
  line-height: 1.7;
}

.update-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.case-list {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.case-item {
  background: #fff;
  border: 1px solid #eadfca;
  border-radius: 12px;
  padding: 12px;
}

.case-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.case-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  background: rgba(27, 29, 33, 0.9);
  color: #fff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 16, 16, 0.24);
  min-width: 180px;
}

.contact-float p {
  margin: 0 0 8px;
  font-size: 13px;
  opacity: 0.9;
}

.contact-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: #1f2328;
  background: linear-gradient(120deg, #ffe4b8, #ffd08f);
  border-radius: 10px;
  padding: 8px 10px;
}

.download-btn {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent), #ef8841);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(222, 90, 42, 0.3);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 24px;
  }

  .hero {
    padding: 18px;
  }

  .intro {
    font-size: 15px;
  }

  .preview-track {
    grid-template-columns: 1fr;
  }

  .contact-float {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-width: 0;
  }
}
