/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* 顶部红色欢迎栏 */
.welcome-bar {
    background-color: #d92121;
    color: #ffffff;
    /*text-align: center;*/
    padding: 8px 0;
    font-size: 14px;
}
.welcome-bar p{
    width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding-left: 50px;
}

/* 导航栏 */
.navbar {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 316px;
    height: 68px;
    margin-right: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: #d92121;
}

.nav-links {
    display: flex;
    list-style: none;
    width: 1100px;
    max-width: 1200px;
    justify-content: space-between;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d92121;
}

.nav-links .active {
    color: #d92121;
    border-bottom: 2px solid #d92121;
    padding-bottom: 5px;
}

/* 主视觉区域 */
.hero-section {
    background: linear-gradient(135deg, #0052d9 0%, #003399 100%);
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 100% 100%, 200px 200px;
    background-position: 0 0, 0 0;
    background-repeat: no-repeat, repeat;
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/indexstatic/images/banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    /*opacity: 0.5;*/
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    height: 50px;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    height: 50px;
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    background-color: #d92121;
    color: #ffffff;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* 内容展示区域 */
.content-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.carousel {
    width: 65%;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.carousel-caption {
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
}

.news-list {
    width: 32%;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-title {
    font-size: 20px;
    font-weight: bold;
    color: #d92121;
    margin-bottom: 20px;
}

.news-items {
    list-style: none;
}

.news-items li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

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

.news-items a {
    text-decoration: none;
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.news-items a:hover {
    color: #d92121;
}

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

/* 广告栏 */
.ad-banner {
    /*background: linear-gradient(135deg, #d92121 0%, #b31a1a 100%);*/
    /*color: #ffffff;*/
    /*text-align: center;*/
    /*padding: 30px 0;*/
    margin-top: 4px;
    margin-bottom: 20px;
    border-radius: 8px;
    /*width: 1200px;*/
    height: 150px;
    background-image: url('/indexstatic/images/ad.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.ad-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ad-logo {
    display: flex;
    align-items: center;
}

.ad-logo img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.ad-logo-text {
    font-size: 20px;
    font-weight: bold;
}

.ad-url {
    font-size: 18px;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
}

/* 咨询模块 */
.consultation-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.consultation-module {
    width: 48%;
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #d92121;
    padding-bottom: 10px;
}

.module-title {
    font-size: 20px;
    font-weight: bold;
    color: #d92121;
}

.module-more {
    text-decoration: none;
    color: #0052d9;
    font-size: 14px;
    font-weight: 500;
}

.module-more:hover {
    text-decoration: underline;
}

.module-content {
    display: flex;
    margin-bottom: 20px;
}

.module-content img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
}

.module-text {
    flex: 1;
}

.module-text h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.module-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 10px;
}

.module-text .date {
    font-size: 12px;
    color: #999999;
}

/* 招投标信息 */
.bidding-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.bidding-header {
    text-align: center;
    margin-bottom: 30px;
}

.bidding-title {
    font-size: 24px;
    font-weight: bold;
    color: #d92121;
    margin-bottom: 10px;
}

.bidding-subtitle {
    font-size: 14px;
    color: #666666;
}

.bidding-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.bidding-card:hover {
    transform: translateY(-5px);
}

.bidding-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.bidding-card-content {
    padding: 15px;
}

.bidding-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.bidding-card-date {
    font-size: 12px;
    color: #999999;
}

/* 页脚 */
.footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: #666666;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 20px;
    }

    .nav-links {
        margin-top: 20px;
    }

    .nav-links li {
        margin-left: 20px;
    }

    .main-content {
        flex-direction: column;
    }

    .carousel, .news-list {
        width: 100%;
        margin-bottom: 20px;
    }

    .ad-content {
        flex-direction: column;
    }

    .ad-logo {
        margin-bottom: 20px;
    }

    .consultation-section {
        flex-direction: column;
    }

    .consultation-module {
        width: 100%;
        margin-bottom: 20px;
    }

    .bidding-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .bidding-grid {
        grid-template-columns: 1fr;
    }
}
