/* General Layout / 基础布局 */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

/* CAROUSEL CORE LOGIC / 轮播核心逻辑 */

.carousel-viewport {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    /* Native Scroll Snap logic / 原生滚动捕捉逻辑 */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    
    /* Hide scrollbar for clean UI / 隐藏滚动条以保持界面简洁 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-slide {
    flex: 0 0 100%; /* Each slide takes 100% width / 每张幻灯片占满宽度 */
    scroll-snap-align: start; /* Snap to the start of each image / 捕捉到每张图片的开头 */
    margin: 0;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover; /* Ensures images look good regardless of ratio / 确保图片在不同比例下表现良好 */
    display: block;
}

.carousel-slide figcaption {
    padding: 1.5rem;
    background: #ffffff;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    border-top: 1px solid #e2e8f0;
}

/* NAVIGATION DOTS / 导航点 */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.carousel-nav a {
    width: 12px;
    height: 12px;
    background-color: #cbd5e1;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.carousel-nav a:hover,
.carousel-nav a:active {
    background-color: #2563eb;
}

/* SEO Lesson UI / 教学 UI */
.seo-lesson {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

@media (max-width: 768px) {
    .seo-lesson { grid-template-columns: 1fr; }
    .carousel-slide img { height: 300px; }
}


/* Footer Styling */
.pattern-footer {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2rem 1rem;
    text-align: center;
}

.back-nav a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

.corporate-links {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #64748b;
}

.corporate-links a {
    color: var(--accent-blue);
    text-decoration: none;
}

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