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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: #1a1a2e;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e94560;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lang-btn {
    background: #e94560;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-btn:hover {
    background: #c73652;
}

.nav-links a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e94560;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-track {
    display: flex;
    transition: transform 0.6s ease;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    background-position: center 38%;
    background-size: cover;
}

.hero-slide-art {
    background-image: url("../images/epaper_beauty.jpg");
}

.hero-slide-board {
    background-image: url("../images/ai_s3.jpg");
    background-position: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 20, 34, 0.92) 0%, rgba(15, 20, 34, 0.68) 46%, rgba(15, 20, 34, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 90px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 800;
    max-width: 680px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-control {
    position: absolute;
    z-index: 2;
    top: 52%;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(15, 20, 34, 0.65);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hero-control:hover {
    background: #e94560;
    transform: scale(1.06);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 2;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.hero-dots button.active {
    background: #fff;
}

.btn {
    display: inline-block;
    background: #e94560;
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: background 0.3s, transform 0.2s;
}

.btn:hover {
    background: #c73652;
    transform: translateY(-2px);
}

/* Gallery */
.gallery {
    padding: 64px 20px;
    background: #f8f9fa;
}

.gallery h2,
.board h2,
.firmware h2,
.features h2,
.contact h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: #1a1a2e;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.gallery-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.gallery-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26, 26, 46, 0.9));
    padding: 40px 24px 24px;
    color: #fff;
}

.card-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.card-overlay p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* Board */
.board {
    padding: 64px 20px;
    background: #fff;
}

.board-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.board-gallery img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.board-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.board-highlights {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.board-highlights li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: #333;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}

.board-highlights li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 10px;
    color: #e94560;
    font-weight: 700;
}

.board-specs-title {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.board-specs {
    color: #666;
    font-size: 0.95rem;
}

.board-plans {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-card {
    padding: 24px 28px;
    border-radius: 16px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.plan-featured {
    border-color: #e94560;
}

.plan-card h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e94560;
    margin-bottom: 10px;
}

.plan-card p {
    color: #666;
    font-size: 0.95rem;
}

.board-cta {
    text-align: center;
    margin-top: 50px;
}

/* Firmware */
.firmware {
    padding: 64px 20px;
    background: #f8f9fa;
}

.firmware-details {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 28px;
    border: 2px solid #e94560;
    border-radius: 16px;
    background: #f8f9fa;
}

.firmware-details h3 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.firmware-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
}

.firmware-highlights li {
    position: relative;
    padding: 10px 0 10px 32px;
    color: #333;
    font-size: 1.05rem;
    border-bottom: 1px solid #ddd;
}

.firmware-highlights li:last-child {
    border-bottom: 0;
}

.firmware-highlights li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 10px;
    color: #e94560;
    font-weight: 700;
}

.firmware-cta {
    text-align: center;
    margin-top: 50px;
}

/* Features */
.features {
    padding: 64px 20px;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    padding: 64px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    text-align: center;
}

.contact p {
    max-width: 600px;
    margin: 16px auto 40px;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #111;
    color: #888;
    text-align: center;
    padding: 24px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 560px;
    }

    .hero-slide::before {
        background: rgba(15, 20, 34, 0.7);
    }

    .hero-content {
        padding: 100px 50px 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-control {
        width: 38px;
        height: 38px;
    }

    .hero-prev {
        left: 8px;
    }

    .hero-next {
        right: 8px;
    }

    .nav-links {
        gap: 12px;
        font-size: 0.9rem;
    }

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

    .board-content {
        grid-template-columns: 1fr;
    }

    .board-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-card img {
        height: 350px;
    }
}
