* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 9px;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.logo-text h1 {
    font-size: 22px;
    color: #0d9488;
    font-weight: 700;
    line-height: 1.1;
}

.logo-text .tagline {
    font-size: 12px;
    color: #6b7280;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #0d9488;
}

.hero {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #0d9488;
}

.btn-primary:hover {
    background: #f0fdfa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
}

.hero-image {
    flex: 1;
}

/* Treemap demo visualization */
.treemap-demo {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.treemap-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
}

.app-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.app-dot.red { background: #ef4444; }
.app-dot.yellow { background: #f59e0b; }
.app-dot.green { background: #10b981; }

.treemap-name {
    margin-left: auto;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.treemap-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.toolbar-btn {
    padding: 4px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
}

.toolbar-btn.active {
    background: #ccfbf1;
    border-color: #14b8a6;
    color: #0d9488;
    font-weight: 600;
}

.treemap-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 80px 60px 50px;
    gap: 4px;
}

.tm-block {
    border-radius: 4px;
    padding: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tm-block .tm-label {
    font-size: 11px;
    opacity: 0.95;
}

.tm-block .tm-size {
    font-size: 10px;
    opacity: 0.85;
}

.tm-windows { background: #0d9488; grid-column: 1; grid-row: 1 / 3; }
.tm-games { background: #14b8a6; grid-column: 2; grid-row: 1; }
.tm-photos { background: #2dd4bf; grid-column: 3; grid-row: 1; }
.tm-videos { background: #5eead4; color: #0f766e; grid-column: 2 / 4; grid-row: 2; }
.tm-docs { background: #99f6e4; color: #0f766e; grid-column: 1; grid-row: 3; }
.tm-downloads { background: #ccfbf1; color: #0f766e; grid-column: 2; grid-row: 3; }
.tm-other { background: #f0fdfa; color: #0f766e; grid-column: 3; grid-row: 3; border: 1px solid #ccfbf1; }

.features-preview {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    color: #6b7280;
    max-width: 700px;
    margin: -40px auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f0fdfa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #ccfbf1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

.cta-section {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.footer {
    background: #1f2937;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section p {
    color: #9ca3af;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .treemap-grid {
        grid-template-rows: 70px 50px 40px;
    }
}

.download-section {
    padding: 80px 0;
    background: #fff;
}

.features-section {
    padding: 80px 0;
    background: #f9fafb;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

.faq-section {
    padding: 80px 0;
    background: #fff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f9fafb;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: #0d9488;
}

.faq-answer {
    padding: 20px;
    background: #fff;
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.about-section {
    padding: 80px 0;
    background: #fff;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
}

.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Quickstart section */
.quickstart-section {
    background: #f8fafc;
    padding: 80px 0;
}

.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.quickstart-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.quickstart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.1);
}

.quickstep-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.quickstart-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.quickstart-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 15px;
}

.quickstart-card .quick-link {
    display: inline-block;
    margin-top: 15px;
    color: #0d9488;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.quickstart-card .quick-link:hover {
    text-decoration: underline;
}

/* Changelog section */
.changelog-section {
    padding: 80px 0;
}

.changelog-container {
    max-width: 900px;
    margin: 0 auto;
}

.changelog-item {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0d9488;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.changelog-version {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.changelog-date {
    color: #6b7280;
    font-size: 14px;
    background: #f3f4f6;
    padding: 4px 12px;
    border-radius: 20px;
}

.changelog-content {
    color: #4b5563;
    line-height: 1.8;
}

.changelog-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-content li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.changelog-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: bold;
}

.changelog-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.changelog-badge.new {
    background: #dcfce7;
    color: #166534;
}

.changelog-badge.fix {
    background: #fef3c7;
    color: #92400e;
}

.changelog-badge.improve {
    background: #dbeafe;
    color: #1e40af;
}

.changelog-more {
    text-align: center;
    margin-top: 30px;
}

.changelog-more a {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: #0d9488;
    border: 2px solid #0d9488;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.changelog-more a:hover {
    background: #0d9488;
    color: #fff;
}

/* Scenario cards */
.scenario-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.scenario-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.scenario-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.scenario-badge {
    display: inline-block;
    margin-top: 15px;
    padding: 4px 12px;
    background: #dcfce7;
    color: #166534;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Testimonial */
.testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0d9488;
}

.testimonial-quote {
    font-size: 16px;
    color: #374151;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* Download table */
.download-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.download-table th,
.download-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.download-table th {
    background: #f0fdfa;
    font-weight: 600;
    color: #0d9488;
}

.download-table tr:hover {
    background: #f8fafc;
}

.download-table tr:last-child td {
    border-bottom: none;
}

.version-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
}

.version-tag.stable {
    background: #dcfce7;
    color: #166534;
}

.version-tag.portable {
    background: #dbeafe;
    color: #1e40af;
}

.version-tag.pro {
    background: #fef3c7;
    color: #92400e;
}

.download-link {
    display: inline-block;
    padding: 8px 20px;
    background: #0d9488;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.download-link:hover {
    background: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.file-info {
    color: #6b7280;
    font-size: 13px;
}

.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.install-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
    position: relative;
}

.install-card.recommended {
    border-color: #0d9488;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.install-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.1);
}

.install-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #0d9488;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.install-card h3 {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 8px;
}

.install-card .version {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 5px;
}

.install-card .size {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

.install-card .desc {
    color: #4b5563;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.install-card .btn {
    width: 100%;
    text-align: center;
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.compare-table th {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 600;
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.compare-table .yes {
    color: #10b981;
    font-weight: 700;
}

.compare-table .no {
    color: #ef4444;
    font-weight: 700;
}

.compare-table .highlight {
    background: #f0fdfa;
}

/* How it works */
.how-section {
    padding: 80px 0;
    background: #fff;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.how-card {
    text-align: center;
    padding: 30px;
    background: #f0fdfa;
    border-radius: 12px;
    border: 1px solid #ccfbf1;
}

.how-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.how-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
}

.how-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

/* Trusted orgs */
.trusted-section {
    padding: 60px 0;
    background: #f8fafc;
    text-align: center;
}

.trusted-title {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 30px;
}

.trusted-orgs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
}

.trusted-org {
    color: #9ca3af;
    font-weight: 600;
    font-size: 16px;
}
