* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
}

/* Dark Mode */
body.dark-mode {
    background: #0f0f0f;
    color: #e0e0e0;
}

body.dark-mode .header {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
}

body.dark-mode .logo { color: #e0e0e0; }
body.dark-mode .nav a { color: #a0a0a0; }
body.dark-mode .nav a:hover,
body.dark-mode .nav a.active { color: #e0e0e0; }
body.dark-mode .theme-toggle { background: #2a2a2a; color: #e0e0e0; }
body.dark-mode .theme-toggle:hover { background: #333; }
body.dark-mode .icon-light { display: inline; }
body.dark-mode .icon-dark { display: none; }

body.dark-mode .hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

body.dark-mode .version-badge {
    background: #fbbf24;
    color: #0f0f0f;
}

body.dark-mode .features-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

body.dark-mode .feature-item {
    background: #141414;
    border: 1px solid #2a2a2a;
}

body.dark-mode .feature-item:hover {
    background: #1f1f1f;
    border-color: #333;
}

body.dark-mode .feature-icon {
    background: #2a2a2a;
}

body.dark-mode .download-card,
body.dark-mode .requirements,
body.dark-mode .quick-guide {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

body.dark-mode .app-icon {
    background: #2a2a2a;
}

body.dark-mode .info-row {
    border-bottom: 1px solid #2a2a2a;
}

body.dark-mode .label {
    color: #a0a0a0;
}

body.dark-mode .download-btn {
    background: #fbbf24;
    color: #0f0f0f;
}

body.dark-mode .download-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

body.dark-mode .download-stats {
    background: #141414;
}

body.dark-mode .stat-number {
    color: #fbbf24;
}

body.dark-mode .footer {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    color: #a0a0a0;
}

body.dark-mode .footer a { color: #e0e0e0; }

/* Light Mode */
body.light-mode {
    background: #f5f5f5;
    color: #2c3e50;
}

body.light-mode .header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

body.light-mode .logo { color: #2c3e50; }
body.light-mode .nav a { color: #5a6c7d; }
body.light-mode .nav a:hover,
body.light-mode .nav a.active { color: #2c3e50; }
body.light-mode .theme-toggle { background: #e5e5e5; color: #2c3e50; }
body.light-mode .theme-toggle:hover { background: #d5d5d5; }
body.light-mode .icon-light { display: none; }
body.light-mode .icon-dark { display: inline; }

body.light-mode .hero {
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
}

body.light-mode .version-badge {
    background: #f59e0b;
    color: #fff;
}

body.light-mode .features-section {
    background: #fff;
    border: 1px solid #e5e5e5;
}

body.light-mode .feature-item {
    background: #fafafa;
    border: 1px solid #e5e5e5;
}

body.light-mode .feature-item:hover {
    background: #f5f5f5;
    border-color: #d5d5d5;
}

body.light-mode .feature-icon {
    background: #e5e5e5;
}

body.light-mode .download-card,
body.light-mode .requirements,
body.light-mode .quick-guide {
    background: #fff;
    border: 1px solid #e5e5e5;
}

body.light-mode .app-icon {
    background: #e5e5e5;
}

body.light-mode .info-row {
    border-bottom: 1px solid #e5e5e5;
}

body.light-mode .label {
    color: #5a6c7d;
}

body.light-mode .download-btn {
    background: #f59e0b;
    color: #fff;
}

body.light-mode .download-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
}

body.light-mode .download-stats {
    background: #fafafa;
}

body.light-mode .stat-number {
    color: #f59e0b;
}

body.light-mode .footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    color: #5a6c7d;
}

body.light-mode .footer a { color: #2c3e50; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    border-bottom: 1px solid;
    z-index: 100;
    transition: all 0.3s;
    flex-shrink: 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.theme-toggle {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    margin-left: 8px;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Main */
.main {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom Scrollbar */
.main::-webkit-scrollbar { width: 8px; }
.main::-webkit-scrollbar-track { background: transparent; }
body.dark-mode .main::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
body.dark-mode .main::-webkit-scrollbar-thumb:hover { background: #444; }
body.light-mode .main::-webkit-scrollbar-thumb { background: #d5d5d5; border-radius: 4px; }
body.light-mode .main::-webkit-scrollbar-thumb:hover { background: #c5c5c5; }

/* Hero */
.hero {
    padding: 40px 20px;
    text-align: center;
    border-radius: 16px;
    margin: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 16px;
}

.version-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 0 20px 20px;
}

/* Features Section */
.features-section {
    padding: 24px;
    border-radius: 12px;
    height: fit-content;
}

.features-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: default;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Download Section */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.download-card {
    padding: 28px;
    border-radius: 12px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.card-header h2 {
    font-size: 1.8rem;
}

.download-info {
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.info-row:last-child {
    border-bottom: none !important;
}

.label {
    font-weight: 500;
}

.value {
    font-weight: 700;
}

.download-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-icon {
    font-size: 1.3rem;
}

.download-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Requirements */
.requirements {
    padding: 20px;
    border-radius: 12px;
}

.requirements h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.req-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.req-item {
    display: flex;
    justify-content: space-between;
}

.req-label {
    font-weight: 500;
    opacity: 0.7;
}

.req-value {
    font-weight: 700;
}

/* Quick Guide */
.quick-guide {
    padding: 20px;
    border-radius: 12px;
}

.quick-guide h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.quick-guide ol {
    margin-left: 20px;
}

.quick-guide li {
    padding: 6px 0;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 14px 0;
    text-align: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.footer p {
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s;
    margin: 0 8px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    .nav {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .req-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }
}