* { box-sizing: border-box; }
body { margin: 0; font: 15.5px/1.65 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1d1d1f; background: #f7f7f5; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.topbar { background: #fff; border-bottom: 1px solid #e5e5e5; position: sticky; top: 0; z-index: 10; }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { font-size: 18px; font-weight: 700; }
nav a { color: #1d1d1f; text-decoration: none; margin-right: 18px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-box { font-size: 13px; color: #666; }
.btn { background: #2563eb; color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-size: 15px; cursor: pointer; height: 40px; }
.btn.big { padding: 12px 28px; height: 48px; font-size: 16px; }
.btn.small { padding: 6px 14px; height: 32px; font-size: 13px; }
.btn.ghost { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.ghost-btn { background: none; border: 1px solid #ccc; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.hero { text-align: center; padding: 64px 20px 40px; }
.hero h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -1px; }
.sub { color: #555; font-size: 17px; max-width: 640px; margin: 0 auto 16px; }
.hero-points { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; color: #2563eb; font-weight: 600; margin-bottom: 24px; }
.tiny { color: #888; font-size: 13px; }
.card { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 28px; margin: 24px auto; }
h2 { font-size: 24px; margin: 8px 0 16px; }
h3 { font-size: 17px; margin: 20px 0 10px; }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
label { display: block; margin: 8px 0; font-weight: 600; }
input, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font: inherit; margin-top: 4px; }
#topic { width: 420px; max-width: 100%; }
.credits-pill { background: #eef2ff; color: #2563eb; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.hooks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hook { border: 2px solid #e5e5e5; border-radius: 10px; padding: 14px; cursor: pointer; }
.hook.sel { border-color: #2563eb; background: #eef2ff; }
.hook b { display: block; font-size: 16px; }
.hook p { margin: 6px 0 0; color: #555; font-size: 13.5px; }
.estimate { font-weight: 600; color: #2563eb; }
.script-box textarea { min-height: 64px; }
.scene-ed { margin-bottom: 12px; }
.scene-ed .scene-title { font-weight: 700; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; background: #fef3c7; color: #92400e; }
.badge.ok { background: #dcfce7; color: #166534; }
.msg { color: #b91c1c; min-height: 20px; }
.msg.ok { color: #166534; }
.notice { background: #fffbeb; border: 1px solid #fde68a; padding: 12px 16px; border-radius: 8px; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.video-card { border: 1px solid #e5e5e5; border-radius: 10px; padding: 12px; background: #fff; }
.video-card img { width: 100%; border-radius: 8px; display: block; }
.video-card .st { font-weight: 700; }
.video-card .st.done { color: #166534; }
.video-card .st.failed { color: #b91c1c; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.plan { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px; text-align: center; }
.plan.hot { border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.plan .price { font-size: 28px; font-weight: 700; color: #2563eb; margin: 8px 0; }
.plan .price span { font-size: 14px; color: #666; font-weight: 400; }
.foot { text-align: center; padding: 32px 20px; color: #888; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.modal-card { background: #fff; border-radius: 12px; padding: 24px; width: 380px; max-width: 92vw; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { border-bottom: 1px solid #eee; padding: 8px 6px; text-align: left; }
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .topbar-in { gap: 8px; height: auto; padding: 8px 0; flex-wrap: wrap; }
  .logo { white-space: nowrap; }
  nav { order: 3; width: 100%; }
  nav a { margin-right: 12px; font-size: 14px; }
  .top-right { flex-shrink: 0; }
  .btn.small { white-space: nowrap; flex-shrink: 0; }
}
