:root {
  --bg: #0f1217;
  --panel: #151922;
  --text: #e6e8ee;
  --muted: #aab0bc;
  --primary: #4f7cff;
  --primary-strong: #3366ff;
  --accent: #ff6b6b;
  --green: #22c55e;
  --border: #222836;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 30% -10%, #1a2130, var(--bg));
  background-attachment: fixed;
  color: var(--text);
}

.container {
  max-width: 960px;
  padding: 0 20px;
  margin: 0 auto;
}

.site-header {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, rgba(79,124,255,0.15), rgba(0,0,0,0));
}
.site-header h1 { margin: 0 0 8px; font-size: 28px; }
.subtitle { color: var(--muted); margin: 0; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.free-section h2, .pay-section h2, .full-section h2 { margin-top: 0; }
.lead { color: var(--muted); }

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.list { margin: 8px 0 0; padding-left: 18px; }

.code-block {
  background: #0e1220;
  border: 1px dashed #2a3142;
  border-radius: 12px;
  padding: 14px 16px;
  overflow: auto;
}

.countdown-wrap { margin-top: 12px; }
.countdown { display: flex; align-items: baseline; gap: 8px; }
.countdown .label { color: var(--muted); }
.countdown .time { color: var(--accent); font-weight: 700; letter-spacing: 0.5px; }
.timeout-msg { color: var(--accent); margin: 8px 0 0; }

.progress {
  height: 8px;
  border-radius: 999px;
  background: #202635;
  border: 1px solid #2a3142;
  margin-top: 10px;
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff9f6e);
  transition: width 0.25s linear;
}

.unlock-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.unlock-form .input-label { grid-column: 1 / -1; color: var(--muted); }
.modal-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.modal-form .input-label { grid-column: 1 / -1; color: var(--muted); }
.text-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #2a3142;
  background: #0e1220;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,124,255,0.25);
}

.btn {
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn.primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 8px 20px rgba(79,124,255,0.35);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.btn.secondary {
  background: #202635;
  color: var(--text);
  border: 1px solid #2a3142;
}
.btn.small { padding: 8px 12px; font-size: 14px; }

.hidden { display: none; }
.full-section {
  overflow: hidden;
}
.paid-summary-section {
  margin-top: 20px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.paid-summary-section h2 { margin-top: 0; }
.paid-summary-section .list { margin: 8px 0 0; padding-left: 18px; }
.article { line-height: 1.7; }
.code-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0; }

/* 动画折叠显示 */
.reveal-enter { opacity: 0; transform: translateY(12px); }
.reveal-enter-active { opacity: 1; transform: translateY(0); transition: opacity .35s ease, transform .35s ease; }

.site-footer { padding: 32px 0; color: var(--muted); text-align: center; }

/* 响应式 */
@media (max-width: 768px) {
  .columns { grid-template-columns: 1fr; }
  .unlock-form { grid-template-columns: 1fr; }
  .modal-form { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* 弹窗样式 */
.modal.hidden { display: none; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal-panel {
  position: relative;
  width: min(680px, 92vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  padding: 20px;
  animation: modalIn .22s ease-out;
}
.modal-panel h3 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Verification Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  backdrop-filter: blur(8px); /* Frosted glass effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.verification-content {
  background-color: var(--bg-secondary);
  padding: 30px 50px;
  border-radius: 12px;
  text-align: center;
  color: var(--text);
  font-size: 1.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}