/* ============ 企业网页生成系统 用户端 ============ */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-light: #eef2ff;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 500; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 6px; }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 导航 */
.nav {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.nav .brand { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.nav .brand .logo { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nav .links { display: flex; align-items: center; gap: 20px; }
.nav .links a { color: var(--text-light); font-size: 15px; }
.nav .links a:hover { color: var(--primary); }
.nav .userbox { display: flex; align-items: center; gap: 14px; color: var(--text-light); font-size: 14px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 55%, #7c3aed 100%);
  color: #fff; text-align: center; padding: 96px 24px 110px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.14) 0, transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(255,255,255,.1) 0, transparent 35%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 44px; font-weight: 800; letter-spacing: 1px; margin-bottom: 18px; }
.hero p { font-size: 18px; opacity: .92; max-width: 640px; margin: 0 auto 36px; }
.hero .btn-hero { background: #fff; color: var(--primary); padding: 14px 40px; font-size: 17px; border-radius: 10px; font-weight: 600; }
.hero .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.hero .btn-hero + .btn-hero { margin-left: 14px; background: rgba(255,255,255,.16); color: #fff; }

/* 区块 */
.section { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.section .sec-title { text-align: center; font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.section .sec-sub { text-align: center; color: var(--text-light); margin-bottom: 48px; font-size: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 26px; transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(79,70,229,.1); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--text-light); font-size: 14px; }
.step-no { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* 表单卡片 */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); }
.auth-card { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(79,70,229,.12); padding: 44px 40px; width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; color: var(--text); }
.form-group .tip { font-weight: 400; color: var(--text-light); font-size: 12px; margin-left: 6px; }
input[type=text], input[type=password], textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; outline: none; transition: border .2s; background: #fff; color: var(--text);
  font-family: inherit;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
textarea { min-height: 110px; resize: vertical; }
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 18px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 14px; color: var(--text-light); }
.btn-block { width: 100%; padding: 12px; font-size: 16px; }

/* 工作台 */
.dash-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.quota-banner {
  background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; border-radius: var(--radius);
  padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px;
}
.quota-banner .num { font-size: 40px; font-weight: 800; line-height: 1; }
.quota-banner .label { opacity: .9; font-size: 14px; }
.gen-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; margin-bottom: 32px; }
.gen-card h3 { font-size: 19px; margin-bottom: 4px; }
.gen-card .sub { color: var(--text-light); font-size: 14px; margin-bottom: 22px; }

/* 表格 */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--border); font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { background: var(--bg); color: var(--text-light); font-weight: 500; white-space: nowrap; }
td { color: var(--text); }
tr:last-child td { border-bottom: none; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.tag-green { background: #dcfce7; color: var(--green); }
.tag-red { background: #fee2e2; color: var(--red); }
.tag-gray { background: #f1f5f9; color: var(--text-light); }
.tag-amber { background: #fef3c7; color: var(--amber); }
.link-text { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; color: var(--primary); font-size: 13px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { text-align: center; color: var(--text-light); padding: 48px 0; font-size: 14px; }

/* 弹窗 */
.modal-mask {
  display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 100;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 34px 32px; max-width: 380px; width: 100%;
  text-align: center; animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 19px; margin-bottom: 8px; }
.modal .tip { color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.modal img { width: 210px; height: 210px; border: 1px solid var(--border); border-radius: 10px; }
.modal .wxid { margin-top: 14px; font-size: 15px; }
.modal .wxid b { color: var(--primary); }
.modal .close-btn { margin-top: 18px; background: var(--bg); color: var(--text-light); }
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-80px);
  background: #1e293b; color: #fff; padding: 10px 22px; border-radius: 8px; font-size: 14px;
  z-index: 200; transition: transform .3s ease; pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* 生成的企业官网 */
.site { background: #fff; }
.site-nav { max-width: 1080px; margin: 0 auto; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.site-nav .logo { font-weight: 700; font-size: 19px; color: var(--text); }
.site-nav .menu { display: flex; gap: 26px; }
.site-nav .menu a { color: var(--text-light); font-size: 14px; }
.site-hero { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; text-align: center; padding: 90px 24px; }
.site-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.site-hero .slogan { font-size: 19px; opacity: .95; margin-bottom: 10px; }
.site-hero .tagline { font-size: 14px; opacity: .8; }
.site-section { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.site-section .title { text-align: center; font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.site-section .subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 40px; }
.about-paras p { color: var(--text-light); font-size: 15px; text-indent: 2em; margin-bottom: 14px; line-height: 1.9; }
.svc { counter-reset: none; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.svc .no { color: var(--primary); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.svc h4 { font-size: 17px; margin-bottom: 8px; }
.svc p { color: var(--text-light); font-size: 13px; }
.adv-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 16px; }
.contact-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.contact-item { background: var(--bg); border-radius: var(--radius); padding: 24px; text-align: center; }
.contact-item .label { color: var(--text-light); font-size: 13px; margin-bottom: 6px; }
.contact-item .value { font-size: 15px; font-weight: 600; }
.site-footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 28px 24px; font-size: 13px; }
.site-footer a { color: #94a3b8; }

/* 状态页（停用/过期） */
.state-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.state-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 56px 48px; text-align: center; max-width: 460px; width: 100%; }
.state-card .emoji { font-size: 52px; margin-bottom: 20px; }
.state-card h2 { font-size: 22px; margin-bottom: 10px; }
.state-card p { color: var(--text-light); font-size: 14px; margin-bottom: 26px; }

@media (max-width: 768px) {
  .grid-3, .grid-4, .contact-box { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4, .contact-box { grid-template-columns: 1fr; }
  .quota-banner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== 使用教程 banner ===== */
.tut-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(120deg, #4f46e5 0%, #6d28d9 55%, #9333ea 100%);
  border-radius: var(--radius); padding: 16px 24px; margin-bottom: 28px;
  color: #fff; text-decoration: none;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .22);
  transition: transform .2s, box-shadow .2s;
}
.tut-banner:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 70, 229, .32); }
.tut-banner .tb-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tut-banner .tb-icon {
  flex: 0 0 46px; width: 46px; height: 46px; font-size: 24px;
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.tut-banner .tb-title { font-weight: 700; font-size: 16px; }
.tut-banner .tb-sub { font-size: 13px; opacity: .88; margin-top: 2px; }
.tut-banner .tb-btn {
  flex: 0 0 auto; background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .45);
  padding: 8px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
@media (max-width: 520px) {
  .tut-banner { padding: 14px 16px; }
  .tut-banner .tb-sub { display: none; }
  .tut-banner .tb-title { font-size: 14px; }
  .tut-banner .tb-btn { padding: 6px 12px; font-size: 13px; }
}

/* ===== 全局 LOGO 图片（导航品牌位） ===== */
.nav .brand .logo-img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

/* ===== 浮动客服：购买服务 ===== */
.float-service {
  position: fixed; right: 26px; bottom: 30px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 26px rgba(79, 70, 229, .45);
  transition: transform .2s, box-shadow .2s;
}
.float-service:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(79, 70, 229, .55); }
.float-service .fs-icon { font-size: 17px; }

/* ===== 收费说明（弹窗内） ===== */
.fee-box {
  background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6;
  border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.8;
  text-align: left; margin-bottom: 18px; white-space: pre-wrap;
}

/* ===== 生成成功弹窗 ===== */
.gen-url {
  background: #f8fafc; border: 1px dashed #cbd5e1; color: #4f46e5;
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; line-height: 1.7;
  text-align: left; margin-bottom: 18px; word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace; max-height: 110px; overflow-y: auto;
}
.gen-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.gen-actions .btn { flex: 1; }