/* 文件: css/style.css - 全局样式 */

/* ===== 重置 & 基础 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: color 0.3s ease;
}

a:hover {
    color: #003d80;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section.bg-light {
    background: #f5f7fa;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: #0056b3;
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 16px;
}

.text-center {
    text-align: center;
    margin-top: 30px;
}

/* ===== 按钮 ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #0056b3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #003d80;
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid #0056b3;
    color: #0056b3;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #0056b3;
    color: #fff;
}

/* ===== Header / 导航 ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #1a2a4a;
}

.logo-icon {
    font-size: 28px;
    margin-right: 10px;
}

.logo-text {
    background: linear-gradient(135deg, #0056b3, #0078d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav ul li a {
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav ul li a:hover {
    color: #0056b3;
    background: #f0f4ff;
}

.nav ul li a.active {
    color: #fff;
    background: #0056b3;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero / 轮播 ===== */
.hero {
    padding: 0;
    background: #0056b3;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 480px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slide-content p {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 6px;
}

.slide-content .sub-text {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.slide-content .btn-primary {
    background: #fff;
    color: #0056b3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slide-content .btn-primary:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

/* 轮播控制按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ===== 首页：公司简介 ===== */
.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.intro-text {
    flex: 1;
}

.intro-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.8;
}

.intro-text .btn-outline {
    margin-top: 8px;
}

.intro-image {
    flex: 1;
}

.image-placeholder {
    background: linear-gradient(135deg, #e8edf5, #d5dce8);
    border-radius: 12px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8ba3;
    font-size: 18px;
    font-weight: 500;
}

.image-placeholder.large {
    height: 340px;
}

/* ===== 首页：核心业务 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f2f5;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 35px rgba(0, 86, 179, 0.10);
}

.service-icon {
    font-size: 44px;
    margin-bottom: 16px;
    display: block;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ===== 首页：新闻 ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.06);
}

.news-date {
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.news-item h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a2a4a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

.read-more {
    font-size: 14px;
    font-weight: 500;
    color: #0056b3;
}

.read-more:hover {
    color: #003d80;
}

/* ===== 首页：联系 ===== */
.contact-home {
    background: #f5f7fa;
}

.contact-home-content {
    display: flex;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    padding: 20px 0;
}

.contact-info h2 {
    font-size: 28px;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.contact-info p {
    color: #666;
    margin-bottom: 20px;
}

.contact-info ul {
    margin-bottom: 24px;
}

.contact-info ul li {
    padding: 8px 0;
    font-size: 15px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info ul li span {
    font-size: 20px;
    width: 28px;
}

.contact-form {
    flex: 1;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0056b3;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
}

/* ===== 页面横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, #1a2a4a 0%, #0056b3 100%);
    color: #fff;
    padding: 60px 0 50px;
    text-align: center;
}

.page-banner h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===== About 页面 ===== */
.about-intro {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 28px;
    color: #1a2a4a;
    margin-bottom: 16px;
}

.about-text p {
    color: #555;
    margin-bottom: 14px;
    line-height: 1.8;
}

.about-image {
    flex: 1;
}

/* 企业文化 */
.culture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.culture-item {
    background: #fff;
    padding: 30px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f2f5;
}

.culture-item h3 {
    font-size: 18px;
    color: #1a2a4a;
    margin-bottom: 10px;
}

.culture-item p {
    color: #666;
    font-size: 15px;
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #0056b3;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 36px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: #0056b3;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #0056b3;
}

.timeline-year {
    font-size: 18px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 18px;
    color: #1a2a4a;
    margin-bottom: 4px;
}

.timeline-content p {
    color: #666;
    font-size: 15px;
}

/* ===== Products 页面 ===== */
.services-detail {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
}

.service-detail-item.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    font-size: 52px;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}

.service-detail-content {
    flex: 1;
}

.service-detail-content h3 {
    font-size: 22px;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.service-detail-content p {
    color: #555;
    margin-bottom: 14px;
    line-height: 1.8;
}

.service-detail-content ul {
    list-style: disc;
    padding-left: 20px;
}

.service-detail-content ul li {
    color: #555;
    padding: 4px 0;
    font-size: 15px;
}

/* 优势 */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f2f5;
}

.advantage-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.advantage-item h4 {
    font-size: 18px;
    color: #1a2a4a;
    margin-bottom: 8px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
}

/* ===== News 页面 ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-list-item {
    display: flex;
    gap: 30px;
    padding: 24px 0;
    border-bottom: 1px solid #f0f2f5;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 12px 0;
}

.news-list-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a2a4a;
    line-height: 1.2;
}

.news-list-date .month {
    display: block;
    font-size: 14px;
    color: #666;
}

.news-list-date .year {
    display: block;
    font-size: 13px;
    color: #999;
}

.news-list-content {
    flex: 1;
}

.news-list-content h3 {
    font-size: 20px;
    color: #1a2a4a;
    margin-bottom: 10px;
}

.news-list-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.news-tag {
    display: inline-block;
    padding: 2px 14px;
    background: #e8edf5;
    color: #0056b3;
    font-size: 13px;
    border-radius: 20px;
    margin-top: 6px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #ddd;
    color: #555;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f0f4ff;
    border-color: #0056b3;
}

.pagination a.active {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

/* ===== Contact 页面 ===== */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info-detail {
    flex: 1;
}

.contact-info-detail h2 {
    font-size: 26px;
    color: #1a2a4a;
    margin-bottom: 12px;
}

.contact-info-detail > p {
    color: #666;
    margin-bottom: 24px;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    font-size: 22px;
    width: 36px;
    flex-shrink: 0;
}

.contact-detail-list li div {
    display: flex;
    flex-direction: column;
}

.contact-detail-list li strong {
    font-size: 15px;
    color: #1a2a4a;
}

.contact-detail-list li span {
    color: #555;
    font-size: 15px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links span {
    font-size: 15px;
    color: #555;
}

.social-link {
    display: inline-block;
    padding: 4px 16px;
    background: #f0f4ff;
    color: #0056b3;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #0056b3;
    color: #fff;
}

.contact-form-detail {
    flex: 1;
    background: #fff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form-detail h2 {
    font-size: 24px;
    color: #1a2a4a;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0056b3;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 15px;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert.error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* 地图占位 */
.map-container {
    background: #e8edf5;
    border-radius: 12px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
    color: #555;
}

.map-content p {
    margin-bottom: 6px;
    font-size: 16px;
}

.map-content .btn-outline {
    margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
    background: #1a2a4a;
    color: #c8d0dc;
    padding: 50px 0 20px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 16px;
}

.footer-col p {
    line-height: 1.8;
    font-size: 14px;
}

.footer-col ul li {
    padding: 5px 0;
}

.footer-col ul li a {
    color: #c8d0dc;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-contact li {
    padding: 5px 0;
    font-size: 14px;
    color: #c8d0dc;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 13px;
    color: #8a96a8;
}

.footer-bottom p {
    margin: 0;
}

/* ===== 响应式设计 ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .intro-content,
    .about-intro {
        flex-direction: column;
    }

    .service-detail-item,
    .service-detail-item.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .service-detail-content ul {
        text-align: left;
    }

    .contact-home-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 16px 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f2f5;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav ul li a {
        display: block;
        padding: 10px 16px;
        width: 100%;
    }

    .slider {
        height: 360px;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slide-content .sub-text {
        font-size: 14px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 26px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr 1fr;
    }

    .advantage-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
    }

    .contact-form-detail {
        padding: 20px;
    }

    .news-list-item {
        flex-direction: column;
        gap: 12px;
    }

    .news-list-date {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 8px 16px;
        justify-content: flex-start;
    }

    .news-list-date .day {
        font-size: 22px;
    }

    .page-banner {
        padding: 40px 0 32px;
    }

    .page-banner h1 {
        font-size: 28px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-item::before {
        left: -20px;
        width: 12px;
        height: 12px;
    }

    .contact-detail-list li {
        gap: 12px;
    }

    .service-detail-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .culture-grid {
        grid-template-columns: 1fr;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .slider {
        height: 300px;
    }

    .slide-content h1 {
        font-size: 22px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .slider-btn {
        display: none;
    }

    .container {
        padding: 0 14px;
    }

    .btn-primary {
        padding: 10px 24px;
        font-size: 14px;
    }

    .btn-outline {
        padding: 8px 20px;
        font-size: 14px;
    }
}