/* 单页模板样式 */

/* 确保 body 和 html 没有遮挡层 */
body.page-body {
    background: #fff !important;
    overflow-x: hidden;
    position: relative;
}

body.page-body::before,
body.page-body::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html {
    background: #fff !important;
}

html::before,
html::after {
    display: none !important;
    content: none !important;
}

/* 页面包装器 - 白色背景 */
.page-wrapper {
    background: #fff;
    min-height: calc(100vh - 80px);
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.page-wrapper::before,
.page-wrapper::after {
    display: none !important;
    content: none !important;
}

/* 通栏图片区域 */
.page-banner {
    position: relative;
    width: 100%;
    height: 200px;
    background-image: url('../img/b1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.page-banner::before,
.page-banner::after {
    display: none !important;
    content: none !important;
}

.page-banner-overlay {
    display: none;
}

.page-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 面包屑导航 */
.breadcrumb-container {
    background: #f5f5f5;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #06467c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #005faf;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 主要内容区域 */
.page-main {
    padding: 40px 0 60px 0;
    background: #fff;
}

.page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧栏 */
.page-sidebar {
    flex: 0 0 280px;
    max-width: 280px;
}

.sidebar-menu,
.sidebar-contact {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.sidebar-menu:hover,
.sidebar-contact:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #06467c;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #06467c;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #06467c;
    border-radius: 2px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    padding: 14px 15px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
    border-radius: 4px;
    margin: 2px 0;
}

.sidebar-item a::before {
    content: '';
    width: 0;
    height: 100%;
    background: #06467c;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.sidebar-item a:hover {
    color: #06467c;
    background: #f0f7ff;
    padding-left: 20px;
    transform: translateX(3px);
}

.sidebar-item a:hover::before {
    width: 3px;
}

.sidebar-item.active a {
    color: #fff;
    background: linear-gradient(135deg, #06467c 0%, #005faf 100%);
    font-weight: 600;
    padding-left: 20px;
    box-shadow: 0 2px 8px rgba(6, 70, 124, 0.3);
}

.sidebar-item.active a::before {
    width: 0;
}

/* 联系我们 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-item:hover {
    border-bottom-color: #06467c;
}

.contact-label {
    font-weight: 600;
    color: #06467c;
    margin-right: 0;
    display: inline-block;
    min-width: 55px;
    flex-shrink: 0;
    font-size: 14px;
}

.contact-value {
    color: #333;
    font-weight: 400;
    flex: 1;
    word-break: break-all;
}

/* 右侧内容区 */
.page-content {
    flex: 1;
    min-width: 0;
}

.content-wrapper {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.content-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #06467c;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.content-text p {
    margin: 0 0 20px 0;
}

.content-text h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
}

.content-text ul {
    margin: 15px 0;
    padding-left: 30px;
}

.content-text li {
    margin: 8px 0;
    color: #666;
}

/* 在线留言 */
.message-box {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #e0e0e0;
}

.message-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.message-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px 0;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-form-row {
    display: flex;
    gap: 20px;
}

.message-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message-form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.required {
    color: #e53935;
    margin-left: 2px;
}

.message-form-group input,
.message-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.message-form-group input:focus,
.message-form-group textarea:focus {
    border-color: #06467c;
    box-shadow: 0 0 0 2px rgba(6, 70, 124, 0.1);
}

.message-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.message-form-actions {
    margin-top: 10px;
    text-align: right;
}

.message-submit-btn {
    display: inline-block;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #06467c 0%, #005faf 100%);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 70, 124, 0.3);
}

.message-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(6, 70, 124, 0.3);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .page-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .content-wrapper {
        padding: 20px;
    }
    
    .content-title {
        font-size: 24px;
    }

    .message-form-row {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 150px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .page-main {
        padding: 30px 0 40px 0;
    }
    
    .page-container {
        padding: 0 15px;
    }
    
    .page-layout {
        gap: 20px;
    }
    
    .page-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .sidebar-menu,
    .sidebar-contact {
        padding: 15px;
    }
    
    .sidebar-contact {
        display: none;
    }
    
    .sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sidebar-item {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }
    
    .sidebar-item:nth-child(2n) {
        border-right: none;
    }
    
    .sidebar-item a {
        padding: 12px 10px;
        text-align: center;
    }
    
    .sidebar-item.active a {
        padding-left: 10px;
    }
    
    .sidebar-title {
        font-size: 16px;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-text {
        font-size: 14px;
    }

    .message-box {
        margin-top: 25px;
        padding-top: 20px;
    }

    .message-title {
        font-size: 18px;
    }
}
