/* Design System Tokens */
:root {
    --primary: #0A2647;
    --secondary: #144272;
    --accent: #2C74B3;
    --accent-light: #4D96FF;
    --text-main: #203239;
    --text-muted: #526D82;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --dark-bg: #1A2E5A;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.section-padding {
    padding: 64px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin-bottom: 1.5rem; color: var(--text-muted); }

.accent { color: var(--accent); }
.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); color: var(--white); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background-color: var(--accent);
    color: var(--white);
}

.btn.primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn.secondary {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn.secondary:hover {
    background-color: var(--accent);
    color: var(--white);
}

.full-width { width: 100%; }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

header nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1890FF; /* Prominent Blue */
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* =============================
   Hero Carousel
   ============================= */
.hero-carousel-section {
    margin-top: 80px; /* 正好等于导航栏高度，紧贴导航 */
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.03);
    transition: transform 6s ease;
}

.carousel-slide.active img {
    transform: scale(1);
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 38, 71, 0.72) 0%,
        rgba(20, 66, 114, 0.45) 60%,
        rgba(44, 116, 179, 0.25) 100%
    );
}

/* Caption */
.carousel-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 10% 0 8%;
    z-index: 2;
    max-width: 760px;
}

.carousel-caption h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.carousel-caption p {
    color: rgba(255,255,255,0.88);
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 500px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}

.accent-white {
    color: var(--accent-light);
    display: block;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.carousel-secondary {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff;
}

.btn.carousel-secondary:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(6px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 2rem; }
.carousel-next { right: 2rem; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.6);
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
    border-color: var(--accent-light);
}



/* Trust Bar */
.trust-bar {
    background-color: var(--primary);
    color: var(--white);
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

.stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* About Us Section */
.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.subtitle {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.check-list {
    list-style: none;
    margin-top: 1.5rem;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 900;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Industry */
.grid-two.reverse {
    direction: ltr; /* Ensure text stays left in RTL contexts if any */
}

.industry-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.industry-tags span {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(10, 38, 71, 0.1);
}

/* Contact Section */

.contact h2 { color: var(--white); }
.contact .subtitle { color: var(--accent-light); }

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 { color: var(--white); margin: 0; }
.info-item a { color: var(--accent-light); text-decoration: none; font-size: 1.2rem; font-weight: 700; }

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    outline-color: var(--accent);
}

#formSuccess {
    margin-top: 1rem;
    padding: 1rem;
    background: #D4EDDA;
    color: #155724;
    border-radius: var(--border-radius);
    text-align: center;
}

.hidden { display: none; }

/* News Banner */
.news-banner {
    background: linear-gradient(rgba(10, 38, 71, 0.8), rgba(10, 38, 71, 0.8)), url('assets/hero_banner.webp');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
}

.news-banner h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.article-banner {
    height: 250px;
}

.article-banner h1 {
    font-size: 2.5rem;
}

.article-banner .subtitle {
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.breadcrumb .separator {
    color: #cbd5e1;
    font-size: 0.8rem;
}

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

.news-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.4;
}

.news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.news-body p {
    margin-bottom: 1.5rem;
}

/* Media in News */
.news-media {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.news-media img, .news-media video {
    width: 100%;
    display: block;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.news-list-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-card-image {
    height: 200px;
    background: #eee;
    overflow: hidden;
}

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

.news-card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.news-card-content h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.news-card-content h3 a { color: var(--primary); text-decoration: none; }
.news-card-content .date { font-size: 0.85rem; color: var(--text-muted); display: block; margin-bottom: 1rem; }

/* Mobile Navigation Drawer */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
        position: relative;
    }
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

#backToTop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .grid-two { grid-template-columns: 1fr; gap: 3rem; }
    .grid-two.reverse { flex-direction: column-reverse; display: flex; }
    .about-image, .industry-image { order: 2; }
}

@media (max-width: 768px) {
    .header-cta { display: none; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1rem; }
    .stat-item:last-child { border-bottom: none; }
    .contact-form-card { padding: 2rem; }

    /* Carousel Mobile */
    .carousel-wrapper { height: 420px; }
    .carousel-caption { padding: 0 1.5rem; max-width: 100%; }
    .carousel-caption h1 { font-size: 2rem; }
    .carousel-caption p { font-size: 0.95rem; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1rem; }
    .carousel-prev { left: 0.75rem; }
    .carousel-next { right: 0.75rem; }
}

@media (max-width: 480px) {
    .carousel-wrapper { height: 340px; }
    .carousel-caption h1 { font-size: 1.6rem; }
    .cta-group .btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
}

/* =============================
   Footer
   ============================= */
footer {
    background-color: #0d1f3c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    gap: 1rem;
}

.footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    user-select: none;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 0.5rem;
    }
}

/* =============================
   Section Title Shared
   ============================= */
.section-title { margin-bottom: 3rem; }
.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* =============================
   产品系列
   ============================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(44, 116, 179, 0.15);
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.product-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
    color: var(--primary);
}

.product-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* 合作工厂区块样式已移除（未使用） */

/* =============================
   团队展示
   ============================= */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition);
    border-top: 3px solid var(--accent);
}

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

.team-avatar {
    width: 64px;
    min-width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44,116,179,0.35);
}

.team-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.team-role {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.team-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.65;
}

/* .team-skills 已移除（未使用） */

/* =============================
   客户之声
   ============================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: rgba(44, 116, 179, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

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

.stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
/* 未使用的testimonial内部元素样式已移除 */

/* =============================
   Responsive — New Sections
   ============================= */
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid     { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .product-card  { padding: 1.25rem 1rem; }
}

/* =============================
   新闻详情页专项优化
   ============================= */
.news-detail-page article {
    padding-top: 120px; /* 增加顶部间距，避免靠近导航栏 */
    max-width: 900px;  /* 限制正文最大宽度，提升阅读体验 */
    margin: 0 auto;
}

.news-header {
    margin-bottom: 3rem;
    text-align: center;
}

.news-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    line-height: 1.4;
}

.news-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-main);
}

/* 优化文中图片 */
.news-content img, 
.news-media-full img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.news-media-full {
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .news-detail-page article {
        padding-top: 100px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .news-header h1 {
        font-size: 1.8rem;
    }
}
