/* ========================================
   WPS Theme - 全新设计
   ======================================== */

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0ea5e9;
    --accent-color: #06b6d4;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(37, 99, 235, 0.15);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 16px;
}

/* ========================================
   头部导航
   ======================================== */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .head {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .head .nav{
    display: flex;
    flex: 1;
    justify-content: flex-end;
    padding-right: 100px;
}

header .logo img {
    height: 40px;
    width: auto;
}

header .nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

header .nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

header .nav a:hover {
    color: var(--primary-color);
}

header .nav a:hover::after {
    width: 100%;
}

header .nav-down a {
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: var(--transition);
}

header .nav-down a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 移动端菜单 */
#wps-menu-btn {
    display: none;
    cursor: pointer;
}

/* ========================================
   轮播图
   ======================================== */
.hero-slider {
    width: 100%;
    background: var(--bg-white);
    margin-bottom: 2rem;
}

.slider-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 600px;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 0;
}

.slider-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* 为默认轮播图添加背景 */
.slider-item img[src*="floor"],
.slider-item img[src*="Ai-"],
.slider-item img[src*="down-bg"] {
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.slider-caption {
    position: absolute;
    bottom: 100px;
    left: 80px;
    max-width: 650px;
    color: var(--bg-white);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    z-index: 2;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slider-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.slider-caption p {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
}

.slider-btn {
    display: inline-block;
    padding: 1.125rem 3rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.slider-btn:hover {
    background: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--bg-white);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--bg-white);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev:active,
.slider-next:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

.slider-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--bg-white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

/* ========================================
   内容布局
   ======================================== */
.main-content {
    background: var(--bg-light);
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    gap: 2rem;
}

.main-column {
    flex: 1;
}

/* ========================================
   区块标题
   ======================================== */
.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header p {
    color: var(--text-gray);
    margin-top: 0.5rem;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

/* ========================================
   核心优势
   ======================================== */
.core-advantages {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.advantage-card p {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   WPS 学堂
   ======================================== */
.wps-academy {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
}

.video-item {
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-3px);
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 75%;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.video-item:hover .play-icon {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--bg-white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.video-item h4 {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-item h4 a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item h4 a:hover {
    color: var(--primary-color);
}

/* ========================================
   WPS 文章
   ======================================== */
.wps-articles {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.article-thumb {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-thumb img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-gray);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   右侧浮动列表
   ======================================== */
.sidebar-float {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.top-list {
    list-style: none;
}

.top-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.top-item:last-child {
    border-bottom: none;
}

.top-item:hover {
    background: var(--bg-light);
    padding-left: 0.5rem;
    margin-left: -0.5rem;
    padding-right: 0.5rem;
    margin-right: -0.5rem;
    border-radius: var(--radius-sm);
}

.rank {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 3px;
}

.rank-hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: var(--bg-white);
}

.rank-normal {
    background: var(--bg-light);
    color: var(--text-gray);
}

.top-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.top-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-info {
    flex: 1;
    min-width: 0;
}

.top-title {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-title:hover {
    color: var(--primary-color);
}

.top-views {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========================================
   页脚
   ======================================== */
footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--bg-white);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary-color);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .sidebar-float {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-float {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .sidebar-widget {
        position: static;
    }
    
    /* 轮播图响应式 */
    .slider-container {
        height: 500px;
    }
    
    .slider-caption {
        bottom: 60px;
        left: 40px;
        max-width: 500px;
    }
    
    .slider-caption h2 {
        font-size: 2.5rem;
    }
    
    .slider-caption p {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    #wps-menu-btn {
        display: block;
    }
    
    header .nav {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        z-index: 9999;
    }
    
    header .nav.active {
        left: 0;
    }
    
    header .nav ul {
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 0;
    }
    
    header .nav ul li {
        border-bottom: 1px solid var(--border-color);
    }
    
    header .nav a {
        display: block;
        padding: 1rem 0;
    }
    
    /* 轮播图响应式 */
    .slider-container {
        height: 400px;
        border-radius: 0;
    }
    
    .slider-caption {
        bottom: 40px;
        left: 30px;
        right: 30px;
        max-width: none;
    }
    
    .slider-caption h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .slider-caption p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-float {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .core-advantages,
    .wps-academy,
    .wps-articles {
        padding: 1.5rem;
    }
    
    /* 轮播图移动端优化 */
    .slider-container {
        height: 350px;
    }
    
    .slider-caption {
        left: 20px;
        right: 20px;
        bottom: 30px;
    }
    
    .slider-caption h2 {
        font-size: 1.375rem;
        margin-bottom: 0.5rem;
    }
    
    .slider-caption p {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .slider-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .slider-prev,
    .slider-next {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card {
        flex-direction: column;
    }
    
    .article-thumb {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   懒加载效果
   ======================================== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

img.lazy.loaded {
    opacity: 1;
}


/* ========================================
   导航下拉菜单
   ======================================== */
.menu-item {
    position: relative;
}

.menu-item.has-dropdown .menu-link {
    cursor: default;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    display: block;
}

.dropdown-menu {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1000;
    list-style: none;
}

.menu-item.has-dropdown:hover .dropdown-menu {
    display: block !important;
}

.dropdown-menu li {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* ========================================
   底部 CTA 区域
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    margin-top: 3rem;
    color: var(--bg-white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--bg-white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   分类列表页（Archive）
   ======================================== */
.archive-page {
    background: var(--bg-light);
    min-height: 100vh;
}

.archive-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.archive-header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.archive-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.archive-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

/* 视频网格 - 归档页 */
.video-grid-archive {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.video-grid-archive .video-item {
    transition: var(--transition);
}

.video-grid-archive .video-item:hover {
    transform: translateY(-5px);
}

.video-info {
    padding: 1rem 0;
}

.video-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.video-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-info h3 a:hover {
    color: var(--primary-color);
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 文章列表 - 归档页 */
.articles-list-archive {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-card-large {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-white);
}

.article-card-large:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.article-thumb-large {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-thumb-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card-large:hover .article-thumb-large img {
    transform: scale(1.05);
}

.article-content-large {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content-large h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-content-large h2 a {
    color: var(--text-dark);
    text-decoration: none;
}

.article-content-large h2 a:hover {
    color: var(--primary-color);
}

.article-excerpt-large {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex: 1;
}

.article-meta-large {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-hover);
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: var(--text-gray);
    font-size: 1.125rem;
}

/* ========================================
   文章详情页（Single）
   ======================================== */
.single-page {
    background: var(--bg-light);
    min-height: 100vh;
}

.single-article {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.article-header {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-meta-bar {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.meta-item svg {
    color: var(--primary-color);
}

.video-player {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player video {
    width: 100%;
    height: auto;
    display: block;
}

.video-placeholder {
    position: relative;
    cursor: pointer;
}

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

.play-icon-large {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.featured-image {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.content h2,
.content h3,
.content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.content h2 {
    font-size: 1.875rem;
}

.content h3 {
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 1.5rem;
}

.content ul,
.content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content li {
    margin-bottom: 0.5rem;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.article-tags svg {
    color: var(--primary-color);
}

.article-tags a {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
}

.article-tags a:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.share-label {
    font-weight: 600;
    color: var(--text-dark);
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: 50%;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.share-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.article-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.nav-item {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-item a:hover {
    color: var(--primary-color);
}

.related-posts {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
}

.related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-item {
    transition: var(--transition);
}

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

.related-thumb {
    display: block;
    width: 100%;
    padding-bottom: 66.67%;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.related-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-item h4 a {
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item h4 a:hover {
    color: var(--primary-color);
}

.related-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ========================================
   响应式 - 归档和详情页
   ======================================== */
@media (max-width: 992px) {
    .video-grid-archive {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .article-card-large {
        flex-direction: column;
    }
    
    .article-thumb-large {
        width: 100%;
        height: 250px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid-archive {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-meta-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    
    .menu-item.has-dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (max-width: 480px) {
    .video-grid-archive {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-header,
    .article-body,
    .related-posts {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
}


/* ========================================
   页脚样式增强
   ======================================== */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #cbd5e1;
    padding: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h4 {
    color: var(--bg-white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.footer-contact .contact-info {
    margin-bottom: 1.5rem;
}

.footer-contact .contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-contact .contact-info svg {
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

.links-list a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.copyright {
    font-size: 0.875rem;
    color: #94a3b8;
}

.copyright p {
    margin: 0.25rem 0;
}

.copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--secondary-color);
}

.separator {
    margin: 0 0.5rem;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-badges img {
    opacity: 0.7;
    transition: var(--transition);
}

.footer-badges img:hover {
    opacity: 1;
}

/* 关闭按钮样式 */
.close-menu {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 2rem;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-menu:hover {
    background: var(--primary-hover);
    transform: rotate(90deg);
}

/* ========================================
   页脚响应式
   ======================================== */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .links-list {
        justify-content: center;
    }
    
    .close-menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
}
