/* =========================================================
   theme-v2 — 全站前端视觉升级（MVC Views 共用）
   方向：海岸墨色 / 清透玻璃 / 桌面 + 移动端统一
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700;900&family=Outfit:wght@500;600;700;800&display=swap");

:root {
    --bg: #eef3f8;
    --bg-soft: #f5f8fc;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(100, 116, 139, 0.18);
    --primary: #0284c7;
    --primary-2: #0e7490;
    --accent: #14b8a6;
    --ink: #0b1220;
    --ink-soft: #152238;
    --shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 22px 44px rgba(15, 23, 42, 0.14);
    --radius: 18px;
    --radius-sm: 12px;
    --header-blur: 16px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Outfit", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(920px 380px at 6% -8%, rgba(56, 189, 248, 0.18), transparent 68%),
        radial-gradient(780px 320px at 96% -4%, rgba(45, 212, 191, 0.14), transparent 70%),
        radial-gradient(640px 280px at 50% 110%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(180deg, #eef3f8 0%, #f7fafc 48%, #eef3f8 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Header ---------- */
.site-header {
    background:
        radial-gradient(520px 160px at 8% -50%, rgba(56, 189, 248, 0.28), transparent 70%),
        radial-gradient(480px 140px at 92% -40%, rgba(45, 212, 191, 0.18), transparent 72%),
        linear-gradient(105deg, rgba(11, 18, 32, 0.92), rgba(15, 34, 56, 0.88) 55%, rgba(12, 40, 54, 0.9));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.22);
}

.header-inner {
    min-height: 56px;
    padding: 8px 0;
}

.logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    gap: 10px;
}

.logo-img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.28);
}

.logo-text {
    background: linear-gradient(90deg, #f8fafc, #bae6fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.top-nav {
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(186, 230, 253, 0.28);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.top-nav a {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.16);
    letter-spacing: 0.3px;
}

.top-nav a .nav-link-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    opacity: 0.95;
}

.top-nav a .nav-link-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.top-nav a:hover {
    background: linear-gradient(120deg, rgba(2, 132, 199, 0.78), rgba(20, 184, 166, 0.62));
    border-color: rgba(186, 230, 253, 0.55);
    box-shadow: 0 10px 20px rgba(2, 6, 23, 0.28);
}

.top-nav a.is-active {
    background: linear-gradient(120deg, rgba(3, 105, 161, 0.95), rgba(13, 148, 136, 0.85));
    border-color: rgba(186, 230, 253, 0.7);
    box-shadow: 0 12px 22px rgba(2, 132, 199, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-search-input {
    width: 180px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(186, 230, 253, 0.28);
    background: rgba(15, 23, 42, 0.38);
    font-size: 13px;
    padding: 0 14px;
}

.header-search-input:focus {
    width: 220px;
    border-color: rgba(125, 211, 252, 0.7);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.front-avatar-btn {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
    border-color: rgba(186, 230, 253, 0.55);
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-family: var(--font-display);
    font-weight: 700;
}

.front-dropdown {
    border-radius: 16px;
    border: 1px solid rgba(186, 230, 253, 0.28);
    background: linear-gradient(180deg, rgba(15, 34, 56, 0.92), rgba(11, 18, 32, 0.92));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    animation: themeDropIn 0.18s var(--ease-out);
}

@keyframes themeDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Mobile bottom nav ---------- */
@media screen and (max-width: 1100px) {
    .mobile-bottom-nav {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background:
            radial-gradient(520px 100px at 50% -60%, rgba(56, 189, 248, 0.2), transparent 70%),
            linear-gradient(180deg, rgba(15, 34, 56, 0.55), rgba(11, 18, 32, 0.88));
        border-top: 1px solid rgba(186, 230, 253, 0.18);
        box-shadow: 0 -10px 28px rgba(2, 6, 23, 0.28);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        gap: 8px;
    }

    .mobile-bottom-nav a {
        border-radius: 14px;
        padding: 8px 4px;
        font-size: 10px;
        font-family: var(--font-display);
        font-weight: 600;
        letter-spacing: 0.2px;
        border: 1px solid rgba(148, 163, 184, 0.14);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
        transition: transform 0.18s var(--ease-out), background 0.18s ease, border-color 0.18s ease;
    }

    .mobile-bottom-nav a .nav-link-icon {
        font-size: 0;
        width: 18px;
        height: 18px;
        display: grid;
        place-items: center;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav a .nav-link-icon svg {
        width: 16px;
        height: 16px;
    }

    .mobile-bottom-nav a.is-active {
        color: #fff;
        border-color: rgba(125, 211, 252, 0.45);
        background: linear-gradient(135deg, rgba(2, 132, 199, 0.7), rgba(20, 184, 166, 0.5));
        box-shadow: 0 10px 18px rgba(2, 132, 199, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        transform: translateY(-1px);
    }
}

/* ---------- Hero / Home ---------- */
.home-page {
    position: relative;
    background: #fff;
}

.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    display: flex;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(980px 460px at 12% 0%, rgba(56, 189, 248, 0.28), transparent 58%),
        radial-gradient(820px 400px at 92% 12%, rgba(45, 212, 191, 0.2), transparent 62%),
        radial-gradient(640px 280px at 50% 100%, rgba(14, 116, 144, 0.35), transparent 70%),
        linear-gradient(148deg, #041824 0%, #073447 38%, #0a5c62 72%, #0d7377 100%);
}

.home-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin: 0 0 10px;
    animation: homeFadeUp 0.7s var(--ease-out) both;
}

.home-brand {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(34px, 4.8vw, 48px);
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.05;
    color: #fff;
    text-shadow: 0 14px 30px rgba(2, 6, 23, 0.35);
}

.home-brand-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(186, 230, 253, 0.35);
    background: rgba(15, 23, 42, 0.28);
    color: rgba(226, 232, 240, 0.92);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.home-hero-glow {
    position: absolute;
    inset: auto -8% -28% auto;
    width: min(560px, 72vw);
    height: min(560px, 72vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125, 211, 252, 0.26), transparent 68%);
    pointer-events: none;
    z-index: 1;
    animation: homeGlowPulse 7s ease-in-out infinite;
}

.home-hero-glow-2 {
    inset: -18% auto auto -12%;
    width: min(420px, 58vw);
    height: min(420px, 58vw);
    background: radial-gradient(circle, rgba(45, 212, 191, 0.18), transparent 70%);
    animation-delay: -2.5s;
}

.home-hero .banner-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 44px;
}

.home-hero-copy {
    max-width: 38em;
}

.home-headline {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(15px, 1.7vw, 18px);
    font-weight: 500;
    line-height: 1.55;
    color: rgba(241, 245, 249, 0.92);
    max-width: none;
    animation: homeFadeUp 0.75s var(--ease-out) 0.08s both;
}

.home-headline span {
    display: block;
}

.home-hero-notes {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(186, 230, 253, 0.28);
    background: linear-gradient(160deg, rgba(15, 34, 56, 0.42), rgba(8, 24, 38, 0.28));
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: homeFadeUp 0.8s var(--ease-out) 0.14s both;
}

.home-hero-notes li {
    position: relative;
    padding-left: 14px;
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
    font-size: 13px;
    line-height: 1.65;
}

.home-hero-notes li + li {
    margin-top: 7px;
}

.home-hero-notes li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #2dd4bf);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}

.home-hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 3;
    color: #fff;
    line-height: 0;
    pointer-events: none;
}

.home-hero-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

.home-hero-stage {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: homeFadeIn 0.9s var(--ease-out) 0.18s both;
}

.home-hero-stage .home-swiper {
    width: min(100%, 380px);
    height: 280px;
    margin: 0 auto;
    overflow: visible;
}

.home-slide {
    border-radius: 28px;
    background: linear-gradient(145deg, #0c4a6e, #0e7490);
    box-shadow: 0 32px 64px rgba(2, 6, 23, 0.45);
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.home-slide.is-link:hover {
    box-shadow: 0 36px 72px rgba(2, 6, 23, 0.5);
}

.home-slide-fallback {
    background:
        radial-gradient(720px 260px at 20% -10%, rgba(56, 189, 248, 0.38), transparent 70%),
        radial-gradient(620px 220px at 80% 120%, rgba(45, 212, 191, 0.32), transparent 70%),
        linear-gradient(135deg, #0c4a6e, #0f766e);
}

.home-slide-content {
    padding: 18px 18px 22px !important;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.78) 100%) !important;
}

.home-slide-content h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.3;
    margin: 0 0 6px;
}

.home-slide-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.65;
    min-height: 0;
}

.home-swiper .swiper-pagination {
    bottom: 0 !important;
}

.home-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-swiper .swiper-pagination-bullet-active {
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    transform: scale(1.25);
}

.home-posts {
    margin: 0 auto;
    padding: 28px 0 56px;
    width: min(1180px, 92%);
}

.home-posts-head {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.home-posts-kicker {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0ea5e9;
}

.home-posts-desc {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.home-posts-head .section-title {
    margin: 0;
    font-size: 22px;
}

.home-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 0;
    max-width: none;
    width: 100%;
}

.home-page .post-card {
    border-radius: 14px;
    min-height: 0;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045);
}

.home-page .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.home-page .post-card-cover {
    height: 118px;
}

.home-page .post-card-body {
    padding: 11px 12px 12px;
}

.home-page .post-card-body h3 {
    font-size: 15px;
    margin: 0 0 5px;
}

.home-page .post-card-body > p {
    margin: 0 0 8px;
    font-size: 12.5px;
    -webkit-line-clamp: 2;
}

.home-page .post-card .meta {
    align-items: center;
    padding-top: 8px;
    font-size: 11px;
}

.home-page .post-card .meta span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 500;
}

.home-page .post-card-empty {
    grid-column: 1 / -1;
    min-height: 160px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes homeFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes homeGlowPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
    .home-brand-row,
    .home-headline,
    .home-hero-notes,
    .home-hero-stage,
    .home-hero-glow {
        animation: none !important;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
}

.section-title::after {
    content: "";
    width: 48px;
    height: 5px;
    border-radius: 99px;
    background: linear-gradient(90deg, #0ea5e9, #14b8a6);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.home-posts-head .section-title {
    display: flex;
}

/* ---------- Post cards ---------- */
.post-grid {
    gap: 22px;
}

.post-card {
    border-radius: 22px;
    padding: 0;
    min-height: 300px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s ease;
    animation: homeFadeUp 0.65s var(--ease-out) both;
    animation-delay: var(--card-delay, 0ms);
}

.post-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.post-card::before {
    height: 0;
}

.post-card-media {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
}

.post-card-cat {
    position: absolute;
    top: 14px;
    right: -34px;
    z-index: 2;
    width: 112px;
    padding: 5px 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #34d399, #16a34a);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.35);
    transform: rotate(45deg);
    transform-origin: center;
    pointer-events: none;
}

.home-page .post-card-cat {
    top: 10px;
    right: -36px;
    width: 100px;
    padding: 4px 0;
    font-size: 11px;
}

.post-card-cover {
    display: block;
    width: 100%;
    height: 188px;
    object-fit: cover;
    background:
        radial-gradient(420px 160px at 20% 0%, rgba(56, 189, 248, 0.35), transparent 70%),
        linear-gradient(135deg, #0c4a6e, #0e7490);
    transition: transform 0.45s var(--ease-out);
}

.post-card:hover .post-card-cover {
    transform: scale(1.06);
}

.post-card-cover.fallback {
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.4px;
}

.post-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-body h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.post-card-body h3 a {
    color: #0f172a;
    text-decoration: none;
}

.post-card-body h3 a:hover {
    color: #0284c7;
}

.post-card-body > p {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-card .meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
    font-size: 12px;
}

.home-page .post-card .attr-button {
    display: none !important;
}

.attr-button {
    border-radius: 12px;
    padding: 10px 16px;
    background: linear-gradient(120deg, #0ea5e9, #14b8a6);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.28);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    animation: none;
    color: #fff;
    text-decoration: none;
}

.attr-button:hover {
    box-shadow: 0 14px 26px rgba(14, 165, 233, 0.36);
    filter: saturate(1.05);
}

/* ---------- Footer (全新样式) ---------- */
.site-footer {
    position: relative;
    margin-top: auto;
    padding: 0;
    overflow: hidden;
    color: #e2e8f0;
    text-align: left;
    border-top: 0;
    background:
        radial-gradient(900px 320px at 12% -10%, rgba(56, 189, 248, 0.22), transparent 60%),
        radial-gradient(780px 280px at 88% 0%, rgba(45, 212, 191, 0.16), transparent 62%),
        linear-gradient(165deg, #071824 0%, #0a2f3c 48%, #0b3f45 100%);
}

.site-footer .footer-glow {
    position: absolute;
    left: 50%;
    top: -120px;
    width: min(680px, 90vw);
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.2), transparent 70%);
    pointer-events: none;
}

.site-footer .footer-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 92%);
    max-width: none;
    margin: 0 auto;
    padding: 18px 0 12px;
}

.site-footer .footer-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 12px 20px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
}

.site-footer .footer-motion {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 0 auto;
    border-radius: 18px;
    background:
        radial-gradient(circle at 30% 28%, rgba(125, 211, 252, 0.28), transparent 55%),
        radial-gradient(circle at 70% 72%, rgba(45, 212, 191, 0.22), transparent 58%),
        linear-gradient(145deg, rgba(15, 34, 56, 0.55), rgba(8, 47, 58, 0.35));
    border: 1px solid rgba(186, 230, 253, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 32px rgba(2, 6, 23, 0.28);
    overflow: hidden;
}

.site-footer .footer-ring {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    border: 1px dashed rgba(125, 211, 252, 0.45);
    animation: footerSpin 14s linear infinite;
}

.site-footer .footer-pulse {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.55), rgba(20, 184, 166, 0.45));
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
    animation: footerPulse 2.4s ease-out infinite;
}

.site-footer .footer-orb {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 12px rgba(125, 211, 252, 0.75);
}

.site-footer .footer-orb-a {
    width: 6px;
    height: 6px;
    left: 14px;
    top: 20px;
    animation: footerFloatA 3.6s ease-in-out infinite;
}

.site-footer .footer-orb-b {
    width: 5px;
    height: 5px;
    right: 16px;
    top: 28px;
    animation: footerFloatB 4.2s ease-in-out infinite;
}

.site-footer .footer-orb-c {
    width: 7px;
    height: 7px;
    left: 34px;
    bottom: 16px;
    opacity: 0.8;
    animation: footerFloatC 3.2s ease-in-out infinite;
}

.site-footer .footer-brand {
    max-width: none;
    margin: 0;
}

.site-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 6px;
}

.site-footer .footer-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.28);
}

.site-footer .footer-brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
    box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

.site-footer .footer-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.site-footer .footer-title {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
}

.site-footer .footer-subtitle {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.88);
}

.site-footer .footer-aside {
    justify-self: stretch;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(186, 230, 253, 0.22);
    background:
        radial-gradient(280px 120px at 90% 0%, rgba(56, 189, 248, 0.16), transparent 70%),
        linear-gradient(160deg, rgba(15, 34, 56, 0.5), rgba(8, 47, 58, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-footer .footer-aside-kicker {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: rgba(125, 211, 252, 0.9);
}

.site-footer .footer-aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 4px;
}

.site-footer .footer-aside-list li {
    position: relative;
    padding-left: 12px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.9);
}

.site-footer .footer-aside-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #2dd4bf);
}

.site-footer .footer-aside-tip {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px dashed rgba(148, 163, 184, 0.28);
    font-size: 11px;
    line-height: 1.5;
    color: rgba(186, 230, 253, 0.82);
}

.site-footer .footer-aside-links {
    display: none !important;
}

.site-footer .footer-nav {
    display: none !important;
}

.site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 12px;
    padding-top: 10px;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.95);
}

@keyframes footerSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes footerPulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); transform: scale(1); }
    70% { box-shadow: 0 0 0 18px rgba(56, 189, 248, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); transform: scale(1); }
}

@keyframes footerFloatA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, -12px); }
}

@keyframes footerFloatB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-12px, 8px); }
}

@keyframes footerFloatC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -8px) scale(1.15); }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer .footer-ring,
    .site-footer .footer-pulse,
    .site-footer .footer-orb {
        animation: none !important;
    }
}

.site-footer .footer-icp-link {
    color: rgba(186, 230, 253, 0.92);
    text-decoration: none;
    border-bottom: 1px dashed rgba(125, 211, 252, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-footer .footer-icp-link:hover {
    color: #fff;
    border-bottom-color: rgba(125, 211, 252, 0.8);
}

.site-footer .footer-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.55);
}

.site-footer .footer-copyright {
    margin: 0;
    color: rgba(148, 163, 184, 0.92);
}

/* 兼容旧 class，避免残留样式干扰 */
.site-footer .footer-card {
    all: unset;
    display: contents;
}

@media screen and (max-width: 900px) {
    .site-footer .footer-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .site-footer .footer-brand-link {
        justify-content: center;
    }

    .site-footer .footer-aside {
        width: 100%;
        text-align: left;
    }

    .site-footer .footer-bottom {
        justify-content: center;
    }
}

@media screen and (max-width: 640px) {
    .home-post-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-inner {
        padding: 14px 0 10px;
    }

    .site-footer .footer-motion {
        width: 72px;
        height: 72px;
    }

    .site-footer .footer-brand-name {
        font-size: 17px;
    }

    .site-footer .footer-title {
        font-size: 14px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer .footer-dot {
        display: none;
    }
}

/* ---------- Back to top / toast ---------- */
.back-to-top-btn {
    border-radius: 14px;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
    border-color: rgba(186, 230, 253, 0.45);
}

.front-toast {
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
}

/* ---------- Moments（微信风由 moments.css 主导） ---------- */
.moments-page {
    background: #ededed;
}

.moments-hero-bg {
    background:
        linear-gradient(180deg, rgba(8, 24, 38, 0.15), rgba(8, 24, 38, 0.45)),
        var(--moments-hero-bg, none),
        radial-gradient(900px 360px at 20% 10%, rgba(56, 189, 248, 0.28), transparent 62%),
        radial-gradient(760px 320px at 85% 20%, rgba(45, 212, 191, 0.22), transparent 64%),
        linear-gradient(145deg, #0b3a4a, #0f766e 55%, #155e75) !important;
}

.moments-title .t1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.moments-title .t2 {
    font-size: 14px;
    opacity: 0.9;
}

.moments-wrap {
    top: -28px;
}

.moments-list {
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
}

.moment-card {
    transition: none;
}

.moment-card:hover {
    background: #fff !important;
}

.moment-avatar {
    border-radius: 14px !important;
    background: linear-gradient(135deg, #bae6fd, #99f6e4) !important;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.16) !important;
}

.moments-btn {
    background: linear-gradient(120deg, #0284c7, #0e7490) !important;
    border-radius: 12px !important;
}

.moments-login-link {
    border-radius: 10px !important;
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(125, 211, 252, 0.5) !important;
    color: #0369a1 !important;
}

/* ---------- Memos / Barrage shared dark stage ---------- */
.memos-page,
.barrage-page {
    background: #07111f;
}

.memos-stage,
.barrage-stage {
    background:
        radial-gradient(1000px 420px at 50% 45%, rgba(2, 132, 199, 0.18), transparent 65%),
        #07111f;
}

.memos-stage.has-hero-bg,
.barrage-stage.has-hero-bg {
    background:
        linear-gradient(180deg, rgba(11, 18, 32, 0.48), rgba(11, 18, 32, 0.22)),
        var(--moments-hero-bg, var(--barrage-bg, none)),
        radial-gradient(1200px 420px at 20% 10%, rgba(56, 189, 248, 0.32), transparent 65%),
        radial-gradient(1000px 520px at 80% 10%, rgba(45, 212, 191, 0.24), transparent 65%),
        linear-gradient(140deg, #0c4a6e, #0f766e) !important;
}

.memos-bubble-inner,
.barrage-bubble {
    border-radius: 16px !important;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.memos-bubble-btn,
.barrage-editor-actions .btn-send {
    background: linear-gradient(120deg, #0284c7, #14b8a6) !important;
    border-radius: 10px !important;
}

.barrage-tip {
    border-radius: 16px;
    background: rgba(11, 18, 32, 0.45);
    border: 1px solid rgba(186, 230, 253, 0.22);
}

.barrage-tip h1 {
    font-family: var(--font-display);
}

.barrage-editor {
    border-radius: 16px;
}

/* ---------- About ---------- */
.about-bg {
    background: linear-gradient(135deg, #0c4a6e, #0e7490) !important;
}

.about-title h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 12px 28px rgba(2, 6, 23, 0.35);
}

.about-card {
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.24) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(2, 6, 23, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

.author-avatar {
    border-width: 3px;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.28);
}

/* Override conflicting auth styles from theme-v2 — auth.css is the source of truth */
.auth-template-wrap {
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(56, 189, 248, 0.2), transparent 62%),
        radial-gradient(760px 360px at 100% 0%, rgba(20, 184, 166, 0.14), transparent 58%),
        linear-gradient(165deg, #f0f7fc 0%, #e8f2f8 45%, #f5fafc 100%) !important;
}

.auth-template-card {
    background: #ffffff !important;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(2, 132, 199, 0.06) !important;
}

.auth-template-left {
    background:
        radial-gradient(520px 280px at 12% 8%, rgba(125, 211, 252, 0.35), transparent 68%),
        radial-gradient(420px 240px at 90% 90%, rgba(45, 212, 191, 0.22), transparent 70%),
        linear-gradient(155deg, #0b1220 0%, #0c4a6e 48%, #0e7490 100%) !important;
}

.auth-template-left h2,
.auth-template-left p {
    color: #f8fafc !important;
}

.auth-template-left p {
    opacity: 0.9;
}

.auth-template-right {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%) !important;
    padding: 36px 40px 32px !important;
}

.auth-sub-tabs a.active,
.auth-template-right .auth-btn,
.auth-tabs a.active,
.auth-btn {
    background: linear-gradient(120deg, #0284c7, #0e7490) !important;
}

/* ---------- Profile ---------- */
.profile-page .auth-card.profile-modern {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.2);
}

.profile-top-card {
    border-radius: 18px !important;
}

.profile-top-name {
    font-family: var(--font-display);
}

.profile-top-avatar {
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.profile-top-avatar.fallback {
    background: linear-gradient(135deg, #0284c7, #14b8a6) !important;
}

.level-badge {
    color: #0e7490;
    background: rgba(20, 184, 166, 0.14);
    border-color: rgba(20, 184, 166, 0.3);
    border-radius: 8px;
}

.profile-side-nav {
    border-radius: 16px !important;
}

.profile-side-nav a.active,
.profile-side-nav a:hover {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
}

.signin-calendar {
    border-radius: 16px !important;
}

/* ---------- Post detail ---------- */
.post-modern {
    border-radius: 22px !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.1) !important;
    background:
        radial-gradient(900px 280px at 10% -20%, rgba(14, 165, 233, 0.1), transparent 60%),
        #ffffff !important;
}

.post-title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.3px;
}

.post-modern .meta span {
    border-radius: 10px;
    background: #f1f5f9;
}

.post-subscribe-btn {
    border-radius: 12px !important;
    font-family: var(--font-display);
}

.post-side-card,
.post-toc,
.comment-item {
    border-radius: 16px !important;
}

/* ---------- Map ---------- */
.map-modal-card {
    border-radius: 20px !important;
    border: 1px solid rgba(186, 230, 253, 0.28) !important;
    background: linear-gradient(180deg, rgba(15, 34, 56, 0.92), rgba(11, 18, 32, 0.9)) !important;
}

.map-modal-title {
    font-family: var(--font-display);
}

.map-modal-close {
    border-radius: 12px;
}

.map-mobile-tip {
    min-height: calc(100vh - 100px);
    background:
        radial-gradient(600px 240px at 50% 30%, rgba(56, 189, 248, 0.12), transparent 70%),
        #f3f7fb;
    color: #334155;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 0;
}

.map-mobile-tip::before {
    content: "旅拍地图";
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
    color: #0c4a6e;
}

/* ---------- 404 ---------- */
.error-404-bg {
    background:
        radial-gradient(ellipse 85% 65% at 50% -12%, rgba(56, 189, 248, 0.16), transparent 50%),
        radial-gradient(ellipse 50% 42% at 100% 58%, rgba(45, 212, 191, 0.1), transparent 46%),
        linear-gradient(180deg, #fafcff 0%, #eef5fb 40%, #e8f2f8 100%) !important;
}

.error-404-orb--a {
    background: rgba(14, 165, 233, 0.26) !important;
}

.error-404-orb--b {
    background: rgba(20, 184, 166, 0.18) !important;
}

.error-404-orb--c {
    background: rgba(2, 132, 199, 0.12) !important;
}

/* ---------- Search modal ---------- */
.front-search-panel {
    border-radius: 20px;
    border: 1px solid rgba(186, 230, 253, 0.3);
    background:
        radial-gradient(640px 180px at 12% 0%, rgba(2, 132, 199, 0.28), transparent 64%),
        radial-gradient(560px 180px at 96% 10%, rgba(20, 184, 166, 0.2), transparent 66%),
        linear-gradient(180deg, rgba(15, 34, 56, 0.92), rgba(11, 18, 32, 0.9));
}

.front-search-title {
    font-family: var(--font-display);
}

.front-search-item:hover {
    background: rgba(2, 132, 199, 0.18);
    border-color: rgba(125, 211, 252, 0.42);
}

/* ---------- Responsive polish ---------- */
@media screen and (max-width: 980px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 0 40px;
        text-align: left;
    }

    .home-hero-copy {
        max-width: none;
    }

    .home-brand-row {
        justify-content: flex-start;
    }

    .home-hero-stage {
        min-height: 240px;
    }

    .home-hero-stage .home-swiper {
        height: 240px;
        width: min(100%, 360px);
    }

    .home-posts {
        margin-top: 8px;
        padding: 18px 0 40px;
    }

    .home-page .post-card-cover {
        height: 110px;
    }

    .home-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
        gap: 12px;
    }

    .about-top,
    .about-right-top {
        flex-direction: column;
    }

    .about-left,
    .about-right,
    .intro-card,
    .weather-card {
        width: 100% !important;
    }
}

@media screen and (max-width: 640px) {
    .header-wide {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-search-input,
    .header-search-input:focus {
        width: 112px;
    }

    .home-brand {
        font-size: 32px;
    }

    .home-headline {
        font-size: 14px;
    }

    .home-hero-notes {
        padding: 12px 14px;
    }

    .home-hero-notes li {
        font-size: 12.5px;
    }

    .home-hero-stage .home-swiper {
        height: 220px;
    }

    .home-hero-wave svg {
        height: 28px;
    }

    .section-title {
        font-size: 22px;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .post-card {
        min-height: 0;
    }

    .auth-template-card {
        border-radius: 18px;
    }

    .auth-template-left h2 {
        font-size: 22px;
    }

    .moments-wrap {
        width: min(100%, 96%);
        top: -36px;
        padding-bottom: 36px;
    }

    .footer-title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .post-card,
    .about-card,
    .moments-item,
    .mobile-bottom-nav a,
    .attr-button {
        transition: none !important;
    }
}
