/**
 * name111.com 全局样式（仅视觉，不改业务结构）
 * 强调色由页面内联 --accent 注入
 */
:root {
  --bg: #0c1118;
  --bg-elev: #121a24;
  --panel: #151e2b;
  --panel-2: #1a2433;
  --text: #e8eef6;
  --muted: #8fa0b8;
  --line: rgba(143, 160, 184, 0.18);
  --line-strong: rgba(143, 160, 184, 0.32);
  --ok: #3dcf96;
  --bad: #f07178;
  --warn: #e0a04a;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --font: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Sora", "Outfit", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(920px 480px at 8% -8%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 58%),
    radial-gradient(700px 420px at 100% 0%, rgba(56, 120, 160, 0.16), transparent 50%),
    linear-gradient(180deg, #0e1520 0%, var(--bg) 40%, #0a0f15 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 18px 72px;
  animation: pageIn 0.45s ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— 顶栏 —— */
.site-nav {
  display: flex;
  gap: 6px 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 10px;
  z-index: 40;
}

.site-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 2px 4px;
}
.site-nav .brand:hover {
  text-decoration: none;
  color: var(--text);
  opacity: 0.94;
}
.site-nav .brand img {
  height: 36px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.site-nav .brand .brand-glyph {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #fff));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.site-nav .brand .brand-mark,
.hero-brand-title .brand-mark {
  display: inline-flex;
  align-items: baseline;
  line-height: 1.1;
}
.site-nav .brand .brand-main {
  font-weight: 700;
  color: var(--text);
}
.site-nav .brand .brand-tld {
  font-weight: 650;
  color: var(--accent);
  margin-left: 1px;
}
.hero-brand-title {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  line-height: 1.15;
}
.hero-brand-title .brand-main {
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero-brand-title .brand-tld {
  color: var(--accent);
  font-weight: 650;
}
.site-nav .brand .brand-text {
  line-height: 1.15;
}

.site-nav > a:not(.brand) {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav > a:not(.brand):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* 兼容旧选择器 */
nav.site-nav,
nav {
  /* site-nav 已覆盖；裸 nav 兜底 */
}

/* —— 卡片 / 面板 —— */
.card {
  background: linear-gradient(165deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  animation: riseIn 0.5s ease both;
}
.card:nth-of-type(2) {
  animation-delay: 0.04s;
}
.card:nth-of-type(3) {
  animation-delay: 0.08s;
}

.card h1,
.card h2,
.card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 650;
  line-height: 1.25;
}
.card h1 {
  font-size: 1.75rem;
  margin: 0 0 8px;
}
.card h2 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}
.card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.hero-panel {
  padding: 28px 24px 26px;
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    radial-gradient(600px 220px at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    linear-gradient(165deg, var(--panel-2) 0%, var(--panel) 100%);
}
.hero-panel .hero-brand {
  margin-bottom: 14px;
}
.hero-panel h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.hero-brand img {
  height: 68px;
  width: auto;
  border-radius: 12px;
}
.hero-brand h1 {
  margin: 0;
}

/* —— 表单 —— */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 12px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--line-strong);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  background: #0f1620;
}
input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

button,
.btn {
  display: inline-block;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}
button:hover,
.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
  color: #fff;
}
button:active,
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: #2a3648;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #344456;
  color: #fff;
}
.btn.danger {
  background: #a33;
}

/* —— 提示 —— */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.flash.ok {
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  color: #d8ffe8;
  background: color-mix(in srgb, var(--ok) 12%, #1a2332);
}
.flash.err {
  border-color: color-mix(in srgb, var(--bad) 45%, transparent);
  color: #ffe0e2;
  background: color-mix(in srgb, var(--bad) 12%, #1a2332);
}

.impersonate {
  background: color-mix(in srgb, var(--warn) 14%, #1a2332);
  border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent);
  color: #ffe6b0;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
}

/* —— 表格 —— */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  text-transform: none;
}
tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}
.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}
code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
pre {
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* —— 登录 / 注册 —— */
.auth-panel {
  max-width: 440px;
  margin: 48px auto 24px;
  padding: 28px 26px;
  border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}
.auth-panel h2 {
  margin-top: 0;
  text-align: center;
  font-size: 1.5rem;
}
.auth-panel form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
}
.auth-panel .auth-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

/* —— 控制台 —— */
.console {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.side {
  width: 212px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 0 14px;
  position: sticky;
  top: 78px;
  box-shadow: var(--shadow);
}
.side-title {
  padding: 10px 18px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.side a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.side a:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.side a.on {
  border-left-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.main {
  flex: 1;
  min-width: 0;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tabs a {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.tabs a:hover {
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.tabs a.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.site-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
  line-height: 1.7;
}
.site-footer-contact {
  margin-top: 6px;
}
.site-footer-contact a,
.contact-block a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer-contact a:hover,
.contact-block a:hover {
  text-decoration: underline;
}
.contact-block {
  font-size: 1.05rem;
  line-height: 1.8;
}
.contact-block .sep,
.site-footer-contact .sep {
  color: var(--muted);
  opacity: 0.7;
}
.contact-list .contact-item .k {
  color: var(--muted);
  font-weight: 600;
  margin-right: 2px;
}
.contact-list .contact-item .v {
  color: var(--text);
}

/* —— 首页内容区（参考行业站信息密度，保留本站风格） —— */
.home-lead {
  margin: 0 0 18px;
  font-size: 1.05rem;
  color: var(--text);
  max-width: 42em;
  line-height: 1.65;
}
.home-lead .muted {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
}
.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.home-actions a {
  text-decoration: none;
}
.section-head {
  margin: 8px 0 16px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.tld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.tld-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.18);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tld-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  transform: translateY(-2px);
}
.tld-card .tld {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.tld-card .price {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--accent);
}
.tld-card .sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.16);
}
.feature-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: var(--font-display);
}
.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.14);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 14.5px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 500;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list .faq-body {
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin: 0 16px 14px;
}
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.promo-banner .promo-copy {
  flex: 1;
  min-width: 220px;
}
.promo-banner h2 {
  margin: 0 0 8px;
}
.promo-banner ul {
  margin: 10px 0 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.oem-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.oem-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.16);
}
.oem-col h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-family: var(--font-display);
}
.oem-col ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.oem-steps {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14.5px;
}
.oem-steps li {
  margin-bottom: 6px;
}
.oem-steps strong {
  color: var(--text);
}
@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .tld-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .oem-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    position: static;
    padding: 10px 12px;
  }
  .console {
    flex-direction: column;
  }
  .side {
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 8px;
  }
  .side-title {
    width: 100%;
    padding: 6px 10px;
  }
  .side a {
    border-left: 0;
    border-radius: 8px;
    padding: 8px 12px;
  }
  .side a.on {
    border-left: 0;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .hero-panel {
    padding: 20px 16px;
  }
  .wrap {
    padding: 14px 12px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
