/* 全局样式 */
:root {
    --primary-color: #ff9e6d;
    --secondary-color: #ffd166;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* 首页body样式 - 确保全屏展示正常显示 */
body.index-page {
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s ease;
}

/* 首页顶部导航栏透明渐变效果 */
body.index-page header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(255, 158, 109, 0.35), rgba(255, 158, 109, 0));
    box-shadow: none;
    backdrop-filter: blur(5px);
}

body.index-page header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* 首页导航链接在透明背景下的颜色 */
body.index-page header:not(.scrolled) .logo h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

body.index-page header:not(.scrolled) nav ul li a {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

body.index-page header:not(.scrolled) nav ul li a:after {
    background: #fff;
}

/* 导航栏滚动后的颜色 */
body.index-page header.scrolled .logo h1 {
    color: var(--primary-color);
    text-shadow: none;
}

body.index-page header.scrolled nav ul li a {
    color: var(--dark-color);
    text-shadow: none;
}

body.index-page header.scrolled nav ul li a:after {
    background: var(--primary-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 28px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 全屏画作展示区域 */
.showcase-artwork {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 0;
}

.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.showcase-artwork-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.showcase-artwork-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(50px) brightness(0.95);
    transform: scale(1.2);
    opacity: 0.9;
}

.showcase-artwork-main {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 20px;
    transition: transform 0.3s ease;
}

.showcase-artwork-main:hover {
    transform: scale(1.02);
}

.showcase-artwork-main img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

/* 轮播指示器 */
.showcase-indicators {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.showcase-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.showcase-indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* 向下滚动提示 */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.5s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-indicator:hover {
    opacity: 1 !important;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* 首页内容区域（需要在全屏展示下方） */
body.index-page .featured-works {
    position: relative;
    z-index: 1;
    background: white;
}

body.index-page .featured-works .container {
    max-width: none;
    padding: 0;
}

body.index-page .featured-works .waterfall-container {
    max-width: 1194px;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .showcase-artwork {
        height: 100vh;
    }
    
    .showcase-artwork-main {
        padding: 10px;
    }
    
    .showcase-artwork-main img {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 30px;
    }
    
    .showcase-indicators {
        bottom: 70px;
    }
}

/* 横幅区域样式（保留用于其他页面） */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 作品展示区域样式 */
.featured-works {
    padding: 80px 0;
}

.featured-works .container {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-works {
    padding: 20px 0 80px 0;
}

.timeline-works .container {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

.featured-works h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.featured-works .waterfall-container {
    /* 与时间轴和关于页面对齐：1194px */
    max-width: 1194px;
    width: 100%;
}

.timeline-works h3 {
    text-align: left;
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 600;
    color: #24292f;
}

/* 瀑布流容器 */
.waterfall-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0;
    align-items: flex-start;
    width: 100%;
}

.waterfall-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    width: 100%;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.work-image {
    width: 100%;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    padding: 15px;
    background: white;
}

.work-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.work-info h3 {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.3;
    color: #333;
    flex: 1;
}

.work-info .date {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
    margin-left: 8px;
    white-space: nowrap;
}

.work-info .description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 时间轴页面特定样式 - 标题、描述、时间三行布局 */
.timeline-works .work-info h3 {
    margin: 0 0 6px 0;
}

.timeline-works .work-info .description {
    margin-bottom: 6px;
}

.timeline-works .work-info .date {
    margin: 0;
    display: block;
    text-align: left;
}

/* 响应式瀑布流列数 */
@media (max-width: 1200px) {
    .waterfall-container {
        gap: 15px;
    }
    
    .featured-works .waterfall-container,
    body.index-page .featured-works .waterfall-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .waterfall-container {
        gap: 15px;
    }
    
    .waterfall-column {
        gap: 15px;
    }
    
    .work-info {
        padding: 12px;
    }
    
    .work-info h3 {
        font-size: 1.1rem;
    }
    
    .work-info .date {
        font-size: 0.8rem;
    }
    
    .featured-works .waterfall-container,
    body.index-page .featured-works .waterfall-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* 时间轴页面样式 */
.timeline-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.timeline-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.timeline-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 热力图样式 */
.contribution-graph-section {
    padding: 40px 0 20px 0;
}

.contribution-graph-section .container {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

.heatmap-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.heatmap-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contribution-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #24292f;
    text-align: left;
}

.contribution-box {
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    position: relative;
    width: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contribution-graph {
    margin-top: 10px;
    width: 100%;
}

.months-row {
    display: grid;
    grid-template-columns: repeat(53, 14px);
    grid-gap: 3px;
    margin-left: 30px;
    font-size: 12px;
    color: #57606a;
    margin-bottom: 2px;
}

.month-label {
    grid-column: span 4;
    text-align: left;
    font-weight: 400;
    padding-bottom: 0;
    padding-left: 0;
}

.grid-wrapper {
    display: flex;
    margin-top: 3px;
    align-items: flex-start;
}

.weekdays-col {
    display: grid;
    grid-template-rows: repeat(7, 14px);
    grid-gap: 3px;
    margin-right: 6px;
    font-size: 12px;
    color: #57606a;
    align-items: center;
    width: 26px;
    justify-content: flex-end;
}

.weekday-label {
    height: 14px;
    line-height: 14px;
    text-align: center;
    padding-right: 0;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    /* grid-row 由 JavaScript 动态设置 */
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(53, 14px);
    grid-template-rows: repeat(7, 14px);
    grid-gap: 3px;
}

.day-cell {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    background-color: #ebedf0;
    transition: transform 0.1s;
    cursor: pointer;
    position: relative;
}

.day-cell:hover {
    transform: scale(1.2);
    z-index: 10;
}

/* 热力图工具提示 */
.heatmap-tooltip {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.05s ease-in;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.heatmap-tooltip.visible {
    opacity: 1;
}

.heatmap-tooltip .tooltip-date {
    font-weight: 600;
    margin-bottom: 4px;
}

.heatmap-tooltip .tooltip-count {
    color: #ffc87c;
}

.level-0 {
    background-color: #ebedf0;
}

.level-1 {
    background-color: #ffeed5;
}

.level-2 {
    background-color: #ffc87c;
}

.level-3 {
    background-color: #ff9b40;
}

.level-4 {
    background-color: #ff7600;
}

.contribution-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    font-size: 11px;
    color: #57606a;
    gap: 4px;
}

.legend-text {
    color: #57606a;
    font-weight: 400;
}

.legend-dots {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin: 0 2px;
}

.year-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
    width: 200px;
    flex-shrink: 0;
}

.year-btn {
    background: none;
    border: 1px solid transparent;
    color: #57606a;
    font-size: 12px;
    text-align: center;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.15s ease;
    width: 100%;
    font-weight: 400;
}


.year-btn:hover {
    background-color: #f6f8fa;
}

.year-btn.active {
    background-color: #ff9e6d;
    color: white;
    border-color: #ff9e6d;
    font-weight: 500;
}

/* 时间轴作品过滤器 */
.filter-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-filter label {
    font-size: 0.9rem;
    color: #666;
}

.date-filter input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.date-filter button {
    padding: 6px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.date-filter button:hover {
    background-color: #ff8a5c;
}


/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* 时间轴内容布局 */
.timeline-content-wrapper {
    display: flex;
    gap: 30px;
    position: relative;
}

.timeline-main {
    width: auto;
    min-width: 0;
}

/* 时间轴侧边栏 */
.timeline-sidebar {
    width: 200px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: linear-gradient(to bottom, #fff5ed 0%, #fffaf7 30%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(255, 158, 109, 0.12);
    border: none;
    padding: 0;
}

.timeline-nav-header {
    padding: 20px 20px 16px 20px;
    border-bottom: none;
    background: transparent;
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.timeline-nav-header span {
    font-size: 1rem;
    font-weight: 700;
    color: #ff9e6d;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-nav-header span::before {
    content: '✿';
    font-size: 1.1rem;
    color: #ffc8a8;
}

.timeline-nav-content {
    padding: 12px 0;
}

/* 时间轴年份组 */
.timeline-year-group {
    margin-bottom: 4px;
}

.timeline-year-header {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #555;
    transition: all 0.2s;
    user-select: none;
    border-radius: 8px;
    margin: 0 8px;
}

.timeline-year-header:hover {
    background-color: rgba(255, 158, 109, 0.08);
    color: #ff9e6d;
}

.timeline-year-header span:first-child {
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-year-toggle {
    font-size: 0.75rem;
    transition: transform 0.3s;
    color: #ffb088;
}

.timeline-year-header.collapsed .timeline-year-toggle {
    transform: rotate(-90deg);
}

/* 月份列表 */
.timeline-month-list {
    padding: 0;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative;
}

.timeline-month-list.hidden {
    max-height: 0;
}

/* 时间轴连接线（禁用全局线，改为每个条目自己绘制，便于在圆点处断开） */
.timeline-month-list::after {
    content: none;
}

.timeline-month-item {
    padding: 10px 20px 10px 50px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
    position: relative;
    border-left: 3px solid transparent;
    z-index: 1;
    margin: 2px 8px;
    border-radius: 8px;
}

/* 每个条目自己的竖线，圆心处留出透明间隙形成环 */
.timeline-month-item::after {
    content: '';
    position: absolute;
    left: 30px; /* 线的左边界（2px宽，中心在 31px） */
    top: -1px; /* 延伸到上方，覆盖 margin */
    bottom: -1px; /* 延伸到下方，覆盖 margin */
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(255, 158, 109, 0.2) 0,                         /* 顶部线段开始 */
        rgba(255, 158, 109, 0.2) calc(50% - 5px),           /* 到圆心上方7px */
        transparent calc(50% - 5px),                        /* 透明间隙开始 */
        transparent calc(50% + 5px),                        /* 透明间隙结束（总高度 ~14px） */
        rgba(255, 158, 109, 0.2) calc(50% + 5px),           /* 底部线段开始 */
        rgba(255, 158, 109, 0.2) 100%);
    z-index: 0;
}

.timeline-month-item::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #ffc8a8;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 0 0 0 rgba(255, 158, 109, 0.3);
}

.timeline-month-item:hover {
    background-color: rgba(255, 158, 109, 0.08);
}

.timeline-month-item:hover::before {
    background-color: #ff9e6d;
    border-color: #ff9e6d;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px rgba(255, 158, 109, 0.15);
}

.timeline-month-item.active {
    background: linear-gradient(90deg, 
        rgba(255, 158, 109, 0.12) 0%, 
        rgba(255, 158, 109, 0.06) 100%);
}

.timeline-month-item.active::before {
    background-color: #ff9e6d;
    border-color: #ff9e6d;
    box-shadow: 0 0 0 4px rgba(255, 158, 109, 0.2);
}

.timeline-month-name {
    font-size: 0.88rem;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
}

.timeline-month-item:hover .timeline-month-name {
    color: #ff9e6d;
}

.timeline-month-item.active .timeline-month-name {
    color: #ff9e6d;
    font-weight: 600;
}

.timeline-month-count {
    font-size: 0.7rem;
    background: transparent;
    color: #aaa;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 400;
    min-width: 20px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: none;
}

.timeline-month-item:hover .timeline-month-count {
    color: #888;
}

.timeline-month-item.active .timeline-month-count {
    color: #888;
}

/* 自定义滚动条 */
.timeline-sidebar::-webkit-scrollbar {
    width: 5px;
}

.timeline-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 158, 109, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.timeline-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ffc8a8 0%, #ffb088 100%);
    border-radius: 10px;
    transition: background 0.3s;
}

.timeline-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffb088 0%, #ff9e6d 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .banner h2 {
        font-size: 2.2rem;
    }
    
    /* 热力图响应式调整 */
    .contribution-box {
        overflow-x: auto;
        padding: 16px 10px;
    }
    
    .months-row {
        min-width: 800px;
    }
    
    .heatmap-grid {
        min-width: 800px;
    }
    
    .year-buttons {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
        border: none;
        box-shadow: none;
        padding: 0;
        flex-wrap: wrap;
    }
    
    .year-btn {
        margin: 0 5px 5px 0;
    }
    
    /* 时间轴侧边栏移动端适配 */
    .timeline-content-wrapper {
        flex-direction: column-reverse;
        gap: 20px;
    }
    
    .timeline-sidebar {
        position: static;
        width: 100%;
        max-height: 350px;
        margin-bottom: 20px;
        background: linear-gradient(to bottom, #fff5ed 0%, #ffffff 60%);
    }
    
    .timeline-nav-header {
        padding: 16px 20px;
    }
    
    .timeline-year-header {
        padding: 10px 16px;
        margin: 0 6px;
    }
    
    .timeline-month-item {
        padding: 8px 16px 8px 44px;
        margin: 2px 6px;
    }
    
    .timeline-month-item::before {
        left: 25px;
    }
    
    .timeline-month-list::after {
        left: 30px;
    }
}

@media (max-width: 1024px) {
    .timeline-sidebar {
        width: 190px;
    }
    
    .timeline-content-wrapper {
        gap: 24px;
    }
}

/* 图片查看器 */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.image-viewer.active {
    opacity: 1;
    pointer-events: all;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-viewer .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* 备用文字显示，当Font Awesome加载失败时 */
.image-viewer .close:before {
    content: "×";
    font-size: 2rem;
    font-weight: bold;
}

.image-viewer .close i {
    display: none;
}

/* 当Font Awesome正常加载时，显示图标 */
.image-viewer .close i.fas {
    display: block;
}

.image-viewer .close:before {
    display: none;
}

.image-viewer .prev,
.image-viewer .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 60px;
}

/* 备用文字显示，当Font Awesome加载失败时 */
.image-viewer .prev:before {
    content: "‹";
    font-size: 2rem;
    font-weight: bold;
}

.image-viewer .next:before {
    content: "›";
    font-size: 2rem;
    font-weight: bold;
}

.image-viewer .prev i,
.image-viewer .next i {
    display: none;
}

/* 当Font Awesome正常加载时，显示图标 */
.image-viewer .prev i.fas,
.image-viewer .next i.fas {
    display: block;
}

.image-viewer .prev:before,
.image-viewer .next:before {
    display: none;
}

.image-viewer .prev:hover,
.image-viewer .next:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.image-viewer .prev {
    left: 30px;
}

.image-viewer .next {
    right: 30px;
}

/* 当Font Awesome加载失败时的备用样式 */
.image-viewer.fallback-icons .close i,
.image-viewer.fallback-icons .prev i,
.image-viewer.fallback-icons .next i {
    display: none !important;
}

.image-viewer.fallback-icons .close:before,
.image-viewer.fallback-icons .prev:before,
.image-viewer.fallback-icons .next:before {
    display: block !important;
}

/* 关于页面样式 */
.about-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.about-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.about-banner h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.about-banner .subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.about-content {
    padding: 50px 0 80px 0;
    background: #fafafa;
}

.about-content .container {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

.about-card {
    /* 与时间轴页面对齐：timeline-main(≈964px) + gap(30px) + sidebar(200px) = 1194px */
    max-width: 1194px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.about-section {
    padding: 50px 60px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 35px;
    align-items: flex-start;
}

.about-section:last-child {
    border-bottom: none;
}

.section-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 158, 109, 0.3);
}

.section-content {
    flex: 1;
}

.about-section h3 {
    text-align: left;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-weight: 600;
}

.about-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 12px;
}

.commission-list {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.commission-list li {
    font-size: 1rem;
    padding: 10px 0;
    color: #555;
    display: flex;
    align-items: center;
}

.commission-list li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

.commission-note {
    margin-top: 15px;
    padding: 12px 18px;
    background: #fff5ed;
    border-left: 3px solid var(--primary-color);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

.contact-section {
    background: linear-gradient(to bottom, white 0%, #fafafa 100%);
}

.contact-grid {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 158, 109, 0.15);
    transform: translateY(-2px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-item.email .contact-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-item.github .contact-icon {
    background: linear-gradient(135deg, #24292e 0%, #4a4a4a 100%);
    color: white;
}

.contact-item.xiaohongshu .contact-icon {
    background: linear-gradient(135deg, #ff2442 0%, #ff6b6b 100%);
    color: white;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.05rem;
    color: var(--dark-color);
    font-weight: 500;
}

/* 关于页面响应式 */
@media (max-width: 768px) {
    .about-banner {
        padding: 80px 0 60px 0;
    }
    
    .about-banner h2 {
        font-size: 2.2rem;
    }
    
    .about-banner .subtitle {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .about-content .container {
        padding: 0 20px;
    }
    
    .about-card {
        max-width: 100%;
    }
    
    .about-section {
        padding: 35px 25px;
        flex-direction: column;
        gap: 20px;
    }
    
    .section-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        font-size: 1.6rem;
    }
    
    .about-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .contact-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .about-banner {
        padding: 60px 0 45px 0;
    }
    
    .about-banner h2 {
        font-size: 1.8rem;
    }
    
    .about-banner .subtitle {
        font-size: 1rem;
    }
    
    .about-section {
        padding: 30px 20px;
    }
    
    .section-icon {
        width: 55px;
        height: 55px;
        min-width: 55px;
        font-size: 1.4rem;
        border-radius: 12px;
    }
    
    .about-section h3 {
        font-size: 1.3rem;
    }
    
    .about-section p {
        font-size: 0.95rem;
    }
    
    .commission-list li {
        font-size: 0.95rem;
        padding: 8px 0;
    }
}