:root {
    --p7x-bg: #1b1d25;
    --p7x-panel: rgba(38, 41, 54, 0.94);
    --p7x-line: rgba(216, 222, 233, 0.10);
    --p7x-text: #eceff4;
    --p7x-muted: #a9b0bf;
    --p7x-accent: #f08db5;
    --p7x-accent-strong: #ff6fa8;
    --p7x-shadow: rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body.p7x-body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--p7x-text);
    background:
        radial-gradient(circle at top, #292d3a 0%, var(--p7x-bg) 58%, #15171d 100%);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        Arial,
        sans-serif;
}

.p7x-bg,
.p7x-grid,
.p7x-light {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.p7x-bg {
    overflow: hidden;
}

.p7x-grid {
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 38px 38px;
}

.p7x-light {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.23;
}

.p7x-light-a {
    top: -80px;
    left: -95px;
    background: var(--p7x-accent-strong);
}

.p7x-light-b {
    top: auto;
    right: -120px;
    bottom: -120px;
    left: auto;
    background: #7f8cff;
}

.p7x-shell {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.p7x-card {
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid rgba(216, 222, 233, 0.10);
    border-radius: 22px;
    background: var(--p7x-panel);
    box-shadow:
        0 24px 55px var(--p7x-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
}

.p7x-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 22px;
}

.p7x-logo {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background:
        linear-gradient(135deg, var(--p7x-accent-strong), #d980aa);
    box-shadow:
        0 8px 22px rgba(240, 141, 181, 0.24);
}

.p7x-logo span {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.p7x-brand h1,
.p7x-brand p {
    margin: 0;
}

.p7x-brand h1 {
    color: var(--p7x-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.p7x-brand p {
    margin-top: 4px;
    color: var(--p7x-muted);
    font-size: 12px;
}

.p7x-divider {
    height: 1px;
    background: var(--p7x-line);
}

.p7x-content {
    padding: 31px 25px 27px;
    text-align: center;
}

.p7x-ring-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 21px;
}

.p7x-ring {
    display: flex;
    width: 84px;
    height: 84px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(240, 141, 181, 0.78);
    border-radius: 50%;
    background: rgba(240, 141, 181, 0.08);
    box-shadow:
        0 0 0 8px rgba(240, 141, 181, 0.045),
        0 10px 26px rgba(0, 0, 0, 0.18);
}

.p7x-ring span {
    color: var(--p7x-accent);
    font-size: 31px;
    font-weight: 700;
}

.p7x-content h2 {
    margin: 0;
    color: var(--p7x-text);
    font-size: 22px;
    font-weight: 700;
}

.p7x-desc {
    margin: 13px auto 0;
    color: var(--p7x-muted);
    font-size: 14px;
    line-height: 1.8;
}

.p7x-tip {
    margin: 17px 0 0;
    color: rgba(236, 239, 244, 0.58);
    font-size: 12px;
    line-height: 1.7;
}

.p7x-button {
    width: 100%;
    margin-top: 19px;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background:
        linear-gradient(135deg, var(--p7x-accent-strong), #df87b0);
    box-shadow:
        0 10px 24px rgba(240, 141, 181, 0.18);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.18s ease,
        opacity 0.18s ease;
}

.p7x-button:hover {
    opacity: 0.94;
    transform: translateY(-1px);
}

.p7x-button:active {
    transform: translateY(0);
}

.p7x-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.p7x-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-top: 1px solid var(--p7x-line);
    padding: 14px 18px;
    color: rgba(216, 222, 233, 0.42);
    background: rgba(25, 27, 35, 0.38);
    font-size: 10px;
    letter-spacing: 1.4px;
}

.p7x-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #83cf9d;
    box-shadow: 0 0 10px rgba(131, 207, 157, 0.62);
}

.p7x-noscript {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    padding: 13px;
    border-radius: 10px;
    color: #ffffff;
    background: rgba(180, 65, 86, 0.95);
    text-align: center;
    font-size: 13px;
}

@media (max-width: 520px) {
    .p7x-shell {
        padding: 17px;
    }

    .p7x-card {
        border-radius: 18px;
    }

    .p7x-header {
        padding: 18px;
    }

    .p7x-content {
        padding: 28px 20px 24px;
    }

    .p7x-content h2 {
        font-size: 20px;
    }

    .p7x-desc {
        font-size: 13px;
    }
}

.p7x-domain-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(216, 222, 233, 0.10);
    text-align: left;
}

.p7x-domain-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.p7x-domain-title span {
    color: #eceff4;
    font-size: 14px;
    font-weight: 700;
}

.p7x-domain-title small {
    color: rgba(216, 222, 233, 0.52);
    font-size: 11px;
}

.p7x-domain-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.p7x-domain-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(216, 222, 233, 0.09);
    border-radius: 10px;
    color: #d8dee9;
    background: rgba(20, 22, 29, 0.36);
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.p7x-domain-item:hover {
    border-color: rgba(240, 141, 181, 0.54);
    background: rgba(240, 141, 181, 0.08);
    transform: translateY(-1px);
}

.p7x-domain-index {
    display: flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #f08db5;
    background: rgba(240, 141, 181, 0.10);
    font-size: 10px;
    font-weight: 700;
}

.p7x-domain-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #d8dee9;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p7x-domain-arrow {
    flex: 0 0 auto;
    color: #f08db5;
    font-size: 12px;
    font-weight: 700;
}

.p7x-domain-loading,
.p7x-domain-error {
    padding: 14px 12px;
    border-radius: 10px;
    color: rgba(216, 222, 233, 0.62);
    background: rgba(20, 22, 29, 0.32);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 520px) {
    .p7x-domain-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .p7x-domain-item {
        padding: 10px;
    }

    .p7x-domain-text {
        font-size: 12px;
    }
}