﻿:root {
    --text: #1f1f1f;
    --muted: #fff6f7;
    --primary: #d12c43;
    --primary-dark: #a61f34;
    --shadow: 0 24px 60px rgba(110, 15, 32, 0.28);
    --hero-grad-top: rgba(255, 255, 255, 0.02);
    --hero-grad-bottom: rgba(255, 255, 255, 0.02);
    --hero-radial-start: rgba(255, 255, 255, 0.16);
    --hero-radial-end: rgba(255, 255, 255, 0);
    --hero-before-start: rgba(255, 255, 255, 0);
    --hero-before-end: rgba(255, 255, 255, 0);
    --hero-before-glow: rgba(255, 255, 255, 0);
    --hero-before-glow-end: rgba(255, 255, 255, 0);
    --hero-before-opacity: 0;
    --hero-bottom-shadow: rgba(0, 0, 0, 0);
    --title-grad-start: #ffffff;
    --title-grad-mid: #f2f8ff;
    --title-grad-end: #deedff;
    --title-shadow: rgba(16, 89, 154, 0.32);
    --title-line: rgba(186, 223, 255, 0.9);
    --subtitle-text: #ffffff;
    --subtitle-bg-start: rgba(42, 126, 224, 0.92);
    --subtitle-bg-end: rgba(52, 141, 243, 0.88);
    --subtitle-border: rgba(225, 242, 255, 0.64);
    --subtitle-shadow: rgba(9, 64, 116, 0.22);
    --badge-bg: rgba(255, 255, 255, 0.9);
    --badge-ring: rgba(203, 226, 249, 0.95);
    --badge-text: #2f5f90;
    --primary-btn-start: #e93c4d;
    --primary-btn-end: #c71930;
    --primary-btn-text: #ffffff;
    --primary-btn-shadow: rgba(129, 15, 35, 0.34);
    --secondary-btn-bg: rgba(34, 119, 216, 0.28);
    --secondary-btn-text: #ffffff;
    --secondary-btn-border: rgba(218, 240, 255, 0.64);
    --announcement-color: rgba(30, 71, 112, 0.9);
    --hero-curve-1: rgba(255, 255, 255, 0.18);
    --hero-curve-2: rgba(236, 248, 255, 0.16);
    --hero-curve-3: rgba(250, 255, 255, 0.14);
    --page-bg-start: #f2f8ff;
    --page-bg-end: #e8f3ff;
    --card-shadow: 0 20px 52px rgba(37, 99, 168, 0.18);
    --font-display-cn: "HarmonyOS Sans SC", "OPPOSans", "Source Han Sans CN", "Alibaba PuHuiTi 3.0", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ui-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    color: var(--text);
    background: linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
}

body {
    padding: 14px;
}

body[data-theme="graphite"] {
    --hero-grad-top: rgba(66, 74, 89, 0.3);
    --hero-grad-bottom: rgba(23, 28, 39, 0.74);
    --hero-radial-start: rgba(180, 198, 230, 0.2);
    --hero-radial-end: rgba(180, 198, 230, 0);
    --hero-before-start: rgba(226, 235, 255, 0.26);
    --hero-before-end: rgba(226, 235, 255, 0);
    --hero-before-glow: rgba(190, 206, 232, 0.08);
    --hero-before-glow-end: rgba(190, 206, 232, 0);
    --hero-bottom-shadow: rgba(7, 10, 18, 0.64);
    --title-grad-start: #f9fbff;
    --title-grad-mid: #e1e8f7;
    --title-grad-end: #cfd8ea;
    --title-shadow: rgba(7, 12, 25, 0.52);
    --title-line: rgba(223, 231, 246, 0.95);
    --subtitle-text: #eef3ff;
    --subtitle-bg-start: rgba(25, 40, 66, 0.46);
    --subtitle-bg-end: rgba(25, 40, 66, 0.24);
    --subtitle-border: rgba(206, 224, 252, 0.3);
    --subtitle-shadow: rgba(6, 12, 26, 0.45);
    --badge-bg: rgba(215, 228, 255, 0.18);
    --badge-ring: rgba(222, 233, 255, 0.22);
    --primary-btn-start: #e6eeff;
    --primary-btn-end: #c9d9ff;
    --primary-btn-text: #243a71;
    --primary-btn-shadow: rgba(10, 18, 44, 0.3);
    --secondary-btn-bg: rgba(216, 229, 255, 0.2);
    --secondary-btn-text: #f6f9ff;
    --secondary-btn-border: rgba(211, 226, 255, 0.34);
    --hero-curve-1: rgba(198, 212, 241, 0.2);
    --hero-curve-2: rgba(151, 173, 210, 0.2);
    --hero-curve-3: rgba(223, 231, 246, 0.18);
}

body[data-theme="pure"] {
    --page-bg-start: #ffffff;
    --page-bg-end: #ffffff;
    --hero-grad-top: rgba(255, 255, 255, 0);
    --hero-grad-bottom: rgba(255, 255, 255, 0);
    --hero-radial-start: rgba(255, 255, 255, 0);
    --hero-radial-end: rgba(255, 255, 255, 0);
    --hero-before-start: rgba(255, 255, 255, 0);
    --hero-before-end: rgba(255, 255, 255, 0);
    --hero-before-glow: rgba(255, 255, 255, 0);
    --hero-before-glow-end: rgba(255, 255, 255, 0);
    --hero-before-opacity: 0;
    --hero-bottom-shadow: rgba(255, 255, 255, 0);
    --hero-curve-1: rgba(255, 255, 255, 0);
    --hero-curve-2: rgba(255, 255, 255, 0);
    --hero-curve-3: rgba(255, 255, 255, 0);
    --title-grad-start: #ffffff;
    --title-grad-mid: #eaf4ff;
    --title-grad-end: #9dcfff;
    --title-shadow: rgba(16, 85, 153, 0.24);
    --title-line: rgba(142, 195, 245, 0.78);
    --subtitle-text: #ffffff;
    --subtitle-bg-start: rgba(42, 125, 223, 0.95);
    --subtitle-bg-end: rgba(56, 140, 238, 0.95);
    --subtitle-border: rgba(225, 241, 255, 0.76);
    --subtitle-shadow: rgba(20, 82, 146, 0.2);
    --badge-bg: rgba(255, 255, 255, 0.92);
    --badge-ring: rgba(205, 228, 250, 0.86);
    --badge-text: #316497;
    --primary-btn-start: #ea3f50;
    --primary-btn-end: #cb1b32;
    --primary-btn-text: #ffffff;
    --primary-btn-shadow: rgba(132, 16, 36, 0.32);
    --secondary-btn-bg: rgba(39, 118, 212, 0.24);
    --secondary-btn-text: #ffffff;
    --secondary-btn-border: rgba(215, 239, 255, 0.82);
    --announcement-color: rgba(34, 74, 116, 0.86);
    --card-shadow: 0 12px 30px rgba(29, 98, 170, 0.12);
}

body[data-theme="ocean"] {
    --hero-grad-top: rgba(15, 101, 153, 0.24);
    --hero-grad-bottom: rgba(8, 55, 92, 0.64);
    --hero-radial-start: rgba(130, 237, 255, 0.24);
    --hero-radial-end: rgba(130, 237, 255, 0);
    --hero-before-start: rgba(197, 252, 255, 0.3);
    --hero-before-end: rgba(197, 252, 255, 0);
    --hero-before-glow: rgba(165, 239, 255, 0.12);
    --hero-before-glow-end: rgba(165, 239, 255, 0);
    --hero-bottom-shadow: rgba(3, 34, 59, 0.64);
    --title-grad-start: #f3fdff;
    --title-grad-mid: #caf4ff;
    --title-grad-end: #8de7ff;
    --title-shadow: rgba(3, 35, 56, 0.52);
    --title-line: rgba(184, 243, 255, 0.95);
    --subtitle-text: #e8fdff;
    --subtitle-bg-start: rgba(5, 79, 122, 0.42);
    --subtitle-bg-end: rgba(5, 79, 122, 0.2);
    --subtitle-border: rgba(184, 244, 255, 0.36);
    --subtitle-shadow: rgba(2, 25, 43, 0.5);
    --badge-bg: rgba(184, 242, 255, 0.18);
    --badge-ring: rgba(192, 247, 255, 0.24);
    --primary-btn-start: #effdff;
    --primary-btn-end: #beefff;
    --primary-btn-text: #0a4f73;
    --primary-btn-shadow: rgba(4, 39, 67, 0.32);
    --secondary-btn-bg: rgba(176, 236, 255, 0.22);
    --secondary-btn-text: #f5fdff;
    --secondary-btn-border: rgba(184, 242, 255, 0.38);
    --hero-curve-1: rgba(136, 228, 255, 0.22);
    --hero-curve-2: rgba(92, 194, 235, 0.22);
    --hero-curve-3: rgba(192, 247, 255, 0.2);
}

body[data-theme="violet"] {
    --hero-grad-top: rgba(122, 58, 182, 0.28);
    --hero-grad-bottom: rgba(57, 26, 94, 0.7);
    --hero-radial-start: rgba(245, 161, 255, 0.24);
    --hero-radial-end: rgba(245, 161, 255, 0);
    --hero-before-start: rgba(255, 212, 255, 0.3);
    --hero-before-end: rgba(255, 212, 255, 0);
    --hero-before-glow: rgba(228, 171, 255, 0.12);
    --hero-before-glow-end: rgba(228, 171, 255, 0);
    --hero-bottom-shadow: rgba(31, 10, 53, 0.66);
    --title-grad-start: #fff3ff;
    --title-grad-mid: #f0d2ff;
    --title-grad-end: #d69eff;
    --title-shadow: rgba(31, 10, 58, 0.56);
    --title-line: rgba(239, 212, 255, 0.95);
    --subtitle-text: #fff0ff;
    --subtitle-bg-start: rgba(86, 31, 133, 0.44);
    --subtitle-bg-end: rgba(86, 31, 133, 0.2);
    --subtitle-border: rgba(238, 207, 255, 0.38);
    --subtitle-shadow: rgba(29, 9, 51, 0.52);
    --badge-bg: rgba(231, 190, 255, 0.19);
    --badge-ring: rgba(238, 206, 255, 0.24);
    --primary-btn-start: #fff1ff;
    --primary-btn-end: #ecc7ff;
    --primary-btn-text: #5d2388;
    --primary-btn-shadow: rgba(39, 9, 64, 0.34);
    --secondary-btn-bg: rgba(228, 190, 255, 0.2);
    --secondary-btn-text: #fff5ff;
    --secondary-btn-border: rgba(237, 207, 255, 0.38);
    --hero-curve-1: rgba(234, 180, 255, 0.24);
    --hero-curve-2: rgba(180, 115, 229, 0.2);
    --hero-curve-3: rgba(241, 215, 255, 0.2);
}

body.in-app-browser-lock,
body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

.debug-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    background: rgba(17, 24, 39, 0.92);
    color: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.page-shell {
    display: flex;
    justify-content: center;
}

.page {
    width: 100%;
    max-width: 760px;
}

.hero {
    min-height: calc(100vh - 28px);
}

.hero-card {
    position: relative;
    min-height: calc(100vh - 28px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-card-photo {
    background-color: #f4f7fb;
    background-image: url('./landing-bg-mobile-v3.jpg?v=20260419a');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-card-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 36, 64, 0.18) 0%,
        rgba(255, 255, 255, 0.06) 28%,
        rgba(255, 255, 255, 0) 56%,
        rgba(11, 24, 42, 0.1) 100%
    );
    pointer-events: none;
}

.hero-card-photo::after {
    content: none;
}

.hero-center {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    padding: clamp(168px, 22vh, 220px) 22px 28px;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.hero-main-title {
    display: none;
    margin: 0;
    font-size: clamp(56px, 11.8vw, 82px);
    line-height: 1;
    letter-spacing: 2px;
    font-weight: 800;
    font-family: var(--font-display-cn);
    background: none;
    color: #eb3d45;
    text-shadow: 0 3px 8px rgba(122, 20, 28, 0.22);
    -webkit-text-stroke: 0;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-main-title::after {
    content: none;
}

.hero-sub-title {
    margin: 10px 0 0;
    color: var(--subtitle-text);
    font-size: clamp(24px, 5vw, 34px);
    font-weight: 700;
    letter-spacing: 0.8px;
    font-family: var(--font-display-cn);
    text-shadow: 0 4px 12px var(--subtitle-shadow);
    padding: 8px 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--subtitle-bg-start), var(--subtitle-bg-end));
    border: 1px solid var(--subtitle-border);
    backdrop-filter: blur(8px);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui-cn);
    color: var(--badge-text);
    background: var(--badge-bg);
    backdrop-filter: blur(6px);
    position: absolute;
    top: calc(env(safe-area-inset-top) + 14px);
    left: 16px;
    right: auto;
    margin-top: 0;
    box-shadow: inset 0 0 0 1px var(--badge-ring);
    z-index: 3;
}

.hero-actions {
    width: min(100%, 460px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: clamp(86px, 12vh, 124px);
}

.primary-button,
.secondary-button {
    border: 0;
    width: 100%;
    border-radius: 18px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
    padding: 16px 18px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-ui-cn);
    letter-spacing: 0.2px;
}

.primary-button {
    background: linear-gradient(135deg, var(--primary-btn-start), var(--primary-btn-end));
    color: var(--primary-btn-text);
    box-shadow: 0 16px 28px var(--primary-btn-shadow);
}

.secondary-button {
    border: 1px solid var(--secondary-btn-border);
    background: var(--secondary-btn-bg);
    color: var(--secondary-btn-text);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.hero-cta-tip {
    margin: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-ui-cn);
    color: var(--announcement-color);
    text-shadow: 0 2px 6px rgba(20, 77, 131, 0.18);
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(208, 233, 255, 0.58);
}

.guide-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 180;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.guide-overlay-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(82, 82, 82, 0.985);
    backdrop-filter: blur(2px);
}

.guide-panel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0 auto;
}

.guide-arrow-wrap {
    position: absolute;
    top: calc(constant(safe-area-inset-top) + 2px);
    top: calc(env(safe-area-inset-top) + 2px);
    right: calc(constant(safe-area-inset-right) + 4px);
    right: calc(env(safe-area-inset-right) + 4px);
    width: min(48vw, 198px);
    height: auto;
    overflow: visible;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.guide-arrow-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: right top;
    opacity: 0.98;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.guide-arrow-fallback {
    font-size: clamp(56px, 13vw, 84px);
    line-height: 1;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    user-select: none;
    margin-right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.guide-panel-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 43%;
    transform: translateY(-50%);
    text-align: center;
    padding: 0 30px;
    z-index: 2;
}

.guide-panel-content h2 {
    margin: 0;
    font-size: clamp(30px, 6.8vw, 42px);
    line-height: 1.65;
    font-weight: 600;
    color: #fff;
    white-space: pre-line;
    letter-spacing: 0.6px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.register-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 170;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
}

.register-modal-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    background: rgba(16, 13, 18, 0.5);
    backdrop-filter: blur(2px);
}

.card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(223, 230, 243, 0.92);
    box-shadow: 0 20px 44px rgba(91, 21, 34, 0.16);
    padding: 20px;
}

.register-modal-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
}

.register-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.register-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-family: var(--font-display-cn);
    font-weight: 700;
}

.register-close-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #f2f2f2;
    color: #333;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.field {
    display: block;
    margin-bottom: 12px;
}

.field span {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-ui-cn);
    color: #4a5568;
}

.field input {
    width: 100%;
    border: 1px solid #e3e8f1;
    border-radius: 14px;
    background: var(--muted);
    padding: 14px 14px;
    font-size: 15px;
    font-family: var(--font-ui-cn);
    color: #162033;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input:focus {
    border-color: rgba(209, 44, 67, 0.46);
    box-shadow: 0 0 0 4px rgba(209, 44, 67, 0.12);
    background: #fff;
}

.register-submit-btn {
    font-size: 17px;
    margin-top: 6px;
}

.form-message {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 14px;
    font-family: var(--font-ui-cn);
    color: #667085;
}

.form-message.error {
    color: #d03f3f;
}

.form-message.success {
    color: #16a569;
}

.form-message.warning {
    color: #b26a00;
}

.primary-button[disabled] {
    opacity: 0.72;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .hero,
    .hero-card,
    .hero-center {
        min-height: calc(100vh - 20px);
    }

    .hero-card {
        border-radius: 24px;
    }

    .hero-center {
        padding: clamp(152px, 20vh, 190px) 18px 22px;
    }

    .hero-main-title {
        font-size: clamp(48px, 12vw, 60px);
    }

    .hero-sub-title {
        font-size: 24px;
        margin-top: 8px;
    }

    .platform-badge {
        top: calc(env(safe-area-inset-top) + 10px);
        left: 12px;
        right: auto;
        padding: 7px 12px;
        font-size: 12px;
        margin-top: 0;
    }

    .hero-actions {
        margin-top: clamp(72px, 10vh, 98px);
    }

    .primary-button,
    .secondary-button {
        font-size: 18px;
    }

    .guide-arrow-wrap {
        top: calc(constant(safe-area-inset-top) + 1px);
        top: calc(env(safe-area-inset-top) + 1px);
        right: calc(constant(safe-area-inset-right) + 2px);
        right: calc(env(safe-area-inset-right) + 2px);
        width: min(50vw, 178px);
    }

    .guide-arrow-image {
        width: 100%;
        height: auto;
    }

    .guide-panel-content h2 {
        font-size: 21px;
        line-height: 1.8;
    }

    .register-modal-panel {
        border-radius: 20px;
    }
}


