/* ============================================ */
/* Detail Page - Full-Screen Presentation       */
/* ============================================ */

/* === Presentation Container ===
   Normal page flow (no fixed full-screen). Sections stack naturally
   and scroll with the page; the indicator stays fixed on the right. */
.detail-presentation {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
    background: #0a0a0b;
    overflow: visible;
}

body.light-mode .detail-presentation {
    background: #f5f5f7;
}

body.light-mode .detail-slide-dark {
    background-color: #f5f5f7;
}

/* Header states */
.header.detail-cover {
    z-index: 950;
}

.header.detail-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* === Top Bar (hidden in normal-flow mode; site header handles nav) === */
.detail-slide-bar {
    display: none;
}

.detail-slide-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

body.light-mode .detail-slide-bar {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: rgba(0,0,0,0.06);
}

.detail-bar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b9bb4;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.detail-bar-logo:hover { color: #fff; }
body.light-mode .detail-bar-logo:hover { color: #1a1a1a; }

.detail-bar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    overflow: hidden;
}

.detail-bar-sep { color: #444; margin: 0 2px; }
.detail-bar-title { color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.light-mode .detail-bar-title { color: #333; }

.detail-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

.detail-bar-counter {
    font-size: 12px;
    color: #888;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 6px;
}

body.light-mode .detail-bar-counter {
    background: rgba(0,0,0,0.05);
    color: #666;
}

.detail-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: #999;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.detail-bar-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

body.light-mode .detail-bar-btn {
    background: rgba(0,0,0,0.05);
    color: #666;
}
body.light-mode .detail-bar-btn:hover {
    background: rgba(0,0,0,0.1);
    color: #1a1a1a;
}

/* === Viewport / Slides (normal flow, no snap) === */
.detail-viewport {
    width: 100%;
    overflow: visible;
}

.detail-slide {
    width: 100%;
    position: relative;
    /* offset for the fixed site header when jumping to a section */
    scroll-margin-top: 70px;
}

/* Slide content is visible by default; the .active class adds a
   subtle entrance animation as the section scrolls into view. */
.detail-slide-content,
.detail-hero-inner,
.detail-svg-inner {
    opacity: 1;
    transform: none;
}

/* Entrance animation when scrolled into view (added via IntersectionObserver) */
.detail-slide.in-view .detail-slide-content,
.detail-slide.in-view .detail-hero-inner,
.detail-slide.in-view .detail-svg-inner {
    opacity: 1;
    transform: none;
}

/* First slide animates in immediately on load */
.detail-slide:first-child {
    /* hero handled below */
}

.detail-slide:first-child .detail-hero-inner {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideChildIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* Staggered child animations for cards, features, timeline */
.detail-slide.in-view .adaptive-card,
.detail-slide.in-view .feature-card,
.detail-slide.in-view .changelog-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideChildIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.detail-slide.in-view .adaptive-card:nth-child(1),
.detail-slide.in-view .feature-card:nth-child(1),
.detail-slide.in-view .changelog-item:nth-child(1) { animation-delay: 0.08s; }
.detail-slide.in-view .adaptive-card:nth-child(2),
.detail-slide.in-view .feature-card:nth-child(2),
.detail-slide.in-view .changelog-item:nth-child(2) { animation-delay: 0.14s; }
.detail-slide.in-view .adaptive-card:nth-child(3),
.detail-slide.in-view .feature-card:nth-child(3),
.detail-slide.in-view .changelog-item:nth-child(3) { animation-delay: 0.20s; }
.detail-slide.in-view .adaptive-card:nth-child(4),
.detail-slide.in-view .feature-card:nth-child(4),
.detail-slide.in-view .changelog-item:nth-child(4) { animation-delay: 0.26s; }
.detail-slide.in-view .adaptive-card:nth-child(5),
.detail-slide.in-view .feature-card:nth-child(5),
.detail-slide.in-view .changelog-item:nth-child(5) { animation-delay: 0.32s; }
.detail-slide.in-view .adaptive-card:nth-child(6),
.detail-slide.in-view .feature-card:nth-child(6),
.detail-slide.in-view .changelog-item:nth-child(6) { animation-delay: 0.38s; }
.detail-slide.in-view .adaptive-card:nth-child(7),
.detail-slide.in-view .changelog-item:nth-child(7) { animation-delay: 0.44s; }
.detail-slide.in-view .adaptive-card:nth-child(8),
.detail-slide.in-view .changelog-item:nth-child(8) { animation-delay: 0.50s; }
.detail-slide.in-view .adaptive-card:nth-child(9),
.detail-slide.in-view .changelog-item:nth-child(9) { animation-delay: 0.56s; }

@keyframes slideChildIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section header animation */
.detail-slide.in-view .detail-section-header {
    opacity: 0;
    transform: translateY(16px);
    animation: slideChildIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.detail-slide-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0b;
    padding: 40px 0;
    transition: background-color 0.6s ease, background 0.6s ease;
}

/* === SVG Slide === */
.detail-svg-inner {
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-svg-inner img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 8px;
}

/* === Hero Slide === */
.detail-hero-slide {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #050508 0%, #0a0e27 50%, #050508 100%);
    position: relative;
    overflow: hidden;
}

.detail-hero-slide::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(86, 140, 214, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(197, 134, 192, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.detail-hero-slide > * {
    position: relative;
    z-index: 1;
}

/* Hero inner: constrains content to max-width */
.detail-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 100px 40px 20px;
}

/* === Breadcrumb (hero slide, matches site-wide style) === */
.detail-breadcrumb {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    padding-top: 0;
    flex-shrink: 0;
}

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

.detail-breadcrumb a:hover {
    color: var(--code-blue, #667eea);
}

.detail-breadcrumb .breadcrumb-sep {
    color: #444;
    margin: 0 6px;
}

.detail-breadcrumb .breadcrumb-current {
    color: var(--code-blue, #667eea);
}

body.light-mode .detail-breadcrumb a { color: #64748b; }
body.light-mode .detail-breadcrumb a:hover { color: #667eea; }
body.light-mode .detail-breadcrumb .breadcrumb-sep { color: #cbd5e1; }
body.light-mode .detail-breadcrumb .breadcrumb-current { color: #667eea; }

/* === Hero Footer: 开发信息栏（开发工具/技术栈/开发者/其他 + 更新时间与反馈） === */
.detail-hero-footer {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 40px;
}

/* 横向开发信息栏：约 100px 高，开发工具/技术栈/开发者/其他 + 更新时间与在线反馈 */
.dev-info-bar {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 16px 0;
}

.dev-info-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dev-info-label {
    font-size: 12px;
    color: #7d8ba3;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.dev-info-text {
    font-size: 13px;
    color: #aab4c8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.dev-tools-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.dev-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    color: #c3ccdb;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.dev-tool img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.dev-tool:hover {
    border-color: rgba(102, 126, 234, 0.6);
    color: #fff;
    background: rgba(102, 126, 234, 0.12);
}

.dev-info-developer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #c3ccdb;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s;
    white-space: nowrap;
}

.dev-info-developer img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.dev-info-developer:hover {
    border-color: rgba(102, 126, 234, 0.6);
    color: #fff;
    background: rgba(102, 126, 234, 0.12);
}

.dev-info-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.detail-hero-update {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
}

body.light-mode .detail-hero-update { color: #94a3b8; }

.detail-hero-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-hero-task-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #c586c0, #9b59b6);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: 0 2px 12px rgba(155, 89, 182, 0.3);
}

.detail-hero-task-btn i { width: 13px; height: 13px; }

.detail-hero-task-btn:hover {
    background: linear-gradient(135deg, #b370a8, #8e44ad);
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

body.light-mode .detail-hero-task-btn {
    background: linear-gradient(135deg, #9b59b6, #667eea);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.3);
}

body.light-mode .detail-hero-task-btn:hover {
    background: linear-gradient(135deg, #8e44ad, #5a6edb);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.45);
}

.detail-hero-feedback {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #569cd6, #667eea);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.detail-hero-feedback i { width: 13px; height: 13px; }

.detail-hero-feedback:hover {
    background: linear-gradient(135deg, #4a8bd4, #5a6edb);
    box-shadow: 0 4px 16px rgba(86, 140, 214, 0.3);
}

body.light-mode .detail-hero-footer {
    border-top-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .detail-hero-feedback {
    background: linear-gradient(135deg, #569cd6, #667eea);
}

body.light-mode .detail-hero-feedback:hover {
    background: linear-gradient(135deg, #4a8bd4, #5a6edb);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

body.light-mode .dev-info-label { color: #64748b; }

body.light-mode .dev-info-text { color: #475569; }

body.light-mode .dev-tool,
body.light-mode .dev-info-developer {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
    color: #475569;
}

body.light-mode .dev-tool:hover,
body.light-mode .dev-info-developer:hover {
    border-color: #667eea;
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

/* === Slide Content (for non-hero sections) === */
.detail-slide-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 60px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.detail-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.detail-section-header h2 {
    font-size: 32px;
    font-weight: 600;
    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;
    margin: 0;
    flex-shrink: 0;
}

body.light-mode .detail-section-header h2 {
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

body.light-mode .detail-section-header h2 i {
    color: #667eea;
    -webkit-text-fill-color: #667eea;
}

/* === Right-side Indicator (fixed so it stays visible while scrolling) === */
.detail-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: opacity 0.4s ease;
}

.detail-indicator-dots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.detail-dot {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.detail-dot:hover { transform: scale(1.15); }

.detail-dot-inner {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .detail-dot-inner {
    background: rgba(0,0,0,0.15);
}

.detail-dot.active .detail-dot-inner {
    width: 10px;
    height: 10px;
    background: #667eea;
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.5);
}

.detail-dot-label {
    position: absolute;
    right: calc(100% + 4px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: #999;
    background: rgba(20,20,22,0.9);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

body.light-mode .detail-dot-label {
    background: rgba(255,255,255,0.9);
    color: #555;
}

.detail-dot:hover .detail-dot-label,
.detail-dot.active .detail-dot-label {
    opacity: 1;
}

/* === Nav Arrows (inside indicator) === */
.detail-nav {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
}

.detail-nav:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

body.light-mode .detail-nav {
    color: rgba(0,0,0,0.3);
}
body.light-mode .detail-nav:hover {
    color: #1a1a1a;
    background: rgba(0,0,0,0.06);
}

/* Counter + fullscreen button nested inside the indicator column */
.detail-indicator-counter {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

.detail-nav-fullscreen {
    margin-top: 2px;
}

body.light-mode .detail-indicator-counter { color: #666; }

/* === Progress Bar (fixed to top of viewport) === */
.detail-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.05);
    z-index: 200;
}

.detail-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================ */
/* Hero Section (inside slide)                  */
/* ============================================ */

/* Hero Container */
.hero-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    width: 100%;
    flex: 1;
}

.hero-left {
    flex: 0 0 40%;
    position: relative;
    z-index: 1;
}

.hero-right {
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Software Header */
.software-header {
    margin-bottom: 24px;
}

.software-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    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;
}

.software-header p {
    font-size: 15px;
    color: #8b9bb4;
    font-weight: 300;
    line-height: 1.8;
}

/* === Version Tabs - Glass Morphism === */
.version-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    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;
}

.version-tab {
    flex: 1;
    padding: 10px 16px;
    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;
    text-align: center;
    letter-spacing: 0.5px;
}

.version-tab:last-child { border-right: none; }

.version-tab:hover {
    color: var(--code-blue);
    background: rgba(86, 140, 214, 0.1);
}

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

/* Version Info */
.version-info {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.version-desc {
    font-size: 14px;
    color: #d0d6e0;
    line-height: 1.8;
    margin-bottom: 16px;
}

.version-price {
    font-size: 36px;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 10px;
}

.version-price del {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #999;
    color: #999;
}

.version-price .discount-price {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ff0000;
    color: #ff0000;
    font-weight: 700;
    margin-left: 6px;
}

.version-price .discount-price.vip {
    -webkit-text-fill-color: #d4a017;
    color: #d4a017;
}

.version-price .discount-link {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #3b82f6;
    color: #3b82f6;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    margin-left: 8px;
}

.version-price .vip-gold-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f7d774, #d4a017);
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #4a2c00;
    background-clip: border-box;
    color: #4a2c00;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 4px;
    margin-right: 6px;
    letter-spacing: 0.5px;
    vertical-align: middle;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.version-note {
    font-size: 12px;
    color: var(--code-green);
    line-height: 1.6;
}

/* Buy / Download Buttons */
.version-actions {
    display: flex;
    gap: 12px;
}

.purchase-notice {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vip-notice {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a84c;
    border: 1px solid rgba(201, 168, 76, 0.3);
}
.vip-notice a {
    color: #c9a84c;
    text-decoration: underline;
}
.vip-notice .notice-warn {
    color: #e06c75;
}
.limit-notice {
    background: rgba(86, 156, 214, 0.1);
    color: #569cd6;
    border: 1px solid rgba(86, 156, 214, 0.2);
}

.buy-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #569cd6, #c586c0);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(86, 140, 214, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(86, 140, 214, 0.4);
}

.buy-button:active { transform: translateY(0); }

.download-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: transparent;
    color: #569cd6;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(86, 140, 214, 0.3);
    border-radius: 4px;
    text-align: center;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

/* === Media Placeholder === */
.media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.media-placeholder span {
    font-size: 14px;
    color: rgba(255,255,255,0.3);
}

/* ============================================ */
/* Adaptive Card Grid                           */
/* ============================================ */

.adaptive-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    min-height: 0;
    align-content: start;
}

/* 1 card: single centered large card */
.adaptive-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.adaptive-grid[data-count="1"] .adaptive-card {
    flex-direction: row;
    align-items: center;
}

.adaptive-grid[data-count="1"] .adaptive-card-image {
    flex: 0 0 45%;
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
    border-radius: 12px 0 0 12px;
}

.adaptive-grid[data-count="1"] .adaptive-card-body {
    flex: 1;
    padding: 32px;
}

.adaptive-grid[data-count="1"] .adaptive-card-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.adaptive-grid[data-count="1"] .adaptive-card-desc {
    font-size: 15px;
    line-height: 1.8;
    -webkit-line-clamp: 4;
}

/* 2 cards: side by side */
.adaptive-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

/* 3 cards: three columns */
.adaptive-grid[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 cards: 2x2 grid */
.adaptive-grid[data-count="4"] {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

/* 5 cards: left large + right 4 */
.adaptive-grid[data-count="5"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
}

.adaptive-grid[data-count="5"] .adaptive-card-featured {
    grid-row: span 2;
}

.adaptive-grid[data-count="5"] .adaptive-card-featured .adaptive-card-image {
    min-height: 100%;
}

/* 6+ cards: 3 columns */
.adaptive-grid[data-count="6"],
.adaptive-grid[data-count="7"],
.adaptive-grid[data-count="8"],
.adaptive-grid[data-count="9"] {
    grid-template-columns: repeat(3, 1fr);
}

/* === Adaptive Card Base === */
.adaptive-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.adaptive-card:hover {
    border-color: rgba(86, 140, 214, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(86, 140, 214, 0.15);
}

.adaptive-card.hidden {
    display: none;
}

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

.adaptive-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%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.adaptive-card-image-placeholder {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(86, 140, 214, 0.3);
}

.adaptive-card-image-placeholder i {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.adaptive-card-body {
    padding: 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.adaptive-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adaptive-card-desc {
    font-size: 13px;
    color: #8b9bb4;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.adaptive-card-date {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Light mode cards */
body.light-mode .adaptive-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
}

body.light-mode .adaptive-card:hover {
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18);
}

body.light-mode .adaptive-card-image {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

body.light-mode .adaptive-card-title { color: #1e293b; }
body.light-mode .adaptive-card-desc { color: #64748b; }
body.light-mode .adaptive-card-date { color: #94a3b8; }

/* ============================================ */
/* Comparison Table                             */
/* ============================================ */

.comparison-scroll-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0;
}

.comparison-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.comparison-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.comparison-scroll-wrapper::-webkit-scrollbar-thumb {
    background: rgba(86, 140, 214, 0.3);
    border-radius: 3px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    padding: 16px;
    text-align: left;
    border-bottom: 2px solid rgba(86, 140, 214, 0.3);
    letter-spacing: 0.5px;
}

.comparison-table th:first-child {
    color: #8b9bb4;
    font-weight: 500;
}

.comparison-table td {
    color: #8b9bb4;
    font-size: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}

.comparison-table .highlight {
    color: var(--code-green);
    font-weight: 600;
}

.comparison-table tbody tr {
    transition: background 0.3s;
}

.comparison-table tbody tr:hover {
    background: rgba(86, 140, 214, 0.05);
}

body.light-mode .comparison-table th {
    color: #1e293b;
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

body.light-mode .comparison-table th:first-child { color: #64748b; }
body.light-mode .comparison-table td { color: #64748b; border-bottom-color: rgba(0,0,0,0.06); }
body.light-mode .comparison-table .highlight { color: #10b981; }
body.light-mode .comparison-table tbody tr:hover { background: rgba(102, 126, 234, 0.05); }

/* ============================================ */
/* Tags                                         */
/* ============================================ */

.tutorial-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.tutorial-tag {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    color: #8b9bb4;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    white-space: nowrap;
}

.tutorial-tag:hover {
    color: #569cd6;
    border-color: rgba(86, 140, 214, 0.3);
    background: rgba(86, 140, 214, 0.08);
}

.tutorial-tag.active {
    color: #fff;
    background: rgba(86, 140, 214, 0.2);
    border-color: rgba(86, 140, 214, 0.4);
}

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

body.light-mode .tutorial-tag:hover {
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
}

body.light-mode .tutorial-tag.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

/* ============================================ */
/* Changelog Timeline                           */
/* ============================================ */

.changelog-timeline-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    min-height: 0;
}

.changelog-timeline-wrapper::-webkit-scrollbar { height: 6px; }
.changelog-timeline-wrapper::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
.changelog-timeline-wrapper::-webkit-scrollbar-thumb { background: rgba(86, 140, 214, 0.3); border-radius: 3px; }
.changelog-timeline-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(86, 140, 214, 0.5); }

.changelog-timeline {
    display: flex;
    gap: 0;
    min-width: max-content;
    padding: 0 20px;
    position: relative;
}

.changelog-timeline::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(86, 140, 214, 0.3), rgba(197, 134, 192, 0.3), rgba(86, 140, 214, 0.3));
    z-index: 1;
}

.changelog-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 260px;
    position: relative;
}

.changelog-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111;
    border: 3px solid #333;
    flex-shrink: 0;
    z-index: 2;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.changelog-item:hover .changelog-dot { transform: scale(1.3); }

.changelog-item.released .changelog-dot {
    background: var(--code-green);
    border-color: var(--code-green);
    box-shadow: 0 0 12px rgba(106, 153, 85, 0.4);
}

.changelog-item.developing .changelog-dot {
    background: var(--code-blue);
    border-color: var(--code-blue);
    box-shadow: 0 0 12px rgba(86, 140, 214, 0.4);
}

.changelog-item.planned .changelog-dot {
    background: var(--code-orange);
    border-color: var(--code-orange);
    box-shadow: 0 0 12px rgba(206, 145, 120, 0.4);
}

.changelog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 16px;
    width: calc(100% - 20px);
    transition: all 0.3s ease;
}

.changelog-card:hover {
    border-color: rgba(86, 140, 214, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.changelog-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 500;
}

.changelog-version {
    font-size: 15px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
}

.changelog-date {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.changelog-desc {
    font-size: 13px;
    color: #8b9bb4;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-released {
    background: rgba(106, 153, 85, 0.15);
    color: var(--code-green);
    border: 1px solid rgba(106, 153, 85, 0.3);
}

.tag-developing {
    background: rgba(86, 140, 214, 0.15);
    color: var(--code-blue);
    border: 1px solid rgba(86, 140, 214, 0.3);
}

.tag-planned {
    background: rgba(206, 145, 120, 0.15);
    color: var(--code-orange);
    border: 1px solid rgba(206, 145, 120, 0.3);
}

body.light-mode .changelog-card {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
}

body.light-mode .changelog-card:hover {
    border-color: rgba(102, 126, 234, 0.35);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.18);
}

body.light-mode .changelog-dot { background: #ffffff; border-color: #cbd5e1; }
body.light-mode .changelog-item.released .changelog-dot { background: #10b981; border-color: #10b981; box-shadow: 0 0 12px rgba(16,185,129,0.3); }
body.light-mode .changelog-item.developing .changelog-dot { background: #667eea; border-color: #667eea; box-shadow: 0 0 12px rgba(102,126,234,0.3); }
body.light-mode .changelog-item.planned .changelog-dot { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.3); }
body.light-mode .changelog-version { color: #1e293b; }
body.light-mode .changelog-date { color: #94a3b8; }
body.light-mode .changelog-desc { color: #64748b; }
body.light-mode .changelog-timeline::before { background: linear-gradient(90deg, rgba(102,126,234,0.3), rgba(118,75,162,0.3), rgba(102,126,234,0.3)); }
body.light-mode .tag-released { background: rgba(16,185,129,0.1); color: #10b981; border-color: rgba(16,185,129,0.3); }
body.light-mode .tag-developing { background: rgba(102,126,234,0.1); color: #667eea; border-color: rgba(102,126,234,0.3); }
body.light-mode .tag-planned { background: rgba(245,158,11,0.1); color: #f59e0b; border-color: rgba(245,158,11,0.3); }

/* ============================================ */
/* Light Mode - Hero                            */
/* ============================================ */

body.light-mode .detail-hero-slide {
    background: linear-gradient(135deg,
        rgba(248, 250, 252, 0.8) 0%,
        rgba(226, 232, 240, 0.6) 40%,
        rgba(102, 126, 234, 0.15) 70%,
        rgba(118, 75, 162, 0.12) 100%
    );
}

body.light-mode .detail-hero-slide::before {
    background: radial-gradient(ellipse at 30% 50%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 30%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
}

body.light-mode .software-header h1 {
    background: linear-gradient(135deg, #2c3e50 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

body.light-mode .version-tab {
    border-right-color: rgba(102, 126, 234, 0.15);
    color: #475569;
}

body.light-mode .version-tab:last-child { border-right: none; }
body.light-mode .version-tab:hover { color: #667eea; background: rgba(102,126,234,0.1); }
body.light-mode .version-tab.active { background: rgba(102,126,234,0.2); color: #667eea; font-weight: 600; }
body.light-mode .version-desc { color: #475569; }
body.light-mode .version-price del { -webkit-text-fill-color: #999; }
body.light-mode .version-price .discount-price { -webkit-text-fill-color: #ff0000; }
body.light-mode .version-price .discount-price.vip { -webkit-text-fill-color: #d4a017; }
body.light-mode .version-price .discount-link { -webkit-text-fill-color: #3b82f6; }
body.light-mode .version-price .vip-gold-badge {
    background: linear-gradient(135deg, #f7d774, #d4a017);
    -webkit-text-fill-color: #4a2c00;
    color: #4a2c00;
}

body.light-mode .buy-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35), 0 0 40px rgba(118, 75, 162, 0.2);
}

body.light-mode .buy-button:hover {
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.45), 0 0 60px rgba(118, 75, 162, 0.3);
}

body.light-mode .download-button {
    border-color: rgba(102, 126, 234, 0.4);
    color: #667eea;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-mode .download-button:hover {
    background: rgba(102, 126, 234, 0.12);
    border-color: #667eea;
}

body.light-mode .media-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-color: rgba(102, 126, 234, 0.15);
}

/* ============================================ */
/* Download Modal                               */
/* ============================================ */

.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.download-modal-content {
    background: var(--card-bg, #fff);
    border-radius: 16px;
    padding: 32px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    padding: 4px;
    border-radius: 8px;
}

.download-modal-close:hover { background: var(--hover-bg, #f3f4f6); }

.download-modal-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-option {
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 16px;
}

.download-option-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

/* 下载类型图标：品牌色块 + SVG（不依赖 emoji 字体，任何系统都不会显示问号） */
.download-option-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-option-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.dl-icon-baidu   { background: #e04a3f; }  /* 百度网盘 红 */
.dl-icon-quark   { background: #6b6ef3; }  /* 夸克网盘 紫蓝 */
.dl-icon-lanzou  { background: #1f9e5e; }  /* 蓝奏云 绿 */
.dl-icon-tianyi  { background: #00a4e0; }  /* 天翼云盘 蓝 */
.dl-icon-ali     { background: #ff6a00; }  /* 阿里云盘 橙 */
.dl-icon-disk123 { background: #f14336; }  /* 123云盘 红 */
.dl-icon-direct  { background: #3fb950; }  /* 直接下载 绿 */
.dl-icon-cloud   { background: #569cd6; }  /* 云盘 蓝 */
.dl-icon-local   { background: #8b949e; }  /* 本地下载 灰 */
.dl-icon-link    { background: #6a9955; }  /* 链接 绿 */
.dl-icon-zip     { background: #c586c0; }  /* 压缩包 紫 */
.dl-icon-folder  { background: #d29922; }  /* 文件夹 黄 */
.dl-icon-default { background: #569cd6; }  /* 兜底 蓝 */
.download-option-name { font-weight: 600; font-size: 1em; }

.download-option-link {
    display: inline-block;
    color: var(--link-color, #6366f1);
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.download-option-link:hover { text-decoration: underline; }

.download-option-code {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-secondary, #6b7280);
}

.download-option-code code {
    background: var(--code-bg, #f1f5f9);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
}

.copy-btn {
    background: var(--code-bg, #f1f5f9);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.85em;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
}

.copy-btn:hover { background: var(--hover-bg, #e5e7eb); }

.download-option-empty {
    text-align: center;
    color: var(--text-secondary, #6b7280);
    padding: 16px;
}

/* ============================================ */
/* Mobile / Responsive                          */
/* ============================================ */

@media (max-width: 1200px) {
    .hero-left,
    .hero-right {
        flex: none;
        width: 100%;
    }

    .hero-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .software-header h1 { font-size: 40px; }

    .detail-section-header h2 { font-size: 28px; }
}

@media (max-width: 768px) {
    .detail-slide-bar {
        padding: 8px 12px;
        gap: 8px;
    }
    .detail-bar-breadcrumb { display: none; }
    .detail-bar-counter { font-size: 11px; padding: 3px 8px; }
    .detail-dot-label { display: none; }

    .detail-breadcrumb {
        padding-top: 0;
        font-size: 11px;
    }

    .detail-hero-inner {
        padding: 90px 20px 20px;
    }

    .detail-hero-footer {
        padding: 0 20px;
    }

    .dev-info-bar {
        min-height: 0;
        padding: 14px 0;
        gap: 10px 16px;
    }

    .dev-info-text {
        max-width: 100%;
        white-space: normal;
    }

    .dev-info-meta {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .hero-container {
        padding: 10px 0;
        gap: 20px;
    }

    .software-header h1 { font-size: 32px; }
    .software-header p { font-size: 13px; }

    .version-tabs { margin-bottom: 16px; }
    .version-tab { padding: 8px 12px; font-size: 12px; }

    .version-price { font-size: 28px; }

    .detail-slide-content {
        padding: 70px 16px 16px;
    }

    .detail-section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .detail-section-header h2 {
        font-size: 24px;
    }

    .tutorial-tags {
        justify-content: flex-start;
    }

    .adaptive-grid[data-count="1"] .adaptive-card {
        flex-direction: column;
        align-items: stretch;
    }

    .adaptive-grid[data-count="1"] .adaptive-card-image {
        border-radius: 12px 12px 0 0;
        min-height: auto;
    }

    /* All multi-card grids: single column, horizontal cards */
    .adaptive-grid[data-count="2"],
    .adaptive-grid[data-count="3"],
    .adaptive-grid[data-count="4"],
    .adaptive-grid[data-count="5"],
    .adaptive-grid[data-count="6"],
    .adaptive-grid[data-count="7"],
    .adaptive-grid[data-count="8"],
    .adaptive-grid[data-count="9"] {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 10px;
    }

    .adaptive-grid[data-count="2"] .adaptive-card,
    .adaptive-grid[data-count="3"] .adaptive-card,
    .adaptive-grid[data-count="4"] .adaptive-card,
    .adaptive-grid[data-count="5"] .adaptive-card,
    .adaptive-grid[data-count="6"] .adaptive-card,
    .adaptive-grid[data-count="7"] .adaptive-card,
    .adaptive-grid[data-count="8"] .adaptive-card,
    .adaptive-grid[data-count="9"] .adaptive-card {
        flex-direction: row;
        align-items: stretch;
    }

    .adaptive-grid[data-count="2"] .adaptive-card-image,
    .adaptive-grid[data-count="3"] .adaptive-card-image,
    .adaptive-grid[data-count="4"] .adaptive-card-image,
    .adaptive-grid[data-count="5"] .adaptive-card-image,
    .adaptive-grid[data-count="6"] .adaptive-card-image,
    .adaptive-grid[data-count="7"] .adaptive-card-image,
    .adaptive-grid[data-count="8"] .adaptive-card-image,
    .adaptive-grid[data-count="9"] .adaptive-card-image {
        flex: 0 0 110px;
        aspect-ratio: unset;
        border-radius: 12px 0 0 12px;
    }

    .adaptive-grid[data-count="5"] .adaptive-card-featured {
        grid-row: span 1;
    }

    .adaptive-card-body { padding: 10px 12px; }
    .adaptive-card-title { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 2px; }
    .adaptive-card-desc { font-size: 12px; -webkit-line-clamp: 1; }
    .article-card .adaptive-card-desc { display: none; }
    .adaptive-card-date { margin-top: auto; }

    .changelog-item { flex: 0 0 220px; }
    .changelog-card { padding: 12px; }

    .detail-nav { display: none; }
    .detail-progress { display: none; }

    .detail-indicator {
        display: none;
    }


    .detail-dot-inner {
        width: 6px;
        height: 6px;
    }

    .detail-dot.active .detail-dot-inner {
        width: 8px;
        height: 8px;
    }

    .adaptive-grid[data-count="1"] .adaptive-card-image {
        height: auto;
        flex: 0 0 auto;
        aspect-ratio: 16/9;
    }

    .adaptive-grid[data-count="1"] .adaptive-card-body {
        padding: 10px 12px;
    }

    .adaptive-grid[data-count="1"] .adaptive-card-title {
        font-size: 14px;
        margin-bottom: 2px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .adaptive-grid[data-count="1"] .adaptive-card-desc {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}

/* Note: the page now uses normal document flow at all screen sizes,
   so the previous mobile-only "scroll mode" overrides are no longer
   needed — sections stack and scroll naturally everywhere. */

/* 软件预览模式提示条 */
.software-preview-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 1400px;
    margin: 14px auto 0;
    padding: 10px 14px;
    border: 1px dashed rgba(86, 156, 214, 0.5);
    border-radius: 10px;
    background: rgba(86, 156, 214, 0.08);
    color: #569cd6;
    font-size: 0.85rem;
}

.software-preview-banner i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .software-preview-banner {
        margin: 10px 12px 0;
    }
}

/* 区块「更多」按钮（案例/教程/更新日志） */
.detail-section-more {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #9aa4b2;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}

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

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

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

body.light-mode .detail-section-more {
    border-color: rgba(0, 0, 0, 0.15);
    color: #64748b;
}

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

/* 手机版：首屏不占满整屏，紧凑向上对齐（去掉 100vh 最小高度） */
@media (max-width: 768px) {
    .detail-presentation,
    .detail-hero-slide {
        min-height: 0;
    }
}

/* === FAQ 问答区（手风琴）=== */
.faq-list {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.4);
}
.faq-item.open {
    border-color: rgba(102, 126, 234, 0.55);
    background: rgba(102, 126, 234, 0.06);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}
.faq-question-text {
    flex: 1;
}
.faq-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 600px;
}
.faq-answer-inner {
    padding: 0 22px 18px;
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    white-space: pre-wrap;
}
body.light-mode .faq-item {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(102, 126, 234, 0.15);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
}
body.light-mode .faq-question {
    color: rgba(30, 41, 59, 0.9);
}
body.light-mode .faq-chevron {
    color: rgba(30, 41, 59, 0.45);
}
body.light-mode .faq-answer-inner {
    color: rgba(30, 41, 59, 0.7);
}
@media (max-width: 640px) {
    .faq-question { padding: 14px 16px; font-size: 15px; }
    .faq-answer-inner { padding: 0 16px 14px; }
}

/* === 详情（Markdown 区块）=== */
.detail-markdown {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    font-size: 15px;
    line-height: 1.8;
    color: #c3ccdb;
}

.detail-markdown h2 {
    font-size: 1.5em;
    margin: 1.6em 0 0.7em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8ecf4;
}

.detail-markdown h3 {
    font-size: 1.2em;
    margin: 1.4em 0 0.6em;
    color: #e8ecf4;
}

.detail-markdown h4 {
    font-size: 1.05em;
    margin: 1.2em 0 0.5em;
    color: #e8ecf4;
}

.detail-markdown p {
    margin: 0.9em 0;
}

.detail-markdown ul,
.detail-markdown ol {
    padding-left: 1.6em;
    margin: 0.9em 0;
}

.detail-markdown li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

.detail-markdown blockquote {
    border-left: 4px solid rgba(102, 126, 234, 0.6);
    padding: 0.8em 1.2em;
    margin: 1em 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: #9aa7bd;
}

.detail-markdown pre {
    background: #0d1117;
    border: 1px solid rgba(86, 140, 214, 0.15);
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    margin: 1.5em 0;
}

.detail-markdown pre code {
    display: block;
    background: none;
    padding: 20px 24px;
    font-size: 13px;
    color: #c9d1d9;
    line-height: 1.7;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
    tab-size: 4;
    white-space: pre;
}

.detail-markdown code {
    background: rgba(86, 140, 214, 0.14);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.88em;
    color: #79c0ff;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.detail-markdown a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s;
}

.detail-markdown a:hover {
    color: #8b9be8;
}

.detail-markdown img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

.detail-markdown table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.detail-markdown th,
.detail-markdown td {
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.6em 0.8em;
    text-align: left;
}

.detail-markdown th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
}

.detail-markdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 2em 0;
}

.detail-markdown .bilibili-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 20px 0;
    background: #000;
}

.detail-markdown .bilibili-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.light-mode .detail-markdown {
    color: #475569;
}

body.light-mode .detail-markdown h2,
body.light-mode .detail-markdown h3,
body.light-mode .detail-markdown h4 {
    color: #1e293b;
}

body.light-mode .detail-markdown h2 {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .detail-markdown blockquote {
    background: rgba(102, 126, 234, 0.06);
    color: #64748b;
}

body.light-mode .detail-markdown code {
    background: rgba(102, 126, 234, 0.12);
    color: #4c51bf;
}

body.light-mode .detail-markdown table th,
body.light-mode .detail-markdown table td {
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .detail-markdown table th {
    background: rgba(102, 126, 234, 0.06);
}

body.light-mode .detail-markdown hr {
    border-top-color: rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .detail-markdown {
        font-size: 14px;
    }
}
