/* ==========================================================================
   toolkit-page.css - 齐的工具包3 专页专属样式
   继承 style.css / index_style.css 色彩体系，独立扩展
   ========================================================================== */

/* --- 页面 Hero 区域 --- */
.toolkit-hero {
    text-align: center;
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 30px;
}

body.light-theme .toolkit-hero {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.toolkit-hero-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 6px;
    filter: drop-shadow(0 4px 12px rgba(52, 152, 219, 0.3));
}

.toolkit-hero h2 {
    font-size: 2.4rem;
    margin-bottom: 6px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.version-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #1a1a1a;
    padding: 2px 14px;
    border-radius: 30px;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 4px 12px rgba(247, 151, 30, 0.3);
}

.hero-sub {
    font-size: 1.15rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 6px auto 14px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.hero-badges .badge {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b0d4f0;
}

body.light-theme .hero-badges .badge {
    background: rgba(41, 128, 185, 0.08);
    border-color: rgba(41, 128, 185, 0.15);
    color: #2c3e50;
}

/* --- 下载主干：双栏布局 --- */
.toolkit-download-grid {
    display: flex;
    gap: 24px;
    margin: 20px 0 16px;
    align-items: stretch;
}

/* 左侧：Releases 大卡片 (强化版) */
.release-big-card {
    flex: 0 0 200px;
    min-height: 260px;
    background: linear-gradient(145deg, #2a1a3a, #4a2a5a);
    border-radius: 16px;
    padding: 24px 16px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.release-big-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.release-big-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.release-big-card:hover .card-glow {
    opacity: 1;
}

.release-big-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 0;
    position: relative;
    z-index: 1;
}

.release-big-content .big-icon {
    font-size: 3.2rem;
    margin-bottom: 8px;
}

.release-big-content h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.release-big-content p {
    margin: 6px 0 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.release-big-content .big-arrow {
    margin-top: 14px;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.release-big-card:hover .big-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* 右侧：四个下载卡片 (2x2) */
.download-grid-4 {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    min-width: 0;
}

.dl-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 80px;
}

.dl-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.dl-card .card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.dl-card:hover .card-glow {
    opacity: 1;
}

.dl-card .card-arrow {
    font-size: 1.2rem;
    opacity: 0.3;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.dl-card:hover .card-arrow {
    transform: translateX(6px);
    opacity: 1;
}

.dl-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.dl-card-content h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.dl-card-content p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.75;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* 配色 — 沿用 index_style */
.dl-card.card-exe {
    background: linear-gradient(145deg, #1a4a3a, #2a6b4a);
}
.dl-card.card-rar {
    background: linear-gradient(145deg, #1a2a4a, #2a4a6a);
}
.dl-card.card-lite-exe {
    background: linear-gradient(145deg, #4a3a1a, #6a5a2a);
}
.dl-card.card-lite-rar {
    background: linear-gradient(145deg, #2a3a4a, #3a4a5a);
}

/* --- 亮色主题适配 (继承自 index_style 的 light 适配) --- */
body.light-theme .release-big-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
body.light-theme .release-big-card:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}
body.light-theme .dl-card {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
body.light-theme .dl-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* --- 法律 / 辅助信息条 --- */
.toolkit-legal-bar {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 18px 24px;
    margin: 16px 0 24px;
    border-left: 4px solid #f39c12;
    font-size: 0.95rem;
    line-height: 1.7;
}

body.light-theme .toolkit-legal-bar {
    background: rgba(0,0,0,0.02);
    border-left: 4px solid #e67e22;
}

.toolkit-legal-bar a {
    color: #64b5f6;
    text-decoration: underline;
}
.toolkit-legal-bar a:hover {
    color: #e74c3c;
}

/* --- 功能亮点 --- */
.toolkit-features {
    margin: 30px 0 20px;
}

.toolkit-features h3 {
    color: #3498db;
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-theme .feature-item {
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
}

.feature-item h4 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

body.light-theme .feature-item h4 {
    color: #2980b9;
}

/* --- 更新日志 --- */
.changelog-section {
    margin: 30px 0 10px;
}

.changelog-section h3 {
    color: #3498db;
    font-size: 1.6rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 10px;
    border-left: 3px solid #3498db;
}

body.light-theme .log-item {
    background: rgba(0,0,0,0.02);
    border-left: 3px solid #2980b9;
}

.log-version {
    font-weight: 700;
    color: #f39c12;
    font-size: 0.95rem;
    min-width: 60px;
}

.log-date {
    font-size: 0.8rem;
    opacity: 0.6;
    color: #aaa;
}

.log-item p {
    margin: 0;
    flex: 1;
    min-width: 180px;
    font-size: 0.95rem;
}

.log-toggle-btn {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.2);
    color: #b0d4f0;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 6px;
}

body.light-theme .log-toggle-btn {
    background: rgba(41, 128, 185, 0.06);
    color: #2c3e50;
    border-color: rgba(41, 128, 185, 0.15);
}

.log-toggle-btn:hover {
    background: rgba(52, 152, 219, 0.25);
    transform: translateY(-2px);
}

/* --- 响应式 --- */
@media (max-width: 820px) {
    .toolkit-download-grid {
        flex-direction: column;
        gap: 18px;
    }
    .release-big-card {
        flex: 1 1 auto;
        min-height: 140px;
        padding: 20px;
    }
    .download-grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 550px) {
    .download-grid-4 {
        grid-template-columns: 1fr;
    }
    .dl-card {
        min-height: 70px;
        padding: 14px 16px;
    }
    .dl-card-icon {
        font-size: 1.5rem;
    }
    .dl-card-content h4 {
        font-size: 0.95rem;
    }
    .toolkit-hero h2 {
        font-size: 1.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 400px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .log-item {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }
}




/* ==========================================================================
   通用组件 — 适用于所有功能介绍页
   ========================================================================== */

/* --- 模式标签 (mode-badge) --- */
.mode-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 16px;
    border-radius: 30px;
    background: rgba(52, 152, 219, 0.12);
    color: #64b5f6;
    border: 1px solid rgba(52, 152, 219, 0.06);
    letter-spacing: 0.5px;
}

body.light-theme .mode-badge {
    background: rgba(41, 128, 185, 0.06);
    color: #2980b9;
    border-color: rgba(41, 128, 185, 0.06);
}

.mode-badge.deprecated {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.06);
}

body.light-theme .mode-badge.deprecated {
    background: rgba(231, 76, 60, 0.06);
    color: #c0392b;
}

/* --- 高级模式跳转卡片 (plus-mode-card) --- */
.plus-mode-card {
    display: block;
    background: linear-gradient(145deg, #1a2a3a, #2a4a5a);
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 22px;
    text-decoration: none;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.plus-mode-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
    border-color: rgba(52, 152, 219, 0.15);
}

.plus-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(100, 181, 246, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.plus-mode-card:hover .plus-card-glow {
    opacity: 1;
}

.plus-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.plus-icon {
    font-size: 2rem;
}

.plus-text h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #64b5f6;
}

.plus-text p {
    margin: 2px 0 0 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

.plus-arrow {
    margin-left: auto;
    font-size: 1.2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.plus-mode-card:hover .plus-arrow {
    opacity: 1;
    transform: translateX(6px);
}

body.light-theme .plus-mode-card {
    background: linear-gradient(145deg, #e8f0f8, #d0e0ec);
    border-color: rgba(0, 0, 0, 0.04);
}

body.light-theme .plus-mode-card:hover {
    border-color: rgba(41, 128, 185, 0.15);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

body.light-theme .plus-text h4 {
    color: #2980b9;
}

body.light-theme .plus-text p {
    color: #666;
}

/* --- 功能列表组件 (functions-list) --- */
.functions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.function-item {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

body.light-theme .function-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.func-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

body.light-theme .func-header {
    background: rgba(0, 0, 0, 0.01);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.func-icon {
    font-size: 1.2rem;
}

.func-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #b0d4f0;
}

body.light-theme .func-header h3 {
    color: #2c3e50;
}

.func-tag {
    font-size: 0.55rem;
    font-weight: 600;
    padding: 1px 12px;
    border-radius: 30px;
    background: rgba(139, 195, 74, 0.1);
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.04);
    margin-left: auto;
    letter-spacing: 0.3px;
}

body.light-theme .func-tag {
    background: rgba(139, 195, 74, 0.05);
    color: #558b2f;
}

.func-body {
    padding: 12px 18px 14px;
}

.func-body ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.func-body ul li {
    font-size: 0.88rem;
    color: #aaa;
    padding: 3px 0;
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.func-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #3498db;
}

.func-body ul li strong {
    color: #c8d8e8;
}

body.light-theme .func-body ul li {
    color: #555;
}

body.light-theme .func-body ul li strong {
    color: #2c3e50;
}

.func-body code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 8px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: #64b5f6;
}

body.light-theme .func-body code {
    background: rgba(0, 0, 0, 0.04);
    color: #2980b9;
}