* { box-sizing: border-box; }
body {
    --bg: #eaf3ef; --surface: #fff; --text: #17362d; --muted: #506961;
    --accent: #18694e; --line: #d4e5dd; --hover: #edf6f1;
    margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
    background: var(--bg); color: var(--text); padding: 24px;
    font: 1rem/1.55 system-ui, "Microsoft YaHei", sans-serif;
}
main { width: min(100%, 420px); padding: clamp(24px, 6vw, 40px); background: var(--surface);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 40px #12332912; }
header { text-align: center; }
h1 { font-size: clamp(1.35rem, 4vw, 1.7rem); line-height: 1.25; margin: 12px 0 8px; }
p { color: var(--muted); margin: 0 0 22px; font-size: .94rem; }
.line-indicator { display: inline-block; width: 34px; height: 34px; border: 3px solid var(--line);
    border-top-color: var(--accent); border-radius: 50%; animation: line-spin 1s linear infinite; }
@keyframes line-spin { to { transform: rotate(360deg); } }
ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
[data-line-fallback][hidden] { display: none; }
a { display: block; min-height: 44px; padding: 9px 12px; text-align: center; text-decoration: none;
    color: var(--accent); border: 1px solid var(--line); border-radius: 10px; }
a:hover { background: var(--hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.redirect-theme-simple { --accent: #2a78d6; display: block; padding: 0; background: #f5f6f8; color: #555;
    font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }
.redirect-theme-simple main { width: auto; padding: 22vh 20px 0; text-align: center;
    background: transparent; border: 0; box-shadow: none; }
.redirect-theme-simple header :is(.line-indicator, h1) { display: none; }
.redirect-theme-simple p { color: inherit; margin-bottom: 10px; }
.redirect-theme-simple ul { grid-template-columns: 1fr; justify-items: center; }
.redirect-theme-simple li { width: min(100%, 280px); }
.redirect-theme-simple a { padding: 11px; border: 0; border-radius: 8px;
    background: var(--accent); color: #fff; }
.redirect-theme-simple a:hover { filter: brightness(.9); }
.redirect-theme-ink { color-scheme: dark; --bg: #101722; --surface: #182333; --text: #eef4fc;
    --muted: #b0bed0; --accent: #9ed6fa; --line: #435570; --hover: #26384e; }
.redirect-theme-ink main { width: min(100%, 610px); border-radius: 12px; }
.redirect-theme-ink header, .redirect-theme-ink a { text-align: left; }
.redirect-theme-paper { --bg: #fbf8ef; --surface: #fbf8ef; --text: #312c25;
    --muted: #655c4f; --accent: #79531b; --line: #d9cbb1; --hover: #f2e9d7; }
.redirect-theme-paper main { border: 0; border-top: 3px solid var(--accent); border-radius: 0; box-shadow: none; }
.redirect-theme-paper header, .redirect-theme-paper a { text-align: left; }
.redirect-theme-paper ul { grid-template-columns: 1fr; }
.redirect-theme-paper a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
@media (prefers-reduced-motion: reduce) { .line-indicator { animation: none; } }

.redirect-theme-relay { --bg: #fff; --accent: #463a9d; --line: #e4dff9; --hover: #f3efff; }
.redirect-theme-relay main { box-shadow: none; border: 0; }
.redirect-theme-relay a { background: var(--hover); border-color: transparent; font-weight: 650; }
.redirect-theme-sky { --bg: linear-gradient(135deg, #eff9ff, #cfe9fb); --accent: #075c99; --line: #cfe3f5; --hover: #edf7ff; }
.redirect-theme-sky main { border-radius: 20px; }
.redirect-theme-verify { --bg: #f5f6f8; --accent: #405369; --line: #dfe4eb; --hover: #f4f6f8; }
.redirect-theme-verify main { width: min(100%, 370px); border-radius: 8px; box-shadow: none; }
.redirect-theme-verify ul { grid-template-columns: 1fr; }
.redirect-theme-rose { --bg: linear-gradient(140deg, #fff6f9, #f9dcec); --accent: #913370; --line: #ecd6e5; --hover: #fff1f9; }
.redirect-theme-rose main { border-radius: 30px; }
.redirect-theme-rose a { border-radius: 999px; }
.redirect-theme-mint { --bg: linear-gradient(135deg, #f0fffa, #c7ebe1); --accent: #096c61; --line: #c8e7df; --hover: #eafff7; }
.redirect-theme-mint main { border-top: 4px solid var(--accent); border-radius: 16px; }

.redirect-theme-indigo-card {
    --bg: #3e3d9c; --surface: #fff; --text: #343a40; --muted: #626b74;
    --accent: #3e3d9c; --line: #dddcef; --hover: #f0effa;
    align-items: start;
    padding: 28px 12px;
}
.redirect-theme-indigo-card main {
    width: min(100%, 500px);
    padding: 24px 20px;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
}
.redirect-theme-indigo-card h1 { font-size: 20px; }
.redirect-theme-indigo-card ul { grid-template-columns: 1fr; width: min(100%, 340px); margin-inline: auto; }
.redirect-theme-indigo-card a { border-color: var(--accent); border-radius: 4px; }

.redirect-theme-silver-spin {
    --bg: #f5f6f8; --surface: #fff; --text: #222; --muted: #646a73;
    --accent: #333; --line: #e5e5e5; --hover: #f5f6f8;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}
.redirect-theme-silver-spin main {
    width: min(100%, 360px);
    padding: 35px 25px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
}
.redirect-theme-silver-spin h1 { font-size: 18px; }
.redirect-theme-silver-spin p { font-size: 13px; }
.redirect-theme-silver-spin .line-indicator { width: 38px; height: 38px; animation-duration: .8s; }

.redirect-theme-glacier-bar { --bg: linear-gradient(135deg, #ebf8ff, #d6eeff); --accent: #0284c7; }
.redirect-theme-petal-bar { --bg: linear-gradient(135deg, #fff0f6, #ffe0e6); --accent: #d946ef; }
.redirect-theme-lagoon-bar { --bg: linear-gradient(135deg, #e6fffa, #b2f5ea); --accent: #0d9488; }
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) main {
    width: min(100%, 400px);
    padding: 36px clamp(20px, 7vw, 50px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .03);
    backdrop-filter: blur(10px);
}
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) h1 {
    color: #1d1d1f;
    font-size: 20px;
    font-weight: 600;
}
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) .line-indicator {
    display: block;
    width: 100%;
    height: 6px;
    margin: 12px auto 24px;
    overflow: hidden;
    border: 0;
    border-radius: 3px;
    background: #0000000a;
    animation: none;
}
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) .line-indicator::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
    :is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) .line-indicator::after {
        animation: redirect-bar 1.2s ease-in-out infinite alternate;
    }
}
@keyframes redirect-bar { from { transform: translateX(-50%); } to { transform: translateX(200%); } }
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) a {
    color: #2d3748;
    border-color: transparent;
    border-radius: 8px;
    background: #f2f2f7;
}
:is(.redirect-theme-glacier-bar, .redirect-theme-petal-bar, .redirect-theme-lagoon-bar) a:hover { background: #e5e5ea; }

.redirect-color-blue { --accent: #075c99; --hover: #edf7ff; }
.redirect-color-violet { --accent: #583ba8; --hover: #f4efff; }
.redirect-color-teal { --accent: #07685e; --hover: #eafff7; }
.redirect-color-rose { --accent: #953760; --hover: #fff1f6; }
.redirect-color-amber { --accent: #815010; --hover: #fff4df; }
.redirect-theme-ink.redirect-color-blue { --accent: #9ed6fa; --hover: #26384e; }
.redirect-theme-ink.redirect-color-violet { --accent: #d7c3ff; --hover: #362b50; }
.redirect-theme-ink.redirect-color-teal { --accent: #9fe6d9; --hover: #203f40; }
.redirect-theme-ink.redirect-color-rose { --accent: #ffc4dd; --hover: #462d41; }
.redirect-theme-ink.redirect-color-amber { --accent: #ffdca4; --hover: #473827; }
