:root {
  --bg-deep: #0A1628;
  --bg-mid: #0f1d33;
  --bg-card: rgba(30, 58, 95, 0.25);
  --border: rgba(74, 156, 255, 0.12);
  --border-hover: rgba(74, 156, 255, 0.3);
  --text-primary: #FFFFFF;
  --text-body: #E0E0E0;
  --text-muted: #9CA3AF;
  --accent: #4A9CFF;
  --accent-light: #5AAAFF;
  --accent-glow: rgba(74, 156, 255, 0.15);
  --success: #00E676;
  --error: #ff5252;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.logo {
  font-size: 1.4rem; font-weight: 700; color: var(--text-primary);
  text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), #7c4dff);
  border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(74, 156, 255, 0.3);
}
.logo-icon::after { content: '⚓'; font-size: 16px; color: #fff; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 1rem;
  font-weight: 500; transition: all 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: linear-gradient(135deg, var(--accent), #5AAAFF);
  color: #fff !important; padding: 10px 24px; border-radius: 8px;
  font-weight: 600; box-shadow: 0 4px 15px rgba(74, 156, 255, 0.3);
}
.nav-cta:hover { box-shadow: 0 6px 25px rgba(74, 156, 255, 0.5); transform: translateY(-1px); }

/* ===== Hero区 ===== */
.hero {
  padding: 120px 32px 60px; text-align: center;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 156, 255, 0.1), transparent);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  color: var(--text-primary); margin-bottom: 16px; letter-spacing: -1px;
  position: relative; z-index: 1;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem; color: var(--text-muted); max-width: 500px;
  margin: 0 auto 32px; position: relative; z-index: 1;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; }
.btn {
  padding: 14px 32px; border-radius: 10px; text-decoration: none; font-weight: 600;
  font-size: 1rem; transition: all 0.3s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5AAAFF);
  color: #fff; box-shadow: 0 4px 20px rgba(74, 156, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74, 156, 255, 0.5); }
.btn-outline {
  background: transparent; color: var(--text-body);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(74, 156, 255, 0.05); }

/* ===== 统计栏 ===== */
.stats-bar {
  display: flex; justify-content: center; gap: 60px; flex-wrap: wrap;
  padding: 40px 32px; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); background: rgba(10, 22, 40, 0.5);
}
.stats-item { text-align: center; }
.stats-item .number { font-size: 2.2rem; font-weight: 800; color: var(--accent); display: block; }
.stats-item .label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ===== 想法卡片网格 ===== */
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.idea-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,156,255,0.3), transparent);
}
.idea-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
}
.idea-card .date {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px;
}
.idea-card h3 {
  font-size: 1.15rem; color: var(--text-primary); margin-bottom: 10px;
  font-weight: 600; line-height: 1.4;
}
.idea-card p {
  color: var(--text-muted); font-size: 0.9rem; line-height: 1.6;
  margin-bottom: 16px;
}
.idea-card .author {
  font-size: 0.85rem; color: var(--text-muted);
}

/* ===== 分页 ===== */
.pagination {
  display: flex; justify-content: center; gap: 12px;
  padding: 40px 0 80px;
}
.pagination a, .pagination span {
  padding: 10px 20px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text-muted); text-decoration: none; transition: all 0.3s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination span { color: var(--accent); font-weight: 600; border-color: var(--accent); }

/* ===== 空状态 ===== */
.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 100px 0; color: var(--text-muted);
}
.empty-state .icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 12px; }

/* ===== 表单 ===== */
.form-card {
  max-width: 640px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; padding: 48px;
  backdrop-filter: blur(20px);
}
.form-group { margin-bottom: 28px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.form-group label .required { color: var(--error); margin-left: 4px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 18px; background: rgba(0,0,0,0.2);
  border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary);
  font-size: 1rem; transition: all 0.3s; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74, 156, 255, 0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.form-error { color: var(--error); font-size: 0.9rem; margin-top: 8px; display: none; }
.contact-group {
  background: rgba(0,0,0,0.1); border-radius: 12px; padding: 20px;
  border: 1px solid var(--border);
}
.contact-group-title {
  color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px;
}
.contact-group-title .required { color: var(--error); }

/* ===== 协议弹窗 ===== */
.modal-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center;
  backdrop-filter: blur(8px);
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: 20px;
  max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto;
  padding: 40px; position: relative;
}
.modal-box h3 { font-size: 1.3rem; margin-bottom: 20px; color: var(--accent); }
.modal-content { color: var(--text-muted); line-height: 1.8; font-size: 0.95rem; margin-bottom: 28px; }
.modal-content p { margin-bottom: 12px; }
.modal-content strong { color: var(--text-primary); }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ===== Prompt区 ===== */
.prompt-box {
  background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem; line-height: 1.8; color: #a0b3d6;
  overflow-x: auto; white-space: pre-wrap; word-break: break-word;
  max-height: 500px; overflow-y: auto;
}
.copy-btn {
  background: rgba(74, 156, 255, 0.1); color: var(--accent); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 0.9rem;
  transition: all 0.3s; margin-top: 16px;
}
.copy-btn:hover { background: var(--accent); color: #0A1628; }

/* ===== 详情页 ===== */
.detail-card {
  max-width: 800px; margin: 0 auto; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; padding: 48px;
  backdrop-filter: blur(20px);
}
.detail-header {
  text-align: center; margin-bottom: 40px;
}
.detail-header .date {
  font-size: 0.9rem; color: var(--accent); margin-bottom: 12px;
}
.detail-header h1 {
  font-size: 1.8rem; color: var(--text-primary); margin-bottom: 16px;
  font-weight: 700;
}
.detail-header .author {
  color: var(--text-muted); font-size: 1rem;
}
.detail-body {
  border-top: 1px solid var(--border); padding-top: 32px;
}
.detail-body h3 {
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px;
  font-weight: 500;
}
.detail-body p {
  color: var(--text-body); line-height: 1.8; font-size: 1.05rem;
  white-space: pre-wrap;
}
.detail-footer {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.9rem;
}

/* ===== 后台表格 ===== */
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.admin-table th {
  padding: 14px; text-align: left; color: var(--accent); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.admin-table .status-pending { color: #FFB74D; }
.admin-table .status-approved { color: var(--success); }
.admin-table .status-rejected { color: var(--error); }

/* ===== 页脚 ===== */
.footer {
  border-top: 1px solid var(--border); padding: 48px 32px; text-align: center;
  color: var(--text-muted); font-size: 0.9rem; background: rgba(10, 22, 40, 0.5);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 20px; height: 60px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 40px; }
  .ideas-grid { grid-template-columns: 1fr; padding: 20px; }
  .stats-bar { gap: 32px; padding: 30px 20px; }
  .form-card { padding: 28px; }
}
