/* ============================================================
   公司软件下载网站 - 主样式表
   设计风格参考 JetBrains / Sublime Text 官网：专业、干净、重产品展示
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  /* 主色：深靛蓝 + 电光蓝强调色 */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #06b6d4;

  /* 中性色 */
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0f172a;
  --bg-dark-soft: #1e293b;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #f8fafc;
  --text-inverse-muted: #cbd5e1;
  --border: #e2e8f0;
  --border-dark: #334155;

  /* 状态色 */
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);

  /* 布局 */
  --container: 1140px;
  --header-h: 64px;

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "Consolas", monospace;
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* ---------- 布局容器 ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: var(--text-inverse); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; font-family: inherit;
  background: var(--bg-soft); color: var(--text);
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-dark { background: var(--bg-dark); color: #fff; }
.btn-dark:hover { background: var(--bg-dark-soft); color: #fff; }

.btn-light { background: rgba(255,255,255,0.1); color: var(--text-inverse); border-color: rgba(255,255,255,0.2); }
.btn-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand:hover { color: var(--text); }
.brand .logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.brand .logo svg { width: 18px; height: 18px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all .15s;
}
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a.active { color: var(--primary); }

.nav-cta { margin-left: 12px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: .2s; }

/* ---------- Hero 区 ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.hero-content { max-width: 560px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; background: var(--primary-light); color: var(--primary-dark);
  border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.hero-stats .stat .num { font-size: 24px; font-weight: 700; color: var(--text); }
.hero-stats .stat .lbl { font-size: 13px; color: var(--text-muted); }

/* Hero 右侧装饰：代码窗口 */
.hero-visual {
  position: relative;
}
.code-window {
  background: var(--bg-dark); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); overflow: hidden; font-family: var(--font-mono);
}
.code-window .titlebar {
  display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-dark-soft);
  border-bottom: 1px solid var(--border-dark);
}
.code-window .titlebar span { width: 12px; height: 12px; border-radius: 50%; }
.code-window .titlebar .r { background: #ef4444; }
.code-window .titlebar .y { background: #f59e0b; }
.code-window .titlebar .g { background: #10b981; }
.code-window .code-body { padding: 20px; font-size: 13px; line-height: 1.7; color: #cbd5e1; }
.code-window .code-body .kw { color: #c084fc; }
.code-window .code-body .str { color: #86efac; }
.code-window .code-body .fn { color: #93c5fd; }
.code-window .code-body .cm { color: #64748b; }
.code-window .code-body .nm { color: #fbbf24; }

/* ---------- 应用卡片网格 ---------- */
.app-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.app-card {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  transition: all .2s; text-decoration: none; color: inherit; height: 100%;
}
.app-card:hover {
  border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-2px);
  text-decoration: none; color: inherit;
}
.app-card .app-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 16px;
}
.app-card .app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.app-card h3 { margin: 0 0 4px; font-size: 18px; }
.app-card .platform-tag {
  display: inline-block; font-size: 12px; color: var(--text-muted);
  margin-bottom: 12px;
}
.app-card .desc {
  color: var(--text-muted); font-size: 14px; flex: 1; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.app-card .card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.app-card .ver { font-size: 13px; color: var(--text-muted); }
.app-card .dl-link { font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---------- 特性区 ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 28px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all .2s;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card .icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-card .icon-box svg { width: 22px; height: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 17px; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- CTA 区 ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-soft));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37, 99, 235, 0.25), transparent);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--text-inverse-muted); margin-bottom: 28px; font-size: 16px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-inverse-muted); padding: 64px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-inverse-muted); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-dark-soft); display: flex; align-items: center; justify-content: center;
  color: var(--text-inverse-muted);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social svg { width: 16px; height: 16px; }

/* ---------- 应用详情页 ---------- */
.detail-hero {
  padding: 56px 0 48px; background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.detail-hero-grid { display: grid; grid-template-columns: auto 380px; gap: 48px; align-items: start; }
.detail-hero .app-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.detail-hero .app-head .app-icon {
  width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 32px; font-weight: 800; flex-shrink: 0;
}
.detail-hero .app-head .app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.detail-hero h1 { margin: 0 0 6px; }
.detail-hero .tagline { color: var(--text-muted); margin: 0; font-size: 16px; }
.detail-hero .meta-row {
  display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px;
}
.detail-hero .meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.detail-hero .meta-row svg { width: 15px; height: 15px; }

/* 下载卡片 */
.download-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: sticky; top: calc(var(--header-h) + 24px);
  box-shadow: var(--shadow-sm);
}
.download-card h3 { margin: 0 0 4px; font-size: 18px; }
.download-card .ver-line { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }
.download-card .size-line { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.download-card .btn { margin-bottom: 16px; }
.download-card .sha-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px; font-family: var(--font-mono); font-size: 11px; word-break: break-all;
  color: var(--text-muted); line-height: 1.5;
}
.download-card .sha-box .label {
  display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.download-card .extra-info { font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.download-card .extra-info div { margin-bottom: 4px; }

/* 右侧栏纵向排列 */
.detail-aside { display: flex; flex-direction: column; gap: 16px; }
.detail-aside .download-card { position: static; }

/* 下载安全提示模态框 */
.dl-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.dl-modal.show { display: flex; }
.dl-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.dl-modal-dialog {
  position: relative; z-index: 1; width: 480px; max-width: calc(100% - 40px);
  background: var(--bg); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; animation: dl-pop .2s ease-out;
}
@keyframes dl-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.dl-modal-header {
  display: flex; align-items: center; gap: 12px; padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.dl-modal-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: #fffbeb; color: var(--warning);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dl-modal-header h3 { margin: 0; font-size: 16px; flex: 1; }
.dl-modal-close {
  background: none; border: 0; cursor: pointer; padding: 4px;
  color: var(--text-muted); display: flex;
}
.dl-modal-close:hover { color: var(--text); }
.dl-modal-body { padding: 20px 24px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.dl-modal-body p { margin: 0 0 14px; }
.dl-modal-steps { display: flex; flex-direction: column; gap: 12px; }
.dl-step { display: flex; gap: 10px; align-items: flex-start; }
.dl-step-num {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.dl-step code {
  background: #f1f5f9; padding: 1px 5px; border-radius: 4px;
  font-size: 12px; font-family: var(--font-mono); color: var(--text);
}
.dl-modal-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px; background: var(--bg-soft); border-top: 1px solid var(--border);
}

/* 截图展示 */
.screenshots-section { margin-top: 48px; }
.screenshots {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
}
.screenshots img {
  height: 360px; border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); scroll-snap-align: start; flex-shrink: 0;
}

/* 详情内容区 */
.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.detail-section { margin-bottom: 48px; }
.detail-section h2 {
  font-size: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--border); margin-bottom: 20px;
}

/* 功能列表 */
.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.features-list li {
  display: flex; gap: 12px; padding: 16px; background: var(--bg-soft);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.features-list .check {
  width: 24px; height: 24px; border-radius: 50%; background: var(--success);
  color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.features-list .check svg { width: 14px; height: 14px; }
.features-list .txt { font-size: 14px; }

/* 版本时间线 */
.version-list { list-style: none; padding: 0; margin: 0; position: relative; }
.version-list::before {
  content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border);
}
.version-list li { position: relative; padding: 0 0 24px 40px; }
.version-list li::before {
  content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--primary);
}
.version-list li.current::before { background: var(--primary); }
.version-list .ver-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.version-list .ver-num { font-weight: 700; font-size: 16px; }
.version-list .ver-date { color: var(--text-muted); font-size: 13px; }
.version-list .ver-notes { color: var(--text-muted); font-size: 14px; white-space: pre-wrap; }
.badge-latest {
  display: inline-block; font-size: 11px; padding: 2px 8px;
  background: var(--success); color: #fff; border-radius: 999px; font-weight: 600;
}

/* ---------- 空状态 ---------- */
.empty-state { text-align: center; padding: 80px 20px; color: var(--text-muted); }
.empty-state .icon-circle {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.empty-state svg { width: 28px; height: 28px; }

/* ---------- 通用页面（关于/联系/隐私） ---------- */
.page-hero { padding: 56px 0 32px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { margin: 0 0 12px; }
.page-hero p { color: var(--text-muted); font-size: 17px; margin: 0; max-width: 640px; }
.page-body { padding: 48px 0; }
.page-body h2 { font-size: 20px; margin-top: 32px; margin-bottom: 12px; }
.page-body p, .page-body li { color: var(--text); line-height: 1.8; }
.page-body ul { padding-left: 20px; }
.page-body li { margin-bottom: 8px; }

/* 联系页卡片 */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.contact-card {
  padding: 32px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center; transition: all .2s;
}
.contact-card:hover { box-shadow: var(--shadow); }
.contact-card .icon-box {
  width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.contact-card .icon-box svg { width: 24px; height: 24px; }
.contact-card h3 { margin: 0 0 6px; }
.contact-card p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* 关于页值卡片 */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 28px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.value-card h3 { margin: 0 0 8px; }
.value-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ============================================================
   后台管理样式
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 32px 0; }
.admin-sidebar {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; position: sticky; top: calc(var(--header-h) + 24px); height: fit-content;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); margin-bottom: 2px; font-size: 14px; font-weight: 500;
}
.admin-sidebar a:hover { background: var(--bg-soft); }
.admin-sidebar a.active { background: var(--primary); color: #fff; }
.admin-sidebar a svg { width: 16px; height: 16px; }

.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.admin-topbar h2 { margin: 0; }

/* 表格 */
table.data-table {
  width: 100%; border-collapse: collapse; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.data-table th { background: var(--bg-soft); font-weight: 600; color: var(--text-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-soft); }

/* 表单 */
.form-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=file],
.form-row textarea, .form-row select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row .hint { color: var(--text-muted); font-size: 12px; margin-top: 6px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.form-inline { display: flex; gap: 10px; align-items: center; }

.login-wrap { max-width: 380px; margin: 80px auto; }
.login-wrap .form-card { max-width: none; }
.login-wrap h2 { text-align: center; margin-bottom: 24px; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.stat-card .num { font-size: 32px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.stat-card .lbl { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

.chart-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.chart-card h3 { margin: 0 0 16px; font-size: 16px; }

/* ---------- 通知条 ---------- */
.flashes { margin-bottom: 20px; }
.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 8px;
  border: 1px solid var(--border); background: var(--bg); font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.flash-success { border-color: var(--success); background: #f0fdf4; color: #166534; }
.flash-danger { border-color: var(--danger); background: #fef2f2; color: #991b1b; }
.flash-warning { border-color: var(--warning); background: #fffbeb; color: #92400e; }
.flash-info { border-color: var(--primary); background: #eff6ff; color: #1e40af; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .detail-hero-grid, .detail-body { grid-template-columns: 1fr; }
  .detail-aside .download-card { position: static; }
  .features-grid, .values-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px;
  }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; }
  .features-grid, .values-grid, .contact-grid, .features-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .cta-band { padding: 40px 24px; }
}
