/**
 * 个人网站样式 - 三栏固定布局版
 * 文件路径：css/style.css
 * 布局：透明导航栏 + 背景轮播 + 左侧边栏（个人信息/分类/标签）+ 中间内容 + 右侧边栏（时钟/日历/统计）
 */

/* ============================================================
   CSS Reset
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* ============================================================
   CSS 变量
   ============================================================ */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --bg-color: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px 0 rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px -1px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.2);
    --shadow-hover: 0 12px 30px -5px rgba(59,130,246,0.3);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================================
   背景轮播
   ============================================================ */
.bg-slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

/* ============================================================
   透明导航栏
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.site-logo {
    display: none;
}

.site-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .nav-link {
    color: var(--text-light);
}

.site-header.scrolled .nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.site-header.scrolled .nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.15);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

.site-header.scrolled .nav-toggle span {
    background: var(--text-color);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   三栏布局
   ============================================================ */
.layout-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

/* Hero 区域跨越三栏，在最上方 */
.hero-section {
    grid-column: 1 / -1;
    text-align: center;
    padding: 8rem 2rem 3rem;
    margin: 0 -1.5rem 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 3px 20px rgba(0,0,0,0.7);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.7;
    font-weight: 400;
}

.sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.site-main {
    min-height: 60vh;
    min-width: 0;
}

/* ============================================================
   卡片组件 - 玻璃质感统一
   ============================================================ */
.widget-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 2px solid rgba(59,130,246,0.15);
    transition: all 0.3s;
}

.widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59,130,246,0.12);
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.widget-title i {
    color: white;
}

/* ============================================================
   左侧边栏 - 个人信息卡片
   ============================================================ */
.profile-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, rgba(139,92,246,0.08) 100%);
    border: 2px solid rgba(59,130,246,0.15);
}

.profile-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(59,130,246,0.25);
    box-shadow: 0 4px 15px rgba(59,130,246,0.2);
    transition: all 0.3s;
}

.profile-avatar:hover {
    transform: scale(1.05) rotate(5deg);
    border-color: var(--primary-color);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-nick {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.profile-bio {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.profile-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.profile-link-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}

.profile-link-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

/* ============================================================
   左侧边栏 - 分类
   ============================================================ */
.widget-categories {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0.42rem 0.68rem;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.95);
    font-weight: 500;
    font-size: 0.84rem;
    line-height: 1.2;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
}

.cat-item:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateX(3px);
    border-color: rgba(255,255,255,0.3);
}

.cat-count {
    min-width: 1.45rem;
    padding: 0.08rem 0.38rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: white;
}

/* ============================================================
   左侧边栏 - 标签
   ============================================================ */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem 0.62rem;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.95);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.15;
    border-radius: 0.7rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.15);
}

.widget-tag-text {
    max-width: 100%;
}

.widget-tag-count {
    min-width: 1.1rem;
    padding: 0.06rem 0.3rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: white;
}

.widget-tag:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}

/* ============================================================
   右侧边栏 - 时钟（蓝色玻璃质感）
   ============================================================ */
.clock-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(99,102,241,0.15) 100%);
    border: 2px solid rgba(59,130,246,0.25);
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59,130,246,0.2);
}

.clock-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

.clock-time {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, #60a5fa, #c084fc, #f472b6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.clock-date {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.clock-greeting {
    font-size: 0.8rem;
    opacity: 0.8;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ============================================================
   右侧边栏 - 日历（增强版）
   ============================================================ */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cal-nav-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
    font-size: 0.8rem;
}

.cal-wd {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
    padding: 0.25rem 0;
    font-weight: 600;
}

.cal-day {
    padding: 0.4rem 0.15rem;
    border-radius: 0.375rem;
    color: rgba(255,255,255,0.95);
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
    min-height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

.cal-day:not(.other):hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.cal-day.other {
    color: rgba(255,255,255,0.3);
    cursor: default;
}

.cal-day.other:hover {
    background: transparent;
    transform: none;
}

.cal-day-num {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
}

.cal-day-sub {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
}

.cal-day-sub.has-event {
    color: #fbbf24;
    font-weight: 600;
}

.cal-day.today {
    background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(139,92,246,0.6));
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(59,130,246,0.4);
}

.cal-day.today .cal-day-sub {
    color: rgba(255,255,255,0.95);
}

.cal-day.today .cal-day-num {
    color: #ffffff;
}

/* 当天优先级最高：即使是周末也以 today 蓝色样式为准 */
.cal-day.today.weekend {
    background: linear-gradient(135deg, rgba(59,130,246,0.6), rgba(139,92,246,0.6));
}

.cal-day.weekend:not(.today) .cal-day-num {
    color: #fca5a5;
}

/* 日历详情弹窗 */
.calendar-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-modal-content {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.78));
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid rgba(148, 163, 184, 0.35);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.calendar-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #ef4444;
    font-size: 1.25rem;
    z-index: 10;
}

.calendar-modal-close:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: rotate(90deg) scale(1.1);
    border-color: #ef4444;
}

.calendar-modal-content h3 {
    color: rgba(255,255,255,0.98);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.modal-info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.modal-info-item:last-child {
    border-bottom: none;
}

.modal-info-item.highlight {
    background: linear-gradient(90deg, rgba(251,191,36,0.22), rgba(251,191,36,0.04));
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
    border-bottom: none;
}

.modal-label {
    color: rgba(226,232,240,0.9);
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-value {
    color: rgba(255,255,255,0.98);
    font-weight: 600;
    font-size: 0.875rem;
}

.modal-info-item.highlight .modal-value {
    color: #fde68a;
}

/* ============================================================
   右侧边栏 - 站点统计
   ============================================================ */
.stat-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: white;
    font-size: 1.0625rem;
}

/* ============================================================
   右侧边栏 - 公告卡片（已移除，现在在左侧）
   ============================================================ */

/* ============================================================
   左侧边栏 - 小站公告（黄色玻璃质感）
   ============================================================ */
.notice-card {
    background: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(245,158,11,0.15) 100%) !important;
    border: 2px solid rgba(251,191,36,0.25) !important;
}

.notice-title {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.notice-title i {
    color: #fbbf24 !important;
}

.notice-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(229, 231, 235, 0.6);
    padding: 1.5rem 0;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.footer-inner > span:first-child {
    /* 左侧空白 */
}

.footer-inner > span:nth-child(2) {
    /* 中间版权信息 */
    text-align: center;
}

.footer-inner > span:last-child {
    /* 右侧链接 */
    text-align: right;
}

.footer-inner a {
    color: rgba(255,255,255,0.9);
}

.footer-inner a:hover {
    color: white;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1200px) {
    .layout-wrapper {
        grid-template-columns: 240px 1fr 240px;
    }
}

@media (max-width: 900px) {
    .layout-wrapper {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem 1.5rem;
    }
    
    .sidebar {
        position: static;
    }
    
    .sidebar-left {
        order: 2;
    }
    
    .site-main {
        order: 1;
    }
    
    .sidebar-right {
        order: 3;
    }
    
    .hero-section {
        padding: 6rem 1.5rem 2rem;
        margin: 0 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    .header-inner {
        height: 60px;
        padding: 0 1rem;
        justify-content: flex-end;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        background: rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    }

    .site-header.scrolled .nav-toggle {
        background: rgba(255, 255, 255, 0.72);
    }
    
    .site-nav {
        position: fixed;
        top: 70px;
        left: 0.75rem;
        right: 0.75rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.8rem;
        border-radius: 1rem;
        border: 1px solid rgba(229, 231, 235, 0.9);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .site-nav.active .nav-link {
        color: var(--text-light);
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.85rem 0.95rem;
        color: var(--text-light);
        background: rgba(15, 23, 42, 0.03);
    }
    
    .hero-section {
        padding: 5rem 1rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }

    .sidebar {
        gap: 0.85rem;
    }

    .widget-card {
        padding: 1rem;
        border-radius: 0.95rem;
    }

    .profile-avatar {
        width: 78px;
        height: 78px;
    }

    .profile-links {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .clock-time {
        font-size: 1.85rem;
        letter-spacing: 0.04em;
    }

    .cal-day {
        min-height: 40px;
        padding: 0.32rem 0.1rem;
    }

    .stat-item {
        gap: 0.6rem;
        grid-template-columns: 34px 1fr auto;
    }

    .stat-icon {
        width: 34px;
        height: 34px;
    }

    .section-header {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .site-footer {
        margin-top: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 0.45rem;
        text-align: center;
    }

    .footer-inner > span:nth-child(2),
    .footer-inner > span:last-child {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .layout-wrapper {
        padding: 0 0.75rem 1.25rem;
    }

    .hero-section {
        padding: 4.7rem 0.25rem 1.25rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .widget-card {
        padding: 0.9rem;
    }

    .cat-item {
        min-height: 32px;
        padding: 0.38rem 0.6rem;
        font-size: 0.8rem;
    }

    .widget-tag {
        padding: 0.32rem 0.55rem;
        font-size: 0.76rem;
        border-radius: 0.62rem;
    }

    .clock-time {
        font-size: 1.6rem;
    }

    .clock-date,
    .clock-greeting,
    .notice-text,
    .stat-label,
    .stat-value {
        font-size: 0.82rem;
    }

    .calendar-modal-content {
        width: calc(100% - 1.2rem);
        padding: 1.2rem 0.9rem 1rem;
    }

    .calendar-modal-content h3 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        padding-right: 2rem;
    }

    .modal-info-item {
        gap: 0.45rem;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   内容区 - 通用样式
   ============================================================ */
.section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-more {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.section-more:hover {
    gap: 0.5rem;
}

/* ============================================================
   项目卡片
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.project-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-gray);
}

.project-card-body {
    padding: 1.25rem;
}

.project-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.project-card-desc {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    padding: 0.25rem 0.625rem;
    background: var(--bg-gray);
    color: var(--text-light);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.project-card-links {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.project-card-links a {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.project-card-links a:first-child {
    background: var(--primary-color);
    color: white;
}

.project-card-links a:first-child:hover {
    background: var(--primary-dark);
}

.project-card-links a:not(:first-child) {
    background: var(--bg-gray);
    color: var(--text-color);
}

.project-card-links a:not(:first-child):hover {
    background: var(--border-color);
}

/* ============================================================
   博客列表
   ============================================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.blog-item {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(249,250,251,0.95));
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px rgba(59,130,246,0.1);
    border: 2px solid rgba(255,255,255,0.9);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.blog-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transition: transform 0.3s;
}

.blog-item:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.15), 0 0 0 1px rgba(59,130,246,0.2);
}

.blog-item:hover::before {
    transform: scaleY(1);
}

.blog-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.blog-item-title:hover {
    color: var(--primary-color);
}

.blog-item-meta {
    display: flex;
    gap: 1.25rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
    font-weight: 500;
}

.blog-item-meta i {
    color: var(--primary-color);
}

.blog-item-summary {
    color: #475569;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   动态时间线
   ============================================================ */
.moments-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid #e2e8f0;
}

.moment-item {
    position: relative;
    padding: 0 0 1.75rem 1.75rem;
}

.moment-dot {
    position: absolute;
    left: -2.1rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
    z-index: 2;
}

.moment-body {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.36), rgba(59, 130, 246, 0.3));
    backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.24), 0 0 0 1px rgba(147, 197, 253, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.42);
    transition: all 0.3s;
}

.moment-body:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.15);
}

.moment-text {
    color: rgba(255,255,255,0.96);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.moment-images {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.moment-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.moment-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
}

/* 动态图片预览弹窗（玻璃质感） */
.moment-preview-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10050;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 1rem;
}

.moment-preview-modal.show {
    opacity: 1;
}

.moment-preview-panel {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.76), rgba(30, 41, 59, 0.72));
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    padding: 0.6rem;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
}

.moment-preview-img {
    display: block;
    max-width: min(90vw, 1060px);
    max-height: calc(88vh - 1.2rem);
    border-radius: 0.7rem;
    object-fit: contain;
}

.moment-preview-close {
    position: absolute;
    right: -0.65rem;
    top: -0.65rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(15, 23, 42, 0.75);
    color: rgba(255,255,255,0.95);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.moment-preview-close:hover {
    transform: scale(1.08);
    background: rgba(30, 41, 59, 0.92);
}

.moment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: rgba(226,232,240,0.92);
    font-weight: 500;
}

.moment-meta i {
    color: #93c5fd;
}

/* 动态说说标签统一为玻璃质感（心情/地点/时间） */
.moment-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.48), rgba(59, 130, 246, 0.4));
    border: 1px solid rgba(147, 197, 253, 0.42);
    color: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* 管理员首页“私密/公开”等动态角标统一玻璃标签 */
.moment-body .badge {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(59, 130, 246, 0.42));
    color: rgba(255,255,255,0.96);
    border: 1px solid rgba(147, 197, 253, 0.45);
}

/* ============================================================
   徽章
   ============================================================ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published {
    background: #dbeafe;
    color: #1e40af;
}

.badge-draft {
    background: #e5e7eb;
    color: #374151;
}

/* 动态区角标强制玻璃化，避免被默认 badge 色覆盖 */
.moments-feed .moment-body .badge,
.moments-feed .moment-body .badge-published,
.moments-feed .moment-body .badge-draft {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.5), rgba(59, 130, 246, 0.42)) !important;
    color: rgba(255,255,255,0.96) !important;
    border: 1px solid rgba(147, 197, 253, 0.45) !important;
    backdrop-filter: blur(8px);
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-color);
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.btn-secondary:hover {
    background: var(--bg-gray);
}

/* ============================================================
   表单
   ============================================================ */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.75);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   提示消息
   ============================================================ */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.hidden { display: none; }

/* ============================================================
   视频背景支持
   ============================================================ */
.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}
