/**
 * 雅致青绿 - 中国风首页样式
 * 柔和无边框设计
 */

/* ===== 基础布局 ===== */
.elegant-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* 硬件加速优化 */
.layout-left,
.layout-right,
.elegant-bg-decoration {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* 固定定位元素优化 - 减少重绘 */
.layout-left,
.layout-right {
    contain: layout style paint;
}

/* 文章卡片滚动优化 */
.article-card {
    contain: layout style;
}

/* 桌面端显示 */
.desktop-layout {
    display: flex;
    min-height: 100vh;
}

/* 移动端隐藏 */
.mobile-layout {
    display: none;
}

/* ===== 弥散光背景装饰 - 静态渐变（优化性能） ===== */
.elegant-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.static-gradient-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(107, 144, 128, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(138, 168, 148, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(128, 158, 138, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* ===== 左侧区域：品牌 + 导航 - 固定定位 ===== */
.layout-left {
    width: 280px;
    min-width: 280px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    /* 毛玻璃效果 */
    background: rgba(250, 251, 248, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 左侧底部渐变遮罩 - 防止页脚灰色透上来 */
.layout-left::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(250, 251, 248, 0.1) 30%,
        rgba(250, 251, 248, 0.45) 70%,
        rgba(250, 251, 248, 0.55) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* 左侧细线分隔 - 更淡 */
.layout-left::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(107, 144, 128, 0.08) 20%,
        rgba(107, 144, 128, 0.08) 80%,
        transparent 100%
    );
}

/* 品牌区域 */
.brand-section {
    position: relative;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.vertical-line {
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
    opacity: 0.5;
}

.subtitle-text {
    font-size: 0.9rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
    font-weight: 300;
}

.main-title {
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 18px;
    line-height: 1.2;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.02em;
    font-weight: 300;
    margin-bottom: 30px;
}

.decoration-pattern {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pattern-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(107, 144, 128, 0.15), transparent);
}

.pattern-dot {
    color: rgba(107, 144, 128, 0.2);
    font-size: 0.7rem;
}

/* 侧边导航 - 无边框 */
.side-nav {
    margin-top: auto;
    padding-top: 35px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    border-bottom: none;
    position: relative;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--accent-color);
    opacity: 0.5;
    transition: height 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
    padding-left: 5px;
}

.nav-item:hover::before,
.nav-item.active::before {
    height: 16px;
}

.nav-icon {
    font-size: 0.5rem;
    opacity: 0.4;
    color: var(--accent-color);
}

/* ===== 中间区域：文章列表 ===== */
.layout-center {
    flex: 1;
    padding: 60px 80px;
    max-width: 900px;
    margin-left: 280px; /* 为固定侧边栏留出空间 */
    min-height: 100vh;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 35px;
}

.header-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(107, 144, 128, 0.1), transparent);
}

.header-line:last-child {
    background: linear-gradient(90deg, transparent, rgba(107, 144, 128, 0.1));
}

.header-text {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    font-weight: 300;
}

/* 文章列表 - 无卡片边框 */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-card {
    display: flex;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(107, 144, 128, 0.06);
    background: transparent;
    border-left: none;
    border-right: none;
    border-top: none;
    transition: all 0.4s ease;
}

.article-card:first-child {
    padding-top: 0;
}

.article-card:last-child {
    border-bottom: none;
}

.article-card:hover {
    background: transparent;
    border-color: rgba(107, 144, 128, 0.1);
    box-shadow: none;
    transform: translateX(3px);
}

.card-image-wrapper {
    width: 180px;
    min-width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 4px !important;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-card:hover .card-image {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.05));
    pointer-events: none;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 5px 0;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.meta-divider {
    opacity: 0.3;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.card-title a {
    color: var(--text-primary);
    position: relative;
}

.card-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.card-title a:hover::after {
    width: 100%;
}

.card-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    flex: 1;
    font-weight: 300;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 0.08em;
    align-self: flex-start;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.card-link:hover {
    opacity: 1;
}

.card-link svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.card-link:hover svg {
    transform: translate(2px, -2px);
}

/* 分页 - 极简 - 使用全新class名避免与style.css冲突 */
.elegant-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.elegant-pagination .elegant-page-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.elegant-pagination .elegant-page-nav li {
    display: flex;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 6px;
    overflow: hidden;
}

/* 分页按钮基础样式 */
.elegant-pagination .elegant-page-nav a,
.elegant-pagination .elegant-page-nav span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(107, 144, 128, 0.15);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0 10px;
    box-sizing: border-box;
    flex-shrink: 0;
    text-decoration: none;
}

/* 上一页/下一页按钮 */
.elegant-pagination .elegant-page-nav .prev,
.elegant-pagination .elegant-page-nav .next {
    min-width: 50px;
    padding: 0 12px;
    font-weight: 500;
}

/* 悬停效果 */
.elegant-pagination .elegant-page-nav a:hover {
    background: rgba(107, 144, 128, 0.15);
    color: var(--accent-color);
    transform: translateY(-1px);
}

/* 当前页样式 */
.elegant-pagination .elegant-page-nav .current {
    background: rgba(107, 144, 128, 0.2);
    color: var(--accent-color);
    font-weight: 500;
    border-color: rgba(107, 144, 128, 0.25);
    overflow: hidden;
    position: relative;
}

/* 省略号样式 */
.elegant-pagination .elegant-page-nav span:not(.current):not(.prev):not(.next) {
    background: transparent;
    cursor: default;
    min-width: 30px;
    padding: 0;
}

/* ===== 右侧区域：装饰 - 固定定位 ===== */
.layout-right {
    width: 180px;
    min-width: 120px;
    padding: 60px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    z-index: 100;
    /* 毛玻璃效果 */
    background: rgba(250, 251, 248, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 右侧底部渐变遮罩 - 防止页脚灰色透上来 */
.layout-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(250, 251, 248, 0.1) 30%,
        rgba(250, 251, 248, 0.45) 70%,
        rgba(250, 251, 248, 0.55) 100%
    );
    pointer-events: none;
    z-index: -1;
}

/* 右侧细线分隔 - 更淡 */
.layout-right::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    width: 1px;
    height: 80%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(107, 144, 128, 0.08) 20%,
        rgba(107, 144, 128, 0.08) 80%,
        transparent 100%
    );
}

.right-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.6;
}

.right-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.deco-line.vertical {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, rgba(107, 144, 128, 0.1), transparent);
}

.deco-square {
    width: 6px;
    height: 6px;
    background: rgba(107, 144, 128, 0.2);
    transform: rotate(45deg);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 100px 24px;
}

.empty-icon {
    font-size: 2.5rem;
    color: rgba(107, 144, 128, 0.2);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* ===== 移动端布局 - 大圆角设计 ===== */
@media (max-width: 1024px) {
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: block;
    }
    
    /* 移动端头部 */
    .mobile-hero {
        padding: 100px 24px 50px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.5em;
        color: var(--text-muted);
        margin-bottom: 12px;
        font-weight: 300;
    }
    
    .hero-title {
        font-size: 1.8rem;
        font-weight: 400;
        letter-spacing: 0.2em;
        color: var(--text-primary);
        margin-bottom: 16px;
    }
    
    .hero-desc {
        font-size: 0.9rem;
        color: var(--text-secondary);
        letter-spacing: 0.1em;
        font-weight: 300;
        line-height: 1.8;
    }
    
    .hero-divider {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-top: 30px;
    }
    
    .divider-line {
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(107, 144, 128, 0.15), transparent);
    }
    
    .divider-dot {
        color: rgba(107, 144, 128, 0.2);
        font-size: 0.5rem;
    }
    
    /* 移动端文章列表 - 大圆角卡片 */
    .mobile-main {
        padding: 0 20px 40px;
    }
    
    .mobile-articles {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .mobile-article-card {
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(107, 144, 128, 0.08);
        border-radius: 20px !important; /* 大圆角 */
        overflow: hidden;
        padding: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    }
    
    .mobile-article-card:hover {
        border-color: rgba(107, 144, 128, 0.15);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
        transform: translateY(-2px);
    }
    
    .mobile-thumb-link {
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: 20px 20px 0 0 !important;
    }
    
    .mobile-thumb-link img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .mobile-card-content {
        padding: 24px;
    }
    
    .mobile-meta {
        display: flex;
        gap: 12px;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-bottom: 10px;
    }
    
    .mobile-title {
        font-size: 1.15rem;
        font-weight: 500;
        line-height: 1.5;
        margin-bottom: 10px;
    }
    
    .mobile-title a {
        color: var(--text-primary);
    }
    
    .mobile-excerpt {
        font-size: 0.85rem;
        color: var(--text-secondary);
        line-height: 1.8;
        margin-bottom: 16px;
        font-weight: 300;
    }
    
    /* 移动端简洁分页 */
    .mobile-simple-pagination {
        margin-top: 32px;
        margin-bottom: 20px;
    }
    
    .mobile-page-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mobile-page-nav li {
        display: flex;
        margin: 0;
        padding: 0;
        background: transparent !important;
        border: none !important;
        border-radius: 16px !important;
        overflow: hidden;
    }
    
    .mobile-page-nav a,
    .mobile-page-nav span {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 12px;
        background: rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(107, 144, 128, 0.12);
        border-radius: 16px !important;
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        position: relative;
        z-index: 1;
    }
    
    .mobile-page-nav a:hover {
        background: rgba(107, 144, 128, 0.15);
        border-color: rgba(107, 144, 128, 0.2);
        color: var(--accent-color);
        transform: scale(1.05);
    }
    
    .mobile-page-nav .current {
        background: linear-gradient(135deg, rgba(107, 144, 128, 0.2), rgba(107, 144, 128, 0.1));
        border-color: rgba(107, 144, 128, 0.25);
        color: var(--accent-color);
        font-weight: 600;
        overflow: hidden;
    }
    
    .mobile-page-nav .prev,
    .mobile-page-nav .next {
        min-width: 50px;
        font-size: 1.2rem;
    }
    
    /* 隐藏原有的桌面端分页 */
    @media (max-width: 768px) {
        .elegant-pagination {
            display: none !important;
        }
    }
    
    .mobile-readmore {
        font-size: 0.8rem;
        color: var(--accent-color);
        letter-spacing: 0.05em;
        opacity: 0.8;
    }
    
    /* 移动端弥散光调整 - 静态渐变 */
    .static-gradient-bg {
        background: 
            radial-gradient(circle at 50% 30%, rgba(107, 144, 128, 0.06) 0%, transparent 60%),
            radial-gradient(circle at 50% 70%, rgba(138, 168, 148, 0.05) 0%, transparent 60%);
    }
    
    .sphere-1 { width: 350px; height: 350px; }
    .sphere-2 { width: 280px; height: 280px; }
    .sphere-3 { width: 220px; height: 220px; }
    .sphere-4 { width: 300px; height: 300px; }
}

/* ===== 雅致青绿强制浅色模式 ===== */
/* 删除暗色模式适配，确保始终使用浅色风格 */
