/* =========================================================
 * JISHAN_Theme - 首页域名注册模块
 * 对齐 market-section.css 的 zd-2-section 风格
 * ========================================================= */

/* 阿里妈妈数黑体兜底：智简魔方 home.css 引用 /clientarea/template/pc/default/fonts/*.woff2，
 * 但真实目录不存在，返回 500。这里以相同字体名从 JISHAN_Theme/static/font/ 真实路径补回退链，
 * font-display:swap 避免 FOIT 不可见文字。 */
@font-face {
  font-family: "AlimamaShuHeiTi";
  src: url('/web/JISHAN_Theme/static/font/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
       url('/web/JISHAN_Theme/static/font/AlimamaShuHeiTi-Bold.woff') format('woff'),
       url('/clientarea/template/pc/StarUser/fonts/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
       url('/clientarea/template/pc/StarUser/fonts/AlimamaShuHeiTi-Bold.woff') format('woff'),
       url('/web/JISHAN_Theme/static/font/AlimamaShuHeiTi-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AlimamaShuHeiTi";
  src: url('/web/JISHAN_Theme/static/font/AlimamaShuHeiTi-Bold.woff2') format('woff2'),
       url('/web/JISHAN_Theme/static/font/AlimamaShuHeiTi-Bold.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.zd-domain-section {
    padding: 72px 0 80px;
    background:
        radial-gradient(circle at 10% 10%, rgba(47,111,237,0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(0,194,255,0.08) 0%, transparent 36%),
        linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.zd-domain-section .zd-2-section-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.zd-domain-section .zd-2-section-hd {
    margin-bottom: 36px;
}

.zd-domain-section .zd-2-section-title {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.3;
    color: #0a1f44;
    margin: 0;
    letter-spacing: 0.5px;
}

.zd-domain-section .zd-2-section-title i {
    font-style: normal;
    color: #2F6FED;
    background: linear-gradient(90deg, #2F6FED 0%, #00c2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.zd-domain-section .zd-2-section-desc {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #6b7a99;
}

/* ---------- 查询条 ---------- */
.zd-domain-search-bar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 20px 60px -20px rgba(47,111,237,0.18),
        0 4px 16px rgba(10,31,68,0.04);
    padding: 22px 22px 18px;
    border: 1px solid #eef2f9;
}

.zd-domain-search-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.zd-domain-input-wrap {
    flex: 1;
    display: flex;
    align-items: stretch;
    border: 1px solid #dce3f1;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.zd-domain-input-wrap:focus-within {
    border-color: #2F6FED;
    box-shadow: 0 0 0 4px rgba(47,111,237,0.10);
}

.zd-domain-input-prefix {
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #6b7a99;
    background: #f6f8fd;
    border-right: 1px solid #eef2f9;
    white-space: nowrap;
}
.zd-domain-input-prefix svg {
    width: 16px;
    height: 16px;
    color: #2F6FED;
    flex-shrink: 0;
}

.zd-domain-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 15px;
    line-height: 1;
    color: #0a1f44;
    height: 50px;
    background: transparent;
    font-family: inherit;
}
.zd-domain-input::placeholder {
    color: #9aa7bd;
}

.zd-domain-search-btn {
    min-width: 140px;
    padding: 0 24px;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #2F6FED 0%, #00a3ff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 24px -10px rgba(47,111,237,0.55);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}
.zd-domain-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(47,111,237,0.6);
    filter: brightness(1.05);
}
.zd-domain-search-btn:active {
    transform: translateY(0);
}

/* ---------- 后缀复选框 ---------- */
.zd-suffix-list {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 992px) {
    .zd-suffix-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .zd-suffix-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.zd-suffix-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6ecf7;
    background: #fafcff;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    margin: 0;
}
.zd-suffix-item:hover {
    border-color: #c8d6f2;
    background: #f3f7ff;
}
.zd-suffix-item input {
    accent-color: #2F6FED;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}
.zd-suffix-text {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e68;
}
.zd-suffix-price {
    margin-left: auto;
    font-size: 12px;
    color: #ff6a00;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- 消息条 ---------- */
.zd-msg-bar {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    display: none;
}
.zd-msg-info  { background: #eef4ff; color: #2F6FED; }
.zd-msg-warn  { background: #fff6e5; color: #b86500; }
.zd-msg-error { background: #fff0f0; color: #b3261e; }

/* ---------- 结果列表（横向列表式，参考阿里云域名查询） ---------- */
.zd-domain-result-wrap {
    margin-top: 32px;
}

.zd-result-empty {
    text-align: center;
    padding: 60px 20px;
    color: #8a97b4;
    background: #fff;
    border: 1px dashed #dce3f1;
    border-radius: 14px;
}
.zd-result-empty p { margin: 0; font-size: 14px; }

.zd-domain-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zd-domain-row {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center;
    gap: 18px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef2f9;
    padding: 18px 22px 18px 0;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.2s ease;
    opacity: 0;
    transform: translateX(-12px);
    animation: zdRowIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes zdRowIn {
    to { opacity: 1; transform: translateX(0); }
}
.zd-domain-row:hover {
    transform: translateX(4px);
    box-shadow:
        0 18px 48px -20px rgba(47,111,237,0.25),
        0 4px 12px rgba(10,31,68,0.04);
    border-color: #dbe6ff;
}

.zd-domain-stripe {
    justify-self: stretch;
    align-self: stretch;
    border-radius: 0 4px 4px 0;
    transition: width 0.2s ease;
}
.zd-domain-row:hover .zd-domain-stripe {
    filter: brightness(1.05);
}
.zd-domain-avail .zd-domain-stripe {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}
.zd-domain-used .zd-domain-stripe {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}
.zd-domain-pending .zd-domain-stripe {
    background: linear-gradient(180deg, #3b82f6 0%, #2F6FED 100%);
}

.zd-domain-row-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.zd-domain-row-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.zd-domain-name {
    font-size: 18px;
    font-weight: 700;
    color: #0a1f44;
    letter-spacing: 0.2px;
    line-height: 1.2;
    word-break: break-all;
}
.zd-domain-name-suffix {
    color: #2F6FED;
    font-weight: 800;
}
.zd-domain-row:hover .zd-domain-name-suffix {
    background: linear-gradient(90deg, #2F6FED 0%, #00a3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.zd-domain-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.zd-domain-status-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.zd-domain-avail .zd-domain-status-pill {
    color: #0a7a3b;
    background: #e6f7ee;
    border: 1px solid #b3e4c6;
}
.zd-domain-avail .zd-domain-status-pill::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.18);
}
.zd-domain-used .zd-domain-status-pill {
    color: #8a1e1e;
    background: #ffecec;
    border: 1px solid #f4bfbf;
}
.zd-domain-used .zd-domain-status-pill::before {
    background: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.18);
}
.zd-domain-pending .zd-domain-status-pill {
    color: #1a56a8;
    background: #eaf1ff;
    border: 1px solid #c3d6ff;
}
.zd-domain-pending .zd-domain-status-pill::before {
    background: #2F6FED;
    box-shadow: 0 0 0 3px rgba(47,111,237,0.18);
    animation: zdPulse 1.6s ease-in-out infinite;
}
@keyframes zdPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(47,111,237,0.18); }
    50%      { opacity: 0.7; box-shadow: 0 0 0 6px rgba(47,111,237,0.08); }
}

.zd-domain-row-hint {
    font-size: 12px;
    line-height: 1.5;
    color: #8a97b4;
}
.zd-domain-pending .zd-domain-row-hint {
    color: #2F6FED;
    font-weight: 500;
}

.zd-domain-price-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 110px;
}
.zd-domain-price-now {
    font-size: 24px;
    font-weight: 800;
    color: #ff5a00;
    line-height: 1;
    letter-spacing: -0.5px;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Roboto, sans-serif;
}
.zd-domain-price-now small {
    font-size: 14px;
    font-weight: 600;
    margin-right: 2px;
}
.zd-domain-price-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8a97b4;
}
.zd-domain-price-old {
    color: #adb6ca;
    text-decoration: line-through;
}

.zd-domain-actions-col {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.zd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.zd-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.5);
}
.zd-btn-primary {
    background: linear-gradient(135deg, #2F6FED 0%, #00a3ff 100%);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(47,111,237,0.6);
    position: relative;
    overflow: hidden;
}
.zd-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.5s ease;
}
.zd-btn-primary:not(:disabled):hover::after {
    transform: translateX(120%);
}
.zd-btn-primary:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 26px -10px rgba(47,111,237,0.7);
}
.zd-btn-ghost {
    background: transparent;
    border-color: #e2e8f4;
    color: #6b7a99;
}
.zd-btn-ghost:hover {
    border-color: #c8d6f2;
    color: #2F6FED;
    background: #f6f8fd;
}

/* ---------- 响应式：窄屏换行 ---------- */
@media (max-width: 820px) {
    .zd-domain-row {
        grid-template-columns: 22px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 14px;
        padding: 16px 16px 16px 0;
    }
    .zd-domain-stripe { grid-row: 1 / span 2; }
    .zd-domain-price-col {
        grid-column: 2;
        grid-row: 2;
        align-items: flex-start;
        flex-direction: row;
        min-width: 0;
        justify-content: space-between;
        width: 100%;
    }
    .zd-domain-actions-col {
        grid-column: 1 / -1;
        justify-content: flex-end;
        margin-top: 2px;
    }
}
@media (max-width: 480px) {
    .zd-domain-actions-col { justify-content: stretch; }
    .zd-domain-actions-col .zd-btn { flex: 1; }
    .zd-domain-name { font-size: 16px; }
    .zd-domain-price-now { font-size: 20px; }
}

/* ---------- 查看更多入口 ---------- */
.zd-domain-more {
    text-align: center;
    margin-top: 28px;
}
.zd-domain-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2F6FED;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(47,111,237,0.08);
    transition: all 0.2s ease;
}
.zd-domain-more-link:hover {
    background: rgba(47,111,237,0.14);
    transform: translateY(-1px);
}

/* ---------- 响应式：搜索条换行 ---------- */
@media (max-width: 600px) {
    .zd-domain-section { padding: 50px 0 56px; }
    .zd-domain-section .zd-2-section-title { font-size: 26px; }
    .zd-domain-search-row { flex-direction: column; }
    .zd-domain-search-btn { min-width: auto; height: 46px; }
    .zd-domain-input-prefix { display: none; }
}
