:root {
    --bg-color: #f2f2f7;
    --text-main: #1d1d1f;
    --text-gray: #86868b;
    --accent: #2997ff;
    --glass-panel: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --card-bg: rgba(255, 255, 255, 0.85);
    --font-std: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --glass-blur: blur(30px);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-std);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* --- 页面加载动画 --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float 2s ease-in-out infinite;
}

/* --- 背景动画 --- */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; overflow: hidden;
    background: linear-gradient(135deg, #f2f2f7 0%, #e8e8ed 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* --- 导航栏 --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 60px; z-index: 1000;
    transition: all 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.navbar.glass {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    height: 56px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 30px rgba(0,0,0,0.1);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-serif);
    text-decoration: none !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-right { display: flex; align-items: center; gap: 10px; }

/* 按钮 */
.btn-login { 
    font-size: 13px; 
    font-weight: 500; 
    color: #333; 
    margin-left: 5px; 
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    background: rgba(41, 151, 255, 0.1);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: scale(0.95);
}

/* --- 布局容器 --- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

.hero {
    padding: 160px 0 80px;
    text-align: center;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #1d1d1f;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--text-gray);
    font-style: italic;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.glass-container-wrapper {
    background: rgba(255, 255, 255, 0.4); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px; 
    padding: 30px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 60px;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

/* --- 卡片与列表 --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-flow: dense; 
    gap: 30px;
}

.card-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card-item:nth-child(1) { animation-delay: 0.1s; }
.card-item:nth-child(2) { animation-delay: 0.2s; }
.card-item:nth-child(3) { animation-delay: 0.3s; }
.card-item:nth-child(4) { animation-delay: 0.4s; }
.card-item:nth-child(5) { animation-delay: 0.5s; }
.card-item:nth-child(6) { animation-delay: 0.6s; }

a.card-link-wrapper { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    height: 100%; 
    position: relative;
}

.card {
    background: var(--card-bg); 
    border-radius: 16px; 
    overflow: hidden;
    box-shadow: var(--shadow-soft); 
    transition: var(--transition-smooth);
    border: 1px solid rgba(255,255,255,0.6); 
    display: flex; 
    flex-direction: column; 
    height: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

a.card-link-wrapper:hover .card { 
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-img-wrap { 
    height: 180px; 
    overflow: hidden;
    position: relative;
}

.card-img-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

a.card-link-wrapper:hover .card-img-wrap::after {
    opacity: 1;
}

.card-img-wrap img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

a.card-link-wrapper:hover .card-img-wrap img { 
    transform: scale(1.08);
}

.card-content { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.card-title { 
    font-size: 18px; 
    margin-bottom: 8px; 
    color: #1d1d1f; 
    line-height: 1.4; 
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

a.card-link-wrapper:hover .card-title::after {
    width: 100%;
}

a.card-link-wrapper:hover .card-title {
    color: var(--accent);
}

.card-excerpt { 
    font-size: 13px; 
    color: #666; 
    line-height: 1.6; 
    margin-bottom: 15px; 
    flex: 1;
    transition: var(--transition-smooth);
}

.card-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 11px; 
    color: #999; 
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

a.card-link-wrapper:hover .card-meta {
    color: var(--accent);
}

/* --- 文章详情页 --- */
.post-hero {
    padding: 120px 0 40px;
    animation: fadeInUp 0.6s ease;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 40px;
}

.post-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 40px;
    animation: scaleIn 0.8s ease;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

/* --- 按钮 --- */
.btn-submit { 
    background: linear-gradient(135deg, #1d1d1f 0%, #3d3d3f 100%); 
    color: #fff; 
    border: none; 
    padding: 14px 32px; 
    border-radius: 50px; 
    font-size: 14px; 
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-weight: 500;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #000 0%, #2d2d2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* --- 表单 --- */
.form-control { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1px solid rgba(0,0,0,0.1); 
    background: rgba(255,255,255,0.8); 
    border-radius: 14px; 
    font-size: 16px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
    transform: translateY(-2px);
}

/* --- 表格 --- */
.admin-table { 
    width: 100%; 
    border-collapse: separate; 
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    overflow: hidden;
}

.admin-table th, .admin-table td { 
    padding: 16px; 
    text-align: left; 
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.admin-table th { 
    background: rgba(0,0,0,0.02); 
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.admin-table tr:hover td {
    background: rgba(41, 151, 255, 0.03);
}

/* --- 操作链接 --- */
.action-link {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.action-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-link[href*="edit"]:hover {
    background: rgba(41, 151, 255, 0.15);
    color: var(--accent);
}

.action-link[href*="delete"]:hover {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
}

.action-link:active {
    transform: scale(0.95);
}

/* --- 提示消息 --- */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; width: 4px;
}

.alert-error {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.2);
}

.alert-error::before { background: #ff3b30; }

.alert-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.2);
}

.alert-success::before { background: #34c759; }

@keyframes slideIn {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- 分页样式 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
    padding: 20px 0;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pagination-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(41, 151, 255, 0.4);
}

.pagination-btn:active { transform: scale(0.95); }

.pagination-current {
    background: var(--accent);
    color: #fff;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(41, 151, 255, 0.4);
}

/* --- 电脑端布局 --- */
@media screen and (min-width: 768px) {
    .grid.featured-layout {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 30px;
    }
    .grid.featured-layout > .card-link-wrapper:first-child {
        grid-column: 1 / -1;
    }
    .grid.featured-layout > .card-link-wrapper:first-child .card-img-wrap {
        height: 400px;
    }
    .grid.featured-layout > .card-link-wrapper:first-child .card-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .grid.featured-layout > .card-link-wrapper:first-child .card-excerpt {
        font-size: 16px;
    }
    .grid.featured-layout > .card-link-wrapper:not(:first-child) .card-img-wrap {
        height: 220px;
    }
}

/* --- 后台样式 --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

.btn-cancel {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-cancel:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- 移动端优化 --- */
@media screen and (max-width: 768px) {
    .container { padding: 0 16px; width: 100%; max-width: 100%; }
    .hero { padding: 100px 0 40px; text-align: center; }
    .hero-title { font-size: 28px; line-height: 1.3; letter-spacing: -0.3px; }
    .hero-subtitle { font-size: 16px; }
    .navbar { height: 56px; }
    .nav-content { gap: 8px; }
    .btn-login { min-height: 36px; padding: 6px 10px; font-size: 12px; display: flex; align-items: center; justify-content: center; }
    .grid { grid-template-columns: 1fr; gap: 16px; }
    .card { border-radius: 14px; }
    .card-img-wrap { height: 180px; min-height: 180px; }
    .card-content { padding: 16px; }
    .card-title { font-size: 16px; line-height: 1.3; }
    .card-excerpt { font-size: 12px; line-height: 1.5; }
    .card-meta { font-size: 10px; }
    .glass-container-wrapper { padding: 20px !important; border-radius: 20px; margin-bottom: 40px; }
    .form-control { padding: 14px 16px; font-size: 16px; min-height: 44px; }
    .form-label { font-size: 13px; margin-bottom: 6px; }
    .form-group { margin-bottom: 16px; }
    .btn-submit { width: 100%; text-align: center; margin-top: 10px; min-height: 44px; padding: 12px 20px; font-size: 15px; border-radius: 22px; }
    .admin-table { font-size: 13px; border-radius: 8px; }
    .admin-table th, .admin-table td { padding: 12px 8px; min-height: 44px; vertical-align: middle; }
    .admin-table th { font-size: 12px; padding: 10px 8px; }
    .action-link { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; min-height: 36px; min-width: 44px; margin: 2px; font-size: 11px; border-radius: 6px; }
    .alert { padding: 10px 12px; font-size: 13px; border-radius: 6px; }
    .login-card { padding: 30px 20px !important; max-width: 90%; }
    .login-logo { font-size: 28px; margin-bottom: 24px; }
    a, button, .action-link, .btn-login { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    input[type="text"], input[type="password"], input[type="email"], input[type="url"], textarea { font-size: 16px !important; }
    body { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: manipulation; }
    .post-title { font-size: 28px; }
    .post-hero { padding: 90px 0 30px; }
}

/* --- 超小屏幕 --- */
@media screen and (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 80px 0 30px; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 14px; }
    .card-img-wrap { height: 160px; min-height: 160px; }
    .card-content { padding: 14px; }
    .card-title { font-size: 15px; }
    .glass-container-wrapper { padding: 16px !important; border-radius: 16px; }
    .btn-submit { padding: 10px 16px; font-size: 14px; }
    .admin-table th, .admin-table td { padding: 10px 6px; font-size: 12px; }
    .action-link { padding: 6px 8px; font-size: 10px; min-width: 40px; }
    .pagination { gap: 6px; margin-top: 30px; }
    .pagination-btn { min-width: 36px; min-height: 36px; padding: 6px 10px; font-size: 13px; border-radius: 8px; }
}

/* --- 大屏幕 --- */
@media screen and (min-width: 1024px) {
    .container { max-width: 1200px; }
    .hero { padding: 180px 0 100px; }
    .hero-title { font-size: 64px; }
    .hero-subtitle { font-size: 24px; }
    .grid { gap: 40px; }
    .card-title { font-size: 20px; }
    .card-excerpt { font-size: 14px; }
    .glass-container-wrapper { padding: 50px; border-radius: 36px; }
    .post-title { font-size: 52px; }
}

/* --- 触摸设备 --- */
@media (hover: none) and (pointer: coarse) {
    a.card-link-wrapper:hover .card { transform: none; box-shadow: var(--shadow-soft); }
    a.card-link-wrapper:hover .card-img-wrap img { transform: none; }
    a.card-link-wrapper:hover .card-title::after { width: 0; }
    a.card-link-wrapper:active .card { transform: scale(0.98); }
    .btn-login:active, .btn-submit:active, .action-link:active { transform: scale(0.95); }
    .card { transition: none; }
}

/* --- 高对比度模式 --- */
@media (prefers-contrast: high) {
    :root { --glass-panel: rgba(255, 255, 255, 0.9); --glass-border: rgba(0, 0, 0, 0.3); --text-main: #000; --text-gray: #333; }
    .card { border: 2px solid #000; }
    .btn-submit { background: #000; font-weight: 700; }
}

/* --- 减少动画 --- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .blob { animation: none; }
    html { scroll-behavior: auto; }
}

/* --- 内容渲染样式 --- */
.content-render {
    font-family: Georgia,serif; 
    font-size: 18px; 
    line-height: 1.9; 
    color: #333;
}

.content-render p { margin-bottom: 1.8em; }

.content-render h1, .content-render h2, .content-render h3, .content-render h4 {
    margin: 2em 0 0.8em;
    font-family: var(--font-serif);
    color: #1d1d1f;
}

.content-render h2 { font-size: 28px; }
.content-render h3 { font-size: 22px; }

.content-render img { 
    max-width: 100%; 
    border-radius: 16px; 
    margin: 2em 0; 
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.content-render blockquote { 
    border-left: 4px solid var(--accent); 
    padding: 1em 1.5em; 
    margin: 1.5em 0; 
    color: #555;
    font-style: italic;
    background: rgba(41, 151, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.content-render a { 
    color: var(--accent); 
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content-render a:hover {
    border-bottom-color: var(--accent);
}

.content-render code {
    background: rgba(0,0,0,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
}

.content-render pre {
    background: #1d1d1f;
    color: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.content-render pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* --- 登录页面动画 --- */
.login-card {
    animation: scaleIn 0.5s ease forwards;
}

.login-logo {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* --- 返回顶部按钮 --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 151, 255, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(41, 151, 255, 0.5);
}

/* --- 页面切换过渡 --- */
.page-transition {
    animation: fadeIn 0.3s ease;
}
