/* 域名电话 · 对外官网骨架（参考注册商式布局，独立样式） */
:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1a1d21;
  --muted: #5b6570;
  --border: #e2e6ea;
  --brand: #0d7a6e;
  --brand-hover: #0a6359;
  --accent: #e85d04;
  --header-h: 64px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Promo bar */
.site-promo {
  background: linear-gradient(90deg, #0d6b62 0%, #0d7a6e 50%, #0a8f7f 100%);
  color: #fff;
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.4rem 1rem;
}
.site-promo a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover {
  text-decoration: none;
  color: var(--brand);
}
.site-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #12a090);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
}
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 0 0.75rem;
    gap: 0;
    box-shadow: var(--shadow);
    align-items: stretch;
  }
  .site-nav.is-open .nav-item {
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open .nav-item:last-child {
    border-bottom: 0;
  }
  .site-nav.is-open .nav-item__link {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text);
    border-radius: 0;
  }
  .site-nav.is-open .nav-item__trigger {
    display: flex;
    width: 100%;
    padding: 0.75rem 1.25rem;
    justify-content: space-between;
    align-items: center;
  }
  .site-nav.is-open .nav-dropdown {
    display: none;
    position: static;
    margin: 0;
    padding: 0 0 0.5rem 1.25rem;
    border: 0;
    box-shadow: none;
    background: var(--bg);
  }
  .site-nav.is-open .nav-item--dropdown.is-expanded .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
  .site-nav.is-open .nav-dropdown a {
    padding: 0.55rem 0.75rem 0.55rem 0.5rem;
    border-bottom: 0;
    font-size: 0.9rem;
    color: var(--muted);
  }
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item__link {
  padding: 0.5rem 0.85rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 6px;
  text-decoration: none;
}
.nav-item__link:hover {
  background: var(--bg);
  text-decoration: none;
}

.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.85rem;
  margin: 0;
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-item__trigger:hover {
  background: var(--bg);
}
.nav-item__trigger:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav-item__chevron {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-bottom: 0.15rem;
  opacity: 0.75;
  transition: transform 0.2s ease, margin 0.2s ease;
  flex-shrink: 0;
}

@media (hover: hover) and (min-width: 901px) {
  .nav-item--dropdown:hover .nav-item__chevron,
  .nav-item--dropdown:focus-within .nav-item__chevron {
    transform: rotate(-135deg);
    margin-bottom: -0.05rem;
  }
}

@media (max-width: 900px) {
  .nav-item--dropdown.is-expanded .nav-item__chevron {
    transform: rotate(-135deg);
    margin-bottom: -0.05rem;
  }
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 220px;
  padding: 0.4rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 200;
}
.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-dropdown a:hover {
  background: var(--bg);
  text-decoration: none;
  color: var(--brand);
}

@media (hover: hover) and (min-width: 901px) {
  .nav-item--dropdown:hover .nav-dropdown,
  .nav-item--dropdown:focus-within .nav-dropdown {
    display: block;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-hover);
  color: #fff;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: #d14f04;
  color: #fff;
}

.site-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.site-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}
@media (max-width: 900px) {
  .site-menu-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 2.5rem 1.25rem 3rem;
}

.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 首页轮播 */
.hero-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto 1.75rem;
}

.hero-carousel__viewport {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-carousel__slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
  line-height: 0;
}

.hero-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  object-fit: contain;
  background: #0f172a;
  aspect-ratio: 1 / 1;
  max-height: min(56vh, 520px);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}
.hero-carousel__arrow:hover {
  background: #fff;
}
.hero-carousel__arrow--prev {
  left: 10px;
}
.hero-carousel__arrow--next {
  right: 10px;
}

@media (max-width: 600px) {
  .hero-carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  .hero-carousel__arrow--prev {
    left: 6px;
  }
  .hero-carousel__arrow--next {
    right: 6px;
  }
  .hero-carousel__slide img {
    max-height: min(42vh, 380px);
  }
}

.hero-carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.hero-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #c5ccd3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s, transform 0.2s;
}
.hero-carousel__dot[aria-selected="true"] {
  background: var(--brand);
  transform: scale(1.15);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__lead {
  margin: 0 auto 1rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 600;
  color: var(--brand);
}

.hero-points {
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-points li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(13, 122, 110, 0.1);
  border: 1px solid rgba(13, 122, 110, 0.25);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
}

.hero__sub {
  margin: 0 auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Sections */
.section {
  padding: 2.5rem 1.25rem;
}

.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section__title {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.section__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.card .btn {
  width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* 绑定教程（CNAME + 手机号） */
.section--guide .guide-subtitle {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}
.section--guide .guide-subtitle:first-of-type {
  margin-top: 0;
}
.guide-example {
  margin-bottom: 1.75rem;
  border-left: 4px solid var(--brand);
  background: linear-gradient(135deg, rgba(13, 122, 110, 0.07) 0%, var(--card) 48%);
}
.guide-example .guide-subtitle {
  margin-top: 0;
}
.guide-example .guide-ol {
  margin-bottom: 0;
}
.section--guide .guide-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 52rem;
}
.guide-flowchart .guide-subtitle {
  margin-top: 0;
}
.guide-flowchart .guide-note {
  margin-bottom: 1rem;
}
.mermaid-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.mermaid-wrap .mermaid {
  margin: 0;
  font-size: 14px;
}
.guide-block {
  margin-bottom: 1.75rem;
}
.guide-step-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
}
.guide-ol,
.guide-ul {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.94rem;
}
.guide-ol li,
.guide-ul li {
  margin-bottom: 0.4rem;
}
.guide-ol--continue {
  margin-top: 0.5rem;
}
.guide-table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.guide-table th,
.guide-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.guide-table th {
  background: rgba(13, 122, 110, 0.08);
  font-weight: 700;
  white-space: nowrap;
}
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: none;
}
.guide-table code {
  font-size: 0.85em;
  background: var(--card);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.guide-faq {
  margin-top: 2rem;
}
.guide-faq-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.guide-faq-list li {
  margin-bottom: 0.85rem;
}
.guide-faq-list strong {
  color: var(--text);
}

/* Footer */
.site-footer {
  background: #1e2328;
  color: #a8b0b8;
 padding: 2.5rem 1.25rem 2rem;
 margin-top: 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: #c5ccd4;
}
.site-footer a:hover {
  color: #fff;
}

/* 品牌栏：显式下划线（页脚默认 a 继承全局无装饰） */
.site-footer .footer-link--underline {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer .footer-link--underline:hover {
  text-decoration: underline;
  color: #fff;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid strong {
  display: block;
  color: #fff;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin-bottom: 0.45rem;
}

.footer-meta {
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid #333a42;
  text-align: center;
}

.footer-meta__company {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.footer-meta__note {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  color: #8b949e;
}

.footer-social {
  max-width: 480px;
  margin: 0 auto;
}

.footer-social__group {
  margin-bottom: 1rem;
}
.footer-social__group:last-child {
  margin-bottom: 0;
}

.footer-social__group-title {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.footer-social__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #2d333b;
  color: #c5ccd4;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-social__link:hover {
  background: #3d454f;
  color: #fff;
  text-decoration: none;
}
.footer-social__link--reserved {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}
.footer-social__svg {
  width: 22px;
  height: 22px;
  display: block;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid #333a42;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}
