/* 全局重置 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 响应式图片 - 优化不变形处理 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* 保证图片填充容器且不变形 */
    object-position: center;
    /* 图片居中显示 */
}

/* 容器类 */
.index-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.index-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #1a56a7;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.index-btn:hover {
    background-color: #164490;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 167, 0.2);
}

.index-btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.index-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ========== 英雄区域优化 ========== */
/* 保证图片不变形的关键样式 */
.index-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* PC端轮播图 - 固定宽高比避免变形 */
.index-hero-slider {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 宽高比 */
    background-color: #f8fafc;
}

.index-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    /* 性能优化 */
}

.index-slide.index-active {
    opacity: 1;
}

/* 移动端静态展示 - 固定宽高比 */
.index-hero-static {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* 移动端使用正方形或4:3比例 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    /* 默认隐藏，由JS控制 */
    align-items: center;
    justify-content: center;
}

.index-hero-static-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    padding: 20px;
    z-index: 2;
}

/* 通用内容样式 */
.index-slide-content,
.index-hero-static-content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.index-slide-content h1,
.index-hero-static-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.index-slide-content p,
.index-hero-static-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    line-height: 1.6;
}

.index-hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 轮播控制元素 */
.index-slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.index-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.index-slider-dot.index-active {
    background-color: white;
    transform: scale(1.2);
}

.index-slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.index-slider-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.index-arrow {
    color: white;
    font-size: clamp(2rem, 4vw, 2.5rem);
    cursor: pointer;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    user-select: none;
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
    pointer-events: auto;
}

.index-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.index-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

/* 加载状态 */
.index-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #333;
    background-color: #f8fafc;
    z-index: 5;
}

/* 服务区域 */
.index-services {
    width: 100%;
    padding: 40px 0 60px;
    text-align: center;
    background-color: #f8fafc;
}

.index-services-kuai {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.index-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.index-service-card {
    text-align: center;
    height: 100%;
    padding: 30px 20px;
    border: 1px solid #f0f1f1;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.index-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a90e2;
}

.index-service-icon {
    font-size: 48px;
    color: #4a90e2;
    margin-bottom: 25px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background-color: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.index-service-card:hover .index-service-icon {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(74, 144, 226, 0.2);
}

.index-service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #1a56a7;
    font-weight: 600;
    width: 100%;
}

.index-service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 0;
}

/* 关于我们 */
.index-about {
    padding: 80px 0;
    background-color: #fff;
}

.index-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.index-about-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: #1a56a7;
    margin-bottom: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.index-about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    font-size: 16px;
}

.index-about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    height: 100%;
    min-height: 400px;
}

.index-about-image:hover {
    transform: translateY(-5px);
}

.index-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.index-about-image:hover img {
    transform: scale(1.03);
}

/* 产品特色区域 */
.index-product-features-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f2ff 100%);
    padding: 80px 0;
}

.index-product-section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 50px;
    color: #1a56a7;
    text-align: center;
    font-weight: 700;
    position: relative;
}

.index-product-section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1a56a7, #4a90e2);
    margin: 15px auto 0;
    border-radius: 2px;
}

.index-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.index-feature-item {
    text-align: center;
    padding: 35px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.index-feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.index-feature-icon {
    font-size: 42px;
    color: #4a90e2;
    margin-bottom: 20px;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.index-feature-item:hover .index-feature-icon {
    transform: scale(1.1);
    background: rgba(74, 144, 226, 0.2);
}

.index-feature-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.index-feature-description {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

/* 新闻和通知公告区域 */
.index-news-section {
    padding: 50px 0;
    background-color: #f8fafc;
}

.index-section-title {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 50px;
    color: #1a56a7;
    font-weight: 700;
    position: relative;
}

.index-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4a90e2;
    margin: 15px auto 0;
}

.index-news-area,
.index-notice-area {
    margin-bottom: 10px;
}

.index-news-header,
.index-notice-header {
    text-align: center;
    margin-bottom: 30px;
}

.index-news-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.index-featured-news {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.index-featured-news:hover {
    transform: translateY(-5px);
}

.index-featured-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.index-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.index-featured-news:hover .index-featured-image img {
    transform: scale(1.05);
}

.index-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.index-featured-content {
    padding: 30px;
}

.index-featured-content a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.index-featured-date {
    display: flex;
    align-items: baseline;
    margin-bottom: 15px;
    color: #1a56a7;
}

.index-date-day {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-right: 8px;
}

.index-date-month {
    font-size: 16px;
    opacity: 0.9;
}

.index-featured-title {
    font-size: 22px;
    color: #1a56a7;
    margin-bottom: 20px;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s ease;
}

.index-featured-news:hover .index-featured-title {
    color: #164490;
}

.index-featured-excerpt {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 16px;
}

.index-news-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.index-news-item {
    display: flex;
    padding: 25px;
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.index-news-item:last-child {
    border-bottom: none;
}

.index-news-item:hover {
    background-color: #f8fafc;
}

.index-news-item-date {
    flex-shrink: 0;
    width: 70px;
    text-align: center;
    color: #1a56a7;
    margin-right: 20px;
}

.index-news-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.index-news-month {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

.index-news-item-content {
    flex: 1;
}

.index-news-item-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.index-news-item:hover .index-news-item-title {
    color: #1a56a7;
}

.index-news-item-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.index-news-item-category {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.index-notice-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.index-notice-item {
    padding: 25px;
    border-bottom: 1px solid #eef2f7;
    transition: background-color 0.3s ease;
}

.index-notice-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.index-notice-item:last-child {
    border-bottom: none;
}

.index-notice-item:hover {
    background-color: #f8fafc;
}

.index-notice-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.index-notice-badge {
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.index-notice-important {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.index-notice-system {
    background: linear-gradient(135deg, #4a90e2, #6aa9ff);
}

.index-notice-training {
    background: linear-gradient(135deg, #37b24d, #51cf66);
}

.index-notice-update {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.index-notice-holiday {
    background: linear-gradient(135deg, #845ef7, #9775fa);
}

.index-notice-item-title {
    font-size: 18px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    flex: 1;
    min-width: 200px;
    transition: color 0.3s ease;
}

.index-notice-item:hover .index-notice-item-title {
    color: #1a56a7;
}

.index-notice-item-date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

.index-notice-item-excerpt {
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}

/* 查看更多按钮样式 */
.index-news-more,
.index-notice-more {
    text-align: center;
    margin-top: 30px;
}

/* ==================== 移动端响应式样式 ==================== */
@media (max-width: 992px) {

    /* 英雄区域 - 移动端优化 */
    .index-hero-slider {
        padding-bottom: 100%;
        /* 移动端使用正方形比例 */
        height: auto;
        min-height: 400px;
    }

    .index-hero-static {
        padding-bottom: 100%;
        /* 移动端使用正方形比例 */
        min-height: 400px;
    }

    /* 隐藏轮播控制元素 */
    .index-slider-controls,
    .index-slider-arrows {
        display: none;
    }

    /* 关于我们区域 */
    .index-about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .index-about-image {
        order: -1;
        min-height: 300px;
    }

    /* 新闻区域 */
    .index-news-main {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .index-featured-image {
        height: 250px;
    }

    .index-featured-title {
        font-size: 20px;
    }

    .index-featured-excerpt {
        font-size: 15px;
    }

    /* 产品特色 */
    .index-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .index-feature-item {
        padding: 25px 20px;
    }

    /* 移动端内容调整 */
    .index-slide-content h1,
    .index-hero-static-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .index-slide-content p,
    .index-hero-static-content p {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }

    .index-hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .index-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {

    /* 通用调整 */
    .index-container {
        padding: 0 15px;
    }

    /* 英雄区域 */
    .index-hero-slider,
    .index-hero-static {
        padding-bottom: 120%;
        /* 移动端更垂直的比例 */
        min-height: 350px;
    }

    /* 服务区域 */
    .index-services {
        padding: 30px 0 50px;
    }

    .index-services-kuai {
        padding: 30px 15px;
        border-radius: 8px;
    }

    .index-services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 30px auto 0;
        gap: 20px;
    }

    .index-service-card {
        padding: 25px 20px;
        min-height: auto;
    }

    .index-service-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 36px;
        margin-bottom: 20px;
    }

    .index-service-card h3 {
        font-size: 20px;
    }

    .index-service-card p {
        font-size: 15px;
    }

    /* 关于我们 */
    .index-about {
        padding: 50px 0;
    }

    .index-about-text h2 {
        font-size: 1.8rem;
    }

    .index-about-text p {
        font-size: 15px;
    }

    /* 产品特色 */
    .index-product-features-section {
        padding: 50px 0;
    }

    .index-product-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .index-feature-item {
        padding: 20px 15px;
    }

    .index-feature-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 36px;
    }

    .index-feature-title {
        font-size: 18px;
    }

    .index-feature-description {
        font-size: 14px;
    }

    /* 新闻和通知 */
    .index-news-section {
        padding: 20px 0;
    }

    .index-section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .index-featured-image {
        height: 200px;
    }

    .index-featured-content {
        padding: 20px;
    }

    .index-date-day {
        font-size: 28px;
    }

    .index-featured-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .index-featured-excerpt {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .index-news-item {
        padding: 20px;
        flex-direction: column;
    }

    .index-news-item-date {
        width: 100%;
        text-align: left;
        margin-right: 0;
        margin-bottom: 10px;
        display: flex;
        align-items: baseline;
    }

    .index-news-day {
        font-size: 20px;
        margin-right: 8px;
    }

    .index-news-item-title {
        font-size: 16px;
    }

    .index-news-item-excerpt {
        font-size: 13px;
    }

    .index-notice-item {
        padding: 20px;
    }

    .index-notice-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .index-notice-item-title {
        min-width: auto;
        font-size: 16px;
    }

    .index-notice-item-excerpt {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    /* 更小的移动设备 */
    .index-hero-slider,
    .index-hero-static {
        padding-bottom: 140%;
        /* 小屏设备更垂直 */
        min-height: 300px;
    }

    .index-slide-content h1,
    .index-hero-static-content h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .index-slide-content p,
    .index-hero-static-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .index-services-kuai {
        padding: 20px 10px;
    }

    .index-service-card {
        padding: 20px 15px;
    }

    .index-about {
        padding: 40px 0;
    }

    .index-product-features-section {
        padding: 40px 0;
    }

    .index-news-section {
        padding: 10px 0;
    }

    .index-features-grid {
        grid-template-columns: 1fr;
    }

    .index-feature-item {
        padding: 20px;
    }
}

/* 触控设备优化 */
@media (hover: none) and (pointer: coarse) {

    /* 减少hover效果，增加点击反馈 */
    .index-service-card:hover,
    .index-feature-item:hover,
    .index-featured-news:hover,
    .index-news-item:hover,
    .index-notice-item:hover {
        transform: none;
    }

    .index-service-card:active,
    .index-feature-item:active,
    .index-featured-news:active,
    .index-news-item:active,
    .index-notice-item:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .index-btn:active {
        transform: scale(0.98);
    }

    /* 增大触摸目标 */
    .index-btn,
    .index-slider-dot,
    .index-news-item,
    .index-notice-item {
        min-height: 44px;
    }

    .index-service-icon,
    .index-feature-icon {
        min-width: 60px;
        min-height: 60px;
    }

    .index-arrow {
        min-width: 60px;
        min-height: 60px;
    }
}

/* 高分辨率设备优化 */
@media (min-width: 1921px) {
    .index-hero-slider {
        padding-bottom: 45%;
        /* 超宽屏使用更宽的宽高比 */
    }

    .index-slide-content h1 {
        font-size: 3.5rem;
    }

    .index-slide-content p {
        font-size: 1.5rem;
    }
}

/* 打印样式 */
@media print {

    .index-hero-slider,
    .index-hero-static,
    .index-slider-controls,
    .index-slider-arrows {
        display: none !important;
    }

    .index-btn {
        border: 1px solid #000;
        color: #000;
        background: none;
    }
}