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

:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #3dbeb5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background-color: #667eea;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.15) 0%, rgba(34, 193, 195, 0.15) 100%), #ffffff;
    color: var(--text-primary);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 700px;
    text-align: left;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.hero-image img {
    width: 60%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image-label {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    text-align: center;
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 184, 148, 0.08);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 184, 148, 0.15);
    flex-shrink: 0;
}

.stat-icon img {
    width: 32px;
    height: 32px;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-version {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 184, 148, 0.2);
    display: flex;
    gap: 30px;
    font-size: 14px;
    color: var(--text-secondary);
}

.tutorials,
.comics {
    padding: 50px 20px;
    background-color: var(--bg-light);
}

.tutorials h2,
.comics h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.tutorial-list,
.comic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.tutorial-card,
.comic-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.tutorial-card:hover,
.comic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.tutorial-card a,
.comic-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-image {
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.tutorial-card:hover .card-image img,
.comic-card:hover .card-image img {
    transform: scale(1.05);
}

.tutorial-card h3,
.comic-card h3 {
    padding: 20px 20px 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.tutorial-card p,
.comic-card p {
    padding: 0 20px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-card time,
.comic-card time {
    display: block;
    padding: 0 20px 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.card-meta {
    padding: 0 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.views {
    display: flex;
    align-items: center;
    gap: 5px;
}

.about {
    padding: 50px 20px;
    background-color: var(--bg-white);
}

.about h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 60px 20px 30px;
}

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

.footer-brand img {
    height: 40px;
    width: auto;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

.screenshots {
    padding: 50px 0 30px;
    background-color: var(--bg-white);
}

.screenshots h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scroll-wrapper {
    display: flex;
    animation: scrollLeft 30s linear infinite;
}

.scroll-wrapper:hover {
    animation-play-state: paused;
}

.scroll-item {
    flex-shrink: 0;
    width: 320px;
    height: 560px;
    margin-right: 20px;
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

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

.versions {
    padding: 50px 20px;
    background-color: var(--bg-light);
}

.versions h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.version-card {
    background: white;
    border: 2px solid #333;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: #00b894;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.eh-logo {
    color: white;
    font-size: 32px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.card-title h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.3;
}

.card-rating .star {
    font-size: 14px;
    color: #f1c40f;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
}

.update-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.know-more {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #333;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.know-more:hover {
    background: #555;
}

.know-more::before {
    content: '»';
    margin-right: 4px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: justify;
}

.faq {
    padding: 50px 20px;
    background-color: var(--bg-white);
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq-header:hover {
    background: rgba(255, 107, 107, 0.1);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-arrow {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-content {
    max-height: 200px;
    padding: 0 20px 20px;
}

.faq-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }

    .header-actions {
        gap: 10px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .hero {
        padding: 120px 20px 60px;
        text-align: center;
        flex-direction: column;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .stat-item {
        padding: 8px 12px;
        flex-shrink: 0;
    }

    .stat-icon img {
        width: 28px;
        height: 28px;
    }

    .stat-number {
        font-size: 16px;
    }

    .stat-label {
        font-size: 11px;
    }

    .hero-version {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .carousel-slide {
        height: 400px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .tutorial-list {
        grid-template-columns: 1fr;
    }

    .card-image img {
        height: 180px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand img {
        margin: 0 auto 15px;
    }
}

@media (max-width: 480px) {
    .nav {
        gap: 15px;
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .tutorials,
    .about,
    .screenshots,
    .versions,
    .faq {
        padding: 60px 15px;
    }

    .tutorial-card h3 {
        font-size: 15px;
    }

    .stat-item {
        flex-direction: row;
        gap: 8px;
        padding: 6px 10px;
        flex-shrink: 0;
    }

    .stat-icon img {
        width: 24px;
        height: 24px;
    }

    .stat-number {
        font-size: 14px;
    }

    .stat-label {
        font-size: 10px;
    }

    .scroll-item {
        width: 260px;
        height: 460px;
        margin-right: 15px;
    }
}