/* 首页特定样式 */

/* 锚点跳转（导航"软件商店"→ #software-list-section）时避开固定页头 */
#software-list-section {
    scroll-margin-top: 110px;
}

/* Hero 区域 - Tech-Organic Fusion Design */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #050508 0%, #0a0e27 50%, #050508 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 动画背景层 */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

/* 轮播容器 */
.hero-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
}

/* 单个幻灯片 */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide.active .hero-slide-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-slide-content {
    padding: 0 40px;
    max-width: 1000px;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 32px;
    letter-spacing: -1px;
    line-height: 1.1;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #569cd6 50%, #c586c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none;
    background-size: 200% 200%;
}


.hero p {
    font-size: clamp(16px, 2.5vw, 19px);
    color: #b0b8c4;
    max-width: 700px;
    margin: 0 auto 48px;
    font-weight: 300;
    line-height: 1.8;
}

/* CTA 按钮组 */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 统一按钮基础样式 */
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn i {
    width: 18px;
    height: 18px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.hero-btn:hover i {
    transform: scale(1.15);
}

.hero-btn:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.4);
}

/* 播放视频 - 蓝色光晕 */
.hero-btn-video {
    background: linear-gradient(135deg, rgba(86, 140, 214, 0.35), rgba(79, 119, 230, 0.25));
    box-shadow: 0 4px 20px rgba(86, 140, 214, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-btn-video:hover {
    background: linear-gradient(135deg, rgba(86, 140, 214, 0.55), rgba(79, 119, 230, 0.45));
    box-shadow: 0 8px 32px rgba(86, 140, 214, 0.35),
                0 0 20px rgba(86, 140, 214, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 查看详情 - 紫色光晕 */
.hero-btn-detail {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(197, 134, 192, 0.25));
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-btn-detail:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.55), rgba(197, 134, 192, 0.45));
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.35),
                0 0 20px rgba(168, 85, 247, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 翻页箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0;
}

.hero-arrow i {
    width: 24px;
    height: 24px;
    stroke-width: 2px;
    transition: transform 0.3s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2),
                0 0 16px rgba(255, 255, 255, 0.06);
}

.hero-arrow:hover i {
    transform: scale(1.1);
}

.hero-arrow-prev {
    left: 28px;
}

.hero-arrow-prev:hover i {
    transform: translateX(-2px) scale(1.1);
}

.hero-arrow-next {
    right: 28px;
}

.hero-arrow-next:hover i {
    transform: translateX(2px) scale(1.1);
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

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

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-dot.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 明亮模式 Hero */
body.light-mode .hero {
    background: linear-gradient(135deg,
        rgba(20, 94, 213, 0.2) 0%,
        rgba(79, 70, 229, 0.55) 30%,
        rgba(79, 70, 229, 0.65) 50%,
        rgba(168, 85, 247, 0.75) 70%,
        rgba(168, 85, 247, 0.65) 100%
    );
    position: relative;
}

body.light-mode .hero::before {
    display: none;
}

body.light-mode .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

body.light-mode .hero-background::after {
    display: none;
}

body.light-mode .hero h1 {
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


body.light-mode .hero p {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

body.light-mode .hero-btn {
    border-color: rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

body.light-mode .hero-btn-video {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.45), rgba(79, 119, 230, 0.35));
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.light-mode .hero-btn-video:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.65), rgba(79, 119, 230, 0.55));
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4),
                0 0 20px rgba(102, 126, 234, 0.15);
}

body.light-mode .hero-btn-detail {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.45), rgba(168, 85, 247, 0.35));
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.light-mode .hero-btn-detail:hover {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.65), rgba(168, 85, 247, 0.55));
    box-shadow: 0 8px 32px rgba(118, 75, 162, 0.4),
                0 0 20px rgba(118, 75, 162, 0.15);
}

body.light-mode .hero-dot {
    border-color: rgba(255, 255, 255, 0.5);
}

body.light-mode .hero-dot.active {
    background: #fff;
    border-color: #fff;
}

/* 软件列表区域 */
.software-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 40px;
}

.software-list.no-hero {
    padding-top: 120px;
}

.section-header {
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

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

.section-header-left {
    flex: 1;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff 0%, #569cd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    width: 32px;
    height: 32px;
    stroke-width: 2px;
    color: #569cd6;
    -webkit-text-fill-color: #569cd6;
}

.section-header p {
    font-size: 15px;
    color: #8b9bb4;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

/* 筛选按钮组 - 玻璃质感 */
.filter-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #8b9bb4;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.5px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.filter-btn:last-child {
    border-right: none;
}

.filter-btn:hover {
    color: #569cd6;
    background: rgba(86, 140, 214, 0.1);
}

.filter-btn.active {
    background: rgba(120, 120, 120, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: #ffffff;
    font-weight: 600;
}

/* 明亮模式筛选按钮 */
body.light-mode .section-header h2 {
    color: #667eea;
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 确保SVG图标不受父元素影响 */
body.light-mode .section-header h2 > i {
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: #667eea !important;
    color: #667eea !important;
}

body.light-mode .section-header p {
    color: #64748b;
}

body.light-mode .filter-group {
    background: rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px) saturate(180%);
    border-color: rgba(102, 126, 234, 0.15);
}

body.light-mode .filter-btn {
    border-right-color: rgba(102, 126, 234, 0.2);
    color: #475569;
}

body.light-mode .filter-btn:last-child {
    border-right: none;
}

body.light-mode .filter-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

body.light-mode .filter-btn.active {
    background: rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: #667eea;
    font-weight: 600;
}

/* 软件卡片 */
.software-card {
    display: flex;
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    margin-bottom: 28px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.software-card:hover {
    border-color: #333;
}

.card-image {
    flex: 0 0 70%;
    aspect-ratio: 21/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-image-content {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    transition: opacity 0.3s;
    width: 100%;
    height: 100%;
}

.card-image-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.03) 50%, transparent 70%);
}

.card-image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

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

.card-image:hover .card-image-content {
    opacity: 0.2;
}

.view-details-btn {
    padding: 14px 32px;
    background: var(--code-blue);
    color: white;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
}

.card-info {
    flex: 1;
    padding: 24px 24px 5px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.card-status {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 3;
}

.card-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #569cd6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: block;
    cursor: pointer;
    flex-shrink: 0;
}

.card-title:hover {
    opacity: 0.8;
}

.card-title span {
}

.card-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-stats {
    display: flex;
    gap: 40px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.stat {
    text-align: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    padding: 8px 4px;
    transition: background 0.2s;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.06);
}

body.light-mode .stat:hover {
    background: rgba(0, 0, 0, 0.04);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--code-yellow);
}

.card-date-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 8px 10px 6px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    min-width: 48px;
    border-top: 3px solid #2563eb;
}

.card-date-day {
    font-size: 32px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1.15;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

.card-date-month {
    font-size: 10px;
    font-weight: 600;
    color: #3b82f6;
    letter-spacing: 0.3px;
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid rgba(37, 99, 235, 0.15);
}

/* 明亮模式卡片 */
body.light-mode .software-card {
    background: #ffffff;
    border: 1px solid rgba(102, 126, 234, 0.12);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.06);
}

body.light-mode .software-card:hover {
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.12);
}


body.light-mode .card-image-content {
    opacity: 0.5;
}

body.light-mode .card-info {
    background: #ffffff;
}

body.light-mode .card-title {
    background: linear-gradient(135deg, #1e293b 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .card-title span {
}

body.light-mode .card-desc {
    color: #64748b;
}

body.light-mode .card-date-badge {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

body.light-mode .card-date-day {
    color: #1d4ed8;
}

body.light-mode .card-date-month {
    color: #2563eb;
}

body.light-mode .card-stats {
    border-top-color: #e2e8f0;
}

body.light-mode .stat-value {
    color: #569cd6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .card-image {
        flex: 0 0 60%;
    }
}

@media (max-width: 768px) {
    .software-list {
        padding: 60px 20px;
    }

    .section-header {
        flex-direction: column;
        gap: 24px;
    }

    .section-header h2 {
        font-size: 28px;
        justify-content: center;
    }

    .section-header h2 i {
        width: 28px;
        height: 28px;
    }

    .section-header p {
        text-align: center;
        font-size: 14px;
    }

    .filter-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        overflow: hidden;
    }

    body.light-mode .filter-group {
        background: rgba(226, 232, 240, 0.5);
        border-color: rgba(102, 126, 234, 0.15);
    }

    body.light-mode .filter-btn {
        border-right-color: rgba(102, 126, 234, 0.2);
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
        flex: 1 1 auto;
        min-width: 60px;
        text-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    body.light-mode .filter-btn {
        border-right-color: rgba(0, 0, 0, 0.06);
    }

    .software-card {
        flex-direction: column;
    }

    .card-image {
        flex: none;
        width: 100%;
        aspect-ratio: 16/9;
    }

    .card-info {
        padding: 24px 20px 20px;
    }

    .card-title {
        font-size: 22px;
    }

    .hero {
        height: 100vh;
        min-height: auto;
        padding: 0;
    }

    .hero-slide {
        position: absolute;
        height: 100%;
        min-height: auto;
        padding: 0;
    }

    .hero-slide-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 14px;
        margin-bottom: 24px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .btn-primary {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 13px;
    }

    .hero-dots {
        bottom: 16px;
    }

    .hero-arrow {
        display: none;
    }

    .features-grid,
    .aigc-cards {
        grid-template-columns: 1fr;
    }

    .card-stats {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
}

/* 分页导航样式 */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 32px 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pagination-item:hover:not(.disabled):not(.active) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}

.pagination-item.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
    transform: scale(1.1);
}

.pagination-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: none;
}

.pagination-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    padding: 12px 24px;
    background: var(--card-bg);
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    display: inline-block;
}

body.light-mode .pagination-info {
    background: #ffffff;
    border-color: #e5e7eb;
}

@media (max-width: 768px) {
    .pagination-item {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .pagination-wrapper {
        padding: 20px 16px;
        gap: 16px;
        margin-top: 24px;
    }

    .pagination-info {
        font-size: 12px;
        padding: 10px 16px;
    }

    .pagination {
        gap: 4px;
    }
}

/* ===== 首页分类卡片网格（软件商店新版式） ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(140, 155, 180, 0.16);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(140, 155, 180, 0.35);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}

.category-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 无封面时的品牌色渐变兜底 */
    background: linear-gradient(135deg, var(--cat-color, #6a9955) 0%, #0a0e27 160%);
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-card-image img {
    transform: scale(1.06);
}

.category-card-fallback-icon {
    width: 72px;
    height: 72px;
    stroke-width: 1.5px;
    color: rgba(255, 255, 255, 0.28);
    opacity: 0.9;
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 8, 0) 30%, rgba(5, 5, 8, 0.92) 100%);
}

.category-card-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #ffffff;
}

.category-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.category-card-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.category-card-count {
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.category-card-desc {
    font-size: 13px;
    color: #b6c2d4;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card-more {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: rgba(5, 5, 8, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.category-card-more i {
    width: 16px;
    height: 16px;
}

.category-card:hover .category-card-more {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 900px) {
    .category-grid {
        gap: 14px;
    }

    .category-card-info {
        padding: 14px 16px;
    }

    .category-card-name {
        font-size: 17px;
    }

    .category-card-count {
        font-size: 11px;
        padding: 3px 10px;
    }

    .category-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }

    .category-card-fallback-icon {
        width: 48px;
        height: 48px;
    }
}

/* 手机版：每行一张卡片 */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* 全部软件页：面包屑 + 筛选/排序下拉工具栏（宽度与下方列表一致：1400px 居中） */
.software-toolbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

/* 全部软件页：列表紧跟工具栏，去掉列表自身的顶部预留间距 */
.software-list-compact {
    padding-top: 0;
}

.toolbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.toolbar-breadcrumb a {
    color: #8b9bb4;
    text-decoration: none;
    transition: color 0.3s;
}

.toolbar-breadcrumb a:hover {
    color: #569cd6;
}

.toolbar-breadcrumb .breadcrumb-sep {
    color: #5c6b80;
}

.toolbar-breadcrumb .breadcrumb-current {
    color: #569cd6;
}

.toolbar-selects {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 9px 36px 9px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.3px;
    color: #e2e8f0;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b9bb4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.toolbar-select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.toolbar-select:focus {
    outline: none;
    border-color: #569cd6;
}

body.light-mode .toolbar-select {
    color: #2c3e50;
    background-color: #ffffff;
    border-color: #d1d9e6;
}

body.light-mode .toolbar-select:hover {
    border-color: #b3c0d4;
}

@media (max-width: 768px) {
    .software-toolbar {
        justify-content: flex-start;
        padding-top: 90px;
    }

    .toolbar-selects {
        width: 100%;
        justify-content: flex-start;
    }

    .toolbar-select {
        flex: 1;
        min-width: 0;
    }
}

/* ============ 首页三区块：最新软件 / 推荐软件 / 服务项目 ============ */
.home-section {
    margin-bottom: 56px;
}

.home-section:last-child {
    margin-bottom: 0;
}

/* 区块标题 */
.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.home-section-title-wrap {
    min-width: 0;
}

.home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #e6edf3;
    line-height: 1.3;
}

.home-section-title i {
    width: 20px;
    height: 20px;
    color: #569cd6;
}

.home-section-sub {
    margin-top: 4px;
    font-size: 13px;
    color: #8b949e;
}

.home-section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 7px 16px;
    border: 1px solid #262b33;
    border-radius: 999px;
    font-size: 13px;
    color: #9aa4b2;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}

.home-section-more i {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.home-section-more:hover {
    border-color: rgba(86, 156, 214, 0.55);
    color: #569cd6;
}

.home-section-more:hover i {
    transform: translateX(3px);
}

/* 软件小卡片：3-6 个自适应横向 */
.home-software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.home-soft-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #121417;
    border: 1px solid #1e2229;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.home-soft-card:hover {
    transform: translateY(-3px);
    border-color: rgba(86, 156, 214, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-soft-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e2530 0%, #141820 100%);
    border: 1px solid #232830;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-soft-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-soft-icon-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.home-soft-body {
    flex: 1;
    min-width: 0;
}

.home-soft-name {
    font-size: 15px;
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-soft-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.55;
    color: #8b949e;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 服务项目：单行横排，4 个小卡片 */
.home-task-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.home-task-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #121417;
    border: 1px solid #1e2229;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.home-task-card:hover {
    transform: translateY(-3px);
    border-color: rgba(86, 156, 214, 0.45);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-task-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e2530 0%, #141820 100%);
    border: 1px solid #232830;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #5b6572;
}

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

.home-task-thumb i {
    width: 26px;
    height: 26px;
}

.home-task-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-task-name {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-task-category {
    font-size: 11.5px;
    color: #8b949e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-task-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.home-task-price {
    font-size: 13px;
    font-weight: 600;
    color: #569cd6;
}

.home-task-price.free {
    color: #3fb950;
}

.home-task-go {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    transition: background 0.2s, color 0.2s;
}

.home-task-go i {
    width: 12px;
    height: 12px;
}

.home-task-card:hover .home-task-go {
    background: #569cd6;
    color: #fff;
}

/* 明亮模式 */
body.light-mode .home-section-title {
    color: #1e293b;
}

body.light-mode .home-section-title i {
    color: #667eea;
}

body.light-mode .home-section-sub {
    color: #64748b;
}

body.light-mode .home-section-more {
    border-color: #dbe1e8;
    color: #64748b;
}

body.light-mode .home-section-more:hover {
    border-color: rgba(102, 126, 234, 0.55);
    color: #667eea;
}

body.light-mode .home-soft-card,
body.light-mode .home-task-card {
    background: #ffffff;
    border-color: #e6e9ef;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

body.light-mode .home-soft-card:hover,
body.light-mode .home-task-card:hover {
    border-color: rgba(102, 126, 234, 0.45);
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.1);
}

body.light-mode .home-soft-icon,
body.light-mode .home-task-thumb {
    background: #f1f5f9;
    border-color: #e2e8f0;
}

body.light-mode .home-soft-name {
    color: #1e293b;
}

body.light-mode .home-soft-desc,
body.light-mode .home-task-category {
    color: #64748b;
}

body.light-mode .home-task-name {
    color: #1e293b;
}

body.light-mode .home-task-price {
    color: #4f46e5;
}

body.light-mode .home-task-price.free {
    color: #16a34a;
}

body.light-mode .home-task-go {
    background: #eef1f5;
    color: #64748b;
}

body.light-mode .home-task-card:hover .home-task-go {
    background: #667eea;
    color: #fff;
}

/* 响应式：手机 2 列；服务项目窄屏保持单行、横向滑动 */
@media (max-width: 1024px) {
    .home-task-row {
        display: flex;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .home-task-row::-webkit-scrollbar {
        display: none;
    }

    .home-task-card {
        flex: 0 0 250px;
        scroll-snap-align: start;
    }
}

@media (max-width: 560px) {
    .home-software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .home-section {
        margin-bottom: 40px;
    }

    .home-section-title {
        font-size: 17px;
    }

    .home-section-more {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 最新软件：图标+标题同一行，中线对齐（无简介、无底部分类） */
.home-soft-card-row {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px;
}

.home-soft-card-row .home-soft-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: transform 0.25s;
}

.home-soft-card-row .home-soft-name {
    min-width: 0;
    font-size: 14px;
}

.home-soft-card-row:hover .home-soft-icon {
    transform: scale(1.06);
}

/* ============ 推荐软件：封面大图卡片（更有视觉冲击力） ============ */
.home-rec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-soft-card-cover {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.home-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, #1e2530 0%, #141820 100%);
}

.home-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.home-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-soft-card-cover:hover .home-cover > img {
    transform: scale(1.05);
}

.home-cover-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}



.home-soft-card-cover .home-soft-body {
    padding: 14px 16px 16px;
}

.home-cover-arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.home-cover-arrow i {
    width: 14px;
    height: 14px;
}

.home-soft-card-cover:hover .home-cover-arrow {
    background: #569cd6;
    transform: rotate(45deg);
}

body.light-mode .home-soft-card-cover:hover .home-cover-arrow {
    background: #667eea;
}

/* 响应式：推荐软件 2 列 → 1 列 */
@media (max-width: 1100px) {
    .home-rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-rec-grid {
        grid-template-columns: 1fr;
    }
}

/* === 列表页页头（H1 + 描述） === */
.list-page-head {
    width: 100%;
    margin-bottom: 14px;
}
.list-page-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 8px;
    line-height: 1.3;
}
.list-page-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin: 0;
}
body.light-mode .list-page-desc {
    color: rgba(30, 41, 59, 0.65);
}
@media (max-width: 640px) {
    .list-page-title { font-size: 26px; }
    .list-page-desc { font-size: 14px; }
}

/* === 博客板块（服务项目下方，左轮播 + 右列表） === */
.home-blog-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* 左栏：轮播 */
.home-blog-carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #161b22;
    border: 1px solid #262b33;
    min-height: 320px;
}
.home-blog-carousel-viewport {
    position: relative;
    height: 100%;
    min-height: 320px;
}
.home-blog-slide {
    position: absolute;
    inset: 0;
    display: none;
    color: inherit;
    text-decoration: none;
}
.home-blog-slide.active {
    display: block;
    animation: homeBlogFade 0.5s ease;
}
@keyframes homeBlogFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.home-blog-slide img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.home-blog-slide-placeholder {
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    background: linear-gradient(135deg, #1c2333, #161b22);
}
.home-blog-slide-placeholder .icon-svg, .home-blog-slide-placeholder i {
    width: 48px;
    height: 48px;
}
.home-blog-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.05) 100%);
}
.home-blog-slide-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 22px;
    z-index: 2;
}
.home-blog-slide-cat {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #0d1117;
    background: #569cd6;
    font-weight: 600;
    margin-bottom: 8px;
}
.home-blog-slide-title {
    font-size: 20px;
    font-weight: 700;
    color: #f0f6fc;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-blog-slide-summary {
    font-size: 13px;
    color: rgba(240, 246, 252, 0.78);
    line-height: 1.6;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-blog-slide-date {
    font-size: 12px;
    color: rgba(240, 246, 252, 0.6);
}
/* 轮播箭头 */
.home-blog-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(13, 17, 23, 0.45);
    color: #f0f6fc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(4px);
}
.home-blog-carousel:hover .home-blog-arrow { opacity: 1; }
.home-blog-prev { left: 12px; }
.home-blog-next { right: 12px; }
.home-blog-arrow i { width: 18px; height: 18px; }
/* 指示点 */
.home-blog-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 5;
}
.home-blog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.home-blog-dot.active {
    background: #569cd6;
    transform: scale(1.25);
}

/* 右栏：文章列表 */
.home-blog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.home-blog-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #262b33;
    background: #161b22;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.home-blog-item:hover {
    border-color: #569cd6;
    background: #1a2030;
}
.home-blog-item-thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b949e;
    background: #1c2333;
}
.home-blog-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-blog-item-thumb i { width: 20px; height: 20px; }
.home-blog-item-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.home-blog-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-blog-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #8b949e;
}
.home-blog-item-cat {
    color: #569cd6;
}
.home-blog-item-go {
    width: 16px;
    height: 16px;
    color: #8b949e;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}
.home-blog-item:hover .home-blog-item-go {
    color: #569cd6;
    transform: translateX(2px);
}

/* 亮色模式适配 */
body.light-mode .home-blog-carousel { background: #fff; border-color: #e2e8f0; }
body.light-mode .home-blog-slide-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.25) 50%, rgba(15, 23, 42, 0.05) 100%); }
body.light-mode .home-blog-slide-placeholder { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #64748b; }
body.light-mode .home-blog-item { background: #fff; border-color: #e2e8f0; }
body.light-mode .home-blog-item:hover { border-color: #569cd6; background: #f8fafc; }
body.light-mode .home-blog-item-thumb { background: #f1f5f9; color: #64748b; }
body.light-mode .home-blog-item-title { color: #1e293b; }
body.light-mode .home-blog-dot { background: rgba(15, 23, 42, 0.25); }

/* 移动端：两栏堆叠为单栏，轮播在上 */
@media (max-width: 768px) {
    .home-blog-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .home-blog-carousel, .home-blog-carousel-viewport, .home-blog-slide img, .home-blog-slide-placeholder {
        min-height: 240px;
    }
    .home-blog-slide-title { font-size: 17px; }
    .home-blog-arrow { opacity: 1; }
    .home-blog-item { padding: 8px 10px; }
}

/* === 首页文章专题板块 === */
.home-topics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.home-topic-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.home-topic-card:hover {
    transform: translateY(-4px);
    border-color: rgba(86,156,214,0.45);
    box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}

body.light-mode .home-topic-card {
    border-color: rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.75);
}

body.light-mode .home-topic-card:hover {
    box-shadow: 0 14px 36px rgba(43,108,176,0.14);
}

.home-topic-cover {
    position: relative;
    aspect-ratio: 16 / 8;
    overflow: hidden;
}

.home-topic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.home-topic-card:hover .home-topic-cover img { transform: scale(1.05); }

.home-topic-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e27 0%, #101630 100%);
    color: rgba(86,156,214,0.5);
}

.home-topic-cover-fallback i,
.home-topic-cover-fallback svg { width: 40px; height: 40px; }

.home-topic-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,5,10,0.05) 0%, rgba(5,5,10,0.4) 100%);
}

.home-topic-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(220,220,170,0.16);
    border: 1px solid rgba(220,220,170,0.35);
    color: #dcdcaa;
    backdrop-filter: blur(8px);
}

.home-topic-badge i,
.home-topic-badge svg { width: 11px; height: 11px; }

.home-topic-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-topic-title {
    font-size: 17px;
    font-weight: 600;
    color: #e8e8e8;
    line-height: 1.4;
    margin: 0 0 6px;
}

body.light-mode .home-topic-title { color: #1a2733; }

.home-topic-subtitle {
    font-size: 13px;
    color: #7d838d;
    line-height: 1.55;
    margin: 0 0 12px;
    flex: 1;
}

.home-topic-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.home-topic-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #6b7078;
}

.home-topic-count i,
.home-topic-count svg { width: 13px; height: 13px; }

.home-topic-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #569cd6;
}

.home-topic-go i,
.home-topic-go svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
    .home-topics-grid { grid-template-columns: 1fr; }
    .home-topic-title { font-size: 16px; }
}
