/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========== 英雄轮播滑块 ========== */
.hero-slider-section {
    background-color: #1a1a1a;
    padding: 40px 0;
}

.hero-slider-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #2a2a2a;
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    display: flex;
    align-items: stretch;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* 左侧：图片 */
.hero-slide-left {
    flex: 0 0 55%;
    position: relative;
    overflow: hidden;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧：内容 */
.hero-slide-right {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 60px;
}

.hero-slide-content {
    width: 100%;
}

.hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--category-color);
    background-color: var(--category-bg);
}

.hero-author {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.hero-author strong {
    color: rgba(255, 255, 255, 0.9);
}

.hero-slide-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-slide-title a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.hero-slide-title a:hover {
    color: #ff4757;
}

.hero-slide-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* 轮播控制 */
.hero-slider-controls {
    position: absolute;
    bottom: 40px;
    right: 60px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-slider-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #ffffff;
}

.hero-slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.hero-slider-btn:active {
    transform: scale(0.95);
}

/* 分页指示器 */
.hero-slider-pagination {
    display: flex;
    gap: 12px;
}

.hero-pagination-bullet {
    position: relative;
    width: 60px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.hero-pagination-bullet .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #ff4757;
    transition: width 0.1s linear;
}

.hero-pagination-bullet.active .progress-bar {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero-slide-left {
        flex: 0 0 50%;
    }
    
    .hero-slide-right {
        flex: 0 0 50%;
        padding: 40px;
    }
    
    .hero-slide-title {
        font-size: 28px;
    }
    
    .hero-slide-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: auto;
        min-height: 600px;
    }
    
    .hero-slide {
        flex-direction: column;
    }
    
    .hero-slide-left {
        flex: 0 0 auto;
        height: 300px;
    }
    
    .hero-slide-right {
        flex: 1;
        padding: 30px;
    }
    
    .hero-slide-title {
        font-size: 24px;
    }
    
    .hero-slide-excerpt {
        font-size: 14px;
    }
    
    /* 移动端：将控制按钮移到描述下方，居中显示 */
    .hero-slider-controls {
        position: static;
        justify-content: center;
        margin: 20px 0;
        gap: 12px;
    }
    
    .hero-slide-right {
        display: flex;
        flex-direction: column;
    }
    
    .hero-slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .hero-pagination-bullet {
        width: 40px;
    }
}

/* ========== 面包屑导航 ========== */
.cs-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.cs-breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.cs-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.cs-breadcrumbs a:hover {
    color: #ff4757;
}

.cs-separator::before {
    content: "›";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb_last {
    color: #ffffff;
}

/* 浅色主题面包屑 */
body[data-theme="light"] .cs-breadcrumbs {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .cs-breadcrumbs a {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .cs-breadcrumbs a:hover {
    color: #ff4757;
}

body[data-theme="light"] .cs-separator::before {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .breadcrumb_last {
    color: #1a1a1a;
}

/* 面包屑响应式 */
@media (max-width: 768px) {
    .cs-breadcrumbs {
        padding: 15px 0;
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cs-separator::before {
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .cs-breadcrumbs {
        font-size: 12px;
    }
}

/* ========== 顶部栏样式 - 100%宽度 ========== */
.header-topbar {
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.header-topbar-inner {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 顶部栏列布局 */
.header-col {
    display: flex;
    align-items: center;
}

.header-col-left {
    flex: 1;
    justify-content: flex-start;
}

.header-col-center {
    flex: 0 0 auto;
}

.header-col-right {
    flex: 1;
    justify-content: flex-end;
}

/* 社交媒体图标 */
.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link svg {
    display: block;
}

/* Logo */
.logo a {
    display: inline-block;
}

.logo img {
    display: block;
    height: 52px;
    width: auto;
}

/* Logo 样式 */
.logo img {
    display: block;
}

/* Buy Sugar 按钮 */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* ========== 主导航栏样式 - 1288px宽度 ========== */
.header-main {
    width: 100%;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* 汉堡菜单按钮 */
.burger-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.burger-toggle:hover {
    opacity: 0.7;
}

/* 主导航菜单 */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.menu-item a:hover {
    color: #ff4757;
}

.menu-item a svg {
    width: 10px;
    height: 6px;
    transition: transform 0.2s ease;
}

.menu-item.has-dropdown a:hover svg {
    transform: rotate(180deg);
}

/* 菜单徽章 */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background-color: #e4ffd5;
    color: #00802a;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    margin-left: 6px;
}

/* 右侧操作按钮 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

.theme-toggle {
    padding: 8px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    
    .menu-item a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* 顶部栏移动端调整 */
    .header-topbar {
        padding: 15px 0;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .social-link svg {
        width: 24px;
        height: 24px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .btn-buy {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 主导航移动端调整 */
    .header-inner {
        height: 60px;
    }
    
    .burger-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .action-btn span {
        display: none;
    }
    
    .header-actions {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .header-topbar-inner,
    .header-container {
        padding: 0 15px;
    }
    
    .social-links {
        gap: 4px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
    
    .logo img {
        height: 36px;
    }
    
    .btn-buy {
        padding: 6px 12px;
        font-size: 12px;
    }
}


/* ========== 汉堡菜单样式 ========== */
.burger-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
    pointer-events: none;
}

.burger-menu.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
    pointer-events: auto;
}

/* 遮罩层 */
.burger-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* 菜单内容容器 - 只占50%高度 */
.burger-menu-content {
    position: relative;
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    background-color: #1a1a1a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu.active .burger-menu-content {
    transform: translateY(0);
}

/* 移动端弹出框遮罩整个页面 */
@media (max-width: 768px) {
    .burger-menu-content {
        max-height: 100vh;
        height: 100vh;
        overflow-y: auto;
        border-bottom: none;
    }
    
    .burger-menu-inner {
        min-height: 100vh;
        padding: 80px 20px 40px;
    }
}

/* 关闭按钮 - 电脑端居中 */
.burger-close-btn {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.2s ease;
}

.burger-close-btn:hover {
    color: #ff6b7a;
    transform: translateX(-50%) rotate(90deg);
}

.burger-close-btn svg {
    width: 48px;
    height: 48px;
}

/* 移动端关闭按钮位于右上角 */
@media (max-width: 768px) {
    .burger-close-btn {
        left: auto;
        right: 20px;
        transform: none;
        width: 40px;
        height: 40px;
    }
    
    .burger-close-btn:hover {
        transform: rotate(90deg);
    }
    
    .burger-close-btn svg {
        width: 24px;
        height: 24px;
    }
}

.burger-menu-inner {
    max-width: 1288px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 左侧菜单导航 */
.burger-menu-left {
    padding-right: 40px;
}

.burger-nav-menu {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 40px;
}

.burger-menu-item {
    margin-bottom: 0;
}

.burger-menu-link {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.burger-menu-link:hover {
    color: #ff4757;
}

.burger-submenu {
    list-style: none;
    padding-left: 0;
}

.burger-submenu li {
    margin-bottom: 8px;
}

.burger-submenu a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.burger-submenu a:hover {
    color: #ffffff;
}

.menu-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background-color: var(--tag-bg-color);
    color: var(--tag-color);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

/* 右侧最新文章 */
.burger-menu-right {
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.burger-posts-heading {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
}

.burger-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.burger-post-item {
    display: block;
}

.burger-post-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.burger-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.burger-post-item:hover .burger-post-thumbnail img {
    transform: scale(1.05);
}

.burger-post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.burger-post-content {
    padding: 0;
}

.burger-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.burger-post-category {
    display: inline-flex;
    padding: 4px 10px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.burger-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.burger-post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.burger-post-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.burger-post-title a:hover {
    color: #ff4757;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .burger-menu-content {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .burger-menu-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px 40px;
    }
    
    .burger-menu-left {
        padding-right: 0;
    }
    
    .burger-menu-right {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 40px;
    }
    
    .burger-menu-link {
        font-size: 24px;
    }
    
    .burger-nav-menu {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 30px;
    }
}

@media (max-width: 768px) {
    .burger-menu-content {
        max-height: 100vh;
        height: 100vh;
    }
    
    .burger-menu-inner {
        padding: 80px 30px 40px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 50px;
    }
    
    .burger-menu-left {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .burger-menu-right {
        display: block;
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
    }
    
    .burger-nav-menu {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    
    .burger-menu-link {
        font-size: 28px;
        margin-bottom: 0;
        font-weight: 700;
        text-align: center;
    }
    
    .menu-tag {
        display: inline-flex;
        align-items: center;
        padding: 4px 10px;
        background-color: var(--tag-bg-color);
        color: var(--tag-color);
        font-size: 11px;
        font-weight: 700;
        border-radius: 4px;
        text-transform: uppercase;
        margin-left: 8px;
    }
    
    .burger-submenu {
        padding-left: 0;
    }
    
    .burger-submenu a {
        font-size: 14px;
    }
    
    .burger-posts-heading {
        font-size: 22px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .burger-post-title {
        font-size: 16px;
    }
    
    .burger-posts-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .burger-post-thumbnail {
        border-radius: 16px;
        margin-bottom: 16px;
    }
}


/* ========== 面包屑导航 ========== */
.cs-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.cs-breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.cs-breadcrumbs a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.cs-breadcrumbs a:hover {
    color: #ff4757;
}

.cs-separator::before {
    content: "›";
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb_last {
    color: #ffffff;
}

/* 浅色主题面包屑 */
body[data-theme="light"] .cs-breadcrumbs {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .cs-breadcrumbs a {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .cs-breadcrumbs a:hover {
    color: #ff4757;
}

body[data-theme="light"] .cs-separator::before {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .breadcrumb_last {
    color: #1a1a1a;
}

/* 面包屑响应式 */
@media (max-width: 768px) {
    .cs-breadcrumbs {
        padding: 15px 0;
        font-size: 13px;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .cs-separator::before {
        margin: 0 6px;
    }
}

@media (max-width: 480px) {
    .cs-breadcrumbs {
        font-size: 12px;
    }
}

/* ========== 主内容区域 - 左右两列布局 ========== */
.content-section {
    width: 100%;
    background-color: #1a1a1a;
    padding: 10px 0;
}

.content-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 40px;
}

/* 左侧大文章 + 网格 */
.content-left {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-right: 30px;
}

/* 文章通用样式 */
.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1a1a1a;
    z-index: 2;
}

.article-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.article-category {
    display: inline-flex;
    padding: 4px 10px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.article-author {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.article-author strong {
    color: #ffffff;
}

.article-date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* 右侧文章列表 */
.content-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-section {
    background-color: #1a1a1a;
}

.sidebar-heading {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px;
}

/* 紧凑文章列表 */
.compact-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compact-post {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.compact-post-image {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.compact-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-number {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    background-color: #ff4757;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.compact-post-content {
    flex: 1;
}

.compact-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.compact-category {
    display: inline-flex;
    padding: 3px 8px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.compact-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.compact-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.compact-post-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.compact-post-title a:hover {
    color: #ff4757;
}

/* Featured 侧边栏文章 */
.featured-sidebar-post {
    display: block;
}

.featured-sidebar-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.featured-sidebar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-sidebar-post:hover .featured-sidebar-image img {
    transform: scale(1.05);
}

.featured-sidebar-content {
    padding: 0;
}

.featured-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.featured-sidebar-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.featured-sidebar-title a:hover {
    color: #ff4757;
}

/* 文章网格 - 2列 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-post {
    display: flex;
    flex-direction: column;
}

.grid-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.grid-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-post:hover .grid-post-image img {
    transform: scale(1.05);
}

.format-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 2;
}

.video-icon-small {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #1a1a1a;
    z-index: 2;
}

.grid-post-content {
    flex: 1;
}

.grid-post-title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
}

.grid-post-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.grid-post-title a:hover {
    color: #ff4757;
}

.grid-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Load More 按钮 */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.load-more-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}

.load-more-btn.loading {
    pointer-events: none;
}

/* 转圈圈加载动画 */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 新加载的文章淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 无结果提示 */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    margin-top: 40px;
}

.no-results h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 32px;
}

.no-results .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.no-results .search-form-group {
    display: flex;
    gap: 12px;
}

.no-results .search-input {
    flex: 1;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.no-results .search-input:focus {
    outline: none;
    border-color: #ff4757;
    background-color: rgba(255, 255, 255, 0.08);
}

.no-results .search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.no-results .search-submit-btn {
    padding: 14px 32px;
    background-color: #ff4757;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.no-results .search-submit-btn:hover {
    background-color: #ff3545;
    transform: translateY(-2px);
}

.grid-post {
    animation: fadeInUp 0.5s ease forwards;
}

/* Instagram Connect Card - Sticky Container */
.sidebar-section:last-child {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.connect-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.connect-card-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.connect-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.connect-card:hover .connect-card-image img {
    transform: scale(1.05);
}

.connect-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    gap: 12px;
}

.connect-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.connect-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.connect-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.connect-info {
    flex: 1;
    min-width: 0;
}

.connect-username {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.connect-username:hover {
    color: #ff4757;
}

.connect-followers {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.connect-card-right {
    flex-shrink: 0;
}

.connect-follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.connect-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    

}

@media (max-width: 768px) {
    .content-section {
        padding: 40px 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .content-left {
        gap: 30px;
        padding-right: 0;
    }
    
    .content-right {
        width: 100%;
    }
    
    .sidebar-section {
        width: 100%;
    }
    
    /* 取消侧边栏的 sticky 定位 */
    .sidebar-section:last-child {
        position: static;
        top: auto;
        align-self: auto;
    }
    

    
    .grid-post-title {
        font-size: 18px;
    }
    
    .sidebar-heading {
        font-size: 20px;
    }
    
    .compact-post {
        gap: 12px;
    }
    
    .compact-post-image {
        width: 80px;
        height: 80px;
    }
    
    .compact-post-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 30px 0;
    }
    

    
    .compact-post-image {
        width: 70px;
        height: 70px;
    }
    
    .compact-post-title {
        font-size: 14px;
    }
}


/* ========== 三列文章列表板块 ========== */
.three-columns-section {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 0;
}

.three-columns-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.three-columns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.column-item {
    display: flex;
    flex-direction: column;
}

.column-heading {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
}

.numbered-posts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.numbered-post {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.numbered-post-image {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}

.numbered-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.numbered-post:hover .numbered-post-image img {
    transform: scale(1.1);
}

.numbered-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    background-color: #ff4757;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    z-index: 2;
}

.numbered-post-content {
    flex: 1;
    min-width: 0;
}

.numbered-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.numbered-category {
    display: inline-flex;
    padding: 3px 8px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.numbered-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.numbered-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.numbered-post-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.numbered-post-title a:hover {
    color: #ff4757;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .three-columns-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .three-columns-section {
        padding: 40px 0;
    }
    
    .column-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .numbered-posts-list {
        gap: 20px;
    }
    
    .numbered-post {
        gap: 12px;
    }
    
    .numbered-post-image {
        width: 80px;
        height: 80px;
    }
    
    .numbered-post-title {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .numbered-post-image {
        width: 70px;
        height: 70px;
    }
    
    .numbered-post-title {
        font-size: 14px;
    }
}


/* ========== 底部 Footer ========== */
.site-footer {
    width: 100%;
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部区域 */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-logo a {
    display: inline-block;
}

.footer-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* Footer Logo 样式 */
.footer-logo img {
    display: block;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    display: inline-flex;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* 中间区域 - 导航 */
.footer-middle {
    margin-bottom: 40px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
}

.footer-nav-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-nav-list li a:hover {
    color: #ff4757;
}

/* 底部区域 - 版权 */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 24px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-social {
        gap: 8px;
    }
    
    .footer-social-link svg {
        width: 24px;
        height: 24px;
    }
    
    .footer-logo img {
        height: 36px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ========== 浅色主题 Light Theme ========== */
body[data-theme="light"] {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* 头部顶部栏 */
body[data-theme="light"] .header-topbar {
    background-color: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .header-main {
    background-color: #ffffff;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .burger-toggle,
body[data-theme="light"] .menu-item a,
body[data-theme="light"] .action-btn {
    color: #1a1a1a;
}

body[data-theme="light"] .menu-item a:hover,
body[data-theme="light"] .action-btn:hover {
    color: #ff4757;
}

body[data-theme="light"] .action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 主内容区域 */
body[data-theme="light"] .content-section,
body[data-theme="light"] .three-columns-section {
    background-color: #f8f9fa;
}


body[data-theme="light"] .sidebar-section,
body[data-theme="light"] .connect-card {
    background-color: #ffffff;
}


body[data-theme="light"] .grid-post-title a,
body[data-theme="light"] .compact-post-title a,
body[data-theme="light"] .featured-sidebar-title a,
body[data-theme="light"] .numbered-post-title a,
body[data-theme="light"] .sidebar-heading,
body[data-theme="light"] .column-heading {
    color: #1a1a1a;
}


body[data-theme="light"] .grid-post-excerpt {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .article-author,
body[data-theme="light"] .article-date,
body[data-theme="light"] .compact-date,
body[data-theme="light"] .numbered-date {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .article-author strong {
    color: #1a1a1a;
}

/* Load More 按钮 */
body[data-theme="light"] .load-more-btn {
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body[data-theme="light"] .load-more-btn:hover:not(:disabled) {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

body[data-theme="light"] .spinner {
    border-color: rgba(0, 0, 0, 0.2);
    border-top-color: #1a1a1a;
}

/* Instagram 卡片 */
body[data-theme="light"] .connect-username,
body[data-theme="light"] .connect-followers {
    color: #1a1a1a;
}

body[data-theme="light"] .connect-followers {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .connect-avatar {
    border-color: rgba(0, 0, 0, 0.1);
}

/* 汉堡菜单 */
body[data-theme="light"] .burger-menu-content {
    background-color: #ffffff;
}

body[data-theme="light"] .burger-menu-link,
body[data-theme="light"] .burger-posts-heading {
    color: #1a1a1a;
}

body[data-theme="light"] .burger-submenu a {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .burger-submenu a:hover {
    color: #1a1a1a;
}

body[data-theme="light"] .burger-post-title a {
    color: #1a1a1a;
}

body[data-theme="light"] .burger-post-date {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .burger-menu-right {
    border-left-color: rgba(0, 0, 0, 0.1);
}

/* Footer */
body[data-theme="light"] .site-footer {
    background-color: #f8f9fa;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-top {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .footer-nav-title {
    color: #1a1a1a;
}

body[data-theme="light"] .footer-nav-list li a {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .footer-nav-list li a:hover {
    color: #ff4757;
}

body[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* 广告位横幅 - 浅色主题 */
body[data-theme="light"] .ad-banner-section {
    background-color: #f8f9fa;
}

body[data-theme="light"] .ad-banner-link::before {
    background: 
        linear-gradient(135deg, rgba(255, 71, 87, 0.05) 0%, rgba(79, 66, 255, 0.05) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 20px);
}

body[data-theme="light"] .ad-banner-link:hover::before {
    background: 
        linear-gradient(135deg, rgba(255, 71, 87, 0.08) 0%, rgba(79, 66, 255, 0.08) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.03) 10px, rgba(0, 0, 0, 0.03) 20px);
}

body[data-theme="light"] .ad-banner-content {
    background: linear-gradient(90deg, #ffffff 0%, #f8f9fa 50%, #ffffff 100%);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .ad-banner-title {
    color: #1a1a1a;
}

body[data-theme="light"] .ad-banner-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .footer-copyright,
body[data-theme="light"] .footer-links a {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .footer-links a:hover {
    color: #1a1a1a;
}

body[data-theme="light"] .footer-links .separator {
    color: rgba(0, 0, 0, 0.3);
}

/* 主题切换按钮图标变化 */
body[data-theme="light"] .theme-toggle svg circle,
body[data-theme="light"] .theme-toggle svg path {
    stroke: #1a1a1a;
}


/* ========== 搜索弹窗 Search Modal ========== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.search-modal.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.search-modal-inner {
    max-width: 900px;
    width: 100%;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-modal.active .search-modal-inner {
    transform: translateY(0);
    opacity: 1;
}

/* 搜索表单容器 */
.search-form-container {
    background-color: #1a1a1a;
    padding: 40px;
}

.search-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.search-form-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.search-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ff4757;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.search-close-btn:hover {
    background-color: rgba(255, 71, 87, 0.1);
    transform: rotate(90deg);
}

.search-form-group {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff4757;
    background-color: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

/* 热门分类 */
.search-popular-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background-color: #1a1a1a;
    padding: 24px;
}

.popular-category {
    display: inline-flex;
    padding: 8px 16px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.popular-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 推荐文章 */
.search-recommended {
    background-color: #1a1a1a;
    padding: 32px;
}

.search-recommended-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
}

.search-recommended-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.search-post-item {
    display: flex;
    flex-direction: column;
}

.search-post-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.search-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-post-item:hover .search-post-image img {
    transform: scale(1.05);
}

.search-post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.search-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.search-post-category {
    display: inline-flex;
    padding: 3px 8px;
    background-color: var(--category-bg);
    color: var(--category-color);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
}

.search-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.search-post-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.search-post-title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.search-post-title a:hover {
    color: #ff4757;
}

/* 浅色主题适配 */
body[data-theme="light"] .search-form-container,
body[data-theme="light"] .search-popular-categories,
body[data-theme="light"] .search-recommended {
    background-color: #ffffff;
}

body[data-theme="light"] .search-form-header h3,
body[data-theme="light"] .search-recommended-title,
body[data-theme="light"] .search-post-title a {
    color: #1a1a1a;
}

body[data-theme="light"] .search-input {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body[data-theme="light"] .search-input:focus {
    background-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

body[data-theme="light"] .search-post-date {
    color: rgba(0, 0, 0, 0.5);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .search-recommended-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 60px 15px 30px;
    }
    
    .search-form-container,
    .search-recommended {
        padding: 24px;
    }
    
    .search-form-header h3 {
        font-size: 22px;
    }
    
    .search-recommended-posts {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-form-group {
        flex-direction: column;
    }
    
    .search-submit-btn {
        width: 100%;
    }
}


/* ========== 文章详情页样式 ========== */
.cs-content-area {
    flex: 1;
    min-width: 0;
}

.cs-entry__wrap {
    background-color: transparent;
}

/* 文章头部 */
.cs-entry__header {
    margin-bottom: 40px;
}

.cs-entry__header-content {
    margin-bottom: 32px;
}

h1.cs-entry__title {
    font-size: 48px !important;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    color: #ffffff;
}

.cs-entry__title span {
    display: block;
}

/* 文章元信息 */
.cs-entry__post-meta-separator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-entry__post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cs-meta-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.cs-meta-category a {
    display: inline-flex;
    padding: 6px 14px;
    background-color: var(--cs-category-bg-color);
    color: var(--cs-category-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.cs-meta-category a:hover {
    opacity: 0.8;
}

.cs-meta-author-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.cs-meta-author-link:hover {
    color: #ff4757;
}

.cs-meta-author-by {
    font-weight: 400;
}

.cs-meta-author-name {
    font-weight: 700;
    color: #ffffff;
}

.cs-meta-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* 分享按钮 */
.cs-entry__metabar {
    display: flex;
    align-items: center;
}

.cs-share {
    display: flex;
    gap: 8px;
}

.cs-share__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: all 0.2s ease;
}

.cs-share__link:hover {
    transform: translateY(-2px);
}

.cs-share__link svg {
    display: block;
}

/* 文章内容 */
.cs-entry__container {
    margin-top: 40px;
    padding: 0 50px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 24px;
    color: #ffffff;
}

.entry-content h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #ffffff;
}

.entry-content h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 16px;
    color: #ffffff;
}

.entry-content a {
    color: #ffffff;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.entry-content a:hover {
    opacity: 0.8;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 12px;
}

.entry-content blockquote {
    margin: 32px 0;
    padding: 24px;
    background-color: rgba(255, 131, 89, 0.1);
    border-left: 4px solid #ff4757;
    border-radius: 8px;
}

.entry-content blockquote p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 16px;
}

.entry-content blockquote cite {
    display: block;
    font-size: 14px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.6);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 32px auto;
    display: block;
}

.entry-content figure {
    margin: 32px 0;
    text-align: center;
}

.entry-content figure img {
    margin: 0 auto;
}

.entry-content figcaption {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* 表格样式 */
.entry-content table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    font-size: 16px;
}

.entry-content table thead {
    background-color: #ff4757;
}

.entry-content table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.entry-content table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

.entry-content table tbody tr:hover {
    background-color: rgba(255, 71, 87, 0.1);
}

.entry-content table tbody tr:last-child {
    border-bottom: none;
}

.entry-content table td {
    padding: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.entry-content table th:first-child,
.entry-content table td:first-child {
    padding-left: 20px;
}

.entry-content table th:last-child,
.entry-content table td:last-child {
    padding-right: 20px;
}

/* 表格响应式容器 */
.entry-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 32px 0;
}

.entry-content .table-responsive table {
    margin: 0;
    min-width: 600px;
}

/* 移动端表格优化 */
@media (max-width: 768px) {
    .entry-content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .entry-content table thead th,
    .entry-content table td {
        padding: 12px 10px;
        white-space: nowrap;
    }
    
    .entry-content table th:first-child,
    .entry-content table td:first-child {
        padding-left: 12px;
    }
    
    .entry-content table th:last-child,
    .entry-content table td:last-child {
        padding-right: 12px;
    }
}

/* 文章底部 */
.cs-entry__footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-entry__footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.cs-entry__footer-col {
    display: flex;
    align-items: center;
}

/* 评论区域 */
.cs-entry__comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 评论切换按钮 */
.cs-entry__comments-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.cs-entry__comments-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.cs-entry__comments-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 评论内容区域 - 默认隐藏 */
.cs-entry__comments-inner {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

/* 显示评论时 */
.cs-entry__comments-visible .cs-entry__comments-inner {
    max-height: none;
    opacity: 1;
    overflow: visible;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.comment {
    margin-bottom: 24px;
}

/* 顶级评论 */
.comment-list > .comment {
    margin-bottom: 32px;
}

.comment-body {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    position: relative;
    transition: all 0.2s ease;
}

.comment-body:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.comment-content p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.comment-author img {
    border-radius: 50%;
    margin-right: 8px;
}

.reply {
    margin-top: 12px;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #ff4757;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: transparent;
}

.comment-reply-link:hover {
    background-color: rgba(255, 71, 87, 0.1);
    transform: translateX(2px);
}

.comment-reply-link::after {
    content: '›';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.comment-reply-link:hover::after {
    transform: translateX(2px);
}

/* 嵌套回复样式 - 在 comment-body 内部 */
.children {
    list-style: none;
    padding-left: 40px;
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    border-left: 2px solid rgba(255, 71, 87, 0.2);
}

/* 嵌套评论的样式 */
.children .comment {
    margin-bottom: 16px;
}

.children .comment:last-child {
    margin-bottom: 0;
}

.children .comment-body {
    background-color: transparent;
    padding: 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.03);
}

/* 深层嵌套 */
.children .children {
    padding-left: 30px;
    margin-top: 16px;
}

.children .children .comment-body {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 12px;
}

/* 评论表单 */
.comment-respond {
    margin-top: 48px;
}

.comment-reply-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #ff4757;
    background-color: rgba(255, 255, 255, 0.08);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* 复选框样式 */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.comment-form-cookies-consent label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}

/* 提交按钮 */
.form-submit {
    margin-top: 8px;
}

.form-submit button,
.form-submit input[type="submit"],
.submit {
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit button:hover,
.form-submit input[type="submit"]:hover,
.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.cs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cs-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* 浅色主题适配 */
body[data-theme="light"] .cs-entry__title {
    color: #1a1a1a;
}

body[data-theme="light"] .cs-entry__post-meta-separator {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .cs-meta-author-link {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .cs-meta-author-name {
    color: #1a1a1a;
}

body[data-theme="light"] .cs-meta-date {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .entry-content {
    color: rgba(0, 0, 0, 0.85);
}

body[data-theme="light"] .entry-content h2,
body[data-theme="light"] .entry-content h3,
body[data-theme="light"] .entry-content h4 {
    color: #1a1a1a;
}

body[data-theme="light"] .entry-content blockquote {
    background-color: rgba(255, 131, 89, 0.1);
}

body[data-theme="light"] .entry-content blockquote cite {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .entry-content figcaption {
    color: rgba(0, 0, 0, 0.6);
}

/* 浅色主题表格样式 */
body[data-theme="light"] .entry-content table {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .entry-content table thead {
    background-color: #ff4757;
}

body[data-theme="light"] .entry-content table thead th {
    color: #ffffff;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .entry-content table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .entry-content table tbody tr:hover {
    background-color: rgba(255, 71, 87, 0.05);
}

body[data-theme="light"] .entry-content table td {
    color: rgba(0, 0, 0, 0.85);
}

body[data-theme="light"] .cs-entry__footer {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .cs-entry__comments {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .cs-entry__comments-toggle {
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    color: #ffffff;
}

body[data-theme="light"] .comment-body {
    background-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .comment-meta {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .comment-reply-title {
    color: #1a1a1a;
}

body[data-theme="light"] .comment-form label {
    color: #1a1a1a;
}

body[data-theme="light"] .comment-form input[type="text"],
body[data-theme="light"] .comment-form input[type="email"],
body[data-theme="light"] .comment-form textarea {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
}

body[data-theme="light"] .comment-form input:focus,
body[data-theme="light"] .comment-form textarea:focus {
    background-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .comment-form-cookies-consent label {
    color: #1a1a1a;
}

/* 浅色主题嵌套评论 */
body[data-theme="light"] .children {
    border-left-color: rgba(255, 71, 87, 0.2);
}

body[data-theme="light"] .children .comment-body {
    background-color: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .children .children .comment-body {
    background-color: rgba(0, 0, 0, 0.02);
}

body[data-theme="light"] .cs-share__link svg path {
    fill: #1a1a1a;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .cs-entry__title {
        font-size: 40px;
    }
    
    .entry-content {
        font-size: 17px;
    }
    
    .entry-content h2 {
        font-size: 28px;
    }
    
    .entry-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .cs-entry__title {
        font-size: 32px;
    }
    
    .cs-entry__post-meta-separator {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .entry-content {
        font-size: 16px;
    }
    
    .entry-content h2 {
        font-size: 24px;
        margin: 32px 0 16px;
    }
    
    .entry-content h3 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .cs-entry__footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .children {
        padding-left: 24px;
    }
    
    .children .children {
        padding-left: 20px;
    }
    
    .children .comment-body {
        padding: 14px;
    }
    
    .children .children .comment-body {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .cs-entry__title {
        font-size: 28px;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .cs-share {
        gap: 6px;
    }
    
    .cs-share__link {
        width: 28px;
        height: 28px;
    }
    
    .cs-share__link svg {
        width: 24px;
        height: 24px;
    }
    
    .cs-entry__comments-toggle {
        padding: 14px 24px;
        font-size: 15px;
    }
}


/* ========== Read Next 板块 ========== */
.cs-read-next {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-read-next__headline {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.cs-read-next__heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cs-read-next__grid {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Read Next 文章卡片 */
.cs-entry {
    display: flex;
    flex-direction: column;
}

.cs-entry__outer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cs-entry__thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.cs-overlay-background {
    width: 100%;
    height: 100%;
}

.cs-overlay-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cs-entry:hover .cs-overlay-background img {
    transform: scale(1.05);
}

.cs-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cs-entry__content-standard {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cs-entry__info {
    flex: 1;
}

.cs-entry__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.cs-entry__title a {
    color: #ffffff;
    transition: color 0.2s ease;
}

.cs-entry__title a:hover {
    color: #ff4757;
}

/* 浅色主题 */
body[data-theme="light"] .cs-read-next {
    background-color: #f8f9fa;
    border-top-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .cs-read-next__heading {
    color: #1a1a1a;
}

body[data-theme="light"] .cs-entry__title a {
    color: #1a1a1a;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .cs-read-next__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cs-read-next__heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .cs-read-next {
        padding: 40px 0;
    }
    
    .cs-read-next__headline {
        margin-bottom: 30px;
    }
    
    .cs-read-next__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cs-read-next__heading {
        font-size: 24px;
    }
    
    .cs-entry__title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .cs-read-next {
        padding: 30px 0;
    }
    
    .cs-read-next__heading {
        font-size: 22px;
    }
    
    .cs-entry__title {
        font-size: 16px;
    }
}


/* ========== 文章容器内边距优化 ========== */
/* 桌面端：左右内边距 50px */
.cs-entry__container {
    padding: 0 25px;
}

/* 平板端：减少内边距 */
@media (max-width: 1024px) {
    .cs-entry__container {
        padding: 0 30px;
    }
}

/* 移动端：取消左右内边距 */
@media (max-width: 768px) {
    .cs-entry__container {
        padding: 0;
    }
}


/* ========== 404 错误页面 ========== */
.cs-site-primary {
    width: 100%;
    background-color: #1a1a1a;
}

.cs-site-content {
    padding: 60px 0;
}

.cs-main-content {
    max-width: 800px;
    margin: 0 auto;
}

/* 404 头部 */
.cs-page__header {
    text-align: center;
    padding: 60px 20px 40px;
}

.cs-page__header svg {
    margin: 0 auto 40px;
    display: block;
}

.cs-page__title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

/* 404 内容 */
.cs-content-not-found {
    text-align: center;
    padding: 0 20px 60px;
}

.cs-content-not-found-content {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff4757 100%);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.4);
}

.cs-button-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* You May Be Interested 板块 */
.cs-newest-post {
    width: 100%;
    background-color: #1a1a1a;
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-newest-post__headline {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.cs-newest-post__heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.cs-newest-post__grid {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* 浅色主题 */
body[data-theme="light"] .cs-site-primary,
body[data-theme="light"] .cs-site-content,
body[data-theme="light"] .cs-newest-post {
    background-color: #f8f9fa;
}

body[data-theme="light"] .cs-page__title {
    color: #1a1a1a;
}

body[data-theme="light"] .cs-content-not-found-content {
    color: rgba(0, 0, 0, 0.7);
}

body[data-theme="light"] .cs-newest-post__heading {
    color: #1a1a1a;
}

body[data-theme="light"] .cs-newest-post {
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .cs-newest-post__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .cs-page__title {
        font-size: 40px;
    }
    
    .cs-newest-post__heading {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .cs-site-content {
        padding: 40px 0;
    }
    
    .cs-page__header {
        padding: 40px 20px 30px;
    }
    
    .cs-page__header svg {
        width: 120px;
        height: auto;
        margin-bottom: 30px;
    }
    
    .cs-page__title {
        font-size: 32px;
    }
    
    .cs-content-not-found {
        padding: 0 20px 40px;
    }
    
    .cs-content-not-found-content {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .cs-newest-post {
        padding: 40px 0;
    }
    
    .cs-newest-post__headline {
        margin-bottom: 30px;
    }
    
    .cs-newest-post__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cs-newest-post__heading {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .cs-page__header svg {
        width: 100px;
    }
    
    .cs-page__title {
        font-size: 28px;
    }
    
    .cs-content-not-found-content {
        font-size: 15px;
    }
    
    .cs-button {
        padding: 14px 32px;
        font-size: 15px;
    }
    
    .cs-newest-post__heading {
        font-size: 22px;
    }
}

/* 推荐文章样式 */
.recommended-articles {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.recommended-category {
    border-bottom: 1px solid #e5e5e5;
}

.recommended-category:last-child {
    border-bottom: none;
}

.recommended-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.2s;
}

.recommended-category-header:hover {
    background: #f8f8f8;
}

.recommended-category-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.recommended-category-header .toggle-icon {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s;
}

.recommended-category-header[data-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.recommended-category-content {
    padding: 16px 20px 16px 20px;
    background: #fafafa;
}

.recommended-category-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.recommended-category-content li {
    margin: 8px 0;
    padding-left: 16px;
    position: relative;
}

.recommended-category-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.recommended-category-content a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: color 0.2s;
}

.recommended-category-content a:hover {
    color: #db0b00;
}

@media (max-width: 768px) {
    .recommended-category-header {
        padding: 14px 16px;
    }
    
    .recommended-category-header h4 {
        font-size: 15px;
    }
    
    .recommended-category-content {
        padding: 0 16px 14px 16px;
    }
    
    .recommended-category-content a {
        font-size: 13px;
    }
}


/* ========== 产品图片轮播样式 ========== */
.product-gallery {
    margin: 30px 0;
}

.product-gallery h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

/* 轮播容器 */
.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #2a2a2a;
}

.gallery-slider-wrapper {
    display: flex;
    transition: transform 0.4s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
}


.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 0;
}

/* 轮播按钮 */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: bold;
}

.gallery-nav-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-prev {
    left: 16px;
}

.gallery-next {
    right: 16px;
}

/* 轮播指示器 */
.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator.active {
    background-color: #ff4757;
    width: 24px;
    border-radius: 5px;
}

.gallery-indicator:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .product-gallery {
        margin: 20px 0;
    }
    
    .product-gallery h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .gallery-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .gallery-prev {
        left: 12px;
    }
    
    .gallery-next {
        right: 12px;
    }
    
    .gallery-indicators {
        gap: 6px;
        margin-top: 12px;
    }
    
    .gallery-indicator {
        width: 8px;
        height: 8px;
    }
    
    .gallery-indicator.active {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .gallery-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .gallery-prev {
        left: 8px;
    }
    
    .gallery-next {
        right: 8px;
    }
}


/* ========== 购买按钮样式 ========== */
.buy-links {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-buy-amazon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-buy-amazon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-buy-amazon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 153, 0, 0.5);
    background: linear-gradient(135deg, #ffaa00 0%, #ff7700 100%);
}

.btn-buy-amazon:hover::before {
    left: 100%;
}

.btn-buy-amazon:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(255, 153, 0, 0.4);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .buy-links {
        margin: 20px 0;
    }
    
    .btn-buy-amazon {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .btn-buy-amazon {
        padding: 12px 24px;
        font-size: 15px;
    }
}


/* ========== Top Picks 推荐产品卡片样式 ========== */
.top-picks {
    margin: 50px 0;
    padding: 0;
}

.top-picks-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: left;
}

.top-picks-title strong {
    color: #ff4757;
}

.recommended-product {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recommended-product:hover {
    border-color: #ff4757;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
}

/* 左边标签（BUDGET PICK等） */
.recommended-product::before {
    content: attr(data-badge);
    position: absolute;
    top: -15px;
    left: 30px;
    background: linear-gradient(135deg, #3b4a6b 0%, #2c3e5a 100%);
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.recommended-product:nth-child(2)::before {
    content: 'BUDGET PICK';
}

.recommended-product:nth-child(3)::before {
    content: 'PREMIUM PICK';
}

.recommended-product:nth-child(4)::before {
    content: 'BEST VALUE';
}

/* 产品图片 */
.recommended-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.recommended-product:hover .recommended-image img {
    transform: scale(1.1);
}

/* 品牌和评分 */
.recommended-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
}

.brand-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
}

.rating-stars {
    font-size: 20px;
    color: #ffa500;
    letter-spacing: 2px;
    display: flex;
    flex-direction: row;
    gap: 2px;
    white-space: nowrap;
}

/* 产品内容 */
.recommended-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommended-content h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

.recommended-content .btn-buy-amazon {
    align-self: flex-start;
    padding: 12px 30px;
    font-size: 16px;
}

/* 手机端适配 */
@media (max-width: 1024px) {
    .recommended-product {
        grid-template-columns: 150px 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .recommended-image {
        width: 150px;
        height: 150px;
    }
    
    .recommended-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        border-right: none;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
        padding: 15px 0 0 0;
    }
    
    .recommended-content {
        grid-column: 2 / -1;
    }
}

@media (max-width: 768px) {
    .top-picks-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .recommended-product {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .recommended-product::before {
        top: -12px;
        left: 20px;
        padding: 6px 16px;
        font-size: 11px;
    }
    
    .recommended-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .recommended-brand {
        grid-column: 1;
        padding: 15px 0;
        border-top: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .recommended-content {
        grid-column: 1;
        text-align: center;
    }
    
    .recommended-content h3 {
        font-size: 16px;
    }
    
    .recommended-content .btn-buy-amazon {
        align-self: center;
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .recommended-product {
        padding: 15px;
    }
    
    .recommended-image {
        height: 180px;
    }
    
    .recommended-content h3 {
        font-size: 15px;
    }
}


/* ========== 产品信息区域样式 ========== */
.product-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.product-info span {
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.product-info strong {
    font-weight: 700;
    color: #ffffff;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    line-height: 1.2;
    gap: 4px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .product-info {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .product-info span {
        font-size: 14px;
    }
    
    .product-info strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-info {
        gap: 10px;
        padding: 12px;
    }
    
    .product-info span {
        font-size: 13px;
    }
    
    .product-info strong {
        font-size: 13px;
    }
}

/* ========== 产品特点、优缺点、评论区域样式 ========== */
.product-features,
.product-pros,
.product-cons,
.reviews-summary {
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.product-features h4,
.product-pros h4,
.product-cons h4,
.reviews-summary h4 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.product-features ul,
.product-pros ul,
.product-cons ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li,
.product-pros li,
.product-cons li {
    padding: 10px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.reviews-summary p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin: 0;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .product-features,
    .product-pros,
    .product-cons,
    .reviews-summary {
        margin: 20px 0;
        padding: 15px;
    }
    
    .product-features h4,
    .product-pros h4,
    .product-cons h4,
    .reviews-summary h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .product-features li,
    .product-pros li,
    .product-cons li,
    .reviews-summary p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .product-features,
    .product-pros,
    .product-cons,
    .reviews-summary {
        padding: 12px;
    }
    
    .product-features h4,
    .product-pros h4,
    .product-cons h4,
    .reviews-summary h4 {
        font-size: 18px;
    }
    
    .product-features li,
    .product-pros li,
    .product-cons li,
    .reviews-summary p {
        font-size: 18px;
    }
}


/* ========== SVG图标统一样式 ========== */
/* 确保所有SVG图标大小一致 */
.product-info svg,
.product-features svg,
.product-pros svg,
.product-cons svg,
.reviews-summary svg,
.product-gallery svg,
.top-picks svg,
.btn-buy-amazon svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
}

.btn-buy-amazon svg {
    width: 18px;
    height: 18px;
}

/* 手机端SVG图标 */
@media (max-width: 768px) {
    .product-info svg,
    .product-features svg,
    .product-pros svg,
    .product-cons svg,
    .reviews-summary svg,
    .product-gallery svg {
        width: 14px;
        height: 14px;
    }
    
    .btn-buy-amazon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .product-info svg,
    .product-features svg,
    .product-pros svg,
    .product-cons svg,
    .reviews-summary svg,
    .product-gallery svg {
        width: 13px;
        height: 13px;
    }
    
    .btn-buy-amazon svg {
        width: 15px;
        height: 15px;
    }
}


/* ========== 勾叉图标样式 ========== */
.icon-check,
.icon-cross {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-check {
    color: #4caf50 !important;
}

.icon-cross {
    color: #f44336 !important;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .icon-check,
    .icon-cross {
        width: 14px;
        height: 14px;
        margin-right: 5px;
    }
}

@media (max-width: 480px) {
    .icon-check,
    .icon-cross {
        width: 13px;
        height: 13px;
        margin-right: 4px;
    }
}


/* ========== 文章内容区域通用样式 ========== */
/* 适用于review HTML文件中的所有文本内容 */
.article-intro p,
.quick-overview p,
.quick-overview table td {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* 手机端适配 */
@media (max-width: 768px) {
    .article-intro p,
    .quick-overview p,
    .quick-overview table td {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .article-intro p,
    .quick-overview p,
    .quick-overview table td {
        font-size: 18px;
    }
}


/* ========== 文章内容区域样式 ========== */
.entry-content {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.entry-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 1em;
}

.entry-content li {
    font-size: 18px;
    line-height: 1.6;
}

/* 手机端也保持 18px */
@media (max-width: 768px) {
    .entry-content {
        font-size: 18px;
    }
    
    .entry-content p {
        font-size: 18px;
    }
    
    .entry-content li {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .entry-content {
        font-size: 18px;
    }
    
    .entry-content p {
        font-size: 18px;
    }
    
    .entry-content li {
        font-size: 18px;
    }
}


/* ========== 文章标题样式 ========== */
h1.cs-entry__title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
}

/* 手机端标题 32px */
@media (max-width: 768px) {
    h1.cs-entry__title {
        font-size: 32px !important;
    }
}

@media (max-width: 480px) {
    h1.cs-entry__title {
        font-size: 32px !important;
    }
}

/* ========== At a Glance 统计数据样式 ========== */
.at-a-glance-section {
    margin-bottom: 60px;
}

.at-a-glance-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
}

.at-a-glance-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 48px;
    height: 48px;
}

.stat-content {
    width: 100%;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-text {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* 产品推荐列表样式 */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.product-item {
    position: relative;
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-label {
    position: absolute;
    top: -16px;
    left: 32px;
    background-color: #3d4f7d;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-content {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 32px;
    align-items: center;
}

.product-left {
    display: flex;
    justify-content: center;
}

/* 分类页面的产品图片 */
.at-a-glance-section .product-image {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.at-a-glance-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 单篇文章详情页的产品图片 - 更大尺寸 */
.article-review-section .product-image,
.entry-content .product-image {
    width: 650px;
    height: 650px;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0 auto;
}

.article-review-section .product-image img,
.entry-content .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-middle {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.product-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.product-rating .star {
    color: rgba(255, 255, 255, 0.2);
    font-size: 20px;
}

.product-rating .star.filled {
    color: #ff6b35;
}

.product-rating .star.half {
    color: #ff6b35;
    opacity: 0.5;
}

.product-features {
    list-style: none;
    padding: 10px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.product-features li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.product-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background-color: #3d4f7d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.product-button:hover {
    background-color: #4a5f94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 79, 125, 0.4);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .at-a-glance-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .product-content {
        grid-template-columns: 150px 1fr;
        gap: 24px;
    }
    
    .product-right {
        grid-column: 1 / -1;
        margin-top: 16px;
    }
    
    /* 分类页面 */
    .at-a-glance-section .product-image {
        width: 150px;
        height: 150px;
    }
    
    /* 单篇文章详情页 - 平板端 */
    .article-review-section .product-image,
    .entry-content .product-image {
        width: 450px;
        height: 450px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .at-a-glance-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .at-a-glance-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        overflow-x: auto;
    }
    
    .stat-card {
        padding: 16px 12px;
        min-width: 80px;
    }
    
    .stat-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-text {
        font-size: 10px;
    }
    
    .product-item {
        padding: 24px 20px;
    }
    
    .product-label {
        left: 20px;
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .product-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 分类页面 */
    .at-a-glance-section .product-image {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    /* 单篇文章详情页 - 手机端 */
    .article-review-section .product-image,
    .entry-content .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 350px;
        padding: 12px;
        margin: 0 auto;
    }
    
    .product-title {
        font-size: 20px;
        text-align: center;
    }
    
    .product-rating {
        justify-content: center;
    }
    
    .product-features {
        gap: 6px;
    }
    
    .product-features li {
        font-size: 14px;
    }
    
    .product-right {
        width: 100%;
    }
    
    .product-button {
        width: 100%;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .at-a-glance-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .stat-card {
        padding: 12px 8px;
        min-width: 70px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-text {
        font-size: 9px;
    }
}

/* ========== 单篇文章内容区域样式 ========== */
.cs-content-area {
    padding-right: 30px;
}

/* 手机端移除右边距 */
@media (max-width: 768px) {
    .cs-content-area {
        padding-right: 0;
    }
}

/* ========== 分类页面头部布局 ========== */
.archive-header {
    margin-bottom: 40px;
}

/* 左右布局容器 */
.archive-header-layout {
    display: flex;
    gap: 40px;
    align-items: stretch;
    background-color: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    padding: 40px;
}

/* 左侧图片区域 */
.archive-header-left {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-header-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* 右侧文字区域 */
.archive-header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.archive-header-right .archive-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.archive-header-right .archive-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* 默认布局（无图片） */
.archive-header .archive-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.archive-header .archive-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 800px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .archive-header-layout {
        flex-direction: column;
        gap: 0;
        padding: 20px;
    }
    
    .archive-header-left {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .archive-header-left img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .archive-header-right {
        padding: 30px 0px;
    }
    
    .archive-header-right .archive-title {
        font-size: 32px;
    }
}


/* ========================================
   广告位横幅样式
   ======================================== */
.ad-banner-section {
    padding: 0 0 40px 0;
    background: #1a1a1a;
}

.ad-banner-container {
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-banner-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.ad-banner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 71, 87, 0.1) 0%, rgba(79, 66, 255, 0.1) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
    z-index: 0;
}

.ad-banner-link:hover {
    transform: translateY(-2px);
}

.ad-banner-link:hover::before {
    background: 
        linear-gradient(135deg, rgba(255, 71, 87, 0.15) 0%, rgba(79, 66, 255, 0.15) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.03) 10px, rgba(255, 255, 255, 0.03) 20px);
}

.ad-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 50%, #2a2a2a 100%);
    /* border: 2px solid rgba(255, 255, 255, 0.1); */
    min-height: 150px;
}

.ad-banner-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    opacity: 0.3;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ad-banner-link:hover .ad-banner-icon {
    opacity: 0.5;
    transform: scale(1.1);
}

.ad-banner-icon svg {
    width: 100%;
    height: 100%;
}

.ad-banner-text {
    flex: 1;
    text-align: center;
    padding: 0 40px;
}

.ad-banner-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.ad-banner-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 10px 0;
}

.ad-banner-email {
    font-size: 18px;
    /* color: #ff4757; */
    font-weight: 600;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .ad-banner-content {
        padding: 30px 40px;
    }
    
    .ad-banner-icon {
        width: 60px;
        height: 60px;
    }
    
    .ad-banner-title {
        font-size: 24px;
    }
    
    .ad-banner-subtitle {
        font-size: 14px;
    }
    
    .ad-banner-email {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .ad-banner-section {
        padding: 20px 0;
    }
    
    .ad-banner-content {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        min-height: auto;
    }
    
    .ad-banner-icon:first-child {
        order: 1;
    }
    
    .ad-banner-text {
        order: 2;
        padding: 0;
    }
    
    .ad-banner-icon:last-child {
        display: none;
    }
    
    .ad-banner-title {
        font-size: 20px;
    }
    
    .ad-banner-subtitle {
        font-size: 13px;
    }
    
    .ad-banner-email {
        font-size: 14px;
    }
}


/* ========================================
   自定义语言切换器样式
   ======================================== */
.sugar-language-switcher {
    position: relative;
    display: inline-block;
}

.sugar-ls-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sugar-ls-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.sugar-ls-trigger svg:first-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sugar-ls-current {
    font-weight: 600;
}

.sugar-ls-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.sugar-language-switcher.active .sugar-ls-arrow {
    transform: rotate(180deg);
}

.sugar-ls-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 100%;
    background: #2a2a2a;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sugar-language-switcher.active .sugar-ls-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sugar-ls-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sugar-ls-item:last-child {
    border-bottom: none;
}

.sugar-ls-item:hover {
    background: rgba(255, 71, 87, 0.15);
}

/* 浅色主题适配 */
body[data-theme="light"] .sugar-ls-trigger {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .sugar-ls-trigger:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .sugar-ls-dropdown {
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .sugar-ls-item {
    color: #1a1a1a;
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .sugar-ls-item:hover {
    background: rgba(255, 71, 87, 0.08);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .sugar-ls-trigger {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .sugar-ls-current {
        display: none;
    }
    
    .sugar-ls-item {
        padding: 12px 14px;
        font-size: 13px;
    }
}


/* ========================================
   产品卡片图片轮播样式 - Article Generator
   使用独特的 class 前缀避免样式冲突
   ======================================== */

/* 产品卡片容器 */
.ag-product-card {
    background-color: #2a2a2a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0;
    transition: all 0.3s ease;
}

.ag-product-card:hover {
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.ag-product-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-align: center;
}

/* 轮播图容器 */
.ag-gallery-wrapper {
    margin: 0 0 32px 0;
}

.ag-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
}

.ag-gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 20px;
}

.ag-gallery-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0;
}

/* 轮播按钮 */
.ag-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ag-gallery-btn:hover {
    background-color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.ag-gallery-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.ag-gallery-btn-prev {
    left: 16px;
}

.ag-gallery-btn-next {
    right: 16px;
}

/* 轮播指示器 */
.ag-gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.ag-gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.ag-gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.ag-gallery-dot.active {
    background-color: #ff6b35;
    width: 32px;
    border-radius: 6px;
}

/* 产品信息区域 */
.ag-product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ag-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.ag-product-brand {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.ag-product-brand strong {
    color: #ffffff;
}

.ag-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff6b35;
}

.ag-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.ag-product-stars {
    color: #ffa500;
    font-size: 18px;
}

.ag-product-features-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 8px 0;
}

.ag-product-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ag-product-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.ag-product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.ag-product-button-wrapper {
    text-align: center;
    margin-top: 24px;
}

.ag-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.ag-product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
}

.ag-product-button:active {
    transform: translateY(0);
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .ag-product-card {
        padding: 24px;
    }
    
    .ag-gallery-slide {
        padding: 16px;
    }
    
    .ag-gallery-slide img {
        max-height: 350px;
    }
    
    .ag-gallery-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .ag-product-card {
        padding: 20px;
        margin: 30px 0;
    }
    
    .ag-product-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .ag-gallery-wrapper {
        margin-bottom: 24px;
    }
    
    .ag-gallery-slide {
        padding: 12px;
    }
    
    .ag-gallery-slide img {
        max-height: 280px;
    }
    
    .ag-gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .ag-gallery-btn-prev {
        left: 12px;
    }
    
    .ag-gallery-btn-next {
        right: 12px;
    }
    
    .ag-gallery-indicators {
        gap: 8px;
        margin-top: 16px;
    }
    
    .ag-gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .ag-gallery-dot.active {
        width: 28px;
    }
    
    .ag-product-price {
        font-size: 24px;
    }
    
    .ag-product-meta {
        gap: 12px;
    }
    
    .ag-product-features li {
        font-size: 14px;
    }
    
    .ag-product-button {
        width: 100%;
        padding: 14px 32px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .ag-product-card {
        padding: 16px;
    }
    
    .ag-product-title {
        font-size: 18px;
    }
    
    .ag-gallery-slide img {
        max-height: 240px;
    }
    
    .ag-gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* 产品卡片中的 strong 标签颜色 */
.ag-product-card strong {
    color: #ff4757;
}

.ag-product-brand strong {
    color: #ff4757;
}

.ag-product-rating strong {
    color: #ff4757;
}

/* 浅色主题下的 strong 颜色 */
body[data-theme="light"] .ag-product-card strong {
    color: #ff4757;
}


/* ========================================
   产品主图样式 - Article Generator
   控制文章中产品主图的显示效果
   ======================================== */

/* 产品主图 - 限制高度避免过高 */
.ag-product-card + p img,
h3 + img,
h3 + p + img {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    background-color: #ffffff;
    padding: 20px;
}

/* 文章内容区域中的产品主图 */
.cs-content-area img:not(.ag-gallery-slide img):not(.hero-slide-image img) {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    background-color: #ffffff;
    padding: 20px;
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .ag-product-card + p img,
    h3 + img,
    h3 + p + img,
    .cs-content-area img:not(.ag-gallery-slide img):not(.hero-slide-image img) {
        max-height: 350px;
        padding: 16px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .ag-product-card + p img,
    h3 + img,
    h3 + p + img,
    .cs-content-area img:not(.ag-gallery-slide img):not(.hero-slide-image img) {
        max-height: 300px;
        padding: 12px;
        margin: 16px auto;
    }
}

@media (max-width: 480px) {
    .ag-product-card + p img,
    h3 + img,
    h3 + p + img,
    .cs-content-area img:not(.ag-gallery-slide img):not(.hero-slide-image img) {
        max-height: 250px;
        padding: 10px;
    }
}
