/* 渐进式交互主题 - 温暖橙色系 */
:root {
    --primary-color: #FF7A45;
    --secondary-color: #FF9A6C;
    --dark-color: #2A2A2A;
    --light-color: #FFF5F0;
    --text-color: #4A4A4A;
    --accent-color: #FF5A1F;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@supports (font-variation-settings: normal) {
    * {
        font-family: 'Inter var', -apple-system, BlinkMacSystemFont, sans-serif;
    }
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 渐进加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.progressive-load {
    opacity: 0;
    animation: fadeIn 0.6s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* 基础布局 */
.container {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
}

/* 3D浮动头部 */
header {
    background-color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(255, 122, 69, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform-style: preserve-3d;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

/* 动态导航 */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1001;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav ul li {
    position: relative;
}

nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

/* 主要内容区域 - 卡片堆叠效果 */
.main-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(255, 122, 69, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.main-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 122, 69, 0.15);
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* 渐进式网格布局 */
.article-flow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* 交互式卡片 */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 122, 69, 0.05);
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.article-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(255, 122, 69, 0.15);
}

.article-card:hover::before {
    opacity: 0.05;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .card-image {
    transform: scale(1.03);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    transition: var(--transition);
}

.article-card:hover .card-title {
    color: var(--accent-color);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 分类标签 - 气泡效果 */
.category-bubble {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--light-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.article-card:hover .category-bubble {
    background: var(--gradient);
    color: white;
}

/* 文章详情页 - 阅读焦点模式 */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 700;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    color: #777;
}

.article-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(255, 122, 69, 0.1);
    transition: var(--transition);
}

.article-image:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px rgba(255, 122, 69, 0.2);
}

.article-content {
    line-height: 1.9;
    font-size: 1.1rem;
}

.article-content p {
    margin-bottom: 1.8rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 分页导航 - 按钮悬停效果 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(255, 122, 69, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 122, 69, 0.2);
}

/* 友情链接 - 波浪效果 */
.friend-links {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.friend-links::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23FF7A45'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,72,40.44,10,79.34,6.67,120.56-2.15C671.23,42.89,763.8,22.1,839.14,21.56c121.64-2.25,245.34,29.25,360.86,76.62V0Z' fill='%23FF9A6C'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.1;
}

.friend-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.friend-links h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.friend-links-container a {
    padding: 0.6rem 1.2rem;
    background: var(--light-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.friend-links-container a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

/* 页脚 - 动态波浪分割线 */
footer {
    background: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='white'/%3E%3C/svg%3E");
    background-size: cover;
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 5rem 2rem;
        z-index: 1000;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        gap: 1rem;
    }
    
    .pagination {
        flex-direction: column;
        align-items: center;
    }
}

/* 加载进度条 */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    z-index: 1001;
    transition: width 0.4s ease;
}