/* ========================================
   HOME PAGE — Unitree-Inspired Cinematic
   ======================================== */

/* ---- Hero (Full-screen cinematic) ---- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--color-black);
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.hero-title {
    font-size: var(--fs-hero);
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    letter-spacing: var(--ls-tight);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-sm);
    text-shadow: 0 4px 60px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: var(--fs-hero-sub);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-indicators .dot {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: background var(--transition-fast), width var(--transition-fast);
}

.hero-indicators .dot.active {
    background: var(--color-white);
    width: 48px;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2s infinite;
}

.scroll-hint span {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ---- Product Showcase (Dark) ---- */
.showcase-dark {
    background: var(--color-gradient-hero);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.showcase-dark .showcase-tagline {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: var(--ls-wide);
    margin-bottom: var(--space-xs);
}

.showcase-dark .showcase-title {
    font-size: var(--fs-display);
    font-weight: var(--fw-extrabold);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.showcase-dark .showcase-desc {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.showcase-image {
    max-width: 700px;
    margin: var(--space-xl) auto 0;
}

.showcase-image img {
    width: 100%;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
}

/* ---- Product Grid (Light, like Unitree) ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
}

/* ---- Stores ---- */
.stores-section {
    background: var(--color-light);
}

.store-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}

.store-card .store-image {
    height: 100%;
    min-height: 300px;
}

.store-card .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-card .store-body {
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-card .store-label {
    font-size: var(--fs-small);
    color: var(--color-accent);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.store-card .store-name {
    font-size: var(--fs-h3);
    font-weight: var(--fw-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.store-card .store-desc {
    font-size: var(--fs-body);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.store-card .store-address {
    font-size: var(--fs-caption);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ---- Franchise Map ---- */
.map-section {
    background: var(--color-white);
}

.map-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.map-container .map-bg {
    width: 100%;
    opacity: 0.6;
}

.map-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.map-pin:hover {
    transform: scale(1.1);
}

.map-pin .pin-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.map-pin .pin-city {
    font-size: var(--fs-caption);
    font-weight: var(--fw-bold);
    color: var(--color-text-dark);
    display: block;
}

.map-pin .pin-location {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    display: block;
}

/* ---- Software — Dark Section ---- */
.software-section {
    background: var(--color-dark);
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Cases Section ---- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-md);
}

/* ---- Education Banner ---- */
.education-banner {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 400px;
}

.education-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.education-banner .edu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
}

.education-banner .edu-overlay h3 {
    font-size: var(--fs-h2);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.education-banner .edu-overlay p {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
    max-width: 500px;
}

/* ---- News Grid ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Enterprise News Layout ---- */
.enterprise-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-md);
    align-items: start;
}

.enterprise-list {
    display: flex;
    flex-direction: column;
}

.enterprise-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-light-alt);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.enterprise-item:hover {
    background: var(--color-light);
}

.enterprise-item .item-date {
    font-size: var(--fs-small);
    color: var(--color-text-muted);
    white-space: nowrap;
}

.enterprise-item .item-title {
    font-size: var(--fs-caption);
    color: var(--color-text-dark);
    font-weight: var(--fw-medium);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

@media (max-width: 768px) {
    .enterprise-layout {
        grid-template-columns: 1fr;
    }

    .store-card {
        grid-template-columns: 1fr;
    }
}

/* ---- View More Link ---- */
.view-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-accent);
    font-size: var(--fs-body);
    font-weight: var(--fw-medium);
    margin-top: var(--space-lg);
}

.view-more:hover {
    color: var(--color-accent-hover);
}

/* ---- Page Hero (Sub pages) ---- */
.page-hero {
    background: var(--color-gradient-hero);
    padding: 140px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: var(--fs-h1);
    color: var(--color-white);
    font-weight: var(--fw-extrabold);
    margin-bottom: var(--space-sm);
}

.page-hero p {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Section Alt ---- */
.section-alt {
    background: var(--color-light);
}