/**
 * 舊版 Demo 前台轉址頁樣式（index.html / login.html / register.html 共用）
 *
 * 轉址成功時此畫面不會被看到，僅在自動轉址未生效
 * 或來源網域判定不出來時作為備援畫面顯示。
 */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --surface: #0b0d12;
    --surface-raised: #141821;
    --border: #262c3a;
    --text: #e8eaf0;
    --text-muted: #8b93a7;
    --accent: #5b8cff;
    --radius: 14px;
}

html, body { height: 100%; }

body {
    margin: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(1200px 600px at 50% -10%, #17203a 0%, transparent 60%),
        var(--surface);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.card {
    width: min(520px, 100%);
    padding: clamp(28px, 5vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-raised);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    animation: rise 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 8px;
    color: var(--text-muted);
}

.lede-zh { font-size: 0.9375rem; }

.links {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

a {
    display: block;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    word-break: break-all;
    transition: border-color 160ms ease, background-color 160ms ease,
                transform 160ms ease;
}

a:hover { border-color: var(--accent); background: #1a2030; }
a:active { transform: translateY(1px); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

[hidden] { display: none !important; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .card { animation: none; }
    a { transition: none; }
}
