/* mysite/home/static/home/css/section_style.css */

/* 详情页的介绍文字 */
.intro-text {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* 详情页的内容块 */
.content-block {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.content-block h1 {
    text-align: center;
    color: #ff6347;
    font-size: 2.5rem;
}

.content-block h2 {
    font-size: 2rem;
    color: #3498db; /* 蓝色小标题 */
    border-bottom: 3px dashed #f0f8ff;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* 返回链接 */
.back-link {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b6b;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}
.back-link:hover {
    transform: translateX(-5px);
    text-decoration: underline;
}

/* 图库网格 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-item {
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}
.gallery-item img {
    width: 100%;
    height: 200px; /* 固定高度 */
    object-fit: cover; /* 裁剪图片以填充 */
    display: block;
}
.gallery-item p {
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    margin: 0;
}

/* 文档列表 */
.doc-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.doc-item a {
    display: block;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    color: #444;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.doc-item a:hover {
    background: #f0f8ff;
    transform: scale(1.02);
}
.doc-item a span {
    font-size: 0.9rem;
    color: white;
    background: #f39c12; /* 橙色标签 */
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 10px;
    font-weight: normal;
}
.doc-item a span.pdf { background: #e74c3c; } /* PDF 红色 */
.doc-item a span.ppt { background: #f39c12; } /* PPT 橙色 */