/* ══════════════════════════════════════════════════════════════
   迅锋视频下载器 · 对外站点样式
   配色与后台（web/style.css）保持一致，主色 #14b8a6。
   ══════════════════════════════════════════════════════════════ */

:root {
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --primary-soft: #e6fffb;
  --primary-line: #99f6e4;

  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;

  --border: #e5e8ef;
  --bg: #f5f7fa;
  --card: #ffffff;

  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --warn: #ff7d00;
  --warn-soft: #fff7e8;

  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; }
p { margin: 0; }
a { color: var(--primary-dark); text-decoration: none; }

.hidden { display: none !important; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mono { font-family: Consolas, Monaco, monospace; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 24px 8px; }
.section-title { font-size: 24px; margin-bottom: 8px; }
.section-sub { color: var(--text-3); margin-bottom: 24px; }

/* ---------------- 顶栏 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 600;
}
.brand-name { font-size: 16px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--text-2); font-size: 14px; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-user { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--text);
  font-size: 14px; font-family: inherit; cursor: pointer;
  transition: .15s;
}
.btn:hover { border-color: var(--primary-line); color: var(--primary-dark); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- 卡片 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card h3 { font-size: 15px; margin-bottom: 6px; }
.hint { color: var(--text-3); font-size: 12.5px; margin-bottom: 12px; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 24px; text-align: center; }
.hero h1 { font-size: 38px; line-height: 1.3; letter-spacing: -.5px; }
.hero-sub { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 12.5px; color: var(--text-3); }

/* ---------------- 功能 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature h3 { display: flex; align-items: center; gap: 8px; }
.feature h3::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex: none;
}
.feature p { margin-top: 6px; font-size: 13px; color: var(--text-2); }

/* ---------------- 价格 ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.price { text-align: center; position: relative; padding: 26px 20px; }
.price.featured { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 12px; padding: 2px 12px; border-radius: 20px;
}
.price-num { font-size: 32px; font-weight: 600; color: var(--text); margin: 10px 0 2px; }
.price-num span { font-size: 32px; }
.price-note { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.price-list { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.price-list li { padding: 6px 0 6px 20px; position: relative; font-size: 13px; }
.price-list li::before {
  content: ''; position: absolute; left: 2px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary-line);
}
.price-list b { color: var(--primary-dark); }

/* ---------------- 下载 ---------------- */
.download-card { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.dl-left { flex: 1; min-width: 260px; }
.dl-right { flex: none; }
.notice-card { margin-top: 16px; border-left: 3px solid var(--warn); }
.notice-card p { margin-top: 6px; font-size: 13px; white-space: pre-wrap; }

/* ---------------- 会员中心 ---------------- */
#member-panel { padding-top: 32px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { font-size: 20px; }
.member-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; align-items: start; }
.member-card .kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.member-card .kv:last-child { border-bottom: none; }
.member-card .k { color: var(--text-3); font-size: 13px; flex: none; }
.member-card .v { color: var(--text); text-align: right; word-break: break-all; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: 12px; }
.tag.ok { background: var(--primary-soft); color: var(--primary-dark); }
.tag.gray { background: #f2f3f5; color: var(--text-3); }

/* ---------------- 表单 ---------------- */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.field input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; transition: .15s;
}
.field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .45); }
.modal-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 26px;
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  border: none; background: none; font-size: 22px; line-height: 1;
  color: var(--text-3); cursor: pointer;
}
.tabs { display: flex; gap: 20px; margin-bottom: 20px; }
.tab {
  border: none; background: none; padding: 0 0 8px;
  font-size: 16px; font-family: inherit; color: var(--text-3);
  cursor: pointer; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--text); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------------- 提示条 ---------------- */
/* top 留出导航高度（60px）+ 间距，否则 toast 会盖住顶部导航 */
.toast-root { position: fixed; left: 50%; top: 74px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); padding: 10px 18px; font-size: 13.5px; color: var(--text);
  animation: toast-in .18s ease-out;
}
.toast.error { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.toast.ok { border-color: var(--primary-line); background: var(--primary-soft); color: var(--primary-dark); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------------- 页脚 ---------------- */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--border); font-size: 13px; }
.foot .muted { margin-top: 8px; font-size: 12.5px; }

/* ---------------- 移动端 ---------------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 16px; }
  .hero h1 { font-size: 27px; }
  .feature-grid, .price-grid, .member-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 20px 8px; }
  .download-card { flex-direction: column; align-items: stretch; }
  .dl-right .btn { width: 100%; }
  .brand-name { font-size: 15px; }
}
