/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

.hero {
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #2c3e50;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

/* 修改后的代码：纯白色，无阴影 */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: white; /* 确保颜色是纯白 */
    text-shadow: none; /* 明确移除所有文字阴影 */
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400; /* 适当加粗以提高清晰度 */
    margin-bottom: 1rem;
    color: white; /* 确保颜色是纯白 */
    text-shadow: none; /* 明确移除所有文字阴影 */
}

.tagline-zh {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 400;
}

.intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture {
    padding: 4rem 2rem;
}
/* 将轮播图上方的文本区域的下边距减小，使其与轮播图更紧凑 */
.reality, .bilingual, .world-knowledge, .instruction-following {
    padding-bottom: 1rem; 
}


.text-block p {
    margin-bottom: 1rem;
}

.zh {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.model-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.model-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.model-desc p {
    margin-bottom: 1rem;
}

.stats {
    font-size: 0.9rem;
    color: #777;
    margin: 0.5rem 0;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-tag {
    background: #e0f7fa;
    color: #00796b;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.cta {
    background: #f0f8ff;
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn:hover {
    background: #1a252e;
}

footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

footer a {
    color: #a8d8ea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Features Showcase Styles */
/* .features-showcase {
    padding: 4rem 2rem;
    background: #fff;
}

.features-showcase h2,
.features-showcase .subtitle {
    text-align: center;
} */

.features-showcase .subtitle {
    color: #666;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}

.showcase-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-item:hover {
    transform: scale(1.03);
    z-index: 10;
}

.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

.item-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
}

.item-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.showcase-item.light-bg {
    background-color: #f8f9fa;
    background-image: none;
}

.showcase-item.light-bg::before {
    display: none;
}

.showcase-item.light-bg .item-content {
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    top: 0;
    padding: 1rem;
}

.showcase-item.light-bg h3 {
    font-size: 2rem;
    font-weight: 700;
}

.item-content.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    background: rgba(0,0,0,0.3);
}

.item-content.center-content h2 {
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

/* Grid item sizing */
.item-wide { grid-column: span 2; }
.item-tall { grid-row: span 2; }
.item-large { grid-column: span 2; grid-row: span 2; }


/* Gallery Carousel Section */
.gallery-carousel {
    padding: 2rem 0 4rem 0; /* 调整上下内边距 */
    background: #f8f9fa;
}

.gallery-carousel .container {
    padding-top: 0;
    padding-bottom: 0;
}

/* Swiper 样式 */
.gallery-swiper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 核心修改：调整滑块和图片尺寸 */
.gallery-swiper .swiper-slide {
    height: 480px; /* **设定一个固定的高度以容纳竖版图片** */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5; /* 图片未填满时的背景色 */
    border-radius: 12px;
    overflow: hidden;
    /* 宽度由JS根据 slidesPerView 自动计算，无需手动设置 */
}

.gallery-swiper .swiper-slide a {
    display: block;
    height: 100%;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-swiper .swiper-slide a:hover {
    transform: scale(1.02);
}

.gallery-swiper .swiper-slide img {
    width: 100%; /* 图片宽度填满 a 标签 */
    height: 100%; /* 图片高度填满 a 标签 */
    object-fit: cover; /* 优先使用 cover 填满，避免留白 */
    transition: filter 0.3s;
}

.gallery-swiper .swiper-slide img:hover {
    filter: brightness(0.98);
}

/* Swiper 分页器样式 */
.swiper-pagination {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.8;
}

.swiper-pagination-bullet-active {
    background: #2c3e50;
    opacity: 1;
}

/* Swiper 导航按钮样式 (修改后) */
.swiper-button-prev,
.swiper-button-next {
    /* 移除背景、圆角和阴影 */
    background: transparent;
    border-radius: 0;
    box-shadow: none;

    /* 设置箭头为白色，并增加文字阴影以确保在任何背景上都清晰可见 */
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);

    /* 保持原有的尺寸和过渡效果 */
    width: 44px;
    height: 44px;
    transition: transform 0.2s;
}

.swiper-button-prev:after, .swiper-button-next:after {
    /* 可以适当增大箭头，让它更显眼 */
    font-size: 28px;
    font-weight: 600; /* 加粗一点更有质感 */
}

/* 修改悬停效果：移除背景变化，改为轻微放大 */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: transparent; /* 确保悬停时也没有背景 */
    color: white;            /* 保持箭头颜色不变 */
    transform: scale(1.15);  /* 轻微放大，提供反馈 */
}


.architecture-image {
    text-align: left;
}

.architecture-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.arena-image {
    text-align: left;
}

.arena-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .tagline {
        font-size: 1.2rem;
    }
    .container {
        padding: 1.5rem;
    }
    .model-card {
        padding: 1rem;
    }
    .gallery-swiper .swiper-slide {
        height: 400px; /* 在小屏幕上减小高度 */
    }
    /* 在移动端隐藏左右按钮，以节省空间 */
    .swiper-button-prev, .swiper-button-next {
        display: none;
    }
}

@media (max-width: 576px) {
    .features-showcase {
        padding: 2rem 1rem;
    }
    .showcase-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .showcase-item.item-wide,
    .showcase-item.item-tall,
    .showcase-item.item-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .item-large .item-content.center-content h2 {
        font-size: 2.5rem;
    }
    .intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture .arena .summary{
        padding: 3rem 1rem;
    }
    .intro, .models, .cta, .reality, .bilingual, .world-knowledge, .instruction-following, .architecture .arena .summary{
        padding-bottom: 1rem;
    }
}

/* Lightbox 样式微调，使其背景更暗 */
body.lb-disable-scrolling {
  overflow: hidden;
}
.lightboxOverlay {
  background-color: rgba(0, 0, 0, 0.85);
}

/* 新增：为图片卡片添加可点击的链接覆盖层 */
.showcase-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index 确保链接在最上层，使整个卡片都可点击 */
    z-index: 3;
    /* 继承父元素的圆角，确保覆盖层也被裁剪 */
    border-radius: 16px; 
}

/* === START: Hero Links 区域完整样式 (无框版) === */
.hero-links {
    position: relative;
    margin-top: 2.5rem;
    max-width: 800px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    /* 移除了背景、边框、圆角、内边距和毛玻璃效果 */
}

.hero-link-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: #f0f0f0;
    /* 调整了上下内边距来控制行间距 */
    padding: 0.5rem 0;
}

.hero-link-item.space-between {
    justify-content: space-between;
}

/* 移除了原有的下边框样式 */
.hero-link-item:not(:last-child) {
    border-bottom: none;
}

.hero-link-item .left-part {
    display: flex;
    align-items: center;
}

.hero-link-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    width: 24px;
    height: 24px;
    text-align: center;
}

.hero-link-item .icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    /* 保留滤镜，让深色图标变白 */
    filter: invert(1);
}

.hero-link-item .icon img.no-invert {
    filter: none;
}

.hero-link-item .text {
    font-weight: 500;
    color: white;
    /* 给文字增加轻微阴影，提高在复杂背景下的可读性 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-link-item .url {
    color: #a8d8ea;
    text-decoration: none;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: color 0.2s, opacity 0.2s;
    word-break: break-all;
    margin-left: 1rem;
    /* 给链接也增加阴影 */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-link-item .url:hover {
    color: white;
    opacity: 1;
    text-decoration: underline;
}

/* 响应式调整 (同样重要) */
@media (max-width: 768px) {
    .hero-links {
        padding: 0; /* 确保在移动端也没有内边距 */
    }
    .hero-link-item.space-between {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    .hero-link-item .url {
       padding-left: calc(24px + 1rem);
       margin-left: 0;
    }
}
/* === END: Hero Links 区域样式 === */

/* === 在这里添加新代码 === */

/* 这是实现左右对齐的关键 */
.hero-link-item.space-between {
    justify-content: space-between;
}

/* 新增：将不包含 space-between 类的项目（即第一行）居中 */
.hero-link-item:not(.space-between) {
    justify-content: center;
}

/* === 添加结束 === */

/* === 新增：为轮播图中的图片添加描述文字样式 === */

/* 首先，为图片的父容器 <a> 设置相对定位，作为文字定位的基准 */
.gallery-swiper .swiper-slide a {
    position: relative;
    /* 确保 <a> 标签是块级元素并填满滑块 */
    display: block;
    width: 100%;
    height: 100%;
}

/* 然后，定义描述文字的样式和位置 */
.slide-caption {
    position: absolute; /* 绝对定位，相对于父容器 <a> */
    bottom: 0;          /* 定位到父容器的底部 */
    left: 0;            /* 从左侧开始 */
    width: 100%;        /* 宽度撑满父容器 */
    
    /* 视觉样式 */
    color: white;       /* 白色字体 */
    font-size: 0.9rem;  /* 偏小的字体 */
    padding: 20px 15px 12px; /* 内边距 (上/左右/下) */
    text-align: left;   /* 文字左对齐 */
    
    /* 添加一个从下到上的黑色半透明渐变，确保白色文字在任何图片上都清晰可见 */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    
    /* 确保文字在图片之上 */
    z-index: 2;
    
    /* 防止文字层意外捕获鼠标事件 */
    pointer-events: none;
    
    /* 确保内边距不会撑大盒子 */
    box-sizing: border-box;
}

