/* EA 资源站样式 · light 主题 · 响应式 */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --text: #1a1d24;
  --text-2: #5b6472;
  --text-3: #8b93a1;
  --border: #e3e7ed;
  --brand: #2f5fe0;
  --brand-dark: #2349b8;
  --up: #d64545;        /* 中国习惯：涨=红 */
  --up-soft: #fdecec;
  --ok: #1a9c6b;
  --ok-soft: #e6f6ef;
  --warn: #c8811a;
  --warn-soft: #fdf3e3;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 4px 20px rgba(20, 30, 60, 0.06);
  --shadow-lg: 0 18px 50px rgba(20, 30, 60, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
.container { width: min(1120px, 92%); margin: 0 auto; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--brand); color: #fff; border-radius: 9px; font-size: 13px; font-weight: 800; letter-spacing: .5px;
}
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav a:hover { color: var(--brand); }

/* 英雄区 */
.hero { padding: 72px 0 64px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .5px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 18px 0 16px; font-weight: 800; letter-spacing: -1px; }
.hero h1 .accent { color: var(--brand); }
.hero-sub { color: var(--text-2); font-size: 16px; max-width: 480px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s ease; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.hero-stats { display: flex; gap: 36px; margin-top: 42px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 22px; font-weight: 800; }
.stat span { font-size: 12px; color: var(--text-3); }

.hero-art { display: flex; justify-content: center; }
.chart-card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.chart-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.chart-head .up { color: var(--up); font-weight: 700; }
.chart-svg { width: 100%; height: 160px; margin: 12px 0; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.chart-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }

/* 通用区块 */
.section { padding: 68px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { margin: 0; color: var(--text-2); font-size: 14px; }

/* 筛选 */
.filter { display: flex; gap: 8px; flex-wrap: wrap; }
.filter button {
  padding: 7px 15px; border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; transition: .16s;
}
.filter button:hover { border-color: var(--brand); color: var(--brand); }
.filter button.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* EA 卡片网格 */
.ea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ea-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; cursor: pointer; transition: .2s ease; display: flex; flex-direction: column;
}
.ea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd7f5; }
.ea-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ea-badge { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.badge-self { background: var(--brand); color: #fff; }
.badge-pick { background: var(--warn-soft); color: var(--warn); }
.ea-version { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ea-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.ea-cat { font-size: 12px; color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.ea-summary { font-size: 13px; color: var(--text-2); margin: 0 0 18px; flex: 1; }
.ea-card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 14px; }
.ea-price { font-size: 18px; font-weight: 800; color: var(--up); }
.ea-get { font-size: 13px; color: var(--brand); font-weight: 600; }
.ea-card:hover .ea-get { text-decoration: underline; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step-num {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; font-size: 13px; color: var(--text-2); }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 800px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); flex-wrap: wrap; gap: 10px; }
.footer-inner a { color: var(--brand); }

/* 弹窗 */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 22, 40, .5); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; background: var(--surface); border-radius: 18px;
  width: min(680px, 100%); max-height: 88vh; overflow-y: auto;
  padding: 32px; box-shadow: var(--shadow-lg); animation: pop .2s ease;
}
.modal-sm { width: min(440px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 32px; height: 32px;
  border: none; background: var(--surface-2); border-radius: 8px; font-size: 22px;
  color: var(--text-2); cursor: pointer; line-height: 1;
}
.modal-close:hover { background: var(--border); }
.modal-panel h2 { margin: 0 0 4px; font-size: 24px; }
.modal-lead { margin: 0 0 22px; color: var(--text-2); font-size: 14px; }
.modal-note { margin: 16px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }

/* 详情内容 */
.detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.detail-head h2 { margin: 0; }
.detail-meta { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.detail-summary { font-size: 14px; color: var(--text-2); background: var(--surface-2); padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 22px; }
.detail-section { margin-bottom: 22px; }
.detail-section h3 { font-size: 15px; margin: 0 0 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.feature-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.feature-list li { margin-bottom: 5px; }
.param-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.param-table th, .param-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.param-table th { color: var(--text-3); font-weight: 600; font-size: 12px; }
.param-table td.code { font-family: ui-monospace, "SF Mono", Consolas, monospace; color: var(--brand); }
.detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 8px; flex-wrap: wrap; }
.detail-cta .price { font-size: 22px; font-weight: 800; color: var(--up); }
.detail-cta .price small { font-size: 12px; color: var(--text-3); font-weight: 400; }

/* 表单 */
#licenseForm label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
#licenseForm input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; letter-spacing: 1px; outline: none; transition: .16s; background: var(--bg);
}
#licenseForm input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 95, 224, .12); background: var(--surface); }
.form-error { min-height: 18px; margin: 8px 0 4px; font-size: 12px; color: var(--up); }
.form-success { color: var(--ok); }
.download-box { display: none; background: var(--ok-soft); border: 1px solid #bfe6d3; border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.download-box.show { display: block; }
.download-box p { margin: 0 0 14px; font-size: 13px; color: var(--ok); font-weight: 600; }
.download-box .btn { background: var(--ok); color: #fff; }
.download-box .btn:hover { background: #12805a; }
.download-box .expire { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); }

/* 提示条 */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1d24; color: #fff; padding: 12px 22px; border-radius: 10px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 响应式 */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { display: none; }
  .ea-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { display: none; }
  .hero { padding: 48px 0 40px; }
  .ea-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .modal-panel { padding: 26px 20px; }
}
