/* ViviHatch · 深色科技风 */

:root {
  --bg: #0f1117;
  --bg-elevated: #171b26;
  --text: #e8eaef;
  --text-muted: #9aa3b2;
  --accent: #7c6cf0;
  --accent-soft: rgba(124, 108, 240, 0.15);
  --accent-hover: #9588f5;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-soft), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(108, 180, 240, 0.08), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(10px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent-hover);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent-hover);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 36em;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  white-space: nowrap;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.btn-ghost:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.section {
  padding: 3rem 0;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.section-desc {
  margin: 0 0 2rem;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.content-block {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.content-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.content-block p,
.content-block ul {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.content-block ul {
  padding-left: 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-hover);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.tag-soon {
  background: rgba(255, 193, 7, 0.12);
  color: #ffc857;
}

.doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-list li {
  border-bottom: 1px solid var(--border);
}

.doc-list li:last-child {
  border-bottom: none;
}

.doc-list a {
  display: block;
  padding: 1rem 0;
  color: var(--text);
  text-decoration: none;
}

.doc-list a:hover {
  color: var(--accent-hover);
}

.doc-list .meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer-icp {
  margin: 0;
}

.footer-icp a {
  color: var(--text-muted);
}

.footer-icp a:hover {
  color: var(--text);
}

.footer-legal-links {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-sep {
  color: var(--border);
  user-select: none;
}

/* 登录 */
[hidden] {
  display: none !important;
}

.auth-page {
  max-width: 480px;
}

.auth-panel {
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  max-width: 420px;
}

.auth-panel-page {
  max-width: none;
}

.auth-bar {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.auth-bar a,
.linkish {
  color: var(--accent-hover);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.auth-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.auth-status {
  margin: 0 0 0.85rem;
  min-height: 1.25em;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-status-error {
  color: #f0a0a0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-field input,
.auth-field textarea,
.auth-field select {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.auth-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.auth-code-row {
  display: flex;
  gap: 0.5rem;
}

.auth-code-row input {
  flex: 1;
  min-width: 0;
}

.auth-user {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.auth-user p {
  margin: 0;
  color: var(--text-muted);
}

/* 套餐货架 */
.sku-status {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sku-status-error {
  color: #f0a0a0;
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .sku-grid {
    grid-template-columns: 1fr;
  }
}

.sku-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.sku-card-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.sku-card-full-name {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sku-price {
  margin: 1.1rem 0 0.35rem;
}

.sku-price-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.sku-price-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.sku-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sku-highlights {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.sku-card-note {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  color: #ffc857;
}

.sku-buy-btn {
  width: 100%;
}

.legal-doc .content-block h2 {
  font-size: 1.05rem;
  margin-top: 0;
}

.legal-doc .content-block h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}

.legal-doc .draft-notice {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  color: #e8c56a;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
