:root {
  --primary: #f39a1e;
  --primary-dark: #d97706;
  --primary-text: #c2620a;
  --brand-yellow: #ffd350;
  --accent: #ff6b35;
  --text: #1f2a37;
  --muted: #6b7785;
  --bg: #ffffff;
  --bg-alt: #fdf7ee;
  --border: #f1e6d6;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(140, 80, 10, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary-text); text-decoration: none; }
h1, h2, h3 { margin: 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* 按钮 */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 8px; border: 1px solid var(--primary);
  background: var(--primary); color: #fff; font-size: 15px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-sm { padding: 5px 14px; font-size: 14px; }
.btn-lg { padding: 14px 36px; font-size: 18px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-disabled, .btn-disabled:hover { background: #e9e2d8; border-color: #e9e2d8; color: var(--muted); cursor: default; transform: none; }
.btn-outline { background: transparent; color: var(--primary-text); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-light { background: #fff; color: var(--primary-text); border-color: #fff; }
.btn-light:hover { background: #fff8ec; }
.btn-download { background: var(--accent); border-color: var(--accent); }
.btn-download:hover { background: #f0551c; }
.btn-download small { font-size: 12px; font-weight: 400; opacity: .9; }
.link-btn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--primary); }
.inline-form { display: inline; margin: 0; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); }
.logo-img { width: 24px; height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text); }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-user { font-weight: 600; }

/* 首屏 */
.hero { background: linear-gradient(180deg, #fff4e3 0%, #fff 100%); padding: 64px 0 40px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 46px; letter-spacing: 2px; }
.hero-sub { font-size: 20px; color: var(--muted); margin: 12px 0 28px; }
.hero-visual { display: flex; justify-content: center; }
.screen { width: 100%; max-width: 480px; border-radius: 16px; background: #1b2430; box-shadow: 0 30px 60px rgba(140, 80, 10, .25); overflow: hidden; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #121922; }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4656; }
.screen-bar span { margin-left: auto; background: #ff4d4f; color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 4px; font-weight: 700; }
.screen-body { position: relative; height: 280px; background: radial-gradient(circle at 30% 30%, #4a3b2c, #16202b); }
.danmu {
  position: absolute; left: 100%; white-space: nowrap; color: #fff; font-size: 14px;
  padding: 4px 12px; border-radius: 20px; background: rgba(255,255,255,.12);
  animation: fly 9s linear infinite;
}
.d1 { top: 20px; animation-delay: -1s; } .d2 { top: 62px; animation-delay: -4s; color: #ffe08a; }
.d3 { top: 104px; animation-delay: -6.5s; color: #ffb38a; } .d4 { top: 146px; animation-delay: -2.8s; }
@keyframes fly { from { left: 100%; } to { left: -50%; } }
@media (prefers-reduced-motion: reduce) { .danmu { animation: none; left: auto; right: 16px; } }
.gift-card { position: absolute; left: 16px; bottom: 16px; width: 180px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.progress { height: 6px; background: #f6ead8; border-radius: 3px; margin: 6px 0 4px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--brand-yellow)); }
.gift-card small { color: var(--muted); }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -10px; position: relative; }
.quick-card { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); color: var(--text); transition: transform .2s; }
.quick-card:hover { transform: translateY(-3px); }
.quick-card b { font-size: 16px; }
.quick-card p { margin: 0; color: var(--muted); font-size: 13px; }
.qi { font-size: 28px; }

/* 通用区块 */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 30px; margin-bottom: 44px; }
.section-title small { display: block; font-size: 13px; color: var(--muted); letter-spacing: 4px; font-weight: 400; margin-top: 4px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: box-shadow .2s, border-color .2s; }
.feature:hover { box-shadow: var(--shadow); border-color: transparent; }
.feature h3 { font-size: 20px; margin: 12px 0 8px; border-left: 4px solid var(--primary); padding-left: 10px; line-height: 1.2; }
.feature p { margin: 0; color: var(--muted); }
.f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: #fff1d9; }

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); padding: 18px 20px; font-weight: 600; }
.platform span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 15px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
.plan { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.plan-hot { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 10px; }
.price { font-size: 38px; font-weight: 700; margin: 8px 0 12px; color: var(--primary-text); }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 18px; margin: 0 0 24px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 6px; }

.cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; text-align: center; padding: 56px 0; }
.cta h2 { font-size: 28px; margin-bottom: 24px; }

/* 页脚 */
.footer { background: #16202b; color: #c5cdd5; padding: 40px 0 20px; }
.footer .logo { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #c5cdd5; }
.footer-links a:hover { color: #fff; }
.copyright { border-top: 1px solid #2a3542; margin-top: 24px; padding-top: 16px; font-size: 13px; color: #8a96a3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.copyright a { color: #8a96a3; }
.copyright a:hover { color: #fff; }

/* 登录注册 */
.auth { min-height: calc(100vh - 64px - 200px); display: grid; place-items: center; padding: 48px 16px; background: linear-gradient(180deg, #fff4e3, #fff); }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 26px; }
.auth-card p { margin: 0; }
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.auth-card input { padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.auth-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(243,154,30,.2); }
.alert { background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7; border-radius: 8px; padding: 9px 12px; font-size: 14px; }

/* 用户中心 */
.user-wrap { display: flex; flex-direction: column; gap: 24px; }
.user-card { display: flex; align-items: center; gap: 20px; padding: 28px; border-radius: var(--radius); background: linear-gradient(135deg, #fff4e3, #fff); border: 1px solid var(--border); }
.user-card p { margin: 4px 0 0; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 700; flex-shrink: 0; }
.user-logout { margin-left: auto; }
.user-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.panel p { margin: 0; }

/* 响应式 */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 36px; }
  .quick, .platforms { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .nav-links a[href^="/#"] { display: none; }
  .nav-links { gap: 14px; }
  .features, .plans, .user-grid { grid-template-columns: 1fr; }
  .user-card { flex-wrap: wrap; }
  .user-logout { margin-left: 0; }
  .section { padding: 52px 0; }
}
