/* AI 短剧创作平台 - 主题样式 */
:root {
  --bg: #f8f9fb;
  --bg-card: #ffffff;
  --border: #d1d5db;
  --radius-lg: 16px;
  --text-primary: #1a1a2e;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --accent: #8b5cf6;
}
* { box-sizing: border-box; }

body {
  margin: 0 !important;
  background: #ffffff !important;
  color: #1a1a2e !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Inter", sans-serif !important;
  line-height: 1.6;
}

/* ---- 导航栏 ---- */
.ai-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px; z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center;
}
.ai-nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
}
.ai-logo {
  font-size: 18px; font-weight: 700; text-decoration: none; letter-spacing: -0.3px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ai-nav-link {
  color: #64748b; text-decoration: none;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  display: inline-block;
}
.ai-nav-link:hover { background: #f0f2f5; }

/* ---- 按钮 ---- */
.ai-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: none; line-height: 1.2;
  transition: all 0.2s;
}
.ai-btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff;
}
.ai-btn-primary:hover { opacity: 0.9; }
.ai-btn-ghost {
  background: transparent; color: #1a1a2e;
  border: 1px solid #e2e8f0;
}
.ai-btn-ghost:hover { border-color: #3b82f6; color: #3b82f6; }
.ai-btn-lg { padding: 13px 32px; font-size: 16px; border-radius: 12px; }

/* ---- Hero 区域 ---- */
.ai-hero {
  min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 80px;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 60%);
}
.ai-hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.2;
  margin: 0 0 16px; letter-spacing: -1px; color: #1a1a2e;
}
.ai-hero h1 .gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ai-hero p {
  font-size: 18px; color: #64748b;
  max-width: 560px; margin: 0 auto 32px; line-height: 1.7;
}
.ai-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ai-stats { display: flex; justify-content: center; gap: 40px; margin-top: 50px; }
.ai-stat { text-align: center; }
.ai-stat-value { font-size: 22px; font-weight: 700; color: #3b82f6; }
.ai-stat-label { font-size: 13px; color: #94a3b8; margin-top: 2px; }

/* ---- 内容区块 ---- */
.ai-section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.ai-section-header { text-align: center; margin-bottom: 48px; }
.ai-section-header h2 { font-size: 28px; font-weight: 700; margin: 0 0 8px; color: #1a1a2e; }
.ai-section-header p { color: #64748b; font-size: 15px; max-width: 460px; margin: 0 auto; }

/* 网格卡片 */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ai-card {
  background: #ffffff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 28px;
  transition: all 0.25s;
}
.ai-card:hover { border-color: #3b82f6; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.ai-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  background: #eff6ff; color: #3b82f6;
}
.ai-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #1a1a2e; }
.ai-card p { color: #64748b; font-size: 14px; line-height: 1.7; margin: 0; }

/* 步骤 */
.ai-steps { display: flex; gap: 24px; justify-content: center; }
.ai-step {
  flex: 1; max-width: 280px; text-align: center;
  padding: 28px 20px; background: #f8f9fb;
  border: 1px solid #f1f5f9; border-radius: 16px;
}
.ai-step-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 17px; font-weight: 700;
}
.ai-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: #1a1a2e; }
.ai-step p { color: #64748b; font-size: 13px; margin: 0; line-height: 1.6; }

/* Token 卡 */
.ai-token-card {
  background: linear-gradient(145deg, #eef2ff, #f5f3ff);
  border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 28px;
}
.ai-token-card h4 { font-size: 18px; font-weight: 600; margin: 0 0 8px; color: #1a1a2e; }
.ai-token-card p { color: #64748b; font-size: 14px; margin: 0; }

/* 两列 */
.ai-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ai-two-col h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; color: #1a1a2e; }

/* 底部 */
.ai-footer {
  border-top: 1px solid #f1f5f9;
  padding: 32px 24px; text-align: center;
  color: #94a3b8; font-size: 13px;
}

/* ---- 用户中心/后台覆盖 ---- */
.user-sidebar{width:220px;position:fixed;top:64px;left:0;bottom:0;background:#1e293b;overflow-y:auto;z-index:100;color:#fff;}
.user-sidebar .layui-nav{background:#1e293b;}
.user-sidebar .layui-nav-item>a{color:rgba(255,255,255,0.65)!important;}
.user-sidebar .layui-nav-itemed>a,.user-sidebar .layui-nav-item a:hover{color:#fff!important;background:rgba(255,255,255,0.05)!important;}
.user-sidebar .layui-nav-child{background:#1a2536!important;}
.user-body{margin-left:220px;margin-top:64px;padding:15px;min-height:calc(100vh - 64px);background:#f8f9fb;}

/* 动画 */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.ai-animate { animation: fadeUp 0.5s ease forwards; opacity: 0; }
.ai-d1 { animation-delay: 0.1s; }
.ai-d2 { animation-delay: 0.2s; }
.ai-d3 { animation-delay: 0.3s; }
