/* 全局重置与字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', 'PingFang SC', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 1200px;
    max-width: 90%;
    margin: 0 auto;
}

/* 头部区域 */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 28px;
    color: #d62828;
}

.logo h1 strong {
    font-weight: 700;
    color: #ffb703;
}

.logo p {
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

.contact-info {
    font-size: 18px;
    color: #d62828;
}

.contact-info i {
    margin-right: 8px;
}

/* 导航栏 */
nav {
    background: hsl(0, 69%, 50%);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li a {
    display: block;
    padding: 12px 28px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: #eeab03;
    border-radius: 4px;
}

/* Banner */
.banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/主页.jpg');
    background-size: cover;
    background-position: center 30%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-primary {
    background: #ffb703;
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #e07c00;
    transform: scale(1.02);
}

/* 通用小节标题 */
.section-title {
    text-align: center;
    padding: 60px 0 40px;
}

.section-title h3 {
    font-size: 36px;
    color: #d62828;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: #888;
    font-size: 16px;
}

/* 优势区域 */
.advantages {
    background: #f9f9f9;
    padding-bottom: 60px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.advantage-item i {
    font-size: 48px;
    color: #d62828;
    margin-bottom: 20px;
}

.advantage-item h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #222;
}

.advantage-item p {
    color: #666;
    font-size: 14px;
}

/* 产品展示 */
.products {
    padding-bottom: 60px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.product-card h4 {
    font-size: 18px;
    margin: 16px 16px 8px;
    color: #222;
}

.product-card p {
    font-size: 14px;
    color: #666;
    margin: 0 16px 16px;
}

.tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffb703;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
}

/* 关于我们 + 数据统计 */
.about {
    background: #f0f7ff;
    padding: 60px 0;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 32px;
    color: #d62828;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 24px;
    line-height: 1.7;
    color: #444;
}

.btn-outline {
    display: inline-block;
    border: 2px solid #d62828;
    color: #d62828;
    padding: 8px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-outline:hover {
    background: #d62828;
    color: white;
}

.about-stats {
    flex: 1;
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 20px 12px;
    border-radius: 24px;
    width: 30%;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: bold;
    color: #ffb703;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #555;
}

/* 公司环境 */
.environment {
    padding: 20px 0 60px;
}

.env-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.env-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.env-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

/* 新闻区域 */
.news {
    background: #fafafa;
    padding-bottom: 60px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.news-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.news-item img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.news-info h4 a {
    color: #222;
    text-decoration: none;
    font-size: 20px;
}

.news-info h4 a:hover {
    color: #d62828;
}

.news-info p {
    color: #666;
    margin: 8px 0;
    font-size: 14px;
}

.date {
    color: #999;
    font-size: 13px;
}

/* 页脚 */
footer {
    background: #d62828;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p, .footer-col ul {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #fff;
    text-decoration: none;
}

.footer-col ul li a:hover {
    color: #ffb703;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #ccc;
    font-size: 24px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #ffb703;
}

.copyright {
    margin-top: 20px;
    font-size: 12px;
    border-top: 1px solid #2c4b62;
    padding-top: 20px;
    text-align: center;
    width: 100%;
}

/* 简单响应式：小于1100px时调整布局 */
@media (max-width: 1100px) {
    .advantage-grid, .product-grid, .env-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        flex-direction: column;
    }
    .about-stats {
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .advantage-grid, .product-grid, .env-gallery {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .banner-content h2 {
        font-size: 32px;
    }
    .news-item {
        flex-direction: column;
    }
    .news-item img {
        width: 100%;
        height: 180px;
    }
    .btn-primary:active {
    background: #e69500;  /* 稍深的黄色 */
    transform: scale(0.98);
}

}
/* 关于我们页面样式 */
.about-page {
    padding: 60px 0;
}
.about-content-single {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.about-text-full {
    flex: 1.5;
}
.about-text-full h4 {
    color: #d62828;
    margin: 20px 0 10px;
}
.about-text-full ul {
    margin-left: 20px;
}
.about-image {
    flex: 1;
}
.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
    .about-content-single {
        flex-direction: column;
    }
}
.specs-page {
    padding: 60px 0;
}
.specs-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.specs-table th, .specs-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}
.specs-table th {
    background: #d62828;
    color: white;
}
.specs-table tr:nth-child(even) {
    background: #f9f9f9;
}
.specs-note {
    background: #fff3e0;
    padding: 15px;
    border-left: 4px solid #ffb703;
    margin-top: 20px;
}
.cases-page {
    padding: 60px 0;
}
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.case-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 20px;
}
.case-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.case-item h4 {
    margin: 15px 0 8px;
    color: #d62828;
}
.case-item p {
    padding: 0 15px;
    color: #666;
}
.contact-page {
    padding: 60px 0;
}
.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.contact-info-box, .contact-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.contact-info-box h4, .contact-form h4 {
    color: #d62828;
    margin-bottom: 20px;
}
.contact-info-box p {
    margin-bottom: 12px;
}
.contact-info-box i {
    width: 30px;
    color: #ffb703;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}
.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
}
/* 关于我们页面内的三部分通用样式 */
.about, .environment, .news {
    padding: 60px 0;
}

/* 确保各部分的标题居中（已有 .section-title 居中，但再确认一下） */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* 公司环境图片网格自适应 */
.env-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 新闻列表样式（已有，但保证布局） */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 联系我们页面样式 */
.contact-page {
    padding: 60px 0;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-info-box,
.contact-map {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-info-box h4,
.contact-map h4 {
    color: #d62828;
    margin-bottom: 20px;
    font-size: 20px;
}

.contact-info-box p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-box i {
    width: 24px;
    color: #ffb703;
}

.map-container {
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

.map-note {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
    text-align: center;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
    }
    .contact-info-box,
    .contact-map {
        flex: auto;
    }
}
/* 让 .logo 的宽度由内容撑开，内部 h1 和 p 宽度一致 */
.logo {
    display: inline-block;      /* 宽度由最宽的内容决定 */
    width: auto;               /* 确保不占满整行 */
    text-align: center;        /* 内部文字居中 */
}

.logo h1, .logo p {
    margin: 0;                 /* 移除默认外边距，保证紧密对齐 */
}

.logo p {
    width: 100%;               /* 强制与 h1 同宽（因父容器宽度由 h1 决定） */
    white-space: nowrap;       /* 防止换行，保持一行（若副标题太长可取消） */
}
.logo {
    text-align: center;
}
.logo h1 {
    font-size: 28px;
    white-space: nowrap;
}
.logo p {
    font-size: 16px;          /* 比主标题小 */
    letter-spacing: 4px;      /* 增大字符间距，拉长总宽度 */
    white-space: nowrap;
}
/* 图片预览模态框样式 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: #ffb703;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    font-size: 16px;
}

/* 让所有可点击放大的图片鼠标样式为 pointer */
.product-card img,
.env-gallery img,
.news-item img,
.gallery-item img,
.about-image img {
    cursor: pointer;
    transition: transform 0.2s;
}

.product-card img:hover,
.env-gallery img:hover,
.news-item img:hover,
.gallery-item img:hover,
.about-image img:hover {
    transform: scale(1.02);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95%;
    }
    .modal-close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }
}
/* 页脚备案号独立居中 */
.footer-copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2c4b62;
    font-size: 12px;
    color: #ccc;
}
.footer-copyright a {
    color: #ccc;
    text-decoration: none;
}
.footer-copyright a:hover {
    color: #ffb703;
}
/* 隐藏原有的 .copyright 避免重复（如果其他页面还有） */
.copyright {
    display: none;
}