/* 通用子页面样式 */

/* 子页面英雄区域 */
.subpage-hero {
    background-image: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.7));
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: 80px;
}

.subpage-hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.subpage-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subpage-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* 子页面内容区域 */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 2.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-12 {
    width: 100%;
    padding: 0 15px;
}

.col-md-6 {
    width: 50%;
    padding: 0 15px;
}

.text-center {
    text-align: center;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #002a5c;
}

.btn-accent {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-accent:hover {
    background-color: #e65100;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* 行式布局 */
.row-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.row-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.row-item:hover {
    transform: translateY(-5px);
}

.row-item-reverse {
    flex-direction: row-reverse;
}

.row-item-image {
    flex: 0 0 40%;
}

.row-item-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.row-item-content {
    flex: 0 0 60%;
}

.row-item-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.row-item-text {
    margin-bottom: 15px;
}

/* 块式布局 */
.block-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.block-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.block-item:hover {
    transform: translateY(-5px);
}

.block-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.block-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.block-item:hover .block-item-image img {
    transform: scale(1.05);
}

.block-item-content {
    padding: 20px;
}

.block-item-title {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.block-item-text {
    margin-bottom: 15px;
}

.block-item-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.block-item-link:hover {
    color: var(--primary-color);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .subpage-hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .col-md-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .row-item {
        flex-direction: column;
    }
    
    .row-item-reverse {
        flex-direction: column;
    }
    
    .row-item-image, 
    .row-item-content {
        flex: 0 0 100%;
    }
}
