:root {
    --primary: #1a3a6c;
    --secondary: #2c5282;
    --accent: #4c7db5;
    --light: #f0f4f8;
    --dark: #0d1b2a;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --warning: #e67e22;
    --success: #27ae60;
    --lang-bg: #f8fafc;
}

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

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

/* ========== 全局图片高清兜底 ========== */
img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -ms-interpolation-mode: bicubic !important;
}

/* ========== 按钮样式（修复背景色） ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    color: #fff !important;
    min-width: 160px;
    height: 48px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn.btn-hero-blue {
    background-color: #2E75BB !important;
}
.btn.btn-hero-blue:hover {
    background-color: #25639e !important;
}

.btn.btn-hero-orange {
    background-color: #F28522 !important;
}
.btn.btn-hero-orange:hover {
    background-color: #d6721b !important;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.btn-hero-outline {
    background: var(--warning);
    color: var(--white);
    border: 2px solid var(--warning);
}
.btn-hero-outline:hover {
    background: #d35400;
    border-color: #d35400;
}

/* ========== 轮播海报 ========== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideAnimation 15s infinite;
}

/* 只保留渐变遮罩，不写死任何图片！不影响你后台上传 */
.slide:nth-child(1) {
    background-image: linear-gradient(rgba(26, 58, 108, 0.7), rgba(26, 58, 108, 0.8));
    animation-delay: 0s;
}
.slide:nth-child(2) {
    background-image: linear-gradient(rgba(26, 58, 108, 0.7), rgba(26, 58, 108, 0.8));
    animation-delay: 5s;
}
.slide:nth-child(3) {
    background-image: linear-gradient(rgba(26, 58, 108, 0.7), rgba(26, 58, 108, 0.8));
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% { opacity: 0; }
    10% { opacity: 1; }
    30% { opacity: 1; }
    40% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin: 0 auto 40px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* ========== 通用区块 ========== */
.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== 优势/应用卡片 ========== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-content {
    padding: 25px;
}

.feature-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* ========== 产品展示模块 ========== */
.product-showcase-single {
    background-color: var(--light);
    padding: 80px 0;
}

.product-large {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    min-height: 500px;
    padding: 20px;
}

.product-large-image {
    flex: 1.6 !important;
    min-height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 0 !important;
}

.product-large-image img {
    width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    object-position: center !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}

.product-large-details {
    flex: 1 !important;
    padding: 20px;
}

.product-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.product-large-details p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}

.product-specs {
    margin: 30px 0;
}

.spec-item {
    display: flex;
    margin-bottom: 15px;
}

.spec-label {
    width: 120px;
    font-weight: 600;
    color: var(--primary);
}

.spec-value {
    flex: 1;
    color: var(--dark);
}

/* ========== 新闻模块 ========== */
.news-section {
    background-color: var(--white);
    padding: 80px 0;
}

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

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
}

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

.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-excerpt {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: var(--primary);
    gap: 8px;
}

.news-more {
    text-align: center;
    margin-top: 50px;
}

.btn-news {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-news:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* ========== 移动端统一适配 ========== */
@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 600px !important;
        padding: 80px 0 !important;
    }
    .hero-slider .slide {
        height: 600px !important;
    }
    .hero-content {
        position: relative !important;
        top: auto !important;
        transform: none !important;
        text-align: center !important;
        padding: 0 20px !important;
        margin: 0 auto !important;
        width: 90% !important;
    }
    .hero-content h1 {
        font-size: 24px !important;
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }
    .hero-content p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    .hero-content .btn {
        display: block !important;
        width: 80% !important;
        max-width: 280px !important;
        margin: 15px auto !important;
        padding: 15px 20px !important;
        font-size: 18px !important;
        height: auto !important;
        min-width: unset !important;
    }
    .features {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .product-large {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        min-height: auto !important;
    }
    .product-large-image img {
        max-width: 100% !important;
        height: auto !important;
    }
    .news-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}