:root {
    --dy-domain-primary: #2b6cff;
    --dy-domain-primary-2: #5792ff;
    --dy-domain-ink: #141b2c;
    --dy-domain-muted: #8a95a8;
    --dy-domain-line: #dbe6fa;
    --dy-domain-green: #22b779;
    --dy-domain-main-width: clamp(320px, 62vw, 980px);
    --dy-domain-search-height: clamp(58px, 5vw, 76px);
}

.dy-domain-page[v-cloak] .dy-domain-hero,
.dy-domain-page[v-cloak] .dy-domain-content {
    visibility: hidden;
}

.dy-domain-page {
    min-height: 100vh;
    padding-top: 64px;
    overflow-x: hidden;
    background:
        linear-gradient(rgba(47, 109, 246, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(47, 109, 246, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, #edf4ff 0, #f8fbff 360px, #ffffff 100%);
    background-size: 40px 40px, 40px 40px, auto;
}

.dy-domain-hero .dianle-width,
.dy-domain-content .dianle-width {
    max-width: 1400px;
    padding-left: 24px;
    padding-right: 24px;
}

.dy-domain-hero {
    padding: clamp(28px, 3.6vw, 44px) 0 0;
}

.dy-domain-title {
    color: var(--dy-domain-ink);
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.dy-search-stage {
    width: min(var(--dy-domain-main-width), 100%);
    margin: clamp(24px, 3vw, 38px) auto 0;
}

.dy-domain-tabs {
    width: clamp(210px, 17vw, 238px);
    height: clamp(48px, 4vw, 54px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    align-items: center;
    padding: 6px;
    border: 1px solid #dfe7f6;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(20, 40, 90, 0.08);
}

.dy-domain-tabs button {
    height: clamp(36px, 3.2vw, 42px);
    border: 0;
    border-radius: 9px;
    color: #667085;
    background: transparent;
    font-size: clamp(13px, 1vw, 14px);
    font-weight: 800;
    cursor: pointer;
}

.dy-domain-tabs button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--dy-domain-primary-2), var(--dy-domain-primary));
    box-shadow: 0 10px 18px rgba(47, 109, 246, 0.22);
}

.dy-search-card {
    height: var(--dy-domain-search-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(96px, 8.2vw, 124px) clamp(128px, 11vw, 168px);
    align-items: center;
    margin-top: clamp(14px, 1.4vw, 18px);
    overflow: visible;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 40, 90, 0.1);
}

.dy-search-field {
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.2vw, 16px);
    min-width: 0;
    padding: 0 clamp(18px, 2vw, 28px);
}

.dy-search-icon {
    width: clamp(20px, 1.7vw, 24px);
    height: clamp(20px, 1.7vw, 24px);
    flex: 0 0 auto;
    position: relative;
    border: 2px solid #b7c0d2;
    border-radius: 50%;
}

.dy-search-icon::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 0;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: #b7c0d2;
    transform: rotate(45deg);
}

.dy-search-field input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    color: var(--dy-domain-ink);
    background: transparent;
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 700;
}

.dy-search-field textarea {
    flex: 1;
    min-width: 0;
    height: 24px;
    padding: 0;
    border: 0;
    outline: 0;
    resize: none;
    color: var(--dy-domain-ink);
    background: transparent;
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 700;
    line-height: 24px;
    overflow: hidden;
}

.dy-search-field input::placeholder {
    color: #9aa4b5;
}

.dy-search-field textarea::placeholder {
    color: #9aa4b5;
}

.dy-search-card.is-batch .dy-suffix-wrap {
    align-self: center;
}

.dy-suffix-wrap {
    position: relative;
    height: clamp(38px, 3vw, 44px);
    border-left: 1px solid #e6ebf5;
}

.dy-suffix-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #667085;
    background: transparent;
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 500;
    cursor: pointer;
}

.dy-suffix-btn i {
    width: 12px;
    height: 12px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(45deg) translateY(-2px);
}

.dy-suffix-pop {
    position: absolute;
    top: 66px;
    right: 0;
    z-index: 20;
    width: 280px;
    max-height: 260px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    overflow: auto;
    border: 1px solid var(--dy-domain-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(20, 40, 90, 0.14);
}

.dy-suffix-pop button {
    height: 34px;
    border: 1px solid #dfe8f8;
    border-radius: 6px;
    color: #4f5d73;
    background: #fbfdff;
    cursor: pointer;
}

.dy-suffix-pop button.is-active,
.dy-suffix-pop button:hover {
    color: #fff;
    border-color: var(--dy-domain-primary);
    background: var(--dy-domain-primary);
}

.dy-search-btn {
    height: var(--dy-domain-search-height);
    border: 0;
    border-radius: 0 16px 16px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--dy-domain-primary-2), #245eea);
    font-size: clamp(16px, 1.45vw, 20px);
    font-weight: 800;
    cursor: pointer;
}

.dy-search-btn:disabled {
    cursor: wait;
    opacity: 0.78;
}

.dy-domain-content {
    padding: 0 0 58px;
}

.dy-result-box {
    width: min(var(--dy-domain-main-width), 100%);
    scroll-margin-top: 84px;
    margin: clamp(28px, 3vw, 38px) auto 0;
    overflow: hidden;
    border: 1px solid #e0e8f7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 34px rgba(20, 40, 90, 0.05);
}

.dy-result-box.is-loading {
    border-color: rgba(43, 108, 255, 0.36);
    box-shadow: 0 18px 44px rgba(43, 108, 255, 0.12);
}

.dy-section-title {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    color: var(--dy-domain-muted);
    background: #fbfdff;
    border-bottom: 1px solid #edf2fb;
}

.dy-section-title h2 {
    color: var(--dy-domain-ink);
    font-size: 20px;
    font-weight: 700;
}

.dy-section-title p {
    margin: 0;
    color: var(--dy-domain-muted);
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.dy-result-state {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dy-domain-muted);
    background: #fff;
}

.dy-result-state.is-loading {
    color: var(--dy-domain-primary);
    background: linear-gradient(90deg, #f7faff 0%, #eef4ff 50%, #f7faff 100%);
}

.dy-result-row {
    height: 62px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 126px;
    align-items: center;
    gap: 18px;
    padding: 0 22px;
    border-bottom: 1px solid #edf2fb;
}

.dy-result-row:first-child {
    background: linear-gradient(90deg, #f7faff, #ffffff);
}

.dy-result-row:last-child {
    border-bottom: 0;
}

.dy-result-name {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dy-domain-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #c8d0dc;
}

.dy-domain-dot.is-ok {
    background: var(--dy-domain-green);
}

.dy-result-name strong {
    min-width: 0;
    color: #1e293f;
    font-size: 17px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dy-result-name em {
    flex: 0 0 auto;
    height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    color: #8a95a8;
    background: #f1f3f7;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.dy-result-name em.is-ok {
    color: #18875a;
    background: #e9f8f1;
}

.dy-result-price {
    color: #f05b3f;
    font-size: 17px;
    font-weight: 800;
    text-align: right;
}

.dy-result-actions {
    display: flex;
    justify-content: flex-end;
}

.dy-reg-btn,
.dy-disabled-btn {
    width: 126px;
    height: 36px;
    line-height: 36px;
    border-radius: 9px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.dy-reg-btn {
    color: #fff;
    background: #3f73f4;
}

.dy-disabled-btn {
    border: 0;
    color: #9aa4b5;
    background: #f2f4f8;
}

@media screen and (max-width: 900px) {
    .dy-search-card {
        grid-template-columns: minmax(0, 1fr) clamp(92px, 14vw, 116px) clamp(124px, 18vw, 150px);
    }
}

@media screen and (max-width: 768px) {
    .dy-domain-page {
        padding-top: 56px;
    }

    .dy-domain-hero .dianle-width,
    .dy-domain-content .dianle-width {
        padding-left: 14px;
        padding-right: 14px;
    }

    .dy-domain-tabs {
        width: 100%;
    }

    .dy-search-card {
        height: auto;
        grid-template-columns: 1fr;
    }

    .dy-search-field {
        height: clamp(58px, 16vw, 64px);
        padding: 0 20px;
    }

    .dy-search-field textarea {
        height: 24px;
        padding: 0;
    }

    .dy-suffix-wrap {
        height: 48px;
        border-top: 1px solid #e6ebf5;
        border-left: 0;
    }

    .dy-suffix-pop {
        top: 54px;
        left: 50%;
        right: auto;
        width: min(280px, calc(100vw - 32px));
        transform: translateX(-50%);
    }

    .dy-search-btn {
        height: clamp(50px, 14vw, 54px);
        border-radius: 0 0 16px 16px;
    }

    .dy-result-row {
        height: auto;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .dy-section-title {
        height: 54px;
        padding: 0 16px;
    }

    .dy-section-title p,
    .dy-result-price {
        text-align: left;
    }

    .dy-result-actions {
        justify-content: flex-start;
    }
}
