/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f7fa;
    text-align: justify;
}

a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

a:hover {
    color: #2c7ad6;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

/* 头部样式 */
.header {
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 头图文字 */
.horizontal-center {
    text-align: left;
    margin: 20px;
    padding-top: 35px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 500;
    line-height:2；
}

.header-image {
    width: 100%;
    height: 275px;
    background-image: url('https://rs.p5w.net/company/assets/inv_adv_blue.1a30ff2a.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

.container {
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 侧边栏导航 */
.sidebar {
    width: 100%;
    max-width: 330px;
    flex-shrink: 0;
}

.main-nav {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.nav-item.active .nav-item-header {
    background-color: #2c7ad6;
    color: #fff;
}

.nav-item-header:hover {
    background-color: #f0f0f0;
}

.nav-item.active .nav-item-header:hover {
    background-color: #2c7ad6;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.sub-nav {
    display: none;
    background-color: #fff;
}

.nav-item.active .sub-nav {
    display: block;
}

.sub-nav-link {
    display: block;
    padding: 12px 20px 12px 54px;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.sub-nav-link:hover {
    color: #2c7ad6;
    background-color: #f5f7fa;
    padding-left: 60px;
}

.sub-nav-link.active {
    color: #2c7ad6;
    font-weight: 600;
    background-color: #f0f5ff;
}

/* 首页新闻列表区域 */
.news-section {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.section-title {
    font-size: 20px;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c7ad6;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 2px;
    background-color: #ff7d00;
    bottom: -2px;
    left: 0;
}

.news-list {
    margin-bottom: 25px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-title {
    margin-bottom: 8px;
    font-size: 16px;
}

.news-title a {
    color: #333;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #2c7ad6;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.news-brief {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.more-link {
    display: inline-block;
    color: #2c7ad6;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid #2c7ad6;
    border-radius: 20px;
    transition: all 0.3s;
}

.more-link:hover {
    background-color: #2c7ad6;
    color: #fff;
}

/* 首页联系方式区域 */
.contact-section {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 28px;
    height: 28px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text {
    font-size: 14px;
    color: #666;
}

.form-title {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #2c7ad6;
    outline: none;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background-color: #2c7ad6;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #1a66cc;
}

/* 内页内容区域 */
.content-section {
    flex: 1;
    min-width: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.page-title {
    font-size: 24px;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #2c7ad6;
    bottom: -1px;
    left: 0;
}

.section-subtitle {
    font-size: 18px;
    color: #333;
    margin: 30px 0 20px;
    padding-left: 10px;
    border-left: 3px solid #2c7ad6;
}

/* 关于我们页面 */
.about-section:first-child .section-subtitle {
    margin-top: 0;
}

.about-content {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

.about-image {
    float: right;
    width: 40%;
    margin: 0 0 20px 20px;
    border-radius: 4px;
}

.culture-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.culture-item {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 6px;
    text-align: center;
}

.culture-item h4 {
    color: #2c7ad6;
    margin-bottom: 10px;
    font-size: 16px;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 5px solid #f0f5ff;
}

.member-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.member-position {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.member-bio {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* 产品页面 */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-btn {
    padding: 6px 15px;
    background-color: #f5f5f5;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
}

.filter-btn.active {
    background-color: #2c7ad6;
    color: #fff;
}

.filter-btn:hover:not(.active) {
    background-color: #e9e9e9;
}

.product-list {
    margin-bottom: 30px;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 100%;
    max-width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s;
}

.product-desc.expanded {
    display: block;
    -webkit-line-clamp: unset;
}

.expand-btn {
    background: none;
    color: #2c7ad6;
    font-size: 14px;
    padding: 0;
    margin-bottom: 10px;
}

.expand-btn:hover {
    color: #1a66cc;
    text-decoration: underline;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 16px;
    color: #e53e3e;
    font-weight: 600;
}

.product-detail-link {
    color: #2c7ad6;
    font-size: 14px;
}

.product-detail-link:hover {
    text-decoration: underline;
}

/* 新闻页面 */
.news-filters {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-box {
    display: flex;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-btn {
    background-color: #2c7ad6;
    color: #fff;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
}

.search-btn:hover {
    background-color: #1a66cc;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-full-list {
    margin-bottom: 30px;
}

.news-full-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.news-full-item:last-child {
    border-bottom: none;
}

.news-date-box {
    width: 80px;
    height: 80px;
    background-color: #f0f5ff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-month {
    font-size: 14px;
    color: #2c7ad6;
    font-weight: 600;
}

.news-day {
    font-size: 24px;
    color: #2c7ad6;
    font-weight: 700;
    line-height: 1;
}

.news-year {
    font-size: 12px;
    color: #999;
}

.news-full-content {
    flex: 1;
    min-width: 0;
}

.news-full-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-full-title a {
    color: #333;
    transition: color 0.3s;
}

.news-full-title a:hover {
    color: #2c7ad6;
}

.news-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
}

.news-full-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.news-image {
    max-width: 100%;
    margin: 15px 0;
    border-radius: 4px;
}

/* 联系页面 */
.contact-info-section,
.contact-map-section,
.contact-message-section {
    margin-bottom: 30px;
}

.contact-details {
    margin-top: 20px;
}

.contact-detail-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-icon {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    flex-shrink: 0;
}

.detail-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.detail-content p {
    font-size: 14px;
    color: #666;
}

.map-container {
    margin-top: 20px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
}

.company-map {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.message-form {
    margin-top: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group.half {
    flex: 1;
    min-width: 200px;
}

.message-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.message-form input,
.message-form select,
.message-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
    border-color: #2c7ad6;
    outline: none;
}

.message-form textarea {
    resize: vertical;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}

.page-btn {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 4px;
    border: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.page-btn:hover:not(.active) {
    border-color: #2c7ad6;
    color: #2c7ad6;
}

.page-btn.active {
    background-color: #2c7ad6;
    color: #fff;
    border-color: #2c7ad6;
}

.page-btn.prev,
.page-btn.next {
    width: auto;
    padding: 0 15px;
}

/* 底部样式 */
.footer {
    width: 100%;
    height: 120px;
    background-color: #333;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-links {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    margin: 0 10px;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .sidebar {
        max-width: 280px;
    }
    
    .news-section {
        max-width: 500px;
    }
    
    .contact-section {
        max-width: 350px;
    }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar,
    .news-section,
    .contact-section {
        max-width: 100%;
    }
    
    .about-image {
        float: none;
        width: 100%;
        margin: 0 0 20px 0;
    }
}

@media (max-width: 768px) {
    .header-image {
        height: 200px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .news-date-box {
        width: 60px;
        height: 60px;
    }
    
    .news-day {
        font-size: 20px;
    }
    
    .team-member {
        min-width: 100%;
    }
    
    .footer {
        height: auto;
        padding: 20px 0;
    }
}

@media (max-width: 576px) {
    .header-image {
        height: 150px;
    }
    
    .form-row {
        gap: 0;
    }
    
    .form-group.half {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .product-item {
        flex-direction: column;
    }
    
    .product-image {
        max-width: 100%;
    }
    
    .company-map {
        height: 250px;
    }
    
    .footer-links a {
        display: inline-block;
        margin: 5px 5px;
    }
}
