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

:root {
    --primary-color: #1e3c72;
    --secondary-color: #2a5298;
    --accent-color: #f39c12;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 50px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 50px;
    position: relative;
}

.logo {
    position: absolute;
    bottom: -30px;
    left: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: 120px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
.nav-accent {
    background: #f39c12 !important;
    color: #fff !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    font-weight: bold !important;
}
.nav-accent:hover {
    background: #e67e22 !important;
    border-bottom: none !important;
}    list-style: none;
    gap: 30px;
    margin-left: 140px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 轮播图 */
.hero {
    margin-top: 70px;
    height: 500px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background: #e67e22;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 通用区块样式 */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #999;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 50px;
}

/* 公司简介预览 */
.about-preview {
    background: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: 10px;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* 产品展示 */
.products-preview {
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card .product-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 15px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-image img {
    max-width: 130px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card .product-image-placeholder {
    font-size: 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.product-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.product-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 20px;
}

.product-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 工程业绩 */
.projects-preview {
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

.project-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.project-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.project-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* 联系我们 */
.contact-preview {
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-logo {
    height: 120px !important;
    width: auto;
    margin-bottom: 20px !important;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        margin-left: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #eee;
        font-size: 16px;
    }

    .nav-toggle {
        display: block;
        font-size: 28px;
        color: #1e3c72;
        padding: 5px 8px;
        margin-left: auto;
        z-index: 1000;
    }

    .logo {
        bottom: -5px;
        max-width: 40%;
    }

    .logo img {
        height: 45px;
    }

    .navbar {
        height: 40px;
    }

    .navbar .container {
        height: 40px;
    }

    .nav-links {
        top: 100%;
    }

    .hero {
        height: 350px;
        margin-top: 50px;
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 26px;
    }

    .hero-content p {
        font-size: 16px;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-card {
        padding: 20px 15px;
    }

    .product-card .product-image {
        width: 80px;
        height: 80px;
    }

    .product-card .product-image img {
        max-width: 70px;
        max-height: 70px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 25px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .page-header {
        padding: 100px 0 40px;
        margin-top: 50px !important;
    }

    .page-header h1 {
        font-size: 32px !important;
    }

    .project-card-header {
        padding: 20px;
    }

    .project-card-body {
        padding: 20px;
    }

    .project-card-header h3 {
        font-size: 18px;
    }

    .stat-large {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr !important;
    }

    .culture-grid {
        grid-template-columns: 1fr !important;
    }

    .vision-cards {
        grid-template-columns: 1fr !important;
    }

    .vision-content {
        padding: 0 15px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-info {
        padding: 25px;
    }

    .map-placeholder {
        height: 250px;
    }

    .service-hours {
        padding: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .timeline-content {
        width: 100% !important;
    }

    .stats-bar {
        padding: 40px 0;
    }

    .nav-links a {
        padding: 12px 0;
    }
}

/* 超小屏手机 */
@media (max-width: 480px) {
    .hero {
        height: 280px;
        margin-top: 60px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .product-card {
        padding: 15px 12px;
    }

    .section-title {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 26px !important;
    }

    .header h1 {
        font-size: 18px;
    }
}
