/* 域名服务子站布局 */
.domain-subnav-wrap {
  background: #fff;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.domain-subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
}
.domain-subnav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.domain-subnav-item {
  position: relative;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.domain-subnav-item:hover { color: var(--primary); }
.domain-subnav-item.active {
  color: var(--primary);
  font-weight: 600;
}
.domain-subnav-item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #22c55e;
  border-radius: 2px 2px 0 0;
}
.domain-subnav-promo {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.domain-subnav-promo:hover { color: var(--primary); }
.tag-hot {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-style: normal;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 3px;
  font-weight: 700;
}

.domain-page {
  background: #fff;
  padding: 24px 0 48px;
}
.domain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.domain-main { min-width: 0; }
.domain-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.domain-search-bar .form-control { flex: 1; max-width: 360px; }
.domain-note {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.domain-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.domain-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.domain-price-table th,
.domain-price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.domain-price-table th {
  background: #fafbfc;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 13px;
}
.domain-price-table tr:last-child td { border-bottom: none; }
.domain-price-table .row-group td {
  background: #f8fafc;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}
.domain-price-table .col-tld { font-weight: 600; color: var(--primary); }
.domain-price-table .tag-rec {
  margin-left: 6px;
  font-size: 11px;
  color: #dc2626;
  font-weight: 600;
}
.domain-price-table .muted-cell { color: var(--text-muted); }

.domain-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: #fff;
}
.domain-panel-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
}
.domain-textarea {
  width: 100%;
  min-height: 200px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.domain-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}
.domain-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.domain-steps {
  margin-top: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 10px;
}
.domain-steps h3 { margin: 0 0 16px; font-size: 1.1rem; }
.domain-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  line-height: 1.9;
}
.domain-steps strong { color: var(--text); }

.domain-sidebar { position: sticky; top: 80px; }
.domain-side-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 16px;
  background: #fff;
}
.domain-side-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.domain-side-hd h4 { margin: 0; font-size: 14px; }
.domain-side-hd a { font-size: 12px; }
.domain-side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.domain-side-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #f1f5f9;
  font-size: 13px;
}
.domain-side-list li:last-child { border-bottom: none; }
.domain-side-list a {
  color: var(--text);
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.domain-side-list a:hover { color: var(--primary); }
.domain-side-list .muted { color: var(--text-muted); }

/* 首页域名搜索区增强 */
.hero-section--light {
  background: #fff;
  color: var(--text);
  padding: 40px 0 32px;
}
.hero-section--light .hero-title { color: var(--text); }
.hero-section--light .hero-desc { color: var(--text-muted); }
.hero-section--light .hero-tag {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #bbf7d0;
}
.hero-tld-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.hero-tld-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.hero-tld-item .ext {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-tld-item .price {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.hero-links {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
}
.hero-links a { color: var(--primary); }
.support-bar {
  background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
  padding: 14px 0;
}
.support-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.support-bar p { margin: 0; color: #166534; font-size: 14px; }
.home-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.home-step-item h4 {
  margin: 0 0 6px;
  color: #22c55e;
  font-size: 14px;
}
.home-step-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 白底主区域内的后缀芯片（避免沿用深色 Hero 样式导致看不见） */
.domain-main .tld-quick--hidden {
  display: none !important;
}
.home-popular-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: stretch;
}
.home-tld-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  text-decoration: none;
}
.home-tld-chip:hover,
.home-tld-chip.active {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.12);
}
.home-tld-chip .ext {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}
.home-tld-chip .price {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}
.home-tld-chip--more {
  color: var(--primary);
  font-weight: 600;
  background: #fff;
}
.tld-card .price-pending {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.btn-login-accent {
  background: #facc15 !important;
  border-color: #eab308 !important;
  color: #1f2937 !important;
  font-weight: 600;
}
.btn-login-accent:hover {
  background: #fde047 !important;
  color: #111 !important;
}
.feature-grid--compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}
.feature-item--plain {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
}
.feature-item--plain h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.feature-item--plain p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 992px) {
  .domain-layout { grid-template-columns: 1fr; }
  .domain-sidebar { position: static; }
  .home-split { grid-template-columns: 1fr; }
  .home-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .domain-subnav-inner { flex-direction: column; align-items: flex-start; }
  .domain-search-bar { flex-direction: column; }
  .domain-search-bar .form-control { max-width: none; }
  .home-steps { grid-template-columns: 1fr; }
}
