/* ========== CSS Reset & Variables ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0D6EA8;
    --primary-dark: #095684;
    --primary-light: #E8F4FD;
    --accent: #0891B2;
    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg: #FFFFFF;
    --bg-gray: #F7FAFC;
    --border: #E2E8F0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 6px;
    --radius-lg: 10px;
    --max-width: 1200px;
    --header-height: 68px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-list a {
    display: block;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text-secondary);
    transition: all var(--transition);
    white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Footer ========== */
.footer {
    background: #1a202c;
    color: #a0aec0;
    padding: 40px 0 20px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-about p {
    line-height: 1.8;
    max-width: 360px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #a0aec0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}

/* ========== Page Banner ========== */
.page-banner {
    margin-top: var(--header-height);
    height: 260px;
    background: linear-gradient(135deg, #0D6EA8 0%, #0891B2 50%, #0E7490 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.5));
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.page-banner p {
    font-size: 16px;
    opacity: 0.9;
}

/* ========== Hero Banner (首页轮播) ========== */
.hero-banner {
    margin-top: var(--header-height);
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: #0a1628;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
}

.hero-slide-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
    max-width: 700px;
}

.hero-slide-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-slide-text p {
    font-size: 17px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Hero controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.5);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.hero-dots button.active,
.hero-dots button:hover {
    background: #fff;
    border-color: #fff;
}

/* ========== Section Titles ========== */
.section {
    padding: 70px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

.section-title .divider {
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ========== Company Brief (首页) ========== */
.brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.brief-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.brief-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.brief-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
    line-height: 1.3;
}

.brief-content .intro-text {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
}

.brief-content .highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 24px;
}

.brief-content .highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

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

/* ========== News Cards (行业动态 / 公司动态) ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #E8F4FD, #C8E6F5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    overflow: hidden;
}

.news-card-img .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.news-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    margin-top: 12px;
    transition: gap var(--transition);
}

.news-card:hover .read-more {
    gap: 8px;
}

/* ========== About Page ========== */
.about-section {
    padding: 56px 0;
}

.about-section:nth-child(even) {
    background: var(--bg-gray);
}

.about-block {
    max-width: 900px;
    margin: 0 auto;
}

.about-block h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.about-block p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 14px;
    text-indent: 2em;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.about-feature {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.about-feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-feature .feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
}

.about-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.about-feature p {
    font-size: 13px;
    color: var(--text-muted);
    text-indent: 0;
}

/* ========== Contact Page ========== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 760px;
    margin: 0 auto;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-card h4 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 400;
}

.contact-card p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

/* ========== Detail Page ========== */
.detail-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.detail-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.detail-header h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text);
}

.detail-meta {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-meta span {
    margin: 0 10px;
}

.detail-body {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 15px;
}

.detail-body p {
    margin-bottom: 16px;
    text-indent: 2em;
}

.detail-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 12px;
}

.detail-body .detail-img {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-body .detail-img .img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
    margin-top: 40px;
    padding: 8px 0;
    transition: gap var(--transition);
}

.detail-back:hover {
    gap: 6px;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--primary);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px 0 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: var(--radius);
    font-size: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
}

.pagination a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-light);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    pointer-events: none;
}

.pagination .disabled {
    color: #cbd5e0;
    pointer-events: none;
    background: var(--bg-gray);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 4px;
    }

    .nav-list.open {
        right: 0;
    }

    .nav-list a {
        padding: 12px 16px;
        font-size: 16px;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-banner {
        height: 340px;
    }

    .hero-slide-text h2 {
        font-size: 24px;
    }

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

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .brief-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

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

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

    .contact-cards {
        max-width: 100%;
    }

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

    .page-banner {
        height: 180px;
    }

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

    .section {
        padding: 44px 0;
    }

    .section-title h2 {
        font-size: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .hero-banner {
        height: 240px;
    }

    .hero-slide-text h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .hero-slide-text {
        bottom: 56px;
    }

    .hero-arrow.prev {
        left: 8px;
    }

    .hero-arrow.next {
        right: 8px;
    }
}
