* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    height: 100%;
    width: 100%;
    font-size: 14px;
    color: black;
    -webkit-font-smoothing: antialiased;
}

html {
    height: 100%;
}

#root {
    width: 100%;
    height: 100%;
}

#preview_container {
    width: 100%;
    height: 100%;
    margin: auto;
    min-width: 300px;
}

.realpreview-content {
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: black;
    position: relative;
    overflow: auto;
    background-color: #e9f2ff;
    background-image:
        radial-gradient(65% 42% at 0% 4%, #ffffff 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(80% 55% at 108% 104%, #6d9df1 0%, rgba(109, 157, 241, 0) 100%),
        linear-gradient(180deg, #eef6ff 0%, #e8f1ff 38%, #dbe9ff 72%, #cfe1ff 100%);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.main-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    overflow: auto;
    position: relative;
}

.main-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 800px;
    margin: auto;
    position: relative;
    padding: 40px 5% 0;
}



.avatar-container {
    height: 96px;
    width: 96px;
    box-sizing: border-box;
    margin-bottom: 8px;
    cursor: pointer;
}

.avatar {
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 14px 28px rgba(62, 110, 190, 0.20),
        0 0 0 6px rgba(255, 255, 255, 0.40);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-name {
    margin-top: 8px;
    font-weight: 900;
    font-size: 16px;
    text-align: center;
    width: 90%;
    white-space: pre-wrap;
    color: white;
}

.profile-desc {
    margin-top: 12px;
    text-align: center;
    word-break: break-all;
    width: 90%;
    white-space: pre-wrap;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #556b8f;
}

.links-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    max-width: 460px;
    padding-bottom: 20px;
    margin-top: 26px;
}

.link-card {
    width: 100%;
    cursor: pointer;
    margin-top: 16px;
}

.link-card-inner {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    color: rgb(94, 94, 94);
    min-height: 30px;
    padding: 9px 12px 9px 9px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        0 14px 30px rgba(62, 110, 190, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.link-card-inner:hover {
    transform: translateY(-2px);
    box-shadow:
        0 18px 36px rgba(62, 110, 190, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.link-icon {
    display: flex;
    align-items: center;
}

.link-icon img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 13px;
    background-color: #ffffff;
}

.game-icon img {
    height: 28px;
    width: 28px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
    margin: 7px;
}

.link-title {
    padding: 7px 14px;
    font-size: 16px;
    font-weight: bold;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-break: break-all;
    white-space: pre-wrap;
    line-height: 18px;
    color: #22304c;
    text-align: center;
}

.link-arrow {
    flex-shrink: 0;
    margin-left: 10px;
    width: 16px;
    padding: 8px;
    vertical-align: bottom;
}

.link-arrow i {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #8aa2c4;
    border-right: 2px solid #8aa2c4;
    transform: rotate(45deg);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    overflow: hidden;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    border-radius: 12px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    text-shadow: 0 0 4px rgba(0,0,0,0.5);
}


/* ================= 微信防红提示页 ================= */
.wechat-guard {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background:
        radial-gradient(65% 42% at 0% 4%, #ffffff 0%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(80% 55% at 108% 104%, #6d9df1 0%, rgba(109, 157, 241, 0) 100%),
        linear-gradient(180deg, #eef6ff 0%, #e8f1ff 38%, #dbe9ff 72%, #cfe1ff 100%);
}

html.in-wechat,
html.in-wechat body {
    overflow: hidden;
}

html.in-wechat #root {
    display: none;
}

html.in-wechat .wechat-guard {
    display: block;
}

.guard-inner {
    position: relative;
    min-height: 100%;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: calc(40px + env(safe-area-inset-top)) 26px calc(40px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.guard-illustration {
    position: relative;
    width: 88px;
    height: 88px;
    margin-bottom: 26px;
    animation: guardFadeUp 0.5s ease both;
}

.guard-icon {
    position: relative;
    width: 88px;
    height: 88px;
    border-radius: 26px;
    background: linear-gradient(150deg, #ffffff 0%, #bcdaff 42%, #5b96ec 100%);
    box-shadow:
        0 18px 34px rgba(60, 116, 200, 0.22),
        0 2px 6px rgba(60, 116, 200, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.guard-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 21px;
    background: linear-gradient(160deg, #ffffff 0%, #eef6ff 58%, #d7e9ff 100%);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.guard-icon-ring {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid #2f74ea;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(47, 116, 234, 0.10);
}

.guard-icon-ring::after {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2f74ea;
}

.guard-arrow {
    position: absolute;
    top: -46px;
    right: -62px;
    width: 82px;
    height: 82px;
    color: #a6bede;
    animation: guardFloat 3s ease-in-out infinite;
}

.guard-title {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #1b2b4b;
    line-height: 1.35;
    animation: guardFadeUp 0.5s ease 0.05s both;
}

.guard-subtitle {
    margin-top: 10px;
    font-size: 13px;
    color: #7b8dab;
    letter-spacing: 0.5px;
    animation: guardFadeUp 0.5s ease 0.1s both;
}

.guard-card {
    width: 100%;
    margin-top: 32px;
    padding: 4px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 46px rgba(62, 110, 190, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    animation: guardFadeUp 0.55s ease 0.15s both;
}

.guard-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 2px;
    border-bottom: 1px solid rgba(47, 116, 234, 0.10);
}

.guard-step:last-child {
    border-bottom: none;
}

.guard-num {
    flex-shrink: 0;
    min-width: 22px;
    font-size: 29px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(180deg, #5c9bff 0%, #2b63d6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2b63d6;
}

.guard-text {
    font-size: 15px;
    font-weight: 600;
    color: #22304c;
    letter-spacing: 0.4px;
    text-align: left;
}

.guard-dots {
    font-weight: 800;
    letter-spacing: 1px;
    color: #22304c;
}

.guard-copy {
    margin-top: 30px;
    padding: 12px 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #e5f0ff 100%);
    color: #2b63d6;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow:
        0 12px 24px rgba(59, 110, 200, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: guardFadeUp 0.55s ease 0.2s both;
    -webkit-tap-highlight-color: transparent;
}

.guard-copy:active {
    transform: scale(0.96);
    box-shadow: 0 6px 14px rgba(59, 110, 200, 0.14);
}

.guard-toast {
    position: fixed;
    left: 50%;
    bottom: calc(46px + env(safe-area-inset-bottom));
    transform: translate(-50%, 12px);
    max-width: 80%;
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(23, 37, 63, 0.88);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
}

.guard-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes guardFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes guardFloat {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(3px, -4px);
    }
}

@media (max-width: 360px) {
    .guard-title {
        font-size: 22px;
    }

    .guard-arrow {
        right: -50px;
        top: -40px;
        width: 70px;
        height: 70px;
    }

    .guard-num {
        font-size: 26px;
    }

    .guard-text {
        font-size: 14px;
    }
}


