/* OrangeAI Studio — Velorah-style glassmorphism theme */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #030d17;
  --text: #ffffff;
  --muted: rgba(255,255,255,.75);
  --faint: rgba(255,255,255,.45);
  --accent: #7dd3fc;
  --accent2: #67e8f9;
  --danger: #fda4af;
  --amber: #fbbf24;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
.font-serif-display { font-family: 'Instrument Serif', serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 视频背景层（全局单实例，内容浮在上层） */
.video-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: var(--bg);
}
.video-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: .55;
}

/* 毛玻璃（水晶质感，无紫调） */
.crystal-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
.crystal-glass-sub {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.text-glass-shadow { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }

/* 入场动画 */
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-rise { animation: fade-rise .7s cubic-bezier(.16,1,.3,1) both; }
.animate-fade-rise-1 { animation: fade-rise .7s cubic-bezier(.16,1,.3,1) .15s both; }
.animate-fade-rise-2 { animation: fade-rise .7s cubic-bezier(.16,1,.3,1) .3s both; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.05); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 4px; }

/* 内容容器（z 高于视频层） */
.page { position: relative; z-index: 10; }

/* 导航 */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1200px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(124,92,255,.85), rgba(61,160,255,.85));
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
.brand .name { font-family: 'Instrument Serif', serif; font-size: 26px; letter-spacing: .5px; color: #fff; }
.brand .sub {
  display: none; padding: 3px 10px; border-radius: 999px; font-size: 10px;
  letter-spacing: 1.5px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); text-transform: uppercase;
}
@media (min-width: 640px) { .brand .sub { display: inline-block; } }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-size: 14px; color: rgba(255,255,255,.75); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .btn {
  padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(12px); color: #fff; transition: all .15s;
}
.nav-links .btn:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.nav-links .btn-solid {
  background: linear-gradient(135deg, #7c5cff, #3aa0ff);
  border: none; box-shadow: 0 8px 24px rgba(124,92,255,.35);
}
.nav-links .btn-solid:hover { background: linear-gradient(135deg, #8a6cff, #4cabff); opacity: .95; }

/* 按钮 */
.btn {
  display: inline-block; padding: 12px 30px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(12px);
  transition: all .15s; text-align: center;
}
.btn:hover { background: rgba(255,255,255,.2); text-decoration: none; }
.btn-solid {
  background: linear-gradient(135deg, #7c5cff, #3aa0ff);
  border: none; box-shadow: 0 10px 30px rgba(124,92,255,.35);
}
.btn-solid:hover { background: linear-gradient(135deg, #8a6cff, #4cabff); opacity: .95; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* Hero */
.hero { text-align: center; padding: 84px 24px 48px; }
.hero .badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); color: rgba(255,255,255,.9);
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 7vw, 76px); font-weight: 400; letter-spacing: .5px;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.5);
  margin-bottom: 18px;
}
.hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 600px; margin: 0 auto; text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* 面板（生图/登录/控制台共用） */
.panel { border-radius: 24px; padding: 26px; margin: 0 auto; }
.panel h2 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; margin-bottom: 18px; }
label { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 8px; letter-spacing: .3px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px; color: #fff; padding: 12px 14px; font-size: 14.5px;
  font-family: inherit; outline: none; backdrop-filter: blur(8px);
  transition: border-color .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.1); }
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.35); }
select option { background: #0a1622; color: #fff; }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.actions { display: flex; gap: 12px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 13px; color: rgba(255,255,255,.6); }
.error { color: var(--danger); font-size: 14px; margin-top: 12px; min-height: 20px; }
.success { color: #86efac; font-size: 14px; margin-top: 12px; }

/* 结果网格 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.card { border-radius: 18px; overflow: hidden; position: relative; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; background: rgba(0,0,0,.3); }
.card .bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.card .bar span { font-size: 12px; color: rgba(255,255,255,.6); }
.card .bar a { font-size: 12px; color: var(--accent); font-weight: 600; }
.empty { text-align: center; padding: 50px 0; color: rgba(255,255,255,.45); font-size: 14px; line-height: 1.9; }
.spin {
  width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.15); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite; display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Features / FAQ */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 60px 0; }
.feature { border-radius: 20px; padding: 26px; transition: transform .15s; }
.feature:hover { transform: translateY(-3px); }
.feature .ico { font-size: 26px; margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: rgba(255,255,255,.65); line-height: 1.6; }
.faq { margin-top: 56px; }
.faq h2 { font-family: 'Instrument Serif', serif; font-size: 32px; font-weight: 400; margin-bottom: 20px; text-align: center; }
.faq details { border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 600; font-size: 14.5px; cursor: pointer; user-select: none; }
.faq details p { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 10px; line-height: 1.7; }

/* 登录/注册 */
.auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; border-radius: 26px; padding: 38px 34px; }
.auth-card h1 { font-family: 'Instrument Serif', serif; font-size: 34px; font-weight: 400; margin-bottom: 6px; text-align: center; }
.auth-card .sub { text-align: center; color: rgba(255,255,255,.6); font-size: 13.5px; margin-bottom: 26px; }
.auth-card .field { margin-bottom: 16px; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-card .foot { text-align: center; margin-top: 20px; font-size: 13.5px; color: rgba(255,255,255,.6); }
.auth-card .foot a { color: var(--accent); font-weight: 600; }

/* 控制台 */
.console-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; position: relative; z-index: 10; }
.console-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.console-head h1 { font-family: 'Instrument Serif', serif; font-size: 40px; font-weight: 400; }
.balance-card { border-radius: 22px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.balance-card .num { font-size: 38px; font-weight: 700; }
.balance-card .lbl { font-size: 13px; color: rgba(255,255,255,.6); }
.balance-card .num small { font-size: 16px; font-weight: 500; color: rgba(255,255,255,.6); }
.section { margin-bottom: 32px; }
.section h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin-bottom: 16px; }
.key-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.key-item .kv { font-family: ui-monospace, monospace; font-size: 13px; color: rgba(255,255,255,.85); word-break: break-all; }
.key-item .meta { font-size: 12px; color: rgba(255,255,255,.5); }
.key-create { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.key-create input { flex: 1; min-width: 200px; }
table.history { width: 100%; border-collapse: collapse; }
table.history th { text-align: left; font-size: 12px; color: rgba(255,255,255,.5); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.15); }
table.history td { padding: 10px 12px; font-size: 13.5px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.8); }
table.history td img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }

/* 静态页 */
.page-static { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; position: relative; z-index: 10; }
.page-static h1 { font-family: 'Instrument Serif', serif; font-size: 42px; font-weight: 400; margin-bottom: 6px; }
.page-static .updated { color: rgba(255,255,255,.45); font-size: 13px; margin-bottom: 34px; }
.page-static h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; margin: 34px 0 12px; }
.page-static p, .page-static li { color: rgba(255,255,255,.72); font-size: 14.5px; margin-bottom: 10px; line-height: 1.8; }
.page-static ul, .page-static ol { padding-left: 22px; margin-bottom: 14px; }
.page-static .company { color: rgba(255,255,255,.45); margin-top: 44px; font-size: 13px; }

/* Footer */
footer { position: relative; z-index: 10; border-top: 1px solid rgba(255,255,255,.12); padding: 30px 24px 42px; margin-top: 60px; }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.foot-inner .copy { color: rgba(255,255,255,.4); font-size: 13px; }
.foot-inner nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.foot-inner nav a { color: rgba(255,255,255,.55); font-size: 13px; }

@media (max-width: 640px) {
  nav { padding: 14px 16px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 16px 32px; }
  .panel { padding: 20px; }
}
