:root {
    --bg: #0b0c10;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f3f4f6;
    --text-muted: #94a3b8;
    --accent: rgba(245, 158, 11, 0.9);
    --accent-hover: #f59e0b;
    --blue: #38bdf8;
    --blue-hover: #0284c7;
    --danger: #ef4444;
    --success: #10b981;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

body {
    display: flex;
    flex-direction: column;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-hover);
}

/* 背景光晕 */
.bg-glow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.bg-glow::before,
.bg-glow::after {
    content: '';
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: pulse 5s ease-in-out infinite;
}

.bg-glow::before {
    top: 10%;
    left: 10%;
    background: #f59e0b;
}

.bg-glow::after {
    bottom: 15%;
    right: 10%;
    background: #38bdf8;
    animation-delay: -2.5s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.08;
        transform: scale(1);
    }

    50% {
        opacity: 0.16;
        transform: scale(1.1);
    }
}

/* 顶部导航 */
.site-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo {
    font-family: 'Palatino', 'Times New Roman', 'Source Han Serif SC', 'Noto Serif SC', '宋体', serif;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);

}

.main-nav a.active {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
}

.nav-divider {
    display: none;
    height: 1px;
    background: var(--border);
    margin: 10px 0;
}

.header-actions {
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: #0f172a;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--blue-hover);
    color: #fff;
}

/* Google 登录按钮：白底深字，避免与四色 Logo 冲突 */
.btn-google {
    background: #fff;
    color: #1f1f1f;
    font-weight: 600;
}

.btn-google:hover {
    background: #f1f3f4;
    color: #1f1f1f;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.user-pill img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.user-pill a {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.user-pill a:hover {
    color: var(--danger);
}

/* 移动端浮动菜单内的登录信息（桌面端隐藏） */
.nav-user {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nav-user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-logout {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nav-user-logout:hover {
    color: var(--danger);
}

/* 移动端菜单 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

@media (max-width: 800px) {
    .header-inner {
        position: relative;
        flex-wrap: nowrap;
        padding: 10px 16px;
    }

    .menu-toggle {
        display: block;
    }

    /* 顶部登录信息隐藏，移入浮动菜单内 */
    .header-actions {
        display: none;
    }

    /* 浮动菜单，左右全屏、紧贴菜单栏，不挤压页面其他内容 */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px;
        background: rgba(17, 20, 28, 0.98);
        border: none;
        border-bottom: 1px solid var(--border);
        backdrop-filter: blur(10px);
        z-index: 50;
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 10px 12px;
        border-radius: 8px;
    }

    .nav-user {
        display: flex;
    }

    .nav-user .btn {
        flex: 1;
    }

    .nav-divider {
        display: block;
    }
}

/* 页面 Hero 通栏（全屏铺满，位于导航与内容之间） */
.page-hero {
    position: relative;
    z-index: 6;
    min-height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(120% 170% at 10% 15%, rgba(245, 158, 11, 0.18), transparent 55%),
        radial-gradient(120% 170% at 90% 95%, rgba(56, 189, 248, 0.18), transparent 55%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(11, 12, 16, 0.92));
}

/* 细网点纹理，弱化纯色背景 */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.page-hero-text {
    max-width: 720px;
}

.page-hero-icon {
    display: inline-block;
    font-size: 1.7rem;
    margin-bottom: 6px;
}

.page-hero-title {
    margin: 0 0 8px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    letter-spacing: 0.02em;
}

.page-hero-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* 右侧装饰：传送门光环 */
.page-hero-art {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-art-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.35);
    box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.25), 0 0 30px rgba(245, 158, 11, 0.15);
    animation: heroRingPulse 4s ease-in-out infinite;
}

.page-hero-art-ring::after {
    content: '';
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px dashed rgba(245, 158, 11, 0.35);
}

.page-hero-art-emoji {
    font-size: 3rem;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroRingPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 160px;
    }

    .page-hero-inner {
        padding: 24px 20px;
    }

    .page-hero-title {
        font-size: 1.35rem;
    }

    .page-hero-art {
        width: 96px;
        height: 96px;
    }

    .page-hero-art-emoji {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .page-hero-art {
        display: none;
    }
}

/* 面包屑导航 */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: #fff;
}

.breadcrumb-sep {
    color: #475569;
}

.breadcrumb-current {
    color: var(--accent);
}

/* 主体容器 */
.site-main {
    position: relative;
    z-index: 5;
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* 底部 */
.site-footer {
    position: relative;
    /* z-index: 10; */
    border-top: 1px solid var(--border);
    background: rgba(11, 12, 16, 0.9);
    padding: 30px 20px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* .footer-slogan {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
} */

/* .footer-slogan strong {
    color: var(--accent);
} */
.footer-copyright {
    color: #64748b;
    font-size: 0.75rem;
    /* display: flex; */
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.footer-copyright a {
    color: var(--text-muted);
}

.footer-copyright a:hover {
    color: #fff;
}


/* 通用卡片、按钮、表单 */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #059669;
    color: #fff;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: #f59e0b;
    color: #1f2937;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* 分页（覆盖 admin 默认） */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-link,
.page-info,
.page-ellipsis {
    padding: 7px 13px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
}

.page-link {
    background: rgba(15, 23, 42, 0.7);
    color: var(--blue);
    border: 1px solid var(--border);
}

.page-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.page-link.active {
    background: var(--blue);
    color: #0f172a;
    border-color: var(--blue);
    font-weight: 600;
}

.page-link.disabled {
    color: #64748b;
    cursor: not-allowed;
}

.page-info,
.page-ellipsis {
    color: var(--text-muted);
}

/* Toast 提示 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.toast {
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    word-break: break-word;
}

.toast-success {
    background: #065f46;
}

.toast-error {
    background: #991b1b;
}

.toast-hide {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

/* iconfont 图标字体（分享按钮使用） */
@font-face {
    font-family: "iconfont";
    /* Project id 5240818 */
    src: url('iconfont/iconfont.woff2?t=1791393187869') format('woff2'),
        url('iconfont/iconfont.woff?t=1791393187869') format('woff'),
        url('iconfont/iconfont.ttf?t=1791393187869') format('truetype');
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-fenxiang:before {
    content: "\e64c";
}

.icon-pinglun:before {
    content: "\e601";
}

.icon-dianzan:before {
    content: "\e600";
}

.icon-dianzan_kuai:before {
    content: "\ec8c";
}

.icon-guanbichuangkou:before {
    content: "\e6f2";
}

.icon-youbian:before {
    content: "\e773";
}

.icon-xinchuangkoudakai2:before {
    content: "\e70d";
}