/* 主题配色：绿色主色 #3fbf5a —— 自包含，不依赖外部CDN */
:root {
  --primary: #3fbf5a;
  --secondary: #1f8b3c;
  --success: #00e676;
  --danger: #ff3d00;
  --warning: #ffab00;
  --dark: #0f1310;
  --dark-2: #0f1a14;
  --light: #e8f5ec;
  --neon: #8af5b0;
}

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

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--light);
  overflow-x: hidden;
}

.container { width: 100%; max-width: 900px; padding: 2rem 1rem; position: relative; z-index: 1; }

header { text-align: center; margin-bottom: 2rem; animation: fadeIn 0.8s ease-out; position: relative; }

.logo { display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; gap: .75rem; }

.logo-icon .icon-svg { fill: var(--neon); filter: drop-shadow(0 0 8px rgba(138,245,176,.35)); }

h1, h2 {
  font-weight: 800;
  background: linear-gradient(to right, var(--neon), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.6px;
}

h2 { font-size: 1.9rem; }

.subtitle { color: var(--light); opacity: .9; font-weight: 300; font-size: 1rem; max-width: 640px; margin: .5rem auto 0; }

.stats { display: flex; justify-content: center; gap: 1.25rem; margin: 1.25rem 0; flex-wrap: wrap; }
.stat-item { text-align: center; min-width: 84px; }
.stat-value { font-size: 1.35rem; color: var(--neon); margin-bottom: 0.2rem; font-weight: 700; }
.stat-label { font-size: 0.82rem; opacity: 0.78; }

.main-content { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.25rem; }

.card {
  background: rgba(16, 24, 19, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  padding: 1.25rem 1.1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(63, 191, 90, 0.35);
  overflow: hidden; position: relative;
}

.card::before {
  content: '';
  position: absolute; inset: -2px;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--neon));
  z-index: -1; border-radius: 18px; opacity: .22;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(63, 191, 90, .35);
  border-color: rgba(63, 191, 90, .6);
}

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.card-title { font-size: 1.1rem; font-weight: 800; color: var(--neon); letter-spacing: .8px; display:flex; align-items:center; }
.card-badge {
  padding: 0.25rem 0.7rem; border-radius: 50px; font-size: 0.7rem; font-weight: 800;
  background: linear-gradient(to right, var(--primary), var(--secondary)); color: white; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
}
.card-right { display: flex; align-items: center; gap: .5rem; }

.card-content { margin-bottom: 0.5rem; }
.status { display: flex; align-items: center; font-size: 0.95rem; margin-bottom: 0.8rem; gap:.6rem; }
.status-text { opacity: .95; }

.progress-container { width: 100%; height: 6px; background: rgba(63, 191, 90, 0.2); border-radius: 4px; margin: .75rem 0 1rem; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 4px; transition: width 0.35s ease; box-shadow: 0 0 10px rgba(63, 191, 90, 0.4);
}

.domain-list { background: rgba(0,0,0,.28); border-radius: 12px; padding: .75rem; margin-top: .25rem; max-height: 220px; overflow-y: auto; border: 1px solid rgba(63,191,90,.25); }
.domain-item { padding: .55rem .6rem; border-bottom: 1px solid rgba(63,191,90,.12); display: flex; justify-content: space-between; align-items: center; transition: all .24s ease; font-size:.9rem; }
.domain-item:hover { background: rgba(63,191,90,.08); }
.domain-item:last-child { border-bottom: none; }

.domain-status { font-size: 0.78rem; padding: .22rem .6rem; border-radius: 6px; border: 1px solid transparent; font-weight: 700; }
.status-success { background: rgba(0, 230, 118, 0.12); color: var(--success); border-color: rgba(0, 230, 118, 0.34); }
.status-fail    { background: rgba(255, 61, 0, 0.12); color: var(--danger); border-color: rgba(255, 61, 0, 0.34); }
.status-testing { background: rgba(255, 171, 0, 0.12); color: var(--warning); border-color: rgba(255, 171, 0, 0.34); }

.register-section { display: flex; flex-direction: column; align-items: center; margin-top: 1rem; gap:.5rem; }
.register-btn { padding: 1rem 2.4rem; font-size: 1.06rem; }
.hint { font-size: 0.82rem; opacity: 0.76; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.2rem; border-radius: 12px; font-size: 0.9rem; font-weight: 800;
  text-decoration: none; cursor: pointer; transition: all 0.25s ease; border: 1px solid transparent; outline: none;
  letter-spacing: 0.4px; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); transition: .5s;
}
.btn:hover::before { left: 100%; }

.btn-primary { background: linear-gradient(to right, var(--primary), var(--secondary)); color: white; box-shadow: 0 4px 20px rgba(63,191,90,.35); text-transform: uppercase; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(63,191,90,.5); }
.btn-secondary { background: rgba(255,255,255,.1); color: var(--light); border-color: rgba(255,255,255,.18); }
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-disabled { background: rgba(255,255,255,.05); color: rgba(255,255,255,.35); cursor: not-allowed; border-color: rgba(255,255,255,.12); }
.btn-compact { padding: .45rem .7rem; font-size: .85rem; border-radius: .6rem; }
.mr-2 { margin-right: .15rem; }

.icon-svg { fill: currentColor; color: var(--light); }

.loading-spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  border-top-color: var(--neon); animation: spin 1s linear infinite; margin-right: 6px;
}

.browser-warning { display:none; background: rgba(255, 61, 0, 0.18); border: 1px solid var(--danger); border-radius: 10px; padding: 1rem; margin-bottom: 1.2rem; text-align: center; }

.particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.particle { position: absolute; background: rgba(63,191,90,.45); border-radius: 50%; pointer-events: none; }

.footer { margin-top: 2rem; text-align: center; font-size: 0.86rem; color: rgba(255,255,255,.7); }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--secondary)); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* 响应式 */
@media (max-width: 768px) {
  h2 { font-size: 1.7rem; }
  .stats { gap: 1rem; }
  .card { padding: 1rem .9rem; }
  .register-btn { padding: .9rem 2rem; font-size: 1rem; }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(10px); }
  100% { transform: translateY(0) translateX(0); }
}
