/* ========== 购域名 - 全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; font-size: 14px; }
a { text-decoration: none; color: inherit; }
a:hover { color: #1890ff; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ========== 头部（品牌行：Logo + QQ/电话 + 微信二维码） ========== */
.header { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 15px; max-width: 1200px; margin: 0 auto; }
.brand-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.logo-link { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.site-logo { height: 60px; max-width: 200px; object-fit: contain; }
.brand-text { min-width: 0; margin-left: auto; text-align: right; }
.brand-text h1 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.2; color: #fff; }
.brand-phone { display: inline-block; font-size: 17px; font-weight: 700; color: #fff; text-decoration: none; margin-top: 3px; letter-spacing: .5px; }
.wechat-qr-link { flex-shrink: 0; display: inline-flex; }
.wechat-qr-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 2px solid #fff; cursor: pointer; }

/* 微信二维码弹窗 */
.qr-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.qr-box { position: relative; background: #fff; padding: 22px 22px 18px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.3); text-align: center; }
.qr-box img { width: 220px; height: 220px; object-fit: contain; display: block; }
.qr-tip { font-size: 15px; color: #333; margin-bottom: 12px; font-weight: 600; }
.qr-close { position: absolute; top: -14px; right: -10px; width: 30px; height: 30px; line-height: 28px; border-radius: 50%; background: #ff4d4f; color: #fff; font-size: 20px; cursor: pointer; text-align: center; }

/* ========== 按钮 ========== */
.btn { display: inline-block; height: 38px; line-height: 38px; padding: 0 20px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; transition: all 0.3s; text-align: center; }
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; color: #fff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #73d13d; color: #fff; }
.btn-default { background: #fff; color: #333; border: 1px solid #d9d9d9; }
.btn-default:hover { color: #1890ff; border-color: #1890ff; }
.btn-sm { height: 30px; line-height: 30px; padding: 0 12px; font-size: 12px; }

/* ========== 搜索栏 ========== */
.search-bar { background: #fff; padding: 20px 0; border-bottom: 1px solid #e8e8e8; }
.search-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search-inner input[type="text"] { flex: 1; min-width: 200px; height: 38px; border: 1px solid #d9d9d9; border-radius: 4px; padding: 0 12px; font-size: 14px; outline: none; transition: border 0.3s; }
.search-inner input[type="text"]:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,0.2); }
.search-inner select { height: 38px; border: 1px solid #d9d9d9; border-radius: 4px; padding: 0 12px; font-size: 14px; background: #fff; outline: none; cursor: pointer; }

/* ========== 公告栏 ========== */
.notice-bar { background: linear-gradient(90deg, #fff7e6, #fffbe6); border-bottom: 1px solid #ffe7ba; padding: 10px 0; }
.notice-bar .container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notice-text { font-size: 14px; color: #874d00; }
.notice-text b { color: #fa541c; font-weight: 700; font-size: 15px; }

/* ========== 域名列表 ========== */
.domain-section { padding: 20px 0; }
.domain-section .section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.domain-section .section-title { font-size: 18px; font-weight: 600; color: #333; }
.domain-section .domain-count { font-size: 13px; color: #999; }
.table-wrap { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); overflow: hidden; }
.domain-table { width: 100%; border-collapse: collapse; }
.domain-table thead { background: #fafafa; }
.domain-table th { padding: 8px 12px; font-weight: 600; font-size: 13px; color: #666; text-align: left; white-space: nowrap; }
.domain-table td { padding: 5px 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.domain-table tbody tr { transition: background 0.2s; }
.domain-table tbody tr:hover { background: #e6f7ff; }
.domain-table .domain-name { font-weight: 600; color: #1890ff; font-size: 15px; }
.td-domain { white-space: nowrap; }
.price { color: #ff4d4f; font-weight: 700; font-size: 15px; }

/* 分类标签 */
.category-tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; background: #e6f7ff; color: #1890ff; }

/* 推荐标签 */
.rec-tag { display: inline-block; background: linear-gradient(135deg, #ff9800, #ff5722); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; margin-left: 8px; vertical-align: middle; font-weight: 600; white-space: nowrap; }

/* 空数据 */
.empty-tip { text-align: center; padding: 40px; color: #999; }

/* ========== 分页 ========== */
.pagination { display: flex; justify-content: center; align-items: center; padding: 20px 0; gap: 5px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; text-align: center; border: 1px solid #d9d9d9; border-radius: 4px; background: #fff; font-size: 13px; color: #333; margin: 2px; padding: 0 8px; }
.pagination a:hover { color: #1890ff; border-color: #1890ff; }
.pagination .active { background: #1890ff; color: #fff; border-color: #1890ff; }
.pagination .disabled { color: #d9d9d9; cursor: not-allowed; }

/* ========== 详情页 ========== */
.detail-card { background: #fff; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); padding: 30px; margin: 20px 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; margin-bottom: 15px; }
.detail-head h2 { font-size: 20px; font-weight: 700; color: #333; margin: 0; }
.detail-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-table { width: 100%; }
.detail-table td { padding: 12px 15px; border-bottom: 1px solid #f5f5f5; }
.detail-table td:first-child { width: 100px; color: #999; font-weight: 500; }
.detail-table .domain-highlight { font-size: 22px; font-weight: 700; color: #1890ff; }
.detail-table .price-highlight { font-size: 22px; font-weight: 700; color: #ff4d4f; }
.copy-link { color: #1890ff; font-size: 12px; }
.detail-desc { margin-top: 25px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.detail-desc h3 { font-size: 16px; margin-bottom: 12px; color: #333; }
.detail-desc .desc-body { line-height: 1.8; color: #555; white-space: pre-wrap; }

/* ========== 底部 ========== */
.footer { background: #fff; border-top: 1px solid #e8e8e8; padding: 20px 0; text-align: center; color: #999; font-size: 13px; margin-top: 20px; }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; text-align: center; gap: 5px; }
  .search-inner { flex-direction: column; }
  .search-inner input[type="text"],
  .search-inner select { width: 100%; }
  .domain-table { font-size: 12px; }
  .domain-table th, .domain-table td { padding: 5px 6px; }
  .domain-table .hide-mobile { display: none; }
  .price { font-size: 13px; }
}

@media (max-width: 640px) {
  .site-logo { height: 46px; }
  .brand-text h1 { font-size: 15px; }
  .brand-phone { font-size: 14px; }
  .wechat-qr-thumb { width: 48px; height: 48px; }
}

/* 搜索表单 / 简介单元格 / 联系方式 */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; width: 100%; }
.brief-cell { max-width: 200px; color: #666; font-size: 13px; }
.contact-item { margin-right: 15px; }
