/* 全局样式 */
body {
    font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
}

/* 头部样式 */
.header {
    background: url('images/anli.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 120px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    font-size: 2.8em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.header p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 10px 0 0;
    font-size: 1.2em;
    opacity: 1;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

/* 主内容容器 */
.main-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 分区标题 */
section h2 {
    text-align: center;
    font-size: 2.2em;
    color: #2E8B57;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #3CB371;
    border-radius: 2px;
}

/* 案例网格布局 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* 案例卡片样式 */
.case-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 70, 170, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 70, 170, 0.15);
}

/* 聊天截图容器样式 */
.chat-screenshot {
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px;
    border-bottom: 2px solid #e9ecef;
}

.chat-screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 卡片内容样式 */
.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 15px;
    font-size: 1.4em;
    color: #2E8B57;
    font-weight: bold;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

/* 案例描述样式 */
.case-description {
    font-size: 0.95em;
    color: #555;
    line-height: 1.8;
    margin: 0;
    text-align: left;
}

.case-description strong {
    color: #2E8B57;
    font-weight: 600;
}

/* 录取结果高亮 */
.case-description strong:nth-of-type(2) {
    color: #E63946;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    background-color: #f0fff0;
    color: #555;
    font-size: 0.9em;
}

/* 响应式设计，适应小屏幕 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2em;
    }
    .header p {
        font-size: 1em;
    }
    section h2 {
        font-size: 1.8em;
    }
    .cases-grid {
        grid-template-columns: 1fr; /* 在小屏幕上单列显示 */
    }
    .chat-screenshot img {
        height: 180px;
    }
    .card-content {
        padding: 15px;
    }
}

/* 平板适配 */
@media (max-width: 1024px) and (min-width: 769px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}