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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #2c5f8a;
    text-decoration: none;
}

a:hover {
    color: #c41e3a;
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== 顶部 ===== */
.header {
    background: #1a3a5c;
    color: #fff;
    padding: 15px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-label {
    color: #daa520;
    font-weight: bold;
}

.search-input {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 180px;
}

/* ===== 主导航 ===== */
.main-nav {
    background: linear-gradient(to bottom, #2c5f8a, #1e4a6e);
    border-bottom: 3px solid #daa520;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 12px 18px;
    color: #fff;
    font-size: 15px;
    transition: background 0.3s;
}

.nav-item > a:hover,
.nav-item.active > a {
    background: #daa520;
    color: #fff;
    text-decoration: none;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    list-style: none;
}

.nav-item:hover .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.sub-menu li a:hover {
    background: #f0f0f0;
    color: #c41e3a;
}

/* ===== 主内容 ===== */
.main-content {
    padding: 25px 0;
    min-height: 500px;
}

/* ===== 面包屑 ===== */
.breadcrumb {
    padding: 10px 0;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #2c5f8a;
}

/* ===== 工程展示网格 ===== */
.hero-projects {
    margin-bottom: 35px;
}

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

.project-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.project-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-image .placeholder-img {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.project-info {
    padding: 12px 15px;
}

.project-info h3 {
    font-size: 15px;
    margin-bottom: 6px;
    color: #1a3a5c;
}

.project-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

/* ===== 新闻区块 ===== */
.news-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

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

.section-header h2 {
    font-size: 18px;
    color: #1a3a5c;
}

.more-link {
    font-size: 13px;
    color: #2c5f8a;
}

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

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

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

.news-date {
    display: inline-block;
    background: #2c5f8a;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 10px;
}

.news-item h3 {
    display: inline;
    font-size: 14px;
    font-weight: normal;
}

.news-item h3 a {
    color: #333;
}

.news-item h3 a:hover {
    color: #c41e3a;
}

.news-item p {
    margin-top: 6px;
    font-size: 13px;
    color: #777;
    padding-left: 70px;
}

/* ===== 文章详情页 ===== */
.article-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 30px 40px;
    margin-bottom: 25px;
}

.article-content h1 {
    font-size: 22px;
    color: #1a3a5c;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-body {
    font-size: 15px;
    line-height: 2;
    color: #333;
}

.article-body p {
    text-indent: 2em;
    margin-bottom: 15px;
}

.article-body h3 {
    font-size: 17px;
    color: #1a3a5c;
    margin: 25px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #daa520;
}

.article-body ul {
    padding-left: 2em;
    margin-bottom: 15px;
}

.article-body li {
    margin-bottom: 8px;
}

/* ===== 联系我们 ===== */
.contact-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px 30px;
    margin-bottom: 25px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info h3,
.contact-distribution h3 {
    font-size: 16px;
    color: #1a3a5c;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #daa520;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-distribution ul {
    list-style: none;
    padding: 0;
}

.contact-distribution li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 14px;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a3a5c;
    color: #ccc;
    padding: 25px 0 15px;
    text-align: center;
    font-size: 12px;
    line-height: 2;
}

.footer a {
    color: #daa520;
}

.footer-copyright p {
    margin-bottom: 5px;
}

/* ===== 分页 ===== */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 3px;
}

.pagination .current,
.pagination a:hover {
    background: #2c5f8a;
    color: #fff;
    border-color: #2c5f8a;
    text-decoration: none;
}

/* ===== 子页面通用 ===== */
.page-title {
    background: linear-gradient(to right, #2c5f8a, #4a90c4);
    color: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
}

.page-title h1 {
    font-size: 24px;
}

.content-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 25px 30px;
    margin-bottom: 25px;
}

.content-section h2 {
    font-size: 18px;
    color: #1a3a5c;
    border-bottom: 2px solid #daa520;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 16px;
    color: #2c5f8a;
    margin: 20px 0 10px;
}

.content-section p {
    margin-bottom: 12px;
    text-indent: 2em;
    line-height: 2;
}

.content-section ul {
    padding-left: 2em;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ===== 报列表 ===== */
.newspaper-list {
    list-style: none;
    padding: 0;
}

.newspaper-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.newspaper-list li a {
    color: #333;
}

.newspaper-list li a:hover {
    color: #c41e3a;
}

/* ===== 文章摘要列表 ===== */
.article-summary {
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.article-summary:last-child {
    border-bottom: none;
}

.article-summary .date {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.article-summary h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.article-summary h3 a {
    color: #1a3a5c;
}

.article-summary p {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
}

/* ===== 企业报列表 ===== */
.newspaper-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.newspaper-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
}
.newspaper-card h3 {
    font-size: 14px;
    margin-bottom: 5px;
}
.newspaper-card .date {
    font-size: 12px;
    color: #999;
}
/* ===== 资质证书网格 ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.cert-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    background: #fafafa;
}
.cert-card h3 {
    font-size: 14px;
    color: #1a3a5c;
    margin-bottom: 8px;
}
.cert-card .cert-no {
    font-size: 12px;
    color: #888;
}
/* ===== 子页面列表 ===== */
.subpage-list {
    list-style: none;
    padding: 0;
}
.subpage-list li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.subpage-list li a {
    font-size: 15px;
    color: #1a3a5c;
}
.subpage-list li a:hover {
    color: #c41e3a;
}
/* ===== 招聘表格 ===== */
.job-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.job-table th, .job-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
}
.job-table th {
    background: #2c5f8a;
    color: #fff;
    font-weight: bold;
}
.job-table tr:nth-child(even) {
    background: #f9f9f9;
}
/* ===== 工程卡片 ===== */
.project-detail {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}
.project-detail h3 {
    color: #1a3a5c;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #daa520;
}
.project-detail p {
    line-height: 2;
    text-indent: 2em;
    margin-bottom: 10px;
}
.project-meta {
    background: #f5f5f5;
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}
