/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c41e3a;
    --secondary-color: #e63946;
    --dark-color: #1a1a1a;
    --gray-color: #666;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== 顶部栏 ==================== */
.top-bar {
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .date {
    color: var(--gray-color);
    font-size: 13px;
}

.top-links a {
    color: var(--gray-color);
    font-size: 13px;
}

.top-links a:hover {
    color: var(--primary-color);
}

.top-links .divider {
    margin: 0 10px;
    color: var(--border-color);
}

/* ==================== 合并后的头部导航 ==================== */
.header-nav {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-nav .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    color: white;
    text-decoration: none;
}

.header-nav .logo img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.header-nav .logo-text h1 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.header-nav .logo-text p {
    font-size: 10px;
    opacity: 0.85;
    letter-spacing: 1px;
}

.header-nav .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .nav-menu > li {
    position: relative;
}

.header-nav .nav-menu > li > a {
    display: block;
    padding: 20px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
}

.header-nav .nav-menu > li:hover > a,
.header-nav .nav-menu > li.active > a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.header-nav .nav-menu > li.active > a {
    border-bottom: 3px solid white;
}

.header-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.header-nav .nav-menu li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-nav .submenu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--dark-color);
}

.header-nav .submenu li a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.header-nav .submenu li:last-child a {
    border-bottom: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-nav .container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .header-nav .logo {
        padding: 10px 0;
    }
    
    .header-nav .logo-text h1 {
        font-size: 16px;
    }
    
    .header-nav .nav-menu > li > a {
        padding: 12px 12px;
        font-size: 13px;
    }
}

/* ==================== 轮播图 ==================== */
.banner {
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    position: relative;
    max-width: 100%;
    height: 400px;
}

.slide {
    display: none;
    position: relative;
    animation: fade 1.5s;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 40px;
}

.slide-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 16px;
    opacity: 0.9;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.prev:hover, .next:hover {
    background: var(--primary-color);
}

.prev { left: 20px; }
.next { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--primary-color);
}

/* ==================== 快捷服务 ==================== */
.quick-services {
    padding: 50px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-item {
    background: white;
    padding: 30px 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 15px;
}

.service-item h3 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.service-item p {
    font-size: 12px;
    color: var(--gray-color);
}

/* ==================== 主要内容 ==================== */
.main-content {
    padding: 40px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.content-section {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.section-header h2 {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .more {
    font-size: 12px;
    opacity: 0.9;
}

.section-header .more:hover {
    opacity: 1;
    text-decoration: underline;
}

.section-body {
    padding: 15px;
    min-height: 280px;
}

.news-list li {
    padding: 12px 10px;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover {
    background: var(--light-gray);
    padding-left: 15px;
}

.news-list a {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.news-list .date {
    color: var(--gray-color);
    font-size: 12px;
    flex-shrink: 0;
    margin-left: 15px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
}

.tag-tender { background: #ffe0e3; color: var(--primary-color); }
.tag-change { background: #fff3e0; color: #e65100; }
.tag-result { background: #e8f5e9; color: #2e7d32; }
.tag-policy { background: #e3f2fd; color: #1565c0; }
.tag-notice { background: #f3e5f5; color: #7b1fa2; }

/* ==================== 数据统计 ==================== */
.statistics {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 50px 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ==================== 合作单位 ==================== */
.partners {
    padding: 50px 0;
    background: var(--light-gray);
}

.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

.partners-slider {
    overflow: hidden;
    position: relative;
}

.partner-track {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    flex-shrink: 0;
    padding: 15px 30px;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    color: var(--gray-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.partner-item:hover {
    color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ==================== 公司介绍 ==================== */
.company-intro {
    padding: 60px 0;
}

.intro-image {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 0 auto;
    background: url('b1.jpg') center center / cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.intro-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;
    width: 600px;
    height: 320px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.intro-text {
    text-align: center;
    color: white;
    max-width: 800px;
}

.intro-title {
    padding-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: white;
}

.intro-desc {
    text-indent: 2em;
    padding: 20px;
    font-size: 14px;
    color: white;
    line-height: 1.8;
    opacity: 0.95;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-num {
    font-size: 42px;
    font-weight: bold;
    color: #ffd700;
}

.feature-label {
    font-size: 14px;
    margin-top: 5px;
    opacity: 0.9;
}

.intro-more {
    display: inline-block;
    padding: 12px 35px;
    background: white;
    color: #c41e3a;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.intro-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.intro-btn {
    width: 120px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.intro-btn:hover {
    background: #a01830;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* ==================== 底部 ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #aaa;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section.contact p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ==================== 搜索弹窗 ==================== */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.search-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color);
    color: white;
}

.modal-header h3 {
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-body .news-list li {
    padding: 10px 0;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-content {
        width: 90%;
        max-width: 500px;
        padding: 20px;
    }
    
    .intro-features {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .nav-menu > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .slideshow-container {
        height: 250px;
    }
    
    .slide img {
        height: 250px;
    }
    
    .slide-text {
        padding: 20px;
    }
    
    .slide-text h2 {
        font-size: 18px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3 {
        display: block;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 10px;
    }
    
    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }
    
    .footer-section ul li {
        margin-bottom: 0;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .intro-content {
        width: 85%;
        height: auto;
        padding: 25px 15px;
    }
    
    .intro-title {
        font-size: 20px;
    }
    
    .intro-desc {
        font-size: 13px;
        padding: 15px 10px;
    }
    
    .intro-features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .feature-item {
        flex: 0 0 45%;
    }
    
    .feature-num {
        font-size: 28px;
    }
    
    .feature-label {
        font-size: 12px;
    }
    
    .intro-btn {
        margin-top: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
        line-height: 45px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        display: none;
    }
    
    .header-nav .container {
        flex-direction: column;
        padding: 8px 10px;
    }
    
    .header-nav .logo {
        padding: 8px 0;
        gap: 10px;
    }
    
    .header-nav .logo img {
        width: 40px;
        height: 40px;
    }
    
    .header-nav .logo-text h1 {
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .header-nav .logo-text p {
        font-size: 8px;
    }
    
    .header-nav .nav-menu {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .header-nav .nav-menu > li > a {
        padding: 10px 10px;
        font-size: 12px;
    }
    
    .header-nav .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .header-nav .nav-menu li:hover .submenu {
        display: block;
    }
    
    .slideshow-container {
        height: 180px;
    }
    
    .slide img {
        height: 180px;
    }
    
    .slide-text {
        padding: 15px;
    }
    
    .slide-text h2 {
        font-size: 16px;
    }
    
    .slide-text p {
        font-size: 13px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .service-item {
        padding: 20px 10px;
    }
    
    .service-item h3 {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .content-grid {
        gap: 15px;
    }
    
    .section-header {
        padding: 12px 15px;
    }
    
    .section-header h2 {
        font-size: 14px;
    }
    
    .section-body {
        padding: 12px;
        min-height: auto;
    }
    
    .news-list li {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .news-list a {
        font-size: 13px;
    }
    
    .news-list .date {
        font-size: 11px;
        margin-left: 10px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 16px;
        line-height: 35px;
    }
    
    .prev { left: 10px; }
    .next { right: 10px; }
    
    .dots {
        bottom: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* 公司介绍响应式 */
    .company-intro {
        padding: 30px 0;
    }
    
    .intro-image {
        height: auto;
        min-height: 250px;
        border-radius: 8px;
    }
    
    .intro-content {
        width: 95%;
        padding: 20px 15px;
        height: auto;
        position: static;
        transform: none;
        margin: 20px auto 0;
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .intro-title {
        font-size: 18px;
    }
    
    .intro-desc {
        font-size: 13px;
        line-height: 1.7;
        padding: 15px 0;
    }
    
    .intro-features {
        gap: 10px;
    }
    
    .feature-num {
        font-size: 24px;
    }
    
    .intro-btn {
        width: 100px;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }
    
    /* 页脚响应式 */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .footer-section ul li a {
        font-size: 12px;
    }
    
    .footer-section.contact p {
        font-size: 12px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
    
    .modal-content {
        width: 98%;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 12px 15px;
    }
    
    .modal-header h3 {
        font-size: 14px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: 300px;
    }
    
    .back-to-top {
        right: 10px;
        bottom: 10px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }
    
    /* 合作伙伴 */
    .partner-track {
        animation-duration: 15s;
    }
    
    .partner-item {
        padding: 10px 20px;
        font-size: 12px;
    }
}

.bidding-table {
    width: 100%;
    overflow-x: auto;
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 48px;
}

.bidding-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bidding-table thead {
    background: linear-gradient(135deg, var(--primary-color), #b8860b);
}

.bidding-table th {
    padding: 16px 15px;
    text-align: left;
    font-weight: 600;
    color: white;
    border-bottom: none;
}

.bidding-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.bidding-table tbody tr {
    transition: all 0.2s;
}

.bidding-table tbody tr:hover {
    background: linear-gradient(90deg, #fff9f9, #fff);
}

.bidding-table tbody tr:last-child td {
    border-bottom: none;
}

.bidding-table tbody tr td:first-child a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.bidding-table tbody tr td:first-child a:hover {
    color: var(--primary-color);
}

.bidding-table .status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.bidding-table .status-ongoing {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
}

.bidding-table .status-upcoming {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.bidding-table .status-ended {
    background: linear-gradient(135deg, #eceff1, #cfd8dc);
    color: #546e7a;
}
