/* 浪梦的生活日常·lm'slife - 样式表 */

:root {
    --bg: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: rgba(24, 24, 28, 0.72);
    --bg-hover: #2a2a2a;
    --text: #d4d4d4;
    --text-secondary: #8a8a8a;
    --text-muted: #555555;
    --accent: #e05040;
    --accent-hover: #c94435;
    --accent-light: rgba(224, 80, 64, 0.12);
    --border: rgba(255,255,255,0.06);
    --border-solid: #2a2a2a;
    --shadow: rgba(0,0,0,0.4);
    --aero-blur: 20px;
    --aero-border: rgba(255,255,255,0.08);
    --aero-bg: rgba(18, 18, 22, 0.65);
    --aero-glow: rgba(224, 80, 64, 0.03);
    --radius: 8px;
    --radius-lg: 12px;
    --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* 代码雨画布 */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

/* Header - Aero Glass */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--aero-bg);
    backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    border-bottom: 1px solid var(--aero-border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.02), 0 4px 24px rgba(0,0,0,0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    font-family: var(--font-mono);
}

.site-logo::before {
    content: '~/';
    color: var(--accent);
    opacity: 0.7;
}

.site-logo span {
    color: var(--accent);
}

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    padding: 6px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--text);
    background: var(--bg-hover);
}

/* Main */
body.has-sidebar .main-content {
    margin-left: 280px;
    max-width: none;
}

/* ============ 侧边栏 - Aero Glass + 书法风格 ============ */
.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--aero-bg);
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    border-right: 1px solid var(--aero-border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.35), inset -1px 0 0 rgba(255,255,255,0.03);
    overflow-y: auto;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 20px 32px;
    text-align: center;
}

/* 头像 */
.sidebar-avatar {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(224, 80, 64, 0.25);
    position: relative;
    z-index: 2;
    transition: border-color 0.4s ease;
}

.sidebar-avatar:hover img {
    border-color: rgba(224, 80, 64, 0.6);
}

/* 头像外圈光环 */
.avatar-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px solid rgba(224, 80, 64, 0.15);
    animation: avatarRingPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes avatarRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* 底部呼吸光 */
.avatar-glow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 8px;
    background: radial-gradient(ellipse, rgba(224, 80, 64, 0.18), transparent 70%);
    filter: blur(4px);
    z-index: 0;
    animation: glowBreathe 3s ease-in-out infinite;
}

@keyframes glowBreathe {
    0%, 100% { opacity: 0.5; width: 60px; }
    50% { opacity: 1; width: 80px; }
}

/* 名字 - 书法字体 */
.sidebar-name {
    font-family: "Ma Shan Zheng", "Zhi Mang Xing", "STXingkai", "华文行楷", cursive, serif;
    font-size: 36px;
    color: #f0e6dc;
    letter-spacing: 10px;
    margin-bottom: 6px;
    font-weight: 400;
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(224, 80, 64, 0.15), 0 0 40px rgba(224, 80, 64, 0.05);
    background: linear-gradient(135deg, #f0e6dc 0%, #e0c9b0 50%, #f0e6dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 签名语 */
.sidebar-motto {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 32px;
    letter-spacing: 1px;
    position: relative;
    padding: 0 12px;
}

.sidebar-motto::before,
.sidebar-motto::after {
    content: '~';
    color: var(--accent);
    opacity: 0.4;
    font-size: 11px;
}

.sidebar-motto::before { margin-right: 6px; }
.sidebar-motto::after { margin-left: 6px; }

/* 侧边栏导航 */
.sidebar-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 28px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-nav a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.25s ease;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text);
}

.sidebar-nav a:hover svg {
    opacity: 1;
    color: var(--accent);
}

.sidebar-nav a.active {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 500;
}

.sidebar-nav a.active svg {
    opacity: 1;
    color: var(--accent);
}

.sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

/* 侧边栏社交图标 */
.sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.sidebar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ 氛围音乐播放器 - 黑胶唱片 + 专辑封面 ============ */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 28px;
    z-index: 500;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.vinyl-wrapper {
    position: relative;
    width: 220px;
    height: 130px;
    perspective: 800px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-player:hover .vinyl-wrapper {
    transform: rotateY(-8deg) rotateX(3deg) translateY(-4px);
}

/* ========== 专辑封面卡片 ========== */
.album-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 120px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1520 0%, #2d2038 40%, #1e1826 100%);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.45),
        0 2px 8px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.06),
        inset 0 0 20px rgba(224, 80, 64, 0.03);
    overflow: hidden;
    z-index: 3;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.music-player.playing .album-card {
    box-shadow:
        0 12px 40px rgba(0,0,0,0.55),
        0 2px 12px rgba(0,0,0,0.3),
        0 0 30px rgba(224, 80, 64, 0.06),
        inset 0 1px 0 rgba(255,255,255,0.06);
    border-color: rgba(224, 80, 64, 0.15);
}

/* 封面图区域 */
.album-cover {
    flex-shrink: 0;
    width: 100%;
    height: 78px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(224,80,64,0.15), transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(180,100,200,0.08), transparent 50%),
        linear-gradient(135deg, #1f1629 0%, #2a1e38 50%, #1a1422 100%);
    position: relative;
    overflow: hidden;
}

.album-cover::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 35%;
    bottom: 10%;
    background: rgba(224, 80, 64, 0.08);
    border-radius: 4px;
    filter: blur(8px);
}

.album-cover::after {
    content: '浪梦';
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translate(-50%, -50%);
    font-family: "Ma Shan Zheng", "Zhi Mang Xing", cursive, serif;
    font-size: 26px;
    color: rgba(240, 230, 220, 0.7);
    text-shadow: 0 2px 12px rgba(224, 80, 64, 0.2);
    letter-spacing: 4px;
    writing-mode: vertical-lr;
}

/* 专辑信息 */
.album-info {
    padding: 8px 11px 10px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.album-tag {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent);
    opacity: 0.8;
    letter-spacing: 0.5px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(224, 80, 64, 0.15);
    margin-bottom: 2px;
    display: inline-block;
    width: fit-content;
}

.album-title {
    font-family: "Ma Shan Zheng", "Zhi Mang Xing", cursive, serif;
    font-size: 17px;
    color: #f0e6dc;
    line-height: 1.3;
    letter-spacing: 2px;
}

.album-artist {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 1px;
    opacity: 0.7;
}

.album-artist::before {
    content: '~ ';
    color: var(--accent);
    opacity: 0.4;
}

/* ========== 黑胶唱片 ========== */
.vinyl-disc {
    position: absolute;
    top: -8px;
    left: 90px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: #111;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.04);
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 唱片纹路 */
.disc-grooves {
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0,
        transparent 1px,
        rgba(60,60,65,0.4) 1.5px,
        transparent 2.5px,
        transparent 4px
    );
}

.disc-grooves::after {
    content: '';
    position: absolute;
    top: 14px; left: 14px; right: 14px; bottom: 14px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0,
        transparent 1.5px,
        rgba(50,50,55,0.3) 2px,
        transparent 3px,
        transparent 5px
    );
}

/* 唱片中心孔 */
.disc-hole {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 3px solid #222;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.02);
    z-index: 3;
}

/* 中心标签 */
.disc-center-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: rgba(240, 230, 220, 0.5);
    letter-spacing: 1px;
    z-index: 4;
}

/* 播放时唱片旋转 */
@keyframes vinylSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.music-player.playing .vinyl-disc {
    animation: vinylSpin 4s linear infinite;
}

/* 播放时唱片微微右移露出更多 */
.music-player.playing .vinyl-disc {
    left: 96px;
}

/* 唱片高光反射 */
.vinyl-disc::before {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 56px; bottom: 6px;
    border-radius: 50% 60% 60% 50%;
    background: linear-gradient(
        125deg,
        rgba(255,255,255,0.07) 0%,
        transparent 35%,
        transparent 100%
    );
    pointer-events: none;
}

/* 播放状态指示小点 */
.music-player.playing .album-card::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #48bb78;
    box-shadow: 0 0 8px rgba(72, 187, 120, 0.5);
    animation: pulseDot 1.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .music-player.playing .vinyl-disc {
        animation: none;
    }
    .music-player.playing .album-card::after {
        animation: none;
        opacity: 1;
    }
}

/* Main */
body.has-sidebar .main-content {
    max-width: none;
    margin-left: 280px;
}

.main-content {
    padding: 32px 24px;
    position: relative;
    z-index: 1;
}

/* Hero - Terminal Style */
.hero {
    text-align: center;
    padding: 60px 0 48px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -1px;
    font-family: var(--font-mono);
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-family: var(--font-mono);
    font-size: 14px;
}

.hero p::before {
    content: '$ ';
    color: var(--accent);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar .label {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 4px;
    font-family: var(--font-mono);
}

.filter-bar .label::before {
    content: './';
    color: var(--accent);
    opacity: 0.5;
}

.filter-btn {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* Tab Switcher */
.tab-switcher {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 12px 28px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition);
    font-family: var(--font);
}

.tab-btn:hover {
    color: var(--text-secondary);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card - Aero Glass */
.card {
    background: var(--aero-bg);
    backdrop-filter: blur(var(--aero-blur)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    border: 1px solid var(--aero-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(224,80,64,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
    border-color: rgba(224, 80, 64, 0.15);
}

.card-cover {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
    overflow: hidden;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-cover img {
    transform: scale(1.05);
}

.card-cover .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-cover .play-icon::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.card-cover .duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-body {
    padding: 16px;
}

.card-category {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 500;
    font-family: var(--font-mono);
}

.card-category::before {
    content: '[';
    opacity: 0.5;
}

.card-category::after {
    content: ']';
    opacity: 0.5;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Detail Page */
.detail-header {
    margin-bottom: 32px;
}

.detail-category {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.detail-category::before {
    content: '[';
    opacity: 0.5;
}

.detail-category::after {
    content: ']';
    opacity: 0.5;
}

.detail-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 13px;
}

.detail-cover {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    margin-bottom: 0;
}

.detail-terminal-window .detail-cover {
    border-radius: 0;
}

.detail-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
}

.detail-content p {
    margin-bottom: 16px;
}

.detail-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
    font-weight: 700;
}

.detail-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
    font-weight: 600;
}

.detail-content img {
    border-radius: var(--radius);
    margin: 16px 0;
}

.detail-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text-secondary);
}

.detail-content code {
    background: rgba(224, 80, 64, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--font-mono);
    color: var(--accent);
}

.detail-content pre {
    background: rgba(10, 10, 10, 0.9);
    padding: 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid var(--aero-border);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
}

.detail-content pre::before {
    content: 'bash $';
    display: block;
    font-size: 11px;
    color: var(--accent);
    opacity: 0.5;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.detail-content pre code {
    background: none;
    padding: 0;
}

.detail-content ul, .detail-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.detail-content li {
    margin-bottom: 6px;
}

/* Video Player - Aero */
.video-player {
    width: 100%;
    overflow: hidden;
    background: #000;
    margin-bottom: 0;
}

.video-player video {
    width: 100%;
    display: block;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a, .pagination span {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.pagination .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Footer - Terminal */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
}

.site-footer p::before {
    content: 'root@lmslife:~# ';
    color: var(--accent);
    opacity: 0.5;
}

.footer-beian {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 社交媒体链接 */
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-socials a:hover {
    background: var(--accent-light);
    border-color: rgba(224, 80, 64, 0.3);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(224, 80, 64, 0.15);
}

.footer-beian a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.footer-beian a:hover {
    color: var(--accent);
}

.beian-icon {
    flex-shrink: 0;
    opacity: 0.6;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.footer-beian a:hover .beian-icon {
    opacity: 1;
}

.beian-sep {
    margin: 0 8px;
    opacity: 0.3;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 15px;
}

/* Back link - Terminal style */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color var(--transition);
    font-family: var(--font-mono);
}

.back-link::before {
    content: 'cd ';
    color: var(--accent);
    opacity: 0.7;
}

.back-link:hover {
    color: var(--accent);
}

/* ============ Admin Styles ============ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: var(--aero-bg);
    backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    border-right: 1px solid var(--aero-border);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

.admin-sidebar .sidebar-logo {
    padding: 0 20px 24px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid var(--aero-border);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.admin-sidebar .sidebar-logo::before {
    content: '~/';
    color: var(--accent);
    opacity: 0.6;
}

.admin-sidebar .sidebar-logo span {
    color: var(--accent);
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    color: var(--text);
    background: var(--bg-hover);
}

.admin-sidebar nav a.active {
    border-right: 2px solid var(--accent);
    color: var(--accent);
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 32px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-header h2 {
    font-size: 22px;
    font-weight: 700;
}

/* Login Page - Aero */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
}

.login-box {
    width: 380px;
    background: var(--aero-bg);
    backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.2);
    border-radius: var(--radius-lg);
    border: 1px solid var(--aero-border);
    padding: 40px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.login-box h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.login-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: border-color var(--transition);
    font-family: var(--font);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
    line-height: 1.6;
}

select.form-control {
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    font-family: var(--font);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-danger {
    background: transparent;
    border-color: #e05040;
    color: #e05040;
}

.btn-danger:hover {
    background: #e05040;
    color: #fff;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: var(--bg-hover);
}

.data-table .actions {
    display: flex;
    gap: 8px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-published {
    background: rgba(72, 187, 120, 0.15);
    color: #48bb78;
}

.badge-draft {
    background: rgba(255, 183, 77, 0.15);
    color: #ffb74d;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--aero-bg);
    backdrop-filter: blur(var(--aero-blur)) saturate(1.1);
    -webkit-backdrop-filter: blur(var(--aero-blur)) saturate(1.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--aero-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(72, 187, 120, 0.12);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.25);
}

.alert-error {
    background: rgba(224, 80, 64, 0.12);
    color: #e05040;
    border: 1px solid rgba(224, 80, 64, 0.25);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.file-upload:hover {
    border-color: var(--accent);
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    body.has-sidebar .main-content {
        margin-left: 240px;
    }

    .site-sidebar {
        width: 240px;
    }

    .sidebar-name {
        font-size: 30px;
        letter-spacing: 8px;
    }

    .sidebar-avatar {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    body.has-sidebar .main-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 80px;
    }

    .site-sidebar {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        border-right: none;
        border-top: 1px solid var(--aero-border);
        box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
    }

    .sidebar-inner {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
    }

    .sidebar-avatar {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        order: -1;
    }

    .avatar-ring,
    .avatar-glow {
        display: none;
    }

    .sidebar-name {
        font-size: 22px;
        letter-spacing: 6px;
        display: none;
    }

    .sidebar-motto {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 4px;
        margin-bottom: 0;
    }

    .sidebar-nav a {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .sidebar-nav a::before {
        display: none;
    }

    .sidebar-socials {
        padding-top: 0;
        border-top: none;
        gap: 8px;
    }

    .sidebar-socials a {
        width: 32px;
        height: 32px;
    }
    .header-inner {
        padding: 0 16px;
    }

    .site-nav {
        gap: 4px;
    }

    .site-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .main-content {
        padding: 20px 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .detail-title {
        font-size: 22px;
    }

    .admin-sidebar {
        width: 180px;
    }

    .admin-main {
        margin-left: 180px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .admin-layout {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .admin-main {
        margin-left: 0;
    }
}
