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

:root {
    --primary: #f4b34a;
    --secondary: #ff6b6b;
    --bg-dark: #0f151d;
    --bg-card: rgba(26, 34, 48, 0.8);
    --text-primary: #e9eef3;
    --text-secondary: #c6d1dc;
    --text-muted: #93a4b7;
    --border-color: rgba(244, 179, 74, 0.2);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] {
    --bg-dark: #fafbfc;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #24292f;
    --text-secondary: #57606a;
    --text-muted: #8c959f;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* P3: Background Radial Glow Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(244, 179, 74, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 107, 107, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(244, 179, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

/* P3: Grid Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(244, 179, 74, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 179, 74, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

[data-theme="light"] body::after {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Header */
header {
    background: rgba(15, 21, 29, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.98);
}

header.scrolled {
    opacity: 0.98;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo img {
    width: 48px;
    height: 48px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.nav-links a:hover svg {
    opacity: 1;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active svg {
    opacity: 1;
}

/* External link indicator */
.nav-links a[target="_blank"]::after,
.footer-section a[target="_blank"]::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2393a4b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    opacity: 0.6;
}

[data-theme="light"] .nav-links a[target="_blank"]::after,
[data-theme="light"] .footer-section a[target="_blank"]::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238c959f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.nav-links a:hover[target="_blank"]::after,
.footer-section a:hover[target="_blank"]::after {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(72%) sepia(22%) saturate(1430%) hue-rotate(346deg) brightness(94%) contrast(88%);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

/* Hero Section - P0: Two-column layout */
.hero {
    padding: 8rem 0 5rem;
    animation: fadeIn 1s ease-in;
}

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

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .version-badge {
    display: inline-block;
    background: rgba(244, 179, 74, 0.15);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    box-sizing: border-box;
    height: 59px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #0f151d;
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 179, 74, 0.4);
}

[data-theme="light"] .cta-button.primary:hover {
    box-shadow: 0 15px 40px rgba(244, 179, 74, 0.3);
}

.cta-button.secondary,
a.cta-button.secondary {
    background: rgba(244, 179, 74, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    /*width: 160px;*/
}

.cta-button.secondary:hover {
    background: rgba(244, 179, 74, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(244, 179, 74, 0.2);
}

[data-theme="light"] .cta-button.secondary:hover {
    background: rgba(244, 179, 74, 0.15);
    box-shadow: 0 15px 40px rgba(244, 179, 74, 0.15);
}

.cta-button svg {
    width: 20px;
    height: 20px;
}

/* P2: Download Dropdown */
.download-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.download-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    z-index: 100;
}

.download-dropdown.open .dropdown-menu {
    display: flex;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(244, 179, 74, 0.1);
}

.arch-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.arch-badge.apple-silicon {
    background: linear-gradient(135deg, rgba(244, 179, 74, 0.2), rgba(255, 107, 107, 0.2));
    color: var(--primary);
}

.arch-badge.intel {
    background: rgba(100, 100, 100, 0.2);
    color: var(--text-secondary);
}

[data-theme="light"] .arch-badge.intel {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
}

.item-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Hero Preview */
.hero-preview {
    position: relative;
}

.preview-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    background: var(--bg-card);
    max-width: 260px;
    height: 430px;
    margin: 0 auto;
}

.preview-wrapper img {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.6s ease;
    object-fit: cover;
    object-position: top;
}

.preview-wrapper img.loaded {
    opacity: 1;
}

/* 渐变淡出遮罩 */
.preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    pointer-events: none;
}

[data-theme="light"] .preview-fade {
    background: linear-gradient(to bottom, transparent, var(--bg-card));
}

.preview-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

[data-theme="light"] .preview-glow {
    opacity: 0.2;
}

/* Features Section */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(244, 179, 74, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(244, 179, 74, 0.3);
    box-shadow: var(--card-shadow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(244, 179, 74, 0.2), rgba(255, 107, 107, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

[data-theme="light"] .feature-icon {
    background: linear-gradient(135deg, rgba(244, 179, 74, 0.15), rgba(255, 107, 107, 0.15));
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* P1: Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 179, 74, 0.3);
    box-shadow: var(--card-shadow);
}

.bento-content {
    flex: 1;
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(244, 179, 74, 0.2), rgba(255, 107, 107, 0.2));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.25rem;
}

.bento-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.bento-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Screenshots Section - Carousel */

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    overflow: hidden;
    border-radius: 20px;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.screenshot-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(244, 179, 74, 0.1);
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    border-color: rgba(244, 179, 74, 0.3);
    box-shadow: var(--card-shadow);
}

.screenshot-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-dark);
}

.screenshot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.screenshot-wrapper img:not(.loaded) {
    opacity: 0;
}

.screenshot-wrapper img.loaded {
    opacity: 1;
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.screenshot-card:hover .screenshot-wrapper img {
    /* 移除缩放效果，保持原始大小 */
}

.zoom-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.screenshot-card:hover .zoom-icon {
    transform: scale(1.1);
}

.zoom-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.screenshot-caption {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
}

/* Carousel Navigation */
.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 34, 48, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(244, 179, 74, 0.4);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-prev svg,
.carousel-next svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: var(--text-secondary);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

/* Installation Section */
.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(244, 179, 74, 0.3);
    box-shadow: var(--card-shadow);
}

.step-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(244, 179, 74, 0.15), rgba(255, 107, 107, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-number {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(244, 179, 74, 0.3);
}

.step-content {
    margin-top: 2rem;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.step-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.step-content code {
    background: rgba(244, 179, 74, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: "SF Mono", "Monaco", monospace;
    font-size: 0.9rem;
}

/* P1: FAQ Section with Native Details/Summary */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(244, 179, 74, 0.3);
}

.faq-item[open] {
    border-color: rgba(244, 179, 74, 0.4);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393a4b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

[data-theme="light"] .faq-item summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c959f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
    animation: faqOpen 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    animation: faqOpen 0.3s ease;
}

.faq-answer p {
    padding: 0;
    margin-bottom: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-answer ul,
.faq-answer ol {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 0.95rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-answer code {
    background: rgba(244, 179, 74, 0.15);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.85rem;
    color: var(--primary);
}

[data-theme="light"] .faq-answer code {
    background: rgba(244, 179, 74, 0.2);
}

@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    background: rgba(15, 21, 29, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    margin-top: 5rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] footer {
    background: rgba(255, 255, 255, 0.95);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section a[target="_blank"]:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23f4b34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

[data-theme="light"] .footer-section a[target="_blank"]:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23f4b34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* P2: Navigation Controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.3rem 0.6rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(244, 179, 74, 0.15);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(244, 179, 74, 0.25);
    transform: rotate(180deg);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    margin: 8px;
    fill: var(--primary);
}

[data-theme="light"] .theme-toggle svg.sun,
[data-theme="light"] .mobile-theme-toggle svg.sun {
    display: block;
}

[data-theme="light"] .theme-toggle svg.moon,
[data-theme="light"] .mobile-theme-toggle svg.moon {
    display: none;
}

[data-theme="dark"] .theme-toggle svg.sun,
[data-theme="dark"] .mobile-theme-toggle svg.sun {
    display: none;
}

[data-theme="dark"] .theme-toggle svg.moon,
[data-theme="dark"] .mobile-theme-toggle svg.moon {
    display: block;
}

/* Auto mode icons - hidden by default */
.theme-toggle svg.auto,
.mobile-theme-toggle svg.auto {
    display: none;
}

/* 移动端主题切换浮动按钮 - 默认隐藏 */
.mobile-theme-toggle {
    display: none;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: rgba(244, 179, 74, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(244, 179, 74, 0.2);
}

.mobile-menu-btn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-content h1 {
        justify-content: center;
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-preview {
        order: 1;
    }

    .preview-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        z-index: 100;
    }

    .nav-links li {
        margin: 0;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 102;
    }

    .lang-switch {
        /*position: fixed;*/
        top: 1rem;
        right: 5rem;
        z-index: 102;
    }

    .mobile-menu-btn {
        right: 1rem;
    }

    /* 移动端隐藏导航栏中的主题切换，显示浮动按钮 */
    .nav-controls .theme-toggle {
        display: none;
    }

    .mobile-theme-toggle {
        display: block;
        position: fixed;
        bottom: 1.5rem;
        right: 1.5rem;
        z-index: 101;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .download-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .download-dropdown.open .dropdown-menu {
        display: flex;
    }

    .faq-item summary {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1rem 1rem;
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        font-size: 0.9rem;
    }

    /* Carousel mobile adjustments */
    .carousel-container {
        max-width: 100%;
        margin: 2rem auto 0;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-prev svg,
    .carousel-next svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-indicators {
        gap: 8px;
        margin-top: 1.5rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }



    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .lightbox-prev {
        left: 0.5rem;
        padding: 0.75rem;
    }

    .lightbox-next {
        right: 0.5rem;
        padding: 0.75rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem;
    }
}

/* Overview Components Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Natural Overview Cards - Image with natural size and text */
.overview-compact-card {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 120px;
}

.overview-compact-card:hover {
    border-color: rgba(244, 179, 74, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.overview-compact-img {
    width: auto;
    max-width: 140px;
    height: auto;
    max-height: 100px;
    background: var(--bg-dark);
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    flex-shrink: 0;
    margin-right: 1.2rem;
    border: 1px solid var(--border-color);
}

.overview-compact-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 8px;
    background: var(--bg-dark);
}

.overview-compact-img img:not(.loaded) {
    opacity: 0;
}

.overview-compact-img img.loaded {
    opacity: 1;
}

.overview-compact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    min-height: 100px;
}

.overview-compact-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.overview-compact-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Remove overlay and zoom icon styles */
.overview-compact-overlay {
    display: none;
}



/* Responsive adjustments for overview */
@media (max-width: 768px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .overview-compact-card {
        padding: 1rem;
        min-height: 100px;
    }
    
    .overview-compact-img {
        max-width: 100px;
        max-height: 80px;
        margin-right: 1rem;
    }
    
    .overview-compact-content {
        min-height: 80px;
    }
    
    .overview-compact-title {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .overview-compact-desc {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-height: 1.4;
    }
    

}