:root {
    --page: #f6f7f8;
    --surface: #ffffff;
    --surface-soft: #f1f4f3;
    --text: #17201d;
    --muted: #69736f;
    --line: #dfe5e2;
    --line-strong: #cbd5d1;
    --brand: #0d6b60;
    --brand-dark: #083c37;
    --accent: #b88a2e;
    --danger: #b55343;
    --shadow: 0 16px 40px rgba(17, 32, 29, 0.08);
}

@font-face {
    font-family: "NeonSans";
    src: url("/assets/fonts/NeonSans.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    background: var(--page);
}

body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 88% 28%, rgba(214, 235, 228, 0.78), transparent 18%),
        linear-gradient(180deg, #eef1f7 0%, #f7f8fb 38%, #eef2f0 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(13, 107, 96, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(13, 107, 96, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}

a {
    color: inherit;
}

.app-wrapper {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 22px 16px 28px;
    display: flex;
    flex-direction: column;
}

.brand-hero {
    padding: 30px 24px 18px;
    border: 1px solid rgba(13, 107, 96, 0.14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 247, 0.96) 58%, rgba(235, 243, 241, 0.92) 100%);
    box-shadow: 0 18px 44px rgba(17, 32, 29, 0.07);
    position: relative;
    overflow: hidden;
}

.brand-hero::before {
    content: "";
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, var(--brand), rgba(184, 138, 46, 0.92));
}

.brand-hero::after {
    content: "YC";
    position: absolute;
    right: 22px;
    top: 12px;
    color: rgba(13, 107, 96, 0.055);
    font-size: 6.4rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
    pointer-events: none;
}

.brand-topline {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.brand-mark {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #053f39;
    background:
        linear-gradient(145deg, #ecf8f3 0%, #dceacb 54%, #d6bd72 100%);
    letter-spacing: 0;
    box-shadow: 0 14px 28px rgba(13, 107, 96, 0.22);
    overflow: hidden;
}

.yc-logo-svg {
    width: 54px;
    height: 54px;
    display: block;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(13, 35, 30, 0.2));
}

.yc-logo-stroke {
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    font-family: "NeonSans", "Arial Narrow", Arial, sans-serif;
    font-size: 118px;
    font-weight: 800;
    letter-spacing: -4px;
    paint-order: stroke fill;
}

.yc-logo-svg.is-complete .yc-logo-stroke {
    animation: logoInkFill 0.55s ease forwards;
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    color: var(--text);
    font-size: clamp(1.8rem, 6.2vw, 3rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.brand-slogan {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: visible;
}

.notice-bar {
    margin-top: 24px;
    min-height: 42px;
    padding: 8px 12px 8px 10px;
    border: 1px solid rgba(13, 107, 96, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.notice-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    font-size: 0.82rem;
    z-index: 2;
}

.marquee-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 40px;
    padding-right: 40px;
}

.marquee-text {
    display: inline-block;
    color: #53605b;
    font-size: 0.84rem;
    font-weight: 650;
    padding-left: 100%;
    animation: scrollLeft 18s linear infinite;
    will-change: transform;
}

.content-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 22px;
}

.content-section {
    position: relative;
}

.section-title {
    margin: 0 0 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 850;
}

.section-title::after {
    content: "";
    height: 1px;
    flex: 1;
    margin-left: 14px;
    background: var(--line);
}

.grid-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.single-grid {
    grid-template-columns: 1fr;
}

.nav-card,
.list-item,
.site-row,
.scan-card,
.browser-mockup {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 250, 0.98) 100%);
    box-shadow: 0 8px 22px rgba(17, 32, 29, 0.05);
    overflow: hidden;
    position: relative;
}

.nav-card {
    min-height: 132px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.nav-card::after,
.site-row::after,
.list-item::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background:
        linear-gradient(90deg, rgba(13, 107, 96, 0.28), rgba(184, 138, 46, 0.18), transparent 72%);
    pointer-events: none;
}

.nav-card::before,
.site-row::before,
.list-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(180deg, rgba(13, 107, 96, 0.78), rgba(184, 138, 46, 0.42));
    pointer-events: none;
}

.nav-card > *,
.site-row > *,
.list-item > * {
    position: relative;
    z-index: 1;
}

.nav-card:hover,
.list-item:hover,
.site-row:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
    box-shadow: 0 14px 28px rgba(17, 32, 29, 0.08);
}

.nav-card:active,
.list-item:active,
.big-btn:active {
    transform: translateY(0) scale(0.99);
}

.feature-card {
    min-height: 94px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.card-icon-box,
.list-icon {
    display: grid;
    place-items: center;
    color: var(--brand);
    background: #edf5f2;
}

.card-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    font-size: 1.28rem;
}

.card-copy {
    min-width: 0;
}

.card-title {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.card-desc {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.list-nav,
.site-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item,
.site-row {
    min-height: 58px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.list-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.list-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
    font-size: 1rem;
}

.list-text {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.list-arrow {
    color: #a3ada9;
    font-size: 0.85rem;
}

.site-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-index {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: rgba(13, 107, 96, 0.08);
    font-size: 0.8rem;
    font-weight: 900;
}

.site-info h3 {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.site-url {
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
}

.site-speed {
    min-width: 52px;
    padding: 3px 8px;
    border-radius: 999px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.speed-fast { color: var(--brand); background: rgba(13, 107, 96, 0.09); }
.speed-medium { color: #946817; background: rgba(184, 138, 46, 0.12); }
.speed-slow { color: var(--danger); background: rgba(181, 83, 67, 0.1); }
.speed-checking { color: var(--muted); background: var(--surface-soft); animation: pulse 1.5s infinite; }

.scan-card {
    padding: 26px 20px;
    text-align: center;
}

.header-card,
.guide-header {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 26px 20px;
    text-align: center;
}

.platform-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    font-size: 1.9rem;
    box-shadow: 0 10px 24px rgba(13, 107, 96, 0.18);
}

.page-title {
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 900;
}

.page-desc {
    margin: 4px 0 22px;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-desc-certified {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
}

.page-desc-certified i {
    color: var(--brand);
}

.desc-divider {
    width: 1px;
    height: 12px;
    background: var(--line);
}

.page-hero-card {
    margin-bottom: 20px;
}

.qr-box {
    width: 220px;
    height: 220px;
    margin: 0 auto 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    position: relative;
}

.qr-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.scan-line {
    position: absolute;
    width: 88%;
    left: 6%;
    height: 3px;
    top: 10%;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    animation: scanAnim 2.5s ease-in-out infinite;
}

.step-tips {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.tip-item {
    width: 33%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.tip-num {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--brand);
    background: rgba(13, 107, 96, 0.08);
    font-weight: 900;
}

.tip-text {
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.4;
}

.big-btn {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(13, 107, 96, 0.22);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 850;
    transition: transform 0.18s ease, background 0.18s ease;
    gap: 8px;
}

.big-btn:hover {
    background: var(--brand-dark);
}

.guide-flow {
    margin-top: 18px;
}

.guide-step {
    display: flex;
    margin-bottom: 28px;
}

.g-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-right: 14px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--brand);
    font-size: 1rem;
    position: relative;
}

.guide-step:not(:last-child) .g-icon::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 34px;
    background: var(--line);
    transform: translateY(38px);
}

.g-title {
    font-weight: 850;
}

.g-desc {
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 0.84rem;
}

.browser-mockup {
    max-width: 270px;
    padding: 10px;
}

.mockup-btn {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface-soft);
    font-size: 0.84rem;
    font-weight: 700;
}

.mockup-icon-center {
    display: flex;
    justify-content: center;
    padding: 10px;
    color: var(--brand);
    font-size: 1.45rem;
}

.mockup-menu {
    text-align: right;
    padding: 7px 15px;
    color: var(--muted);
    font-size: 1.35rem;
}

.back-home-link {
    justify-content: center;
    color: var(--muted);
}

.footer {
    margin-top: auto;
    padding: 28px 0 4px;
    color: #8c9692;
    text-align: center;
    font-size: 0.75rem;
}

.preview-badge {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 10px 24px rgba(13, 107, 96, 0.18);
    font-size: 0.82rem;
    font-weight: 850;
}

.cursor-dot {
    pointer-events: none;
    z-index: 9999;
    position: fixed;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--brand);
    box-shadow:
        0 0 0 5px rgba(13, 107, 96, 0.1),
        0 0 18px rgba(13, 107, 96, 0.38);
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}

.cursor-outline {
    pointer-events: none;
    z-index: 9998;
    position: fixed;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(13, 107, 96, 0.38);
    background:
        radial-gradient(circle, rgba(13, 107, 96, 0.08) 0 26%, transparent 28%),
        radial-gradient(circle, rgba(13, 107, 96, 0.12), transparent 68%);
    box-shadow:
        inset 0 0 16px rgba(13, 107, 96, 0.08),
        0 0 24px rgba(13, 107, 96, 0.16);
    transform: translate(-50%, -50%);
    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    animation: cursorBreath 1.8s ease-in-out infinite;
}

.cursor-outline.hovered {
    width: 56px;
    height: 56px;
    border-color: transparent;
    background:
        radial-gradient(circle, rgba(13, 107, 96, 0.16) 0 20%, transparent 22%),
        radial-gradient(circle, rgba(13, 107, 96, 0.16), transparent 70%);
    box-shadow:
        inset 0 0 18px rgba(13, 107, 96, 0.1),
        0 0 34px rgba(13, 107, 96, 0.24);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes logoInkFill {
    from {
        fill: transparent;
        opacity: 0.9;
    }
    to {
        fill: currentColor;
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes cursorBreath {
    0%, 100% {
        opacity: 0.82;
        filter: saturate(1);
    }
    50% {
        opacity: 1;
        filter: saturate(1.2);
    }
}

@keyframes scanAnim {
    0% { top: 10%; opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { top: 88%; opacity: 0; }
}

@media (max-width: 420px) {
    .app-wrapper {
        padding: 14px 12px 24px;
    }

    .brand-hero {
        padding: 24px 18px 16px;
    }

    .brand-hero::before {
        left: 18px;
        right: 18px;
    }

    .brand-hero::after {
        right: 14px;
        top: 16px;
        font-size: 4.8rem;
    }

    .brand-mark {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
    }

    .yc-logo-svg {
        width: 46px;
        height: 46px;
    }

    .grid-nav {
        gap: 10px;
    }

    .nav-card {
        min-height: 124px;
        padding: 14px;
    }

    .card-title {
        font-size: 0.98rem;
    }
}

@media (max-width: 768px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .marquee-text {
        animation-duration: 18s !important;
        animation-iteration-count: infinite !important;
    }
}
