* {
    box-sizing: border-box;
}

:root {
    --line: #e8edf7;
    --blue: #2563eb;
    --text: #1f2937;
    --muted: #64748b;
    --shadow: 0 20px 44px rgba(18, 56, 124, 0.12);
    --danger: #dc2626;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background: #fff;
    --scroll-progress: 0%;
}

body.is-scrolled .query-header {
    box-shadow: 0 18px 34px rgba(16, 42, 95, 0.08);
}

a {
    color: inherit;
    text-decoration: none;
}

.page-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.query-topbar {
    background: #f5f7fb;
    border-bottom: 1px solid #edf2fb;
    font-size: 12px;
    color: #70809b;
}

.query-topbar-inner {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.query-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.query-topbar-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: #24406f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.query-topbar-actions a.action-demo {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.16);
}

.query-topbar-actions a.action-admin {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0f766e;
    border-color: rgba(13, 148, 136, 0.16);
}

.query-topbar-actions a.action-register {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.query-topbar-actions a.action-login {
    background: rgba(255, 255, 255, 0.96);
    color: #173463;
}

.query-topbar .query-topbar-actions a:hover {
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    border-color: transparent;
    transform: translateY(-2px);
    text-shadow: none;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.query-topbar .query-topbar-actions a.action-register:hover {
    color: #fff;
}

.query-topbar-inner > a:not(.query-topbar-notice) {
    display: none;
}

.query-topbar-notice,
.query-topbar-notice:hover {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    color: #ca8a04;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.query-topbar-notice::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 13.25V10.75C4 9.78 4.78 9 5.75 9H8.08L13.66 5.28C14.82 4.5 16.38 5.33 16.38 6.73V17.27C16.38 18.67 14.82 19.5 13.66 18.72L8.08 15H5.75C4.78 15 4 14.22 4 13.25Z' fill='%23facc15'/%3E%3Cpath d='M18.2 8.4C19.61 10.28 19.61 13.72 18.2 15.6' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M20.75 6C23.08 8.78 23.08 15.22 20.75 18' stroke='%23facc15' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.query-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(14px);
}

.query-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: var(--scroll-progress);
    height: 2px;
    background: linear-gradient(90deg, #3cc4ff 0%, #316dff 50%, #ffcc68 100%);
    box-shadow: 0 0 12px rgba(49, 109, 255, 0.36);
    transition: width .12s linear;
}

.query-header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.query-brand {
    flex: 0 0 auto;
    font-size: 30px;
    font-weight: 700;
    color: #1261ff;
    letter-spacing: 1px;
}

.query-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    color: #24364d;
}

.query-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 2px 14px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .02em;
}

.query-nav a::before {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: 2px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0));
    opacity: 0;
    transform: translateY(8px) scale(.92);
    transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}

.query-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f8dff, #1261ff);
    box-shadow: 0 10px 18px rgba(18, 97, 255, 0.22);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .24s ease, transform .24s ease;
}

.query-nav a.active,
.query-nav a:hover,
.query-topbar a:hover,
.query-footer-grid a:hover {
    color: var(--blue);
}

.query-nav a.active,
.query-nav a:hover {
    transform: translateY(-2px);
    text-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
}

.query-nav a.active::before,
.query-nav a:hover::before,
.query-nav a.active::after,
.query-nav a:hover::after {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.query-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 24px;
    border-radius: 999px;
    transition: transform .24s ease, box-shadow .24s ease, background .24s ease;
}

.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, #2c74ff 0%, #1050dc 100%);
    box-shadow: 0 14px 28px rgba(16, 80, 220, 0.24);
}

.ghost-btn {
    color: var(--blue);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.query-hero {
    padding: 34px 0 24px;
    background:
        radial-gradient(circle at left top, rgba(103, 184, 255, 0.18) 0%, rgba(103, 184, 255, 0) 24%),
        radial-gradient(circle at right top, rgba(118, 119, 255, 0.16) 0%, rgba(118, 119, 255, 0) 28%),
        linear-gradient(180deg, #eef4ff 0%, #f7faff 100%);
}

.query-banner {
    position: relative;
    padding: 34px;
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at var(--mx, 22%) var(--my, 26%), rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 26%),
        linear-gradient(135deg, #0f64ff 0%, #3e9dff 52%, #85c7ff 100%);
    color: #fff;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease;
    will-change: transform;
}

.query-banner::before,
.query-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.query-banner::before {
    top: -72px;
    right: 12%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    animation: glowFloat 9s ease-in-out infinite;
}

.query-banner::after {
    left: -36px;
    bottom: -96px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(117, 236, 255, 0.24) 0%, rgba(117, 236, 255, 0) 72%);
    animation: glowFloat 12s ease-in-out infinite reverse;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
}

.query-copy h1 {
    margin: 16px 0 10px;
    font-size: 42px;
    line-height: 1.2;
}

.query-copy p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.9;
}

.query-cta-group {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.query-main {
    padding: 34px 0 84px;
}

.query-service,
.query-panel-wrap {
    margin-bottom: 78px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 26px 22px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eaf0fb;
    box-shadow: 0 12px 28px rgba(18, 56, 124, 0.06);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.service-card strong {
    display: block;
    color: var(--blue);
    font-size: 28px;
}

.service-card h3 {
    margin: 14px 0 10px;
    font-size: 18px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.query-layout {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 24px;
}

.license-panel,
.result-panel {
    padding: 28px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #eef3fb;
    box-shadow: 0 18px 36px rgba(19, 58, 124, 0.08);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.25;
}

.section-head p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
}

.result-error {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--danger);
    font-size: 14px;
}

.license-form label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #334155;
}

.license-row {
    display: flex;
    gap: 12px;
}

.license-row input {
    flex: 1 1 auto;
    height: 52px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid #dbe6f7;
    outline: none;
    font-size: 15px;
    color: #0f172a;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.license-row input:focus {
    border-color: #4d8cff;
    box-shadow: 0 0 0 4px rgba(77, 140, 255, 0.12);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.result-item {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid #edf3fb;
}

.result-item span {
    display: block;
    color: #56708f;
    font-size: 13px;
}

.result-item strong {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    color: #123b7a;
    line-height: 1.5;
    word-break: break-all;
}

.domain-box {
    margin-top: 22px;
}

.domain-box strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.domain-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--blue);
    font-size: 13px;
    word-break: break-all;
}

.result-empty {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #edf3fb;
    padding: 28px;
}

.result-empty strong {
    font-size: 24px;
}

.result-empty p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.85;
}

.query-footer {
    background: #0f172a;
    color: #c8d0dd;
    padding: 54px 0 20px;
}

.query-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 1.2fr;
    gap: 24px;
}

.query-footer-grid h4 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 16px;
}

.query-footer-grid a,
.footer-contact span,
.footer-contact em,
.footer-contact p {
    display: block;
    color: #9eafc8;
    font-size: 14px;
}

.query-footer-grid a + a {
    margin-top: 12px;
}

.footer-contact strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: 34px;
}

.footer-contact em {
    margin-top: 8px;
    font-style: normal;
}

.footer-contact p {
    margin: 10px 0 0;
}

.footer-copy {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    color: #73839d;
}

.reveal,
.reveal-card,
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible,
.reveal-card.is-visible,
.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glowFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.08);
    }
}

@media (max-width: 1160px) {
    .service-grid,
    .query-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .query-header-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 0;
    }

    .query-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 18px;
    }

    .query-copy h1,
    .section-head h2 {
        font-size: 30px;
    }

    .service-grid,
    .query-layout,
    .query-footer-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .page-wrap {
        width: min(100% - 20px, 1200px);
    }

    .query-topbar-inner,
    .query-header-actions,
    .query-topbar-actions,
    .query-cta-group,
    .license-row {
        flex-direction: column;
        align-items: stretch;
    }

    .query-topbar-actions {
        gap: 12px;
    }

    .query-topbar-actions a {
        width: 100%;
        min-height: 40px;
    }

    .query-banner,
    .license-panel,
    .result-panel {
        padding: 20px 16px;
        border-radius: 24px;
    }
}

/* Front portal polish 2026-07-08 */
.query-header {
    backdrop-filter: blur(18px);
}

.query-nav a {
    font-weight: 700;
}

.query-header-actions .primary-btn,
.query-topbar-actions .action-register,
.query-cta-group .primary-btn,
.license-row .primary-btn {
    background: #1458d4;
    box-shadow: 0 12px 24px rgba(20, 88, 212, 0.16);
}

.query-banner {
    border-radius: 24px;
    box-shadow: 0 24px 50px rgba(18, 56, 124, 0.14);
}

.query-copy h1 {
    letter-spacing: 0;
}

.query-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: stretch;
}

.license-panel,
.result-panel {
    border-radius: 14px;
    border: 1px solid #e7edf6;
    box-shadow: 0 18px 36px rgba(18, 56, 124, 0.08);
}

.license-form label {
    color: #334155;
    font-weight: 800;
}

.license-row {
    border-radius: 12px;
    background: #f7faff;
}

.license-row input {
    border-radius: 10px;
    font-family: Consolas, Monaco, monospace;
    letter-spacing: 0;
}

.license-row button {
    border-radius: 10px;
}

.result-grid {
    gap: 12px;
}

.result-item,
.domain-box,
.result-empty {
    border-radius: 12px;
    background: #f7faff;
}

.result-item strong {
    word-break: break-all;
}

.domain-tags span {
    border-radius: 999px;
}

.service-card {
    border-radius: 14px;
    border: 1px solid #e7edf6;
    box-shadow: 0 18px 36px rgba(18, 56, 124, 0.08);
}

@media (max-width: 900px) {
    .query-layout {
        grid-template-columns: 1fr;
    }
}
