/* ===== 全局重置与基础 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: #0B1120;
  color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  outline: none;
}

/* ===== 工具类 ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.hidden { display: none; }
.block { display: block; }
.inline-flex { display: inline-flex; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-white { color: #ffffff; }
.text-slate-300 { color: #94a3b8; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-emerald-400 { color: #34d399; }
.text-emerald-300 { color: #6ee7b7; }

.bg-emerald-600 { background: #059669; }
.bg-emerald-500 { background: #10b981; }
.bg-emerald-500-10 { background: rgba(16, 185, 129, 0.1); }
.bg-slate-800 { background: #1e293b; }
.bg-slate-800-60 { background: rgba(30, 41, 59, 0.6); }
.bg-slate-900 { background: #111827; }

.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.rounded-full { border-radius: 9999px; }

.border-slate-700 { border-color: #334155; }
.border-slate-800 { border-color: #1e293b; }
.border-emerald-500 { border-color: #10b981; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }

.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }

.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }

.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }

/* ===== 导航栏 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.logo-text {
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.nav-link.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 200px;
  padding: 6px 12px 6px 36px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 8px;
  color: white;
  font-size: 14px;
}

.search-box input::placeholder {
  color: #64748b;
}

.search-box input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #059669;
  color: white;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #10b981;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid #475569;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  color: #10b981;
  border-color: #10b981;
}

.btn-large {
  padding: 12px 24px;
  font-size: 15px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav-auth a {
  color: #94a3b8;
  transition: color 0.2s;
}

.nav-auth a:hover {
  color: #10b981;
}

/* 移动端菜单 */
.mobile-menu-btn {
  display: block;
  padding: 8px;
  color: #94a3b8;
  background: none;
  border: none;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  background: #111827;
  border-top: 1px solid #1e293b;
  padding: 16px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 4px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.mobile-nav .mobile-search {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

.mobile-nav .mobile-search input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid #334155;
  border-radius: 8px;
  color: white;
  font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
  background: #0B1120;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #10b981;
}

.footer-copyright {
  font-size: 12px;
  color: #475569;
  text-align: center;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #64748b;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #10b981;
}

.breadcrumb span {
  color: #34d399;
}

.breadcrumb svg {
  width: 16px;
  height: 16px;
  color: #475569;
}

/* ===== 卡片 ===== */
.card {
  background: #1e293b;
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.tag-green {
  background: #059669;
  color: white;
}

.tag-blue {
  background: #2563eb;
  color: white;
}

.tag-outline {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  transition: all 0.2s;
}

.page-btn:hover {
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.page-btn.active {
  background: #059669;
  color: white;
  border-color: #059669;
}

/* ===== 输入框 ===== */
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: #111827;
  border: 1px solid #334155;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #64748b;
}

.form-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-label {
  display: block;
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 6px;
}

/* ===== 复选框 ===== */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #10b981;
  cursor: pointer;
}

/* ===== 步骤条 ===== */
.step-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s;
}

.step-circle.done {
  background: #059669;
  color: white;
}

.step-circle.active {
  background: #059669;
  color: white;
}

.step-circle.pending {
  background: #1e293b;
  color: #64748b;
  border: 1px solid #334155;
}

.step-label {
  font-size: 12px;
  margin-top: 8px;
  white-space: nowrap;
}

.step-label.done, .step-label.active {
  color: #34d399;
}

.step-label.pending {
  color: #64748b;
}

.step-line {
  width: 60px;
  height: 2px;
  margin: 0 8px;
  margin-bottom: 28px;
}

.step-line.done {
  background: #059669;
}

.step-line.pending {
  background: #334155;
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .mobile-menu-btn { display: none; }
  .mobile-nav { display: none !important; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .step-line { width: 120px; }
}

@media (min-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .search-box input { width: 240px; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .navbar-inner { padding: 0 16px; }
  .text-4xl { font-size: 28px; }
  .text-3xl { font-size: 22px; }
  .text-2xl { font-size: 18px; }
}
