/* 全局样式 */
:root {
    --primary-color: #333;
    --secondary-color: #777;
    --accent-color: #f0f0f0;
    --text-color: #333;
    --background-color: #fff;
    --transition-speed: 0.3s;
    --spacing-unit: 8px;
    --error-color: #e53935;
    --success-color: #43a047;
    --warning-color: #fb8c00;
    --info-color: #039be5;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

/* 响应式字体大小 */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    font-family: 'Noto Serif SC', serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    color: #000;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* 自定义光标 */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    display: none;
}

@media (min-width: 1024px) {
    .cursor {
        display: block;
    }
}

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* 头部导航 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: calc(var(--spacing-unit) * 3) 0;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    background-color: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.visible {
    transform: translateY(0);
    opacity: 1;
}

header.scrolled {
    background-color: rgba(10, 14, 26, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: calc(var(--spacing-unit) * 2) 0;
}

header.visible.scrolled {
    background-color: rgba(10, 14, 26, 0.85);
}

.logo {
    margin-left: calc(var(--spacing-unit) * 3);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.logo a {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    margin-right: calc(var(--spacing-unit) * 3);
}

nav ul li {
    margin-left: calc(var(--spacing-unit) * 4);
}

nav ul li a {
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transition: width var(--transition-speed) ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin-right: calc(var(--spacing-unit) * 3);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed) ease;
}

@media (max-width: 768px) {
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        transition: right var(--transition-speed) ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: calc(var(--spacing-unit) * 2) 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

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

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

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

/* 主要内容区域 */
main {
    padding-top: 80px;
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

/* 滚动吸附功能 */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    height: 100%;
}

/* 每个部分占满视口高度 */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: calc(var(--spacing-unit) * 4) 0;
}

/* 首页部分特殊处理 */
#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主要内容部分调整 */
#main-content {
    min-height: 100vh;
    padding: calc(var(--spacing-unit) * 4) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-content .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

/* 其他部分的调整 */
#photography,
#articles,
#literature,
#philosophy,
#about,
#contact {
    min-height: 100vh;
    padding: calc(var(--spacing-unit) * 4) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#photography .container,
#articles .container,
#literature .container,
#philosophy .container,
#about .container,
#contact .container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

/* 滚动边界提示 */
.scroll-boundary-hint {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-boundary-hint.show {
    opacity: 1;
}

.scroll-boundary-hint.bottom {
    color: #007bff;
}

.scroll-boundary-hint.top {
    color: #28a745;
}

.section {
    padding: calc(var(--spacing-unit) * 10) 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}

/* 首页部分 */
#home {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.home-video {
    width: 100%;
    max-width: 800px;
    height: 450px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.main-video, .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-speed) ease;
    animation: fadeIn 1s ease-in-out;
    position: relative;
    z-index: 2;
}

.fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 当视频无法播放时显示备用图片 */
.video-error .fallback-image {
    opacity: 1;
}

.home-video:hover .main-video,
.home-video:hover .main-image {
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .home-video {
        max-width: 700px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .home-video {
        max-width: 100%;
        height: 350px;
    }
    
    .home-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .home-video {
        height: 250px;
    }
    
    .home-content h1 {
        font-size: 2.2rem;
    }
}

.home-video-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.home-content p {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.scroll-hint {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 5);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-hint svg {
    margin-top: var(--spacing-unit);
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

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

/* 艺术字样式 */
.artistic-text {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
    color: rgba(0, 0, 0, 0.9);
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1);
    animation: playfulEntry 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    background: linear-gradient(45deg, transparent, transparent);
    background-clip: text;
    -webkit-background-clip: text;
}

.left-text {
    left: 5%;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    animation-delay: 0.3s;
    --start-x: -100vw;
    --bounce-direction: 1;
    transform-origin: center center;
}

.left-text::after {
    content: '💪';
    position: absolute;
    top: -0.5em;
    right: -0.8em;
    font-size: 0.6em;
    opacity: 0;
    animation: emojiPop 0.5s ease-out 1.5s forwards;
}

.right-text {
    right: 5%;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    animation-delay: 0.8s;
    --start-x: 100vw;
    --bounce-direction: -1;
    transform-origin: center center;
}

.right-text::after {
    content: '🌟';
    position: absolute;
    top: -0.5em;
    left: -0.8em;
    font-size: 0.6em;
    opacity: 0;
    animation: emojiPop 0.5s ease-out 2s forwards;
}

@keyframes playfulEntry {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(var(--start-x, 0)) scale(0.1) rotate(calc(var(--bounce-direction, 1) * 45deg));
    }
    12% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1.3) rotate(calc(var(--bounce-direction, 1) * -8deg));
    }
    18% {
        transform: translateY(-50%) translateX(0) scale(0.8) rotate(calc(var(--bounce-direction, 1) * 5deg));
    }
    25% {
        transform: translateY(-50%) translateX(0) scale(1.1) rotate(calc(var(--bounce-direction, 1) * -3deg));
    }
    32% {
        transform: translateY(-50%) translateX(0) scale(0.95) rotate(calc(var(--bounce-direction, 1) * 2deg));
    }
    40% {
        transform: translateY(-50%) translateX(0) scale(1.02) rotate(calc(var(--bounce-direction, 1) * -1deg));
    }
    48% {
        transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
    }
    52% {
        transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }
    56% {
        transform: translateY(-50%) translateX(0) scale(1.01) rotate(calc(var(--bounce-direction, 1) * 0.5deg));
        filter: hue-rotate(5deg) brightness(1.05);
    }
    60% {
        transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }
    80% {
        opacity: 1;
        transform: translateY(-50%) translateX(0) scale(1) rotate(0deg);
    }
    88% {
        opacity: 0.8;
        transform: translateY(-50%) translateX(0) scale(0.95) rotate(calc(var(--bounce-direction, 1) * 2deg));
    }
    94% {
        opacity: 0.4;
        transform: translateY(-50%) translateX(0) scale(0.8) rotate(calc(var(--bounce-direction, 1) * -3deg));
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(calc(var(--start-x, 0) * 0.3)) scale(0.3) rotate(calc(var(--bounce-direction, 1) * 15deg));
    }
}

/* 俏皮emoji动画 */
@keyframes emojiPop {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
    70% {
        transform: scale(0.8) rotate(270deg);
    }
    85% {
        transform: scale(1.1) rotate(340deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(360deg);
    }
}

/* 移动端艺术字适配 */
@media (max-width: 768px) {
    .artistic-text {
        font-size: 2.2rem;
        font-weight: 500;
    }
    
    .left-text {
        left: 3%;
    }
    
    .right-text {
        right: 3%;
    }
}

@media (max-width: 480px) {
    .artistic-text {
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: 0.1em;
    }
    
    .left-text {
        left: 2%;
    }
    
    .right-text {
        right: 2%;
    }
    
    .left-text::after,
    .right-text::after {
        font-size: 0.5em;
        top: -0.3em;
    }
    
    .left-text::after {
        right: -0.5em;
    }
    
    .right-text::after {
        left: -0.5em;
    }
}

/* 小红书部分 */
.xiaohongshu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.xiaohongshu-item {
    transition: transform var(--transition-speed) ease;
}

.xiaohongshu-item:hover {
    transform: translateY(-5px);
}

.xiaohongshu-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--transition-speed) ease;
}

.xiaohongshu-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.xiaohongshu-image {
    height: 200px;
    overflow: hidden;
}

.xiaohongshu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.xiaohongshu-content {
    padding: calc(var(--spacing-unit) * 3);
}

.xiaohongshu-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.xiaohongshu-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 3);
}

/* 视频特色样式 */
.video-feature {
    position: relative;
    cursor: pointer;
}

.video-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.video-feature:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
}

.video-feature:hover .video-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-feature:hover .play-button {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.video-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.video-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.video-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 12px;
    opacity: 0.5;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 1200px;
}

.video-modal video {
    width: 100%;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
}

/* 文章卡片样式 */
.article-badge {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.article-meta {
    display: flex;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.article-meta span:not(:last-child)::after {
    content: '•';
    margin-left: 12px;
    opacity: 0.5;
}

.clickable-article {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-article:hover {
    transform: translateY(-2px);
}

/* 摄影作品部分 */
.photography-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.category {
    background: none;
    border: none;
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
    margin: 0 calc(var(--spacing-unit));
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.category::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease, left var(--transition-speed) ease;
}

.category:hover::after,
.category.active::after {
    width: 100%;
    left: 0;
}

.photography-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex: 1;
    align-content: start;
}

.photography-item {
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
}

.photography-item.hidden {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}



.photography-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
}

.photography-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.photography-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(var(--spacing-unit) * 3);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

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

.photography-image:hover .photography-overlay {
    opacity: 1;
}

.photography-overlay h3 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit));
}

.photography-overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* 文章部分 */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex: 1;
}

.article-item {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 可点击文章项样式 */
.clickable-article {
    cursor: pointer;
}

.clickable-article:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.clickable-article:active {
    transform: translateY(-3px) scale(1.01);
}

.article-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    background-color: var(--primary-color);
    color: #fff;
    padding: calc(var(--spacing-unit) * 2);
    text-align: center;
}

.article-date .day {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
}

.article-date .month {
    font-size: 0.9rem;
    margin: calc(var(--spacing-unit) * 0.5) 0;
}

.article-date .year {
    font-size: 0.8rem;
    opacity: 0.7;
}

.article-content {
    padding: calc(var(--spacing-unit) * 3);
    flex: 1;
}

.article-content h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

@media (max-width: 576px) {
    .article-item {
        flex-direction: column;
    }

    .article-date {
        width: 100%;
        flex-direction: row;
        padding: calc(var(--spacing-unit));
    }

    .article-date .day,
    .article-date .month,
    .article-date .year {
        margin: 0 calc(var(--spacing-unit) * 0.5);
    }
}

/* 关于我部分 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--spacing-unit) * 4);
    align-items: center;
    flex: 1;
}

.about-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.about-buttons {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 4);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* 联系方式部分 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    flex: 1;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.social-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    transition: background-color var(--transition-speed) ease;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.social-link:hover svg {
    fill: #fff;
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    transition: fill var(--transition-speed) ease;
}

.contact-form {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.btn:hover {
    background-color: #000;
    color: #fff;
}

.btn-outline {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 3);
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.more-link {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

/* 文学作品部分 */
.literature-category {
    margin-bottom: calc(var(--spacing-unit) * 12);
}

.category-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: calc(var(--spacing-unit) * 4);
    text-align: center;
    color: var(--primary-color);
}

.literature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    flex: 1;
    align-content: start;
}

.literature-item {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.literature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.literature-item h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.literature-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.btn-small {
    display: inline-block;
    padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    text-decoration: none;
}

.btn-small:hover {
    background-color: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .literature-grid {
        grid-template-columns: 1fr;
    }
}

/* 哲学思考部分 */
#philosophy {
    padding-top: calc(var(--spacing-unit) * 8);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    flex: 1;
    align-content: start;
}

.philosophy-item {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border-left: 4px solid var(--primary-color);
}

.philosophy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.philosophy-item h4 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

.philosophy-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* 页脚 */
footer {
    background-color: rgba(10, 14, 26, 0.85);
    padding: calc(var(--spacing-unit) * 6) 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 10px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.keyboard-shortcuts {
    font-size: 0.7rem;
    color: var(--secondary-color);
    margin-top: calc(var(--spacing-unit));
    opacity: 0.7;
} 

/* 主要内容集合部分 */
.content-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: calc(var(--spacing-unit) * 4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.content-nav-item {
    background: none;
    border: none;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 3);
    margin: 0 calc(var(--spacing-unit));
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed) ease;
    color: var(--secondary-color);
    border-radius: 8px 8px 0 0;
}

.content-nav-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.content-nav-item:hover,
.content-nav-item.active {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.content-nav-item:hover::after,
.content-nav-item.active::after {
    width: 100%;
}

.content-panel {
    display: none;
    flex: 1;
    min-height: 0;
    animation: fadeIn 0.3s ease-in-out;
    background-color: var(--background-color);
    padding: 15px;
}

.content-panel.active {
    display: flex;
    flex-direction: column;
}

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

/* 精选推荐样式 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
    flex: 1;
    align-content: start;
}

.featured-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 200px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.featured-content {
    padding: calc(var(--spacing-unit) * 3);
}

.featured-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: #000;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.featured-content p {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.7);
}

/* 摄影作品预览样式 */
.photography-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.photo-preview-item {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-speed) ease;
}

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

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 文章预览样式 */
.articles-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.article-preview-item {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.article-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-preview-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.article-preview-item h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-preview-item h4 a:hover {
    text-decoration: underline;
}

.article-preview-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* 文学作品预览样式 */
.literature-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.literature-preview-item {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.literature-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.literature-preview-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.literature-preview-item h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.literature-preview-item h4 a:hover {
    text-decoration: underline;
}

.literature-preview-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-style: italic;
}

.literature-meta {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.literature-meta span {
    font-size: 0.8rem;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
    padding: calc(var(--spacing-unit) * 0.5) calc(var(--spacing-unit));
    border-radius: 4px;
}

/* 哲学思考预览样式 */
.philosophy-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.philosophy-preview-item {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 4);
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.philosophy-preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.philosophy-preview-item h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.philosophy-preview-item h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.philosophy-preview-item h4 a:hover {
    text-decoration: underline;
}

.philosophy-preview-item p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* 关于我预览样式 */
.about-preview {
    max-width: 800px;
    margin: 0 auto calc(var(--spacing-unit) * 4);
}

.about-preview-content {
    background-color: #fff;
    padding: calc(var(--spacing-unit) * 6);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.about-preview-content p {
    font-size: 1rem;
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.about-preview-content p:last-child {
    margin-bottom: 0;
}

/* 更多按钮样式 */
.content-more {
    text-align: center;
    margin-top: calc(var(--spacing-unit) * 4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    
    .content-nav {
        flex-direction: column;
        align-items: center;
        margin-bottom: calc(var(--spacing-unit) * 3);
    }
    
    .content-nav-item {
        margin-bottom: calc(var(--spacing-unit));
        width: 100%;
        text-align: center;
    }
    
    .featured-grid,
    .photography-preview-grid,
    .articles-preview,
    .literature-preview,
    .philosophy-preview,
    .photography-grid,
    .literature-grid,
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .about-preview-content {
        padding: calc(var(--spacing-unit) * 3);
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: calc(var(--spacing-unit) * 3);
    }
} 

/* 滚动指示器已移除 */

/* 独立页面样式 */
.gallery-section,
.literature-section {
    min-height: 100vh;
    padding: 2rem 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.back-link {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-image {
        height: 200px;
    }
} 

/* 浏览器兼容性修复 */
/* 修复 Safari 中的滚动行为 */
@supports (-webkit-overflow-scrolling: touch) {
    html, body {
        -webkit-overflow-scrolling: touch;
    }
}

/* 修复 IE 中的 flexbox 问题 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .container {
        display: block;
    }
    
    .flex-container {
        display: block;
    }
}

/* 修复 Firefox 中的字体渲染问题 */
@-moz-document url-prefix() {
    body {
        font-weight: lighter;
    }
}

/* 增强移动端体验 */
@media (hover: none) and (pointer: coarse) {
    /* 移动设备上增大点击区域 */
    nav ul li a,
    .btn,
    .content-nav-item,
    .category {
        padding: 12px !important;
        margin: 8px !important;
    }
    
    /* 移动设备上隐藏鼠标悬停效果 */
    .cursor {
        display: none !important;
    }
}

/* 适配小型移动设备 */
@media (max-width: 360px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 1.5);
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .home-content h1 {
        font-size: 1.8rem;
    }
    
    .article-item,
    .featured-item,
    .photography-item,
    .literature-item,
    .philosophy-item {
        margin-bottom: 1rem;
    }
}

/* 适配平板设备 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .featured-grid,
    .photography-grid,
    .literature-grid,
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
}

/* 打印样式优化 */
@media print {
    /* 基本打印设置 */
    @page {
        margin: 1cm;
        size: A4 portrait;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000 !important;
        background: #fff !important;
        font-family: serif !important;
    }
    
    /* 隐藏不需要打印的元素 */
    header,
    footer,
    .menu-toggle,
    .scroll-hint,
    .video-feature,
    .play-button,
    .btn,
    .btn-outline,
    .btn-small,
    .loader,
    .cursor,
    nav,
    .keyboard-shortcuts,
    .scroll-boundary-hint,
    .content-nav,
    .sr-only {
        display: none !important;
    }
    
    /* 确保内容可见 */
    .section,
    .container,
    .content-panel,
    .featured-grid,
    .photography-grid,
    .articles-list,
    .literature-grid,
    .philosophy-grid,
    .about-content {
        display: block !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* 链接处理 */
    a {
        text-decoration: underline;
        color: #000 !important;
    }
    
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
        font-style: italic;
    }
    
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
    
    /* 图片处理 */
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* 分页控制 */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    p, blockquote, ul, ol, dl, pre {
        page-break-inside: avoid;
    }
    
    .section {
        page-break-before: always;
    }
    
    .section:first-of-type {
        page-break-before: avoid;
    }
    
    /* 显示文章全文 */
    .article-content p {
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        display: block !important;
    }
    
    /* 优化表格打印 */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
    }
    
    table, th, td {
        border: 1px solid #000 !important;
    }
    
    th, td {
        padding: 8px !important;
        text-align: left !important;
    }
    
    /* 打印标题 */
    .section::before {
        content: "== " attr(id) " ==";
        display: block;
        text-align: center;
        font-size: 18pt;
        font-weight: bold;
        margin: 20px 0;
        text-transform: uppercase;
    }
    
    /* 打印页脚 */
    @page {
        @bottom-center {
            content: "第 " counter(page) " 页，共 " counter(pages) " 页";
            font-family: sans-serif;
            font-size: 10pt;
        }
    }
}

/* 适配深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #f0f0f0;
        --secondary-color: #aaa;
        --accent-color: #333;
        --text-color: #f0f0f0;
        --background-color: #121212;
    }
    
    img {
        opacity: 0.8;
    }
}

/* 适配高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #333;
        --accent-color: #fff;
        --text-color: #000;
        --background-color: #fff;
    }
    
    a, button {
        outline: 2px solid currentColor;
    }
}

/* 适配减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .home-content {
        padding: 1rem 0;
    }
    
    .home-video {
        height: 40vh;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    header {
        padding: calc(var(--spacing-unit) * 1.5) 0;
    }
} 

/* 表单错误样式 */
.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.2);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

.error-message {
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group input.error + .error-message,
.form-group textarea.error + .error-message {
    display: block;
}

/* 离线通知样式 */
.offline-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--warning-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    z-index: 9999;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    max-width: 90%;
}

.offline-notification.show {
    transform: translateX(-50%) translateY(0);
}

/* 设备特定样式 */
.is-mobile .menu-toggle {
    display: flex;
}

.is-mobile nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(10, 14, 26, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    transition: right var(--transition-speed) ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.is-mobile nav ul.active {
    right: 0;
}

.is-mobile nav ul li {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.is-mobile nav ul li a {
    font-size: 1.1rem;
}

/* iOS 特定修复 */
.is-ios {
    -webkit-text-size-adjust: 100%;
}

.is-ios input[type="text"],
.is-ios input[type="email"],
.is-ios textarea {
    font-size: 16px; /* 防止iOS上的输入缩放 */
}

/* Android 特定修复 */
.is-android .btn,
.is-android button {
    -webkit-tap-highlight-color: transparent;
}

/* Safari 特定修复 */
.is-safari .video-feature video {
    -webkit-backface-visibility: hidden;
}

/* IE 特定修复 */
.is-ie .container {
    display: block;
}

.is-ie .flex-container {
    display: block;
}

/* 在线/离线状态样式 */
.online .online-only {
    display: block;
}

.offline .online-only {
    display: none;
}

.online .offline-only {
    display: none;
}

.offline .offline-only {
    display: block;
}

/* 触摸设备优化 */
@media (hover: none) {
    /* 移除悬停效果，增加触摸反馈 */
    a:active,
    button:active,
    .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
    
    /* 增大触摸目标 */
    nav ul li {
        padding: 10px 0;
    }
    
    nav ul li a {
        padding: 10px;
    }
    
    .btn,
    .btn-outline,
    .btn-small {
        padding: 12px 24px;
    }
    
    .content-nav-item {
        padding: 12px 20px;
    }
}

/* 适配屏幕阅读器和辅助技术 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus-visible:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
} 