:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe5f1;
  --blue: #2563eb;
  --blue2: #0ea5e9;
  --green: #059669;
  --violet: #7c3aed;
  --orange: #d97706;
  --teal: #0f766e;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 24%),
    linear-gradient(180deg, #eef6ff 0%, var(--bg) 100%);
  line-height: 1.7;
}

a { color: inherit; }
code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
}

.wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 24px 18px 64px;
}

.hero {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.22);
  margin-bottom: 20px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.25;
}
.hero p { margin: 0; font-size: 15px; opacity: .98; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.hero-point {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.links a {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  color: #fff;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title h2,
.panel h2 { margin: 0; font-size: 24px; }
.section-title .small { color: var(--muted); font-size: 14px; }

.tip {
  background: #fff8e8;
  border: 1px solid #f8d58f;
  color: #92400e;
}
.subtle {
  background: #fbfdff;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.tool-card, .mini-card, .scene-card, .step, .faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.excel { background: var(--green); }
.analysis { background: var(--violet); }
.file { background: var(--orange); }
.output { background: var(--teal); }
.path {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  margin-bottom: 12px;
}
.meta {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.meta-item {
  background: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
}
.meta-item b { color: #1e293b; }
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-light { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.btn-green { background: var(--green); color: #fff; }
.btn-gray { background: #e2e8f0; color: #334155; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}
.field input[type="text"],
.field input[type="search"],
.field input[type="file"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
}

.data-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}
.data-table th,
.data-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 1;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.stat-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.stat-card .label { font-size: 13px; color: var(--muted); }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.log-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 18px;
}
.hidden { display: none !important; }

@media (max-width: 680px) {
  .hero { padding: 22px; }
  .hero h1 { font-size: 28px; }
  .wrap { padding: 16px 14px 48px; }
  .panel { padding: 16px; }
}
