/* 导入优雅的字体 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS变量 - 黑白灰高级配色 */
:root {
    /* 主色调 */
    --black: #000000;
    --true-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --medium-gray: #333333;
    --gray: #666666;
    --light-gray: #999999;
    --pale-gray: #cccccc;
    --off-white: #f5f5f5;
    --white: #ffffff;
    
    /* 功能色 */
    --accent: #000000;
    --hover-gray: #2a2a2a;
    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(0, 0, 0, 0.12);
    
    /* 阴影 */
    --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-medium: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* 动画 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --black: #ffffff;
        --white: #0a0a0a;
        --off-white: #1a1a1a;
        --light-gray: #666666;
        --gray: #999999;
        --border-light: rgba(255, 255, 255, 0.08);
        --border-dark: rgba(255, 255, 255, 0.12);
    }
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--black);
    color: var(--white);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--medium-gray);
    background: var(--white);
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 导航栏 - 极简设计 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-normal);
}

header.scrolled {
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition-normal);
}

.site-title:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--black);
    transition: width var(--transition-normal);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--black);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* 主内容区域 */
main {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
}

/* 标题设计 - 优雅的衬线字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

/* 段落样式 */
p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* 链接样式 */
a {
    color: var(--black);
    text-decoration: none;
    /* border-bottom: 1px solid var(--pale-gray); */
    transition: var(--transition-fast);
}

a:hover {
    border-bottom-color: var(--black);
}

/* 首页英雄区域 - 极简主义 */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xl) 0;
    position: relative;
}

.hero-content {
    max-width: 1000px;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 0 var(--spacing-lg) 0;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
    animation: fadeInUp 0.8s ease;
}

.hero-avatar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
}

.hero h1 strong {
    font-weight: 700;
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* 按钮设计 - 黑白对比 */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid var(--black);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    background: var(--hover-gray);
    border-color: var(--hover-gray);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
}

.btn-secondary:hover {
    background: var(--black);
    color: var(--white);
}

/* 项目卡片链接包装器 */
.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-link:hover {
    text-decoration: none;
    border-bottom: none;
}

/* 项目卡片 - 悬浮设计 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;  /* 确保所有卡片高度一致 */
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: transparent;
}

/* 卡片中的图片容器 - 固定高度 */
.project-image {
    width: 100%;
    height: 220px;  /* 固定高度 */
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    position: relative;
    flex-shrink: 0;  /* 防止被压缩 */
}

/* 卡片中的图片 - 覆盖模式 */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 关键：裁剪以填满容器 */
    object-position: center;  /* 居中裁剪 */
    display: block;
    transition: transform var(--transition-normal);
}

/* 如果不想要固定比例，完全自适应 */
.project-image.fully-adaptive {
    aspect-ratio: auto;  /* 或者直接不设置 */
}

.project-image.fully-adaptive img {
    width: 100%;
    height: auto;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* Projects页面 - 项目卡片布局 */

/* 项目卡片图片 - 完整显示不裁剪，优化的约束 */
.project-card .project-image {
    width: 100%;
    min-height: 200px;  /* 设置最小高度，避免太小的图片 */
    max-height: 300px;  /* 设置最大高度，避免太大的图片 */
    background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);  /* 给图片一些内边距 */
    position: relative;
    overflow: hidden;
}

.project-card .project-image img {
    max-width: calc(100% - 2 * var(--spacing-sm));  /* 考虑内边距 */
    max-height: calc(100% - 2 * var(--spacing-sm));  /* 考虑内边距 */
    width: auto;
    height: auto;
    object-fit: contain;  /* 关键：完整显示图片，保持比例 */
    display: block;
    transition: transform var(--transition-normal);
}

/* 悬停效果 - 轻微放大 */
.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* 为了保持卡片高度一致，使用 flexbox */
.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.project-content {
    flex: 1;  /* 内容区域占据剩余空间 */
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
}

.project-description {
    flex: 1;  /* 描述文字占据剩余空间 */
    margin-bottom: var(--spacing-sm);
}

/* 确保所有卡片高度对齐 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    align-items: stretch;  /* 所有卡片拉伸到相同高度 */
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.project-content {
    padding: var(--spacing-md);
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.project-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.project-tech {
    margin-top: auto;  /* 技术标签推到底部 */
}

/* 确保项目标题不会有下划线 */
.project-card .project-title {
    color: var(--black);
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--medium-gray);
}

/* Projects页面的标题样式 */
.projects-hero {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.projects-hero h1 {
    margin-bottom: var(--spacing-sm);
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: var(--off-white);
    color: var(--medium-gray);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* 项目详情页样式 */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    transition: var(--transition-fast);
    border: none;
}

.back-link:hover {
    color: var(--black);
    transform: translateX(-3px);
}

.project-header {
    margin-bottom: var(--spacing-xl);
}

.project-header h1 {
    margin-bottom: var(--spacing-sm);
}

.project-meta {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
}

.project-hero-image {
    width: 100%;
    max-width: 800px;  /* 固定最大宽度 */
    max-height: 400px; /* 减小最大高度 */
    overflow: hidden;
    background: var(--off-white);
    margin: 0 auto var(--spacing-xl);  /* 居中显示 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.project-hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* 保持比例，完整显示图片 */
    object-position: center;  /* 确保图片居中 */
}

.project-overview {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-light);
}

.project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.info-item h3 {
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.project-content {
    line-height: 1.8;
}

.project-content h2 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.project-content img {
    width: 100%;
    margin: var(--spacing-md) 0;
}





/* About页面 - 个人介绍 */
.about-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    filter: grayscale(100%);
    transition: var(--transition-slow);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-content h1 {
    margin-bottom: var(--spacing-md);
}

.about-content .lead {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.6;
}

/* 技能展示 - 极简进度条 */
.skills-section {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-light);
}

.skill-item {
    margin-bottom: var(--spacing-md);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.skill-name {
    font-weight: 600;
    color: var(--black);
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.skill-level {
    color: var(--light-gray);
    font-size: 0.9rem;
}

.skill-bar {
    height: 2px;
    background: var(--off-white);
    position: relative;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--black);
    transition: width 1.5s ease;
}




/* --------------- 文章内容和图片排版 --------------*/

/* 项目详情页和文章内的图片 */
.project-detail .project-hero-image {
    width: 100%;
    max-width: 800px;  /* 固定最大宽度 */
    max-height: min(400px, 50vh);  /* 限制为400px或视口高度50%，取较小值 */
    overflow: hidden;
    background: var(--off-white);
    margin: 0 auto var(--spacing-xl);  /* 居中显示 */
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.project-detail .project-hero-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;  /* 保持比例，完整显示图片 */
    object-position: center;  /* 确保图片居中 */
}

/* 文章内容中的图片 */
.project-content img,
.container article img {
    max-width: 100%;
    max-height: 600px;  /* 设置最大高度限制 */
    width: auto;
    height: auto;
    object-fit: contain;  /* 保持比例，确保图片完整显示 */
    display: block;
    margin: var(--spacing-md) auto;
}

/* 通用图片约束 - 确保所有图片都有合理的最大尺寸 */
img {
    max-width: 100%;
    height: auto;
    object-fit: contain;  /* 保持宽高比 */
}

/* 为容器内的图片提供额外约束 */
.container img,
article img {
    max-height: 80vh;  /* 最大高度不超过视口高度的80% */
}

/* 超大图片的特殊处理 - 确保极端尺寸的图片也能正确显示 */
.container img[width],
.container img[height],
article img[width],
article img[height] {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 80vh !important;
}

/* 响应式图片约束 - 移动设备上进一步限制高度 */
@media (max-width: 768px) {
    .container img,
    article img,
    .project-content img {
        max-height: 60vh;  /* 移动设备上限制为视口高度的60% */
    }
    
    .project-hero-image {
        max-height: 300px;  /* 移动设备上的英雄图片高度限制 */
    }
}







/* 照片画廊 - 网格布局 */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.photo-item {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.photo-item:hover {
    transform: translateY(-2px);
}

.photo-item img {
    max-width: calc(100% - 2 * var(--spacing-sm));
    max-height: calc(100% - 2 * var(--spacing-sm));
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: var(--transition-normal);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    color: var(--white);
    transform: translateY(100%);
}

.photo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.photo-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 照片灯箱 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox.show {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: var(--spacing-md);
    width: 90%;
    max-width: 1200px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-heavy);
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.lightbox.show .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 让图片可点击 */
.photo-item {
    cursor: pointer;
}

.photo-item img {
    cursor: pointer;
    transition: all var(--transition-normal);
}

.photo-item:hover img {
    transform: scale(1.02);
}

/* 页脚 - 简约设计 */
footer {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    text-align: center;  /* 居中对齐 */
}

.footer-brand {
    max-width: 600px;  /* 限制宽度 */
    margin: 0 auto;    /* 居中 */
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-brand p {
    color: var(--light-gray);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    justify-content: center;  /* 社交图标居中 */
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--light-gray);
    font-size: 0.85rem;
}

/* 社交图标 */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);  /* 默认就有背景 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: var(--white);  /* 图标始终是白色 */
    border-radius: 50%;  /* 圆形按钮 */
}

.social-links a:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translateY(-5px) scale(1.1);  /* 悬停时放大并上移 */
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);  /* 添加光晕效果 */
}

.social-links a i {
    font-size: 1.3rem;
}

/* 代码块样式 */
code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--off-white);
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

pre {
    background: var(--off-white);
    padding: var(--spacing-md);
    overflow-x: auto;
    margin: var(--spacing-md) 0;
}

pre code {
    background: none;
    padding: 0;
}

/* 引用样式 */
blockquote {
    border-left: 3px solid var(--black);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--gray);
}

/* 分割线 */
hr {
    border: none;
    height: 1px;
    background: var(--border-light);
    margin: var(--spacing-xl) 0;
}

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

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

/* 加载动画 */
.loader {
    width: 40px;
    height: 40px;
    border: 2px solid var(--off-white);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .hero h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    header, footer {
        display: none;
    }
    
    main {
        margin-top: 0;
    }
    
    a {
        border-bottom: none;
        color: var(--black);
    }
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--light-gray);
}

/* Markdown表格边框样式 */
table, th, td {
    border: 1px solid var(--border-light);
    border-collapse: collapse;
    padding: 6px 12px;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}