﻿:root {
    --bg-start: #ffffff;
    --bg-mid: #f3f5f8;
    --bg-end: #e8ebf0;
    --nav-bg: rgba(232, 236, 241, 0.92);
    --nav-border: rgba(131, 144, 159, 0.25);
    --text-main: #202834;
    --text-sub: #5f6978;
    --btn-border: rgba(80, 97, 116, 0.28);
    --glow-cyan: rgba(115, 244, 255, 0.72);
    --glow-pink: rgba(255, 163, 212, 0.75);
}

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

body {
    min-height: 100vh;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 20% -15%, var(--bg-start) 20%, var(--bg-mid) 58%, var(--bg-end) 100%);
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 72px;
    border-bottom: 1px solid var(--nav-border);
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(70, 80, 94, 0.12);
    z-index: 1000;
}

.nav-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glow-btn {
    --mx: 0px;
    --my: 100%;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    background: var(--nav-bg);
    color: #1a2430;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, text-shadow 0.22s ease;
}

.glow-btn::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: inherit;
    background: radial-gradient(130px circle at var(--mx) var(--my), var(--glow-cyan) 0%, var(--glow-pink) 35%, rgba(255, 255, 255, 0) 72%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
    z-index: -1;
}

.glow-btn:hover,
.glow-btn:focus-visible {
    border-color: rgba(124, 162, 190, 0.86);
    color: #0f1721;
    text-shadow: 0 0 10px rgba(115, 244, 255, 0.62), 0 0 14px rgba(255, 163, 212, 0.62);
    box-shadow: 0 10px 18px rgba(70, 80, 92, 0.16), 0 0 14px rgba(115, 244, 255, 0.38);
    transform: translateY(-2px);
}

.glow-btn:hover::before,
.glow-btn:focus-visible::before {
    opacity: 1;
}

.glow-btn:active {
    transform: translateY(0) scale(0.98);
}

.icon-btn {
    width: 46px;
    height: 46px;
    padding: 0;
}

.icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.account-trigger.logged img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    border: 0;
    display: block;
}

.home-trigger {
    flex-shrink: 0;
}

.download-wrap {
    position: relative;
}

.account-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 24px;
    width: min(350px, calc(100vw - 24px));
    border-radius: 16px;
    border: 1px solid var(--nav-border);
    background: rgba(234, 238, 243, 0.98);
    box-shadow: 0 16px 36px rgba(55, 66, 82, 0.2);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.account-popover.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.account-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(120, 133, 151, 0.36);
    flex-shrink: 0;
}

.account-meta {
    min-width: 0;
    flex: 1;
}

.account-name-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    color: #202834;
}

#accountName {
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#accountGender {
    font-size: 0.88rem;
    color: #4f5f75;
}

.account-id-line {
    margin-top: 6px;
    color: #5f6978;
    font-size: 0.92rem;
    word-break: break-all;
}

.account-basic-title {
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 700;
    color: #202834;
}

.account-menu {
    border: 1px solid rgba(154, 166, 182, 0.38);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(248, 250, 253, 0.9);
}

.account-menu-item {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid rgba(154, 166, 182, 0.32);
    background: transparent;
    color: #202834;
    text-align: left;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.account-menu-item:last-child {
    border-bottom: 0;
}

.account-menu-item:hover {
    background: rgba(224, 231, 239, 0.58);
}

.account-menu-item.logout {
    color: #a52b2b;
}

.download-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(360px, 90vw);
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--nav-border);
    background: rgba(234, 238, 243, 0.96);
    box-shadow: 0 16px 36px rgba(55, 66, 82, 0.2);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(28px);
    transform-origin: right top;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s linear 0.24s;
}

.download-wrap.is-open .download-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.download-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(135, 149, 168, 0.35);
    box-shadow: 0 6px 16px rgba(73, 84, 100, 0.2);
}

.download-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #202834;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-download {
    height: 40px;
    min-width: 82px;
    padding: 0 18px;
}

.global-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(20px);
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(24, 30, 38, 0.86);
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 2000;
}

.global-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.site-message-stack {
    position: fixed;
    top: 84px;
    right: 16px;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.site-message-popup {
    width: 100%;
    border: 1px solid rgba(132, 146, 164, 0.35);
    border-radius: 14px;
    background: rgba(245, 248, 252, 0.96);
    box-shadow: 0 14px 26px rgba(54, 68, 87, 0.2);
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transform: translateX(26px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    pointer-events: auto;
}

.site-message-popup.is-show {
    transform: translateX(0);
    opacity: 1;
}

.site-message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(122, 138, 160, 0.35);
}

.site-message-main {
    min-width: 0;
}

.site-message-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.site-message-head strong {
    color: #1f2835;
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-message-head span {
    color: #7c8798;
    font-size: 0.76rem;
    white-space: nowrap;
}

.site-message-main p {
    margin-top: 4px;
    color: #4e5a6d;
    font-size: 0.86rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-shell {
    min-height: 100vh;
    padding: 102px 22px 40px;
}

.hero {
    min-height: calc(100vh - 142px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: min(760px, 100%);
    padding: 44px 36px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(159, 170, 184, 0.26);
    box-shadow: 0 24px 56px rgba(79, 89, 103, 0.14);
    text-align: center;
}

.hero-card h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.26;
    margin-bottom: 14px;
}

.hero-card p {
    color: var(--text-sub);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
}

.native-stack {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.native-section {
    border-radius: 22px;
    border: 1px solid rgba(159, 170, 184, 0.28);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 22px 50px rgba(70, 82, 99, 0.16);
    padding: 26px 24px;
    opacity: 0;
    transform: translateY(24px);
    filter: blur(2px);
}

.native-section.is-visible {
    animation: containerEnter 0.68s cubic-bezier(0.2, 0.7, 0, 1) forwards;
    animation-delay: calc(var(--reveal-index, 0) * 0.16s);
}

@keyframes containerEnter {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.native-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.native-hero-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    width: 100%;
}

.native-icon {
    width: 74px;
    height: 74px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(140, 154, 172, 0.38);
}

.native-text-wrap {
    flex: 1;
    min-width: 0;
}

.native-text-wrap h1 {
    font-size: 1.8rem;
    line-height: 1.2;
}

.native-title-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.native-text-wrap p {
    margin-top: 8px;
    color: var(--text-sub);
    font-size: 1.02rem;
}

.native-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-action {
    width: 42px;
    height: 42px;
    padding: 0;
}

.icon-action img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.native-section h2 {
    font-size: 1.12rem;
    line-height: 1.3;
    color: #000000;
    margin-bottom: 12px;
    font-weight: 800;
}

.native-section p {
    color: #2d3540;
    line-height: 1.76;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.gallery-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(137, 149, 167, 0.28);
    background: rgba(249, 251, 254, 0.92);
    aspect-ratio: 16 / 10;
}

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

.gallery-placeholder {
    grid-column: 1 / -1;
    border: 1px dashed rgba(134, 147, 166, 0.46);
    border-radius: 14px;
    background: rgba(245, 247, 251, 0.86);
    color: #657080;
    padding: 24px;
}

.comments-placeholder {
    min-height: 140px;
}

@media (max-width: 760px) {
    .top-nav {
        height: 72px;
    }

    .nav-inner {
        padding: 0 14px;
    }

    .page-shell {
        padding: 94px 14px 28px;
    }

    .download-panel {
        right: -8px;
        width: min(328px, calc(100vw - 20px));
        grid-template-columns: 1fr;
    }

    .account-popover {
        right: 8px;
        width: min(328px, calc(100vw - 16px));
    }

    .site-message-stack {
        top: 78px;
        right: 8px;
        width: min(340px, calc(100vw - 12px));
    }

    .site-message-popup {
        grid-template-columns: 40px 1fr;
        padding: 9px 10px;
        gap: 8px;
    }

    .site-message-avatar {
        width: 38px;
        height: 38px;
    }

    .panel-download {
        width: 100%;
    }

    .hero-card {
        padding: 32px 22px;
    }

    .native-hero {
        align-items: center;
    }

    .native-hero-main {
        gap: 12px;
    }

    .native-title-line {
        min-width: 0;
        gap: 8px;
        align-items: center;
    }

    .native-title-line h1 {
        font-size: 1.36rem;
        line-height: 1;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .native-text-wrap p {
        font-size: 0.94rem;
    }

    .native-actions {
        gap: 6px;
        margin-left: auto;
    }

    .icon-action {
        width: 1.36rem;
        height: 1.36rem;
        min-width: 1.36rem;
    }

    .icon-action img {
        width: 0.86rem;
        height: 0.86rem;
    }

    .native-icon {
        width: 64px;
        height: 64px;
    }
}
