@charset "UTF-8";
/* ==========================================
   首页特定样式 (Home Page Styles)
   ========================================== */

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1a365d 0%, #3182ce 100%);
    /* 移除背景图片和遮罩，使用纯色渐变背景 */
}

.hero::after {
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 使用 rgba 以匹配原设计，也可考虑使用 CSS 变量 var(--gradient-overlay) */
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(49, 130, 206, 0.88) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Product Showcase (iPhone Grid) --- */
.product-showcase {
    background: linear-gradient(180deg, #f7fafc 0%, #edf2f7 100%);
    padding: 4rem 0;
}

.showcase-grid {
    display: grid;
    /* 响应式网格：最小宽度 220px */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    /* 确保顶部对齐 */
    align-items: start;
}

.showcase-item {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showcase-item h4 {
    margin-top: 1rem;
    color: var(--deep-space, #1a365d);
    font-size: 0.938rem;
    font-weight: 600;
}

.showcase-item p {
    font-size: 0.875rem;
    color: var(--text-secondary, #718096);
    margin-top: 0.25rem;
}

/* --- Testimonials --- */
.carousel-section {
    padding: 3rem 0;
}

.testimonial-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid #3182ce; /* var(--tech-cyan-dark) */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.testimonial-card img {
    width: 100%;
    /* 强制统一高度，防止卡片高度不一 */
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #2d3748;
    line-height: 1.8;
    font-style: italic;
    flex-grow: 1; /* 让文本占据剩余空间 */
}

.testimonial-author {
    color: #718096;
    font-size: 0.875rem;
    margin-top: 1rem;
    font-weight: 500;
    text-align: right;
}

/* --- Utilities & Adjustments --- */
.text-white { color: white; }
.text-white-90 { color: rgba(255,255,255,0.9); }
.text-white-80 { color: rgba(255,255,255,0.8); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, #1a365d 0%, #3182ce 100%);
    color: white;
}

.cta-btn-custom {
    font-size: 1.125rem;
    padding: 1.25rem 2.5rem;
}

/* --- Footer Adjustments --- */
.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* --- Misc Overrides --- */
.bg-white { background-color: white; }

/* --- Specific Layout Overrides (Moved from inline) --- */

/* Force 4 columns for product showcase on desktop */
.showcase-grid {
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1024px) {
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .showcase-grid { grid-template-columns: 1fr; }
}

/* Course Preview Images - Strict Height Limit */
.course-preview-grid {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    height: 160px; /* 强制容器总高度固定 */
    overflow: hidden; /* 防止任何溢出 */
}
.course-preview-img {
    flex: 1;
    width: 100%;
    height: 100%; /* 强制图片填满固定高度的容器 */
    object-fit: cover;
    border-radius: 6px;
    cursor: zoom-in;
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
    background-color: #f7fafc;
}
.course-preview-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* TokenBase Section */
.tokenbase-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 3rem 0;
    margin-top: 2rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
}
.tokenbase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    text-align: left;
}
@media (max-width: 768px) {
    .tokenbase-grid { grid-template-columns: 1fr; }
}
.tokenbase-content h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
}
.tokenbase-content ul {
    list-style: none;
    padding-left: 0;
}
.tokenbase-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a5568;
}
.tokenbase-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3182ce;
    font-weight: bold;
}
.tokenbase-image {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: white;
}
.tokenbase-image img {
    width: 100%;
    display: block;
}

/* Testimonial Layout Optimization */
.testimonial-layout {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.testimonial-layout img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-bottom: 0;
    border: 3px solid #e2e8f0;
}
.testimonial-content {
    text-align: left;
}

/* ==========================================
   New Product Matrix Styles (3-Tier Layout)
   ========================================= */

/* Tier 2: Enterprise Platforms */
.product-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .product-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-matrix {
        grid-template-columns: 1fr;
    }
}

/* Tier 3: Mini Program Grid */
.mini-program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .mini-program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mini-program-grid {
        grid-template-columns: 1fr;
    }
}

/* Common Carousel Card Styles */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

/* Carousel Container within Card */
.card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Default for enterprise platform screenshots */
    overflow: hidden;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

/* Lightbox trigger styles */
.card-visual img[data-lightbox],
.tokenbase-image img[data-lightbox] {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.card-visual img[data-lightbox]:hover,
.tokenbase-image img[data-lightbox]:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* Adjust for phone screenshots in Mini Programs */
.mini-program-grid .card-visual {
    aspect-ratio: auto;
    height: 480px; /* Fixed height for vertical phone screenshots */
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.mini-program-grid .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.mini-program-grid .carousel-slide img {
    width: auto;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 16px; /* Phone corner radius */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

/* Standard Carousel Image for Enterprise */
.product-matrix .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.25rem;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.card-tag {
    background: #e6fffa;
    color: #2c7a7b;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Carousel Controls Overrides */
.card-visual .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #1a365d;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-visual:hover .carousel-nav {
    opacity: 1;
}

.card-visual .carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.card-visual .carousel-nav.prev { left: 10px; }
.card-visual .carousel-nav.next { right: 10px; }

.card-visual .carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.card-visual .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}

.card-visual .carousel-dot.active {
    background: #3182ce;
    transform: scale(1.2);
}

