/* ============================================
   轻云终端官网 - 全局样式 v2
   现代科技风，精致卡片设计
   ============================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --cyan: #06b6d4;
  --text: #1e293b;
  --text-light: #475569;
  --muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 20px rgba(37,99,235,.08);
  --shadow-lg: 0 12px 40px rgba(37,99,235,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ---------- 页面进入淡入动画 ---------- */
@keyframes pageFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
main > section {
  animation: pageFadeInUp .45s cubic-bezier(.22,.61,.36,1) both;
}
.site-footer {
  animation: pageFadeIn .7s ease .35s both;
}
/* 内容元素滚动显现（交错淡入） */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
html.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  main > section, .site-footer { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* 隐藏滚动条但保留滚动功能 */
::-webkit-scrollbar { width: 0; height: 0; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: transparent; }
* { scrollbar-width: none; -ms-overflow-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
svg { display: inline-block; vertical-align: middle; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- 导航栏 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.brand-name { font-size: 20px; font-weight: 800; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-item {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 15px; color: var(--text-light);
  transition: all .2s; font-weight: 500;
}
.nav-item:hover { color: var(--primary); background: var(--primary-light); }
.nav-item.active { color: var(--primary); font-weight: 600; background: var(--primary-light); }
.nav-admin { font-size: 13px; color: var(--muted); border: 1px solid var(--border); margin-left: 8px; }
.nav-admin:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm); border: 0;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center;
  transition: all .2s; font-family: var(--font); white-space: nowrap;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); }
.btn-light { background: #fff; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-lg { padding: 13px 30px; font-size: 16px; }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(37,99,235,.35) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 85% 80%, rgba(6,182,212,.25) 0%, transparent 60%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 90px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37,99,235,.2); border: 1px solid rgba(37,99,235,.4);
  padding: 6px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 20px; color: #93c5fd;
}
.hero h1 { font-size: 54px; font-weight: 800; letter-spacing: 1px; margin-bottom: 10px; line-height: 1.1; }
.hero-slogan { font-size: 22px; font-weight: 600; color: var(--cyan); margin-bottom: 16px; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.7); max-width: 520px; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-tags { display: flex; gap: 20px; flex-wrap: wrap; }
.hero-tags span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,.6); }
.hero-tags svg { color: var(--cyan); }

/* 终端卡片 */
.terminal-card {
  background: #0a0f1c; border-radius: 16px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.terminal-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.terminal-head .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.terminal-title { margin-left: 8px; color: #64748b; font-size: 13px; flex: 1; }
.terminal-status { display: inline-flex; align-items: center; gap: 4px; color: #4ade80; font-size: 12px; }
.terminal-body { padding: 24px; font-family: "SF Mono", Consolas, "Courier New", monospace; font-size: 13.5px; line-height: 1.9; }
.c-green { color: #4ade80; } .c-blue { color: #60a5fa; } .c-dim { color: #475569; }
.cursor { animation: blink 1s infinite; color: #e2e8f0; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 通用区块 ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 50px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.section-head p { color: var(--text-light); font-size: 16px; }
.section-head .more-link { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: 15px; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: all .25s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--primary-gradient); transform: scaleX(0); transition: transform .3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); margin-bottom: 18px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-light); font-size: 14px; line-height: 1.7; }

/* 功能一览：卡片 hover 提示 */
.feature-card { cursor: pointer; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }

/* 功能详情抽屉（从右侧滑出） */
body.drawer-open { overflow: hidden; }
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.feature-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw;
  background: #0f172a; border-left: 1px solid #1e293b;
  box-shadow: -20px 0 60px rgba(0,0,0,.45);
  transform: translateX(100%); transition: transform .32s ease;
  z-index: 1000; display: flex; flex-direction: column;
}
.feature-drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  background: #1e293b; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.drawer-head .dot { width: 12px; height: 12px; border-radius: 50%; }
.drawer-title { margin-left: 6px; color: #94a3b8; font-size: 14px; flex: 1; font-weight: 600; }
.drawer-close {
  width: 32px; height: 32px; border-radius: 8px; border: none; cursor: pointer;
  background: rgba(255,255,255,.06); color: #94a3b8;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.drawer-close:hover { background: rgba(255,255,255,.14); color: #fff; }
.feature-drawer .console-body {
  flex: 1; overflow-y: auto; padding: 24px 26px; margin: 0;
  min-height: 0; max-height: none;
  font-family: "SF Mono", Consolas, "Courier New", monospace;
  font-size: 14px; line-height: 1.85; color: #cbd5e1;
  background: #0f172a;
}
.console-body p { margin: 0 0 3px; white-space: pre-wrap; word-break: break-word; }

/* ---------- 工具网格 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-item {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 20px; transition: all .2s; font-weight: 500; font-size: 15px;
}
.tool-item svg { color: var(--primary); flex-shrink: 0; }
.tool-item:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }

/* ---------- 左右分栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-text h2 { font-size: 30px; font-weight: 800; margin-bottom: 18px; line-height: 1.3; }
.split-text p { color: var(--text-light); margin-bottom: 20px; font-size: 16px; line-height: 1.8; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 15px; color: var(--text-light); }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px;
  background: var(--primary-light); border-radius: 50%;
}
.check-list li::after {
  content: ''; position: absolute; left: 5px; top: 9px; width: 8px; height: 5px;
  border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg);
}

.stack-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.stack-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.stack-row:last-child { border-bottom: 0; }
.stack-row.head { font-weight: 700; font-size: 16px; color: var(--primary); padding-bottom: 8px; gap: 8px; }
.stack-row .chip { width: 90px; font-size: 13px; color: var(--text-light); flex-shrink: 0; }
.stack-row .bar { flex: 1; height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
.stack-row .bar i { display: block; height: 100%; background: var(--primary-gradient); border-radius: 4px; }
.stack-row em { font-style: normal; font-size: 13px; color: var(--primary); width: 50px; text-align: right; font-weight: 600; }

/* ---------- CTA ---------- */
.cta { background: var(--primary-gradient); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.1) 0%, transparent 50%);
}
.cta-inner { padding: 70px 24px; position: relative; }
.cta h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta p { opacity: .9; margin-bottom: 28px; font-size: 16px; }

/* ---------- 友情链接 ---------- */
.friend-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.friend-link {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 18px; transition: all .2s;
}
.friend-link:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.friend-link img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.fl-icon { width: 28px; height: 28px; border-radius: 7px; background: var(--primary-light); color: var(--primary); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.fl-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 页头（内页） ---------- */
.page-hero { background: var(--bg-dark); color: #fff; text-align: center; padding: 70px 0; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 300px at 50% 100%, rgba(37,99,235,.3) 0%, transparent 60%);
}
.page-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; position: relative; }
.page-hero p { opacity: .7; position: relative; font-size: 16px; }

/* ---------- 正文 ---------- */
.prose p { margin-bottom: 16px; color: var(--text-light); font-size: 16px; line-height: 1.9; }
.prose strong { color: var(--primary); }

/* ---------- 界面预览 ---------- */
.arch-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.preview-terminal { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.preview-body { display: flex; min-height: 320px; }
.preview-sidebar { width: 180px; background: #1e293b; padding: 12px 0; flex-shrink: 0; }
.ps-item { display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: #94a3b8; font-size: 13px; cursor: default; }
.ps-item.active { background: rgba(37,99,235,.2); color: #fff; border-left: 3px solid var(--primary); }
.ps-item svg { flex-shrink: 0; }
.preview-main { flex: 1; background: #0f172a; display: flex; flex-direction: column; }
.pm-tab { background: #1e293b; color: #e2e8f0; padding: 10px 18px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.pm-console { flex: 1; padding: 20px; font-family: "SF Mono", Consolas, monospace; font-size: 13px; line-height: 1.9; }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dl-grid-single { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
.dl-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; transition: all .25s;
}
.dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.dl-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 18px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.dl-card h3 { font-size: 20px; margin-bottom: 12px; }
.dl-meta { display: flex; justify-content: center; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.dl-note { color: var(--text-light); font-size: 14px; margin-bottom: 22px; }
.dl-tip { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-top: 40px; }
.dl-tip h4 { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; color: var(--primary); }
.dl-tip p { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.dl-tip p a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: all .2s; }
.dl-tip p a:hover { color: var(--primary-dark); background: var(--primary-light); border-radius: 4px; padding: 1px 4px; margin: 0 -4px; }

/* ---------- 友情链接页 ---------- */
.links-block { margin-bottom: 48px; }
.links-cat { font-size: 20px; margin-bottom: 20px; padding-left: 14px; border-left: 4px solid var(--primary); font-weight: 700; }
.links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.link-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px;
  text-align: center; transition: all .25s;
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.link-card-top { height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.link-logo { max-height: 56px; max-width: 120px; object-fit: contain; }
.link-logo.logo-text { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); font-size: 20px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.link-card h3 { font-size: 16px; margin-bottom: 6px; }
.link-card p { color: var(--text-light); font-size: 13px; margin-bottom: 14px; height: 40px; overflow: hidden; line-height: 1.5; }
.link-go { color: var(--primary); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 时间线 ---------- */
.timeline { max-width: 700px; margin: 0 auto; }
.tl-item { display: flex; gap: 28px; padding: 20px 0; border-left: 2px solid var(--border); position: relative; padding-left: 32px; }
.tl-item::before { content: ''; position: absolute; left: -7px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.tl-year { font-weight: 800; color: var(--primary); width: 60px; flex-shrink: 0; font-size: 18px; }
.tl-item h4 { font-size: 16px; margin-bottom: 6px; }
.tl-item p { color: var(--text-light); font-size: 14px; }

/* ---------- 联系页 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info h2, .contact-form h2 { font-size: 22px; margin-bottom: 24px; }

/* 联系我们 - 上下布局 */
.contact-section { margin-bottom: 32px; }
.section-title { font-size: 22px; margin-bottom: 20px; color: var(--text); }
.ci-cards-horizontal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ci-card-h {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 18px; transition: all .2s;
}
.ci-card-h:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.12); transform: translateY(-3px); }
.ci-card-h .ci-card-icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ci-card-h .ci-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ci-card-h .ci-card-label { font-size: 12px; color: var(--text-light); font-weight: 500; }
.ci-card-h .ci-card-value { font-size: 14px; color: var(--text); font-weight: 600; word-break: break-all; }

/* 服务承诺横条 */
.promise-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  border: 1px solid #bae6fd; border-radius: 12px; padding: 18px 24px;
  margin-bottom: 32px;
}
.promise-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; color: var(--text); font-weight: 500;
}
.promise-item svg { color: var(--primary); flex-shrink: 0; }

/* QQ群区域 */
.qq-group-section {
  display: flex; align-items: center; gap: 40px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px; padding: 36px 40px;
  margin-bottom: 32px; color: #fff;
}
.qq-group-info { flex: 1; }
.qq-group-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.qq-group-info h3 { font-size: 22px; margin: 0 0 8px; }
.qq-group-name { font-size: 16px; color: #94a3b8; margin: 0 0 4px; }
.qq-group-num { font-size: 15px; color: #cbd5e1; margin: 0 0 12px; }
.qq-group-num strong { color: #06b6d4; font-size: 18px; }
.qq-group-desc { font-size: 13px; color: #64748b; line-height: 1.7; margin: 0; max-width: 400px; }
.qq-group-qrcode {
  flex-shrink: 0; width: 180px; height: 180px;
  background: #fff; border-radius: 12px; padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.qq-group-qrcode img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; }

/* 全宽表单 */
.contact-form-full {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.contact-form-full .form-tabs { margin-bottom: 24px; }
.contact-form-full .tab-panel { display: none; flex-direction: column; gap: 14px; }
.contact-form-full .tab-panel.active { display: flex; }
.contact-form-full form { display: flex; flex-direction: column; gap: 14px; }

/* 联系方式卡片（旧版保留兼容） */
.ci-cards { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.ci-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; transition: all .2s;
}
.ci-card:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(37,99,235,.1); transform: translateX(4px); }
.ci-card-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ci-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-card-label { font-size: 12px; color: var(--text-light); font-weight: 500; }
.ci-card-value { font-size: 15px; color: var(--text); font-weight: 600; word-break: break-all; }

/* 服务承诺（旧版保留兼容） */
.ci-promise {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  border: 1px solid #bae6fd; border-radius: 12px; padding: 20px;
}
.ci-promise h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--text); margin: 0 0 14px; font-weight: 600;
}
.ci-promise h3 svg { color: var(--primary); }
.ci-promise ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ci-promise li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-light); line-height: 1.5;
}
.promise-dot {
  width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary);
}

.ci-tip { background: var(--primary-light); border-radius: 10px; padding: 14px 18px; margin-top: 20px; font-size: 14px; color: var(--primary-dark); }

/* 表单 Tab */
.form-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-alt); border-radius: 12px; padding: 6px; }
.form-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border: none; background: transparent; border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-light); cursor: pointer; transition: all .2s; font-family: var(--font);
}
.form-tab svg { width: 16px; height: 16px; }
.form-tab:hover { color: var(--primary); }
.form-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.contact-form .tab-panel { display: none; flex-direction: column; gap: 14px; }
.contact-form .tab-panel.active { display: flex; }
.link-apply-tip {
  display: flex; align-items: center; gap: 6px;
  background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd;
  border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px;
}
.link-apply-tip svg { flex-shrink: 0; }

/* 友链申请要求 */
.link-requirements {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.link-requirements h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: #92400e; margin: 0 0 10px; font-weight: 600;
}
.link-requirements h4 svg { color: #d97706; }
.link-requirements ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.link-requirements li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #78350f; line-height: 1.6;
}
.req-num {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* 本站友链信息 */
.site-link-info {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.sli-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.sli-logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.sli-title h3 { font-size: 16px; color: var(--text); margin: 0 0 2px; }
.sli-title p { font-size: 12px; color: var(--text-light); margin: 0; }
.sli-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.sli-item { background: rgba(255,255,255,.7); border-radius: 8px; padding: 10px 12px; }
.sli-item.sli-full { grid-column: 1 / -1; }
.sli-label { display: block; font-size: 11px; color: var(--text-light); margin-bottom: 4px; font-weight: 500; }
.sli-value {
  display: block; font-size: 13px; color: var(--text); word-break: break-all;
  cursor: pointer; transition: color .2s; line-height: 1.5;
}
.sli-value:hover { color: var(--primary); }
.sli-value.copied { color: #16a34a; font-weight: 500; }
.btn-copy-all { width: 100%; justify-content: center; }
.form-subtitle { font-size: 14px; color: var(--text); margin: 0 0 4px; font-weight: 600; }
.link-apply-form { display: flex; flex-direction: column; gap: 14px; }

.contact-form form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input, textarea, select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: var(--font); transition: all .2s; background: #fff; color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
textarea { resize: vertical; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: all .2s; }
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.contact-card svg { color: var(--primary); margin-bottom: 12px; }
.contact-card h4 { color: var(--primary); margin-bottom: 8px; font-size: 16px; }
.contact-card p { color: var(--text-light); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #94a3b8; overflow: hidden;
}
.site-footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(37,99,235,.65) 30%, rgba(6,182,212,.65) 70%, transparent 100%);
}
.footer-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 720px 320px at 12% 0%, rgba(37,99,235,.16) 0%, transparent 60%),
    radial-gradient(ellipse 560px 320px at 88% 100%, rgba(6,182,212,.12) 0%, transparent 60%);
}
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 44px;
  padding: 60px 24px 46px;
}
.footer-brand-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand span {
  font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, #fff 20%, #93c5fd 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-about { font-size: 14px; color: #64748b; line-height: 1.8; max-width: 340px; }
.footer-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.footer-tags span {
  font-size: 12px; color: #93c5fd; background: rgba(37,99,235,.14);
  border: 1px solid rgba(37,99,235,.32); padding: 4px 12px; border-radius: 20px;
}
.footer-qq {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  transition: all .25s;
}
.footer-qq:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,182,212,.45);
  filter: brightness(1.1);
}
.footer-qq svg { flex-shrink: 0; }
.footer-features-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-content: start; }
.footer-features-col h4 { grid-column: 1 / -1; }
.footer-features-col h4, .footer-nav-col h4 {
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left; padding-left: 0; padding-top: 0;
}
.footer-features-col h4 > span, .footer-nav-col h4 > span { margin-left: 0; }
.footer-features-col h4::before, .footer-nav-col h4::before {
  content: ''; position: static; top: auto; bottom: auto;
  width: 4px; height: 14px; margin-right: 8px; border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}
.footer-features-col a { width: 100%; text-align: center; }
.footer-nav-col a { display: block; text-align: left; }
.footer-col h4 {
  position: relative; color: #fff; font-size: 15px; margin-bottom: 18px; font-weight: 600;
  padding-left: 13px;
}
.footer-col h4::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}
.footer-col a:not(.footer-qq) {
  position: relative; display: block; color: #64748b; font-size: 14px;
  padding: 3px 0; margin-bottom: 10px; transition: color .2s, transform .2s;
}
.footer-col a:not(.footer-qq)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px;
  background: linear-gradient(90deg, #2563eb, #06b6d4); transition: width .25s;
}
.footer-col a:not(.footer-qq):hover { color: #fff; transform: translateX(4px); }
.footer-col a:not(.footer-qq):hover::after { width: 100%; }
.footer-features-col a:hover, .footer-nav-col a:hover { transform: none; }
.footer-col p {
  font-size: 14px; color: #64748b; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px; transition: color .2s;
}
.footer-col p:hover { color: #94a3b8; }
.footer-col p svg { flex-shrink: 0; color: #475569; }
.footer-bottom { position: relative; border-top: 1px solid rgba(255,255,255,.07); }
.footer-bottom .container {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 8px 24px; padding: 20px 24px; font-size: 13px; color: #475569;
}
.footer-beian { gap: 24px !important; }
.icp-link { color: #64748b; font-size: 13px; transition: color .2s; }
.icp-link:hover { color: var(--cyan); }
.beian-link { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 13px; transition: color .2s; }
.beian-link:hover { color: var(--cyan); }
.beian-icon { width: 16px; height: 16px; vertical-align: middle; }
.footer-top {
  position: absolute; right: 36px; top: 50%;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: #64748b; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%) rotate(-90deg);
  transition: all .25s;
}
.footer-top:hover {
  background: var(--primary); border-color: transparent; color: #fff;
  transform: translateY(-50%) rotate(-90deg) translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}

/* ---------- Flash ---------- */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 18px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; }
.flash-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid, .tool-grid, .links-grid { grid-template-columns: repeat(2, 1fr); }
  .friend-links { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions, .hero-tags { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 12px; box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-toggle { display: block; }
  .feature-grid, .tool-grid, .links-grid, .friend-links, .contact-cards, .dl-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
  .section { padding: 56px 0; }
  .preview-body { flex-direction: column; }
  .preview-sidebar { width: 100%; display: flex; flex-wrap: wrap; padding: 8px; }
  .ps-item { padding: 8px 12px; }
  .ps-item.active { border-left: 0; border-bottom: 2px solid var(--primary); }
}
