:root {
  --bg: #09162a;
  --bg-soft: #0d2038;
  --bg-elev: #112a47;
  --bg-card: #102742;
  --bg-hover: #173a5e;
  --border: rgba(112, 211, 255, 0.18);
  --border-strong: rgba(112, 211, 255, 0.34);
  --text: #f5fbff;
  --text-soft: #c7dcf6;
  --text-muted: #87a6c9;
  --accent: #35d8ff;
  --accent-2: #7c83ff;
  --accent-3: #3ef0ba;
  --warm: #ffbf5a;
  --good: #3ee6a3;
  --bad: #ff6b84;
  --grad: linear-gradient(120deg, #25d9ff, #6b7cff 52%, #b36bff);
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 20px 54px rgba(2, 10, 25, 0.46);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: rgba(129, 140, 248, 0.35); }

.container { width: min(1240px, 100% - 48px); margin: 0 auto; }
.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 28px;
}
.section-head h2 { font-size: 26px; margin: 0; letter-spacing: 0; font-weight: 700; }
.section-head .sub { color: var(--text-muted); font-size: 14px; margin: 6px 0 0; }
.section-head .more { color: var(--text-muted); font-size: 14px; flex-shrink: 0; }
.section-head .more:hover { color: var(--text); }
.section-head-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------- navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  flex-wrap: nowrap !important;
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(129, 140, 248, 0.4);
}
.brand-mark svg { width: 16px; height: 16px; }

/* 桌面导航链接 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-wrap: nowrap !important;
}
.nav-links a {
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav-spacer { flex: 1; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  width: 140px;
  transition: border-color .15s;
  flex-shrink: 3;
  min-width: 140px;
}
.nav-search:focus-within { border-color: var(--border-strong); }
.nav-search input { background: transparent; border: 0; outline: 0; width: 100%; font-size: 13px; }
.nav-search svg { width: 16px; height: 16px; color: var(--text-muted); flex-shrink: 0; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-wrap: nowrap !important;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* ========== 汉堡菜单 ========== */
.hamburger-btn {
  display: none;
  width: 36px;
  height:36px;
  border:1px solid var(--border);
  border-radius:8px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.hamburger-btn:hover{background:var(--bg-hover);}
.hamburger-btn svg { width: 20px; height: 20px; }
.hamburger-btn .icon-close { display: none; }
.hamburger-btn.open .icon-open { display: none; }
.hamburger-btn.open .icon-close { display: block; }

/* 下拉弹窗 */
.nav-dropdown {
  display:none;
  position:absolute;
  top:60px;
  left:0;
  right:0;
  background:rgba(11,13,18,0.96);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
  padding:16px 24px;
  z-index:100;
}
.nav-dropdown .dropdown-search{
  margin-bottom:14px;
}
.nav-dropdown .dropdown-search input{
  width:100%;
  background:var(--bg-elev);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 12px;
  outline:0;
}
.nav-dropdown a{
  display:block;
  padding:10px 0;
  font-size:15px;
  color:var(--text-soft);
  border-bottom:1px solid rgba(255,255,255,0.05);
}
.nav-dropdown a:hover{color:var(--text);}
.nav-dropdown a.active{color:var(--text);}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 8px; padding: 9px 16px;
  font-weight: 600; font-size: 14px; transition: transform .12s, background .15s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--text-soft); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-soft { background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); }
.btn-soft:hover { background: var(--bg-hover); }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 72px;
}
.hero-glow {
  position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(40% 50% at 80% 30%, rgba(244, 114, 182, 0.16), transparent 60%),
    radial-gradient(50% 60% at 55% 90%, rgba(129, 140, 248, 0.16), transparent 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--text-soft);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); }
.hero h1 { font-size: 52px; line-height: 1.12; margin: 0 0 18px; font-weight: 800; letter-spacing: 0; }
.hero .lead { font-size: 18px; color: var(--text-muted); margin: 0 auto 34px; max-width: 620px; }

.gen-box {
  max-width: 720px; margin: 0 auto; background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 10px;
  display: flex; gap: 8px; align-items: stretch;
  box-shadow: var(--shadow);
}
.gen-box textarea {
  flex: 1; background: transparent; border: 0; outline: 0; resize: none;
  padding: 10px 14px; font-size: 15px; color: var(--text); min-height: 52px;
  max-height: 160px; line-height: 1.5;
}
.gen-box .gen-go {
  align-self: stretch; border: 0; cursor: pointer; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 700; padding: 0 22px;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.gen-box .gen-go:hover { opacity: 0.92; }
.gen-note { margin: 14px auto 0; color: var(--text-muted); font-size: 13px; }
.gen-hint { font-size: 13px; color: var(--text-muted); margin-top: 14px; }
.gen-hint .chip {
  display: inline-block; padding: 3px 10px; margin: 0 3px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); cursor: pointer;
  color: var(--text-soft); font-size: 12px;
}
.gen-hint .chip:hover { color: var(--text); border-color: var(--border-strong); }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 46px; }
.hero-stats .stat { text-align: center; }
.hero-stats .num { font-size: 28px; font-weight: 800; }
.hero-stats .label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ------------------------------------------------------------- categories */
.cat-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-soft); font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.cat-pill:hover { border-color: var(--border-strong); color: var(--text); }
.cat-pill.active { background: var(--grad); color: #fff; border-color: transparent; }
.cat-pill .ic { width: 16px; height: 16px; }

/* ------------------------------------------------------------- video grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.vcard { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: transform .18s, border-color .18s; }
.vcard:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.vthumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.vthumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vthumb .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity .2s;
}
.vcard:hover .vthumb .play { opacity: 1; }
.vthumb .play span {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px); display: grid; place-items: center;
}
.vthumb .play svg { width: 18px; height: 18px; color: #fff; margin-left: 2px; }
.vthumb .duration {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, 0.65);
  padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600;
}
.vthumb .badge {
  position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px); color: #fff;
}
.vmeta { padding: 12px 14px 14px; }
.vmeta h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vmeta .vsub { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.vmeta .vsub .sep { opacity: 0.4; }

/* ------------------------------------------------------------- detail */
.detail-player {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--border);
}
.detail-player video { width: 100%; height: 100%; object-fit: contain; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: 28px; }
.detail-main h1 { font-size: 24px; margin: 0 0 10px; }
.detail-actions { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.stat-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text-soft); font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.stat-btn:hover { color: var(--text); border-color: var(--border-strong); }
.stat-btn.liked { color: var(--accent-3); border-color: rgba(244, 114, 182, 0.4); }
.stat-btn svg { width: 16px; height: 16px; }
.prompt-box { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-top: 8px; }
.prompt-box .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.prompt-box p { margin: 0; color: var(--text-soft); font-size: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--text-muted); margin-top: 18px; }

.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-item { display: flex; gap: 12px; }
.side-item .thumb { width: 132px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #000; }
.side-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-item .info { min-width: 0; }
.side-item .info h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-item .info .s { font-size: 12px; color: var(--text-muted); }

/* ------------------------------------------------------------- tools */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 28px; transition: transform .18s, border-color .18s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.tool-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 18px; box-shadow: 0 8px 22px rgba(129, 140, 248, 0.3);
}
.tool-icon svg { width: 22px; height: 22px; color: #fff; }
.tool-card h3 { margin: 0 0 8px; font-size: 19px; }
.tool-card p { margin: 0 0 20px; color: var(--text-muted); font-size: 14px; }
.tool-card .btn { width: 100%; }

.tool-stage { margin-top: 48px; }

/* ------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 0; }
.auth-card {
  width: min(420px, 100%); background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 34px; box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-soft); margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; outline: 0; font-size: 15px; transition: border-color .15s;
}
.field input:focus { border-color: var(--accent); }
.auth-card .btn { width: 100%; margin-top: 6px; padding: 12px; }
.auth-alt { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 18px; }
.auth-alt a { color: var(--accent); }
.form-error {
  background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--bad); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.form-success {
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--good); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
}
.auth-forgot { text-align: right; margin: 12px 0 0; }
.auth-forgot a { color: var(--accent); font-size: 13px; }

/* ------------------------------------------------------------- profile */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 34px; }
.profile-head .avatar { width: 60px; height: 60px; font-size: 24px; }
.profile-head h1 { margin: 0; font-size: 24px; }
.profile-head .sub { color: var(--text-muted); font-size: 14px; margin: 2px 0 0; }
.tab-row { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.tab-row button {
  background: none; border: 0; padding: 10px 18px; cursor: pointer; color: var(--text-muted);
  font-size: 15px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-row button.active { color: var(--text); border-bottom-color: var(--accent); }

.task-list { display: flex; flex-direction: column; gap: 10px; }
.task-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
}
.task-item .t-type { font-size: 12px; color: var(--text-muted); }
.task-item .t-prompt { flex: 1; font-size: 14px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { width: 160px; height: 6px; background: var(--bg-hover); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.status-pill { font-size: 12px; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.status-queued { background: rgba(245, 158, 11, 0.15); color: var(--warm); }
.status-processing { background: rgba(56, 189, 248, 0.15); color: var(--accent); }
.status-completed { background: rgba(52, 211, 153, 0.15); color: var(--good); }
.status-failed { background: rgba(248, 113, 113, 0.15); color: var(--bad); }

/* ------------------------------------------------------------- projects */
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .18s, border-color .18s; }
.project-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.project-cover { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-cover-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-muted); background: linear-gradient(135deg, #141821, #1a202c); }
.project-cover-empty svg { width: 34px; height: 34px; opacity: .7; }
.project-info { padding: 14px 16px 16px; }
.project-info h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-info p { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); line-height: 1.5; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.project-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); opacity: .8; }
.project-delete-btn { margin-left: 8px; color: var(--bad); border-color: rgba(248,113,113,.35); }
.project-delete-btn:hover { background: rgba(248,113,113,.12); color: var(--bad); }

.project-modal-card { width: min(540px, 100%); }
.project-modal-card .project-modal-body form { display: block; }
.project-modal-body .field-label { display: block; margin: 16px 0 8px; font-size: 13px; color: var(--text-soft); }
.project-modal-body .required { color: var(--bad); }
.project-modal-body input, .project-modal-body textarea {
  flex: none; width: 100%; min-width: 0; margin: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 14px; color: var(--text); outline: 0; font-size: 14px;
}
.project-modal-body input:focus, .project-modal-body textarea:focus { border-color: var(--accent); }
.project-modal-body textarea { resize: vertical; min-height: 96px; }
.cover-picker {
  width: 100%; height: 160px; border: 1px dashed var(--border-strong); border-radius: 10px;
  background: var(--bg); color: var(--text-muted); cursor: pointer; overflow: hidden;
  display: grid; place-items: center; padding: 0;
}
.cover-picker img { width: 100%; height: 100%; object-fit: cover; }
.cover-hint { margin: 10px 0 0; font-size: 12px; color: var(--text-muted); }
.char-count { display: block; text-align: right; font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.project-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ------------------------------------------------------------- copywriting */
.copy-header { text-align: center; max-width: 640px; margin: 0 auto 34px; }
.copy-kicker {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  background: rgba(129, 140, 248, 0.12); border: 1px solid rgba(129, 140, 248, 0.28);
  color: #a5b4fc; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.copy-kicker svg { width: 13px; height: 13px; }
.copy-header h1 { margin: 14px 0 10px; font-size: 42px; letter-spacing: 0; font-weight: 800; }
.copy-header p { margin: 0; color: var(--text-muted); font-size: 16px; }

.copy-box {
  max-width: 760px; margin: 0 auto; background: var(--bg-elev);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow);
}
.copy-box-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.copy-label { font-size: 14px; font-weight: 600; color: var(--text-soft); }
.copy-box-head .char-count { margin-top: 0; }
.copy-box textarea { 
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; resize: vertical; min-height: 120px; color: var(--text); outline: 0; font-size: 15px; line-height: 1.7;
}
.copy-box textarea:focus { border-color: var(--accent); }
.copy-model-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.copy-field { display: flex; align-items: center; gap: 8px; }
.copy-model-select {
  min-width: 180px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px; color: var(--text); outline: 0; font-size: 13px;
}
.copy-model-select:focus { border-color: var(--accent); }
.copy-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.copy-suggestions-label { font-size: 13px; color: var(--text-muted); }
.copy-chip {
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text-soft);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.copy-chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-hover); }
.copy-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.copy-actions .btn { padding: 10px 20px; font-size: 14px; }
.copy-hint { font-size: 12px; color: var(--text-muted); }

.copy-results { max-width: 760px; margin: 16px auto 0; display: flex; flex-direction: column; gap: 12px; }
.copy-results-head { max-width: 760px; margin: 26px auto 0; display: flex; align-items: center; justify-content: space-between; }
.copy-results-head h2 { margin: 0; font-size: 20px; }
.copy-count { font-size: 13px; color: var(--text-muted); }
.copy-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.copy-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.copy-item-tag { display: flex; align-items: center; gap: 9px; }
.copy-item-actions { display: flex; align-items: center; gap: 8px; }
.copy-item-num {
  width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
}
.copy-item p { margin: 0; white-space: pre-wrap; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

/* ------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer .brand { margin-bottom: 10px; }
.footer p { color: var(--text-muted); font-size: 13px; max-width: 340px; }
.footer .cols { display: flex; gap: 64px; }
.footer h4 { font-size: 14px; margin: 0 0 12px; }
.footer a { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.footer a:hover { color: var(--text); }
.footer .legal { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 22px; text-align: center; color: var(--text-muted); font-size: 12.5px; }

/* ------------------------------------------------------------- misc */
.empty { text-align: center; padding: 80px 0; color: var(--text-muted); }
.empty .big { font-size: 40px; margin-bottom: 12px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-soft); font-size: 14px;
}
.pager a:hover { background: var(--bg-hover); }
.pager .cur { background: var(--grad); color: #fff; border-color: transparent; }
.pager .dis { opacity: 0.4; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translateX(-50%) translateY(20px);
  background: var(--bg-elev); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 12px 20px; box-shadow: var(--shadow); opacity: 0; transition: opacity .25s, transform .25s; z-index: 100;
  font-size: 14px;
}

/* navbar user extras */
.nav-user-main { display: flex; align-items: center; gap: 9px; padding: 4px 6px; border-radius: 8px; white-space: nowrap; }
.nav-user-main:hover { background: var(--bg-hover); }
.nav-name { font-size: 14px; font-weight: 600; white-space: nowrap; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  color: var(--text-muted); border: 1px solid var(--border); background: transparent; cursor: pointer;
}
.icon-btn:hover { color: var(--text); background: var(--bg-hover); }
.icon-btn svg { width: 17px; height: 17px; }
@media (max-width: 720px) { .nav-name { display: none; } }

.nav-wallet { display: inline-flex; align-items: baseline; gap: 6px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.nav-wallet strong { font-size: 14px; color: var(--text); }
.nav-wallet small { font-size: 11px; }
.account-mode-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-elev); }
.account-mode-btn { border: 0; border-radius: 6px; padding: 4px 8px; color: var(--text-muted); background: transparent; cursor: pointer; font-size: 11.5px; white-space: nowrap; }
.account-mode-btn:hover:not(:disabled) { color: var(--text); background: var(--bg-hover); }
.account-mode-btn.active { color: #fff; background: linear-gradient(120deg, #2563eb, #7c3aed); }
.account-mode-btn:disabled { opacity: .38; cursor: not-allowed; }
.wallet-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(5, 7, 12, .68); }
.wallet-modal.hidden { display: none; }
.wallet-modal-card { width: min(420px, 100%); background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.wallet-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wallet-modal-head h2 { margin: 0; font-size: 18px; }
.wallet-modal-close { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 18px; }
.wallet-modal-body form { display: flex; gap: 10px; }
.wallet-modal-body input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; color: var(--text); outline: 0; font-size: 14px; }
.wallet-modal-body input:focus { border-color: var(--accent); }
.wallet-hint { margin: 0 0 14px; font-size: 13px; color: var(--text-muted); }
.wallet-message { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--bad); }
.wallet-message.success { color: var(--good); }

/* generation loading state */
.gen-box .gen-go:disabled { opacity: 0.6; cursor: not-allowed; }
.spin { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-status {
  max-width: 720px; margin: 18px auto 0; text-align: left;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.with-ic { display: inline-flex; align-items: center; gap: 4px; }
.with-ic svg { width: 13px; height: 13px; }


/* ========== 响应式断点：<=1024px 触发汉堡菜单 ========== */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }

  /* 隐藏桌面导航、搜索 */
  .nav-links { display: none; }
  .nav-search { display: none; }
  /* 显示汉堡按钮 */
  .hamburger-btn { display: inline-flex; }
  .nav-dropdown.open { display: block; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .nav-inner { gap: 8px; }
  .nav-wallet { gap: 4px; padding: 5px 8px; }
  .nav-wallet-label,
  .nav-wallet small,
  .nav-admin,
  .nav-logout { display: none; }
  .nav-user > .account-mode-switch { display: none; }
  .nav-user { gap: 5px; }
  .btn-sm { padding: 6px 9px; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tools-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head-actions { width: 100%; }
  .section-head-actions .btn { flex: 1; text-align: center; }
}
body::before,
body::after {
    display: none !important;
}
