/* ========== Domain Page Styles ========== */
/* 页面内容容器 */
.domain-page {
  padding-top: 64px;
  padding-bottom: 60px;
  min-height: 100vh;
}
.domain-container {
  width: 1140px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 0;
}
/* Banner区域 */
.page-header {
  text-align: center;
  background: url("/web/mf601/assets/img/cloud-banner.png") center top / cover no-repeat;
  background-position-y: 0;
  padding: 60px 0 140px;
  width: 100%;
  margin-left: 0;
  transform: none;
  margin-top: -64px;
  padding-top: 124px;
  margin-bottom: -80px;
  box-sizing: border-box;
}
.page-header__title {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.page-header__subtitle {
  font-size: 15px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
/* 域名搜索栏 */
.domain-search {
  max-width: 680px;
  margin: 32px auto 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  min-width: 0;
}
.domain-search__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1a1a1a;
  padding: 0 16px;
  font-family: inherit;
}
.domain-search__input::placeholder {
  color: #9ca3af;
}
.domain-search__btn {
  flex: 0 1 148px;
  min-width: 112px;
  max-width: 180px;
  height: 48px;
  padding: 0 32px;
  background: #494a4b;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.domain-search__btn:hover {
  background: #3a3b3c;
}
.domain-search__btn:active {
  background: #2c2d2e;
  transform: scale(0.98);
}
/* 内容区域 */
.domain-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}
/* 通用区块标题 */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  min-width: 0;
  flex-wrap: wrap;
}
.search-results__close {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.search-results__close:hover {
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.2);
}
.section-header__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid #494a4b;
  color: #494a4b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.section-header:hover .section-header__number {
  background: #494a4b;
  color: #ffffff;
}
.section-header__title {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 46%);
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-header__subtitle {
  min-width: 0;
  flex: 1 1 220px;
  max-width: 100%;
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
  margin-left: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 通用玻璃卡片 */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
/* ========== 搜索结果区域 ========== */
.search-results-section {
  margin-bottom: 48px;
}
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}
/* 域名结果卡片 */
.domain-result-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.domain-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.domain-result-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.domain-result-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  word-break: break-all;
}
.domain-result-card__suffix {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}
.domain-result-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.domain-result-card__price {
  font-size: 28px;
  font-weight: 800;
  color: #494a4b;
  line-height: 1;
}
.domain-result-card__price-unit {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 400;
}
.domain-result-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}
.domain-result-card__status--available {
  color: #10b981;
}
.domain-result-card__status--registered {
  color: #ef4444;
}
.domain-result-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.domain-result-card__status--available .domain-result-card__status-dot {
  background: #10b981;
}
.domain-result-card__status--registered .domain-result-card__status-dot {
  background: #ef4444;
}
.domain-result-card__actions {
  margin-top: auto;
  min-width: 0;
}
/* 加入购物车按钮 - 描边样式 */
.btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  border: 1px solid #494a4b;
  background: transparent;
  color: #494a4b;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.btn-cart:hover {
  background: #494a4b;
  color: #ffffff;
}
.btn-cart:active {
  background: #3a3b3c;
  border-color: #3a3b3c;
  transform: scale(0.98);
}
.btn-cart:disabled {
  border-color: rgba(0, 0, 0, 0.1);
  color: #9ca3af;
  cursor: not-allowed;
  background: transparent;
}
.btn-cart:disabled:hover {
  background: transparent;
  color: #9ca3af;
}
/* ========== 热门后缀区域 ========== */
.suffix-section {
  margin-bottom: 48px;
}
.suffix-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
/* 后缀卡片 */
.suffix-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.suffix-card > * {
  min-width: 0;
  max-width: 100%;
}
.suffix-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.1);
}
.suffix-card__name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suffix-card__desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
  min-height: 33.6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  min-width: 0;
}
.suffix-card__price {
  font-size: 13px;
  color: #494a4b;
  font-weight: 600;
  margin-top: 4px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suffix-card__price span {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 400;
}
.suffix-card__actions {
  margin-top: 8px;
  min-width: 0;
}
/* 立即注册按钮 - 实心样式 */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 36px;
  border: none;
  background: #494a4b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-register span {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* ========== FAQ / 注册须知区域 ========== */
.faq-section {
  margin-bottom: 48px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
/* FAQ手风琴项 */
.faq-item {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.faq-item.show {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(73, 74, 75, 0.15);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.faq-item__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
}
.faq-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(73, 74, 75, 0.25);
  border-radius: 6px;
  flex-shrink: 0;
  color: #494a4b;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}
.faq-item.show .faq-item__icon {
  background: #494a4b;
  border-color: #494a4b;
  color: #ffffff;
}
.faq-item__title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}
.faq-item__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #9ca3af;
}
.faq-item.show .faq-item__arrow {
  transform: rotate(180deg);
  color: #494a4b;
}
.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.show .faq-item__body {
  max-height: 300px;
}
.faq-item__content {
  padding: 0 20px 16px 60px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.8;
}
.faq-item__content p {
  margin-bottom: 8px;
}
.faq-item__content p:last-child {
  margin-bottom: 0;
}
/* ========== Toast 提示 ========== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #494a4b;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* ========== Editable Content Guardrails ========== */
.page-header__title,
.page-header__subtitle,
.section-header__title,
.section-header__subtitle {
  min-width: 0;
  overflow: hidden;
}
.page-header__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}
.page-header__subtitle {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}
.section-header__title,
.section-header__subtitle,
.domain-result-card__suffix,
.domain-result-card__status,
.suffix-card__name,
.faq-item__title {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.domain-result-card,
.suffix-card,
.faq-item,
.faq-item__header {
  min-width: 0;
}
.domain-result-card__header,
.domain-result-card__price-row,
.faq-item__header {
  gap: 10px;
  min-width: 0;
}
.domain-result-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.domain-result-card__price {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.suffix-card__name,
.faq-item__title {
  min-width: 0;
  overflow: hidden;
}
.suffix-card__desc,
.faq-item__content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.suffix-card__desc {
  min-height: 33.6px;
  white-space: normal;
  -webkit-line-clamp: 2;
}
.faq-item__content {
  -webkit-line-clamp: 4;
}
.btn-register,
.btn-cart,
.domain-search__btn {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
}
.btn-register,
.btn-cart {
  line-height: 36px;
}
.domain-search__btn {
  line-height: 48px;
}
@media (max-width: 1280px) {
  .suffix-grid,
  .search-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1024px) {
  .suffix-grid,
  .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-header {
    padding-top: 112px;
    padding-bottom: 116px;
  }
}
@media (max-width: 768px) {
  .domain-page {
    padding-top: 56px;
  }
  .page-header {
    margin-top: -56px;
    padding: 104px 16px 88px;
    margin-bottom: -48px;
  }
  .page-header__title {
    font-size: 30px;
  }
  .domain-search {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px;
  }
  .domain-search__btn {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-header__title,
  .section-header__subtitle {
    max-width: 100%;
    flex-basis: auto;
  }
  .section-header__subtitle {
    margin-left: 0;
  }
  .suffix-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .suffix-card,
  .domain-result-card {
    padding: 18px;
  }
}
@media (max-width: 480px) {
  .suffix-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}
