:root, [data-theme="dark"] {
  --bg: #070b14;
  --bg-glow1: rgba(0, 229, 255, 0.08);
  --bg-glow2: rgba(124, 77, 255, 0.10);
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.10);
  --text: #dbe4f3;
  --muted: #7b8aa6;
  --primary: #00e5ff;
  --secondary: #7c4dff;
  --grid-line: rgba(255, 255, 255, 0.025);
  --btn-text: #06121f;
  --nav-bg: rgba(7, 11, 20, 0.72);
  --input-bg: rgba(255, 255, 255, 0.05);
  --select-bg: #0d1322;
  --scroll-thumb: rgba(255, 255, 255, 0.18);
  --scroll-track: transparent;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
[data-theme="light"] {
  --bg: #eaf0fa;
  --bg-glow1: rgba(0, 130, 255, 0.10);
  --bg-glow2: rgba(124, 77, 255, 0.09);
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(25, 40, 80, 0.14);
  --text: #16233c;
  --muted: #5a6b88;
  --primary: #0066e0;
  --secondary: #7c4dff;
  --grid-line: rgba(25, 40, 80, 0.05);
  --btn-text: #ffffff;
  --nav-bg: rgba(240, 245, 255, 0.85);
  --input-bg: #ffffff;
  --select-bg: #ffffff;
  --scroll-thumb: rgba(25, 40, 80, 0.22);
  --scroll-track: transparent;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 320px at 15% 8%, var(--bg-glow1), transparent),
    radial-gradient(700px 420px at 85% 18%, var(--bg-glow2), transparent),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
  transition: background 0.4s ease;
}

/* 导航 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: 1px; }
.nav-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }

/* 首页 hero */
.hero {
  max-width: 1080px; margin: 0 auto;
  padding: 150px 24px 40px; text-align: center;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: 1px; }
.hero h1 span {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 17px; margin-top: 14px; }

.section { max-width: 1080px; margin: 0 auto; padding: 70px 24px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 34px; display: flex; align-items: center; gap: 12px; }
.section-title .num { color: var(--primary); font-family: Consolas, monospace; font-size: 17px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 服务卡片 */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.service-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px;
  transition: transform 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(0, 229, 255, 0.5); }
.service-card .svc-title { font-size: 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.service-card .svc-title .arrow { color: var(--primary); }
.service-card .svc-tagline { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.service-card .svc-price { color: var(--primary); font-size: 18px; font-weight: 700; }
.service-card .svc-price small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 6px; }
.service-card .svc-audience { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* 流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.step .step-num { color: var(--primary); font-family: Consolas, monospace; font-size: 14px; }
.step h3 { font-size: 16px; margin: 8px 0 6px; }
.step p { color: var(--muted); font-size: 13px; }

/* 服务详情页 */
.crumb { max-width: 1080px; margin: 110px auto -40px; padding: 0 24px; color: var(--muted); font-size: 13px; }
.crumb a { color: var(--primary); text-decoration: none; }
.svc-head { text-align: center; padding: 40px 24px 10px; }
.svc-head h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; }
.svc-head .tagline { color: var(--primary); font-size: 17px; margin-top: 8px; }
.svc-head .price {
  font-size: 26px; font-weight: 800; margin-top: 18px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.svc-head .price-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.box h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; }
.box ul { list-style: none; }
.box li { font-size: 14px; padding: 6px 0 6px 20px; position: relative; color: var(--text); }
.box li::before { content: "▸"; position: absolute; left: 0; color: var(--primary); }

/* 风格选择 */
.styles { margin-top: 40px; }
.style-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.style-card { display: block; cursor: pointer; }
.style-inner {
  display: block; border: 1px solid var(--line); border-radius: 12px; padding: 18px;
  background: var(--card); transition: all 0.2s;
}
.style-card:hover .style-inner { border-color: rgba(0, 229, 255, 0.5); }
.style-card input { position: absolute; opacity: 0; }
.style-card input:checked + .style-inner { border-color: var(--primary); background: rgba(0, 229, 255, 0.06); }
.style-name { font-size: 17px; font-weight: 700; }
.style-desc { color: var(--muted); font-size: 13px; margin: 6px 0 10px; }
.style-demo { font-size: 13px; color: var(--primary); text-decoration: none; }
.soon { font-size: 12px; color: var(--muted); }

/* 联系卡片（备案：不提供交互服务，引导站外联系定制） */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.contact-card {
  display: block; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; transition: all 0.25s;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(0, 229, 255, 0.5); }
.contact-card .cc-title { font-size: 14px; color: var(--primary); font-weight: 700; }
.contact-card .cc-value { font-size: 16px; margin-top: 6px; word-break: break-all; }

.cta-wrap { text-align: center; margin: 40px 0; }
.btn {
  display: inline-block; padding: 14px 44px; border-radius: 999px;
  font-size: 16px; font-weight: 700; text-decoration: none; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--btn-text); transition: all 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 229, 255, 0.35); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); box-shadow: none; }

/* 表单页 */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 120px 24px 60px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.form-card h2 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.form-meta { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
label.f-label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], textarea, select {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--input-bg);
  color: var(--text); font-size: 14px; font-family: inherit;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
select option { background: var(--select-bg); color: var(--text); }
textarea { resize: vertical; min-height: 70px; }
::placeholder { color: var(--muted); opacity: 0.85; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.req { color: var(--primary); }
.submit {
  width: 100%; padding: 14px; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  color: var(--btn-text); background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.submit:hover { opacity: 0.92; }

/* 页脚 */
.footer {
  max-width: 1080px; margin: 0 auto; padding: 40px 24px 50px;
  text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.footer .beian { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer .beian:hover { color: var(--primary); }

/* 响应式 */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .services-grid, .steps, .style-grid, .detail-grid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .form-wrap { padding-top: 100px; }
}

/* ============ 科幻增强 ============ */
/* 星空层 */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.stars i {
  position: absolute; background: #fff; border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
[data-theme="light"] .stars i { background: #33507e; }
@keyframes twinkle { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.85; } }

/* 扫描光带 */
body::after {
  content: ""; position: fixed; left: 0; right: 0; top: -30%; height: 22%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg-glow1), transparent);
  animation: scan 9s linear infinite;
}
@keyframes scan { 0% { top: -30%; } 100% { top: 130%; } }

/* 标题霓虹发光 */
.hero h1 span, .svc-head .price {
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.45));
}
[data-theme="light"] .hero h1 span, [data-theme="light"] .svc-head .price {
  filter: drop-shadow(0 0 14px rgba(0, 102, 224, 0.35));
}

/* 卡片霓虹光晕 */
.service-card:hover, .style-card:hover .style-inner {
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.16), 0 10px 34px rgba(0, 0, 0, 0.35);
}

/* 按钮扫光 */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg); animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { left: -120%; } 60% { left: 170%; } 100% { left: 170%; } }

/* 主题切换按钮 */
.theme-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.25s; margin-left: 4px;
}
.theme-btn:hover { border-color: var(--primary); box-shadow: 0 0 14px rgba(0, 229, 255, 0.45); }

/* 警示说明框（比赛服务等） */
.notice {
  border: 1px solid rgba(255, 180, 80, 0.45); border-radius: 12px;
  background: rgba(255, 170, 60, 0.07); padding: 16px 18px;
  font-size: 14px; color: var(--text); margin: 22px 0; line-height: 1.8;
}
.notice strong { color: #ffb050; }

/* 滚动渐入 */
.fade-in { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.in { opacity: 1; transform: none; }

/* 首页 CTA */
.hero-cta { margin-top: 30px; }
.hero-cta .btn { box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25); }
[data-theme="light"] .hero-cta .btn { box-shadow: 0 8px 26px rgba(0, 102, 224, 0.25); }

/* 可增减条目（list / kvlist） */
.list-field, .kv-field { margin-top: 4px; }
.list-row, .kv-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.list-row input { flex: 1; }
.kv-row input[type=text] { flex: 1; min-width: 0; }
.kv-row input[type=text]:first-child { max-width: 220px; }
.row-del {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; flex-shrink: 0;
}
.row-del:hover { border-color: #ff6b6b; color: #ff6b6b; }
.row-add {
  background: transparent; border: 1px dashed var(--primary); color: var(--primary);
  padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.row-add:hover { background: rgba(0, 229, 255, 0.06); }
.field-hint { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* 文件选择按钮适配主题 */
input[type=file] {
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  max-width: 100%;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
input[type=file]::file-selector-button {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.2s;
}
input[type=file]::file-selector-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* 素材上传（条目式） */
#upload-field { margin-top: 4px; }
.upload-row {
  display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.upload-row .upload-file {
  flex: 0 0 auto; width: auto; max-width: 46%; padding: 8px 10px; font-size: 12px;
}
.upload-row .file-name {
  flex: 0 0 auto; font-size: 12px; color: var(--muted); max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload-row input[type=text] { flex: 1; min-width: 140px; padding: 8px 10px; font-size: 13px; }

/* 图片+文字条目（pictext，社团风采等） */
.pictext-row {
  display: flex; gap: 8px; margin-bottom: 8px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px;
}
.pictext-row .upload-file {
  flex: 0 0 auto; width: auto; max-width: 46%; padding: 8px 10px; font-size: 12px;
}
.pictext-row .file-name {
  flex: 0 0 auto; font-size: 12px; color: var(--muted); max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pictext-row input[type=text] { flex: 1; min-width: 140px; padding: 8px 10px; font-size: 13px; }

/* 素材上传 */
#file-input {
  padding: 12px; border: 1px dashed var(--line); border-radius: 10px;
  background: var(--input-bg); color: var(--text); width: 100%; font-size: 13px;
}
#file-list { margin-top: 12px; }
.file-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; margin-bottom: 8px;
}
.file-name { font-size: 13px; color: var(--text); flex: 0 0 auto; word-break: break-all; }
.file-row input[type=text] { flex: 1; min-width: 200px; padding: 8px 10px; font-size: 13px; }
.file-del {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 13px;
}
.file-del:hover { border-color: #ff6b6b; color: #ff6b6b; }

/* 滚动条适配主题 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
::-webkit-scrollbar-track { background: var(--scroll-track); }
html { scrollbar-color: var(--scroll-thumb) var(--scroll-track); }

