/* 首页样式 */

/* 轮播图样式 */
.hero {
    background: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1500&q=80') center center/cover no-repeat;
    height: 400px;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 8px #000;
}

.hero-subtitle {
    font-size: 2rem;
    margin-top: 1rem;
    text-shadow: 1px 1px 6px #000;
}

/* 区块样式 */
.section {
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 4px;
    max-width: 1100px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b2323;
    margin-bottom: 20px;
}

/* 调解流程图片样式 */
.mediators-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 公告栏样式 */
.notice-container {
    display: flex;
    align-items: center;
}

.notice-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #8b2323;
    margin-right: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.notice-marquee-container {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px 15px;
    overflow: hidden;
    flex-grow: 1;
}

.notice-icon {
    margin-right: 15px;
    color: #8b2323;
    font-size: 1.2rem;
    flex-shrink: 0;
    background-color: rgba(139, 35, 35, 0.1);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notice-marquee {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.notice-marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marqueeScroll 40s linear infinite;
    padding-left: 100%;
    will-change: transform;
}

.notice-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 16px;
    color: #333;
    position: relative;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* 鼠标悬停时暂停滚动 */
.notice-marquee:hover .notice-marquee-content {
    animation-play-state: paused;
}

/* 服务导航样式 */
.simple-nav-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 20px auto;
    border-radius: 5px;
    max-width: 1100px;
    gap: 15px;
}

.simple-nav-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.simple-nav-item:hover {
    color: #8b2323;
    transform: translateY(-3px);
}

.simple-nav-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-nav-icon i {
    font-size: 32px;
    color: #8b2323;
    transition: all 0.3s ease;
}

.simple-nav-item:hover .simple-nav-icon i {
    color: #6d1a1a;
    transform: scale(1.1);
}

.simple-nav-title {
    font-size: 14px;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .simple-nav-item {
        flex: 0 0 33.333%;
        margin-bottom: 15px;
    }

    .simple-nav-container {
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {

    /* 公告栏响应式 */
    .notice-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .notice-title {
        margin-bottom: 10px;
        margin-right: 0;
    }

    .notice-marquee-container {
        width: 100%;
        padding: 8px 10px;
    }

    .notice-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .notice-item {
        font-size: 14px;
        margin-right: 40px;
    }

    .notice-marquee-content {
        animation-duration: 30s;
    }
}

@media (max-width: 767.98px) {

    /* 服务导航响应式 */
    .simple-nav-item {
        flex: 0 0 33.333%;
        margin-bottom: 15px;
    }

    .simple-nav-icon {
        width: 40px;
        height: 40px;
    }

    .simple-nav-icon i {
        font-size: 24px;
    }

    .simple-nav-title {
        font-size: 12px;
    }

    .news-container {
        padding: 12px;
    }

    .news-title a {
        font-size: 14px;
    }

    .news-date {
        font-size: 12px;
    }
}

/* 调解流程样式 */
.process-flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.process-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.process-row.process-two-branch {
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
}

.process-row.process-three-branch {
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 20px;
    width: 120px;
}

.process-icon {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.process-icon:hover {
    transform: scale(1.05);
}

.process-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    line-height: 1.3;
}

.process-arrow-down {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.process-branch {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5px 0;
}

.branch-left,
.branch-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.branch-center {
    display: flex;
    justify-content: center;
}

.process-merge {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 5px 0;
}

.merge-left,
.merge-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.merge-center {
    display: flex;
    justify-content: center;
}

/* 调解员样式 */
.mediator-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mediator-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    text-align: center;
}

.mediator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mediator-avatar {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.mediator-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mediator-title {
    font-size: 14px;
    color: #8b2323;
    font-weight: 500;
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(139, 35, 35, 0.1);
    border-radius: 15px;
    display: inline-block;
}

.mediator-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.mediator-specialty {
    font-size: 13px;
    color: #999;
    font-style: italic;
}

/* 最新动态样式 */
.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #8b2323;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #8b2323;
    text-decoration: underline;
}

.news-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

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

.news-more a {
    display: inline-block;
    padding: 12px 30px;
    background: #8b2323;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-more a:hover {
    background: #a02828;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 35, 35, 0.3);
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .simple-nav-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .simple-nav-item {
        padding: 20px 15px;
    }

    .simple-nav-item i {
        font-size: 28px;
    }

    .simple-nav-item span {
        font-size: 14px;
    }

    /* 调解流程响应式 */
    .process-flowchart {
        padding: 15px;
    }

    .process-row.process-two-branch,
    .process-row.process-three-branch {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }

    .process-step {
        margin: 10px 0;
        min-width: auto;
    }

    .process-title {
        font-size: 13px;
    }

    .process-icon svg {
        width: 100px;
        height: 100px;
    }

    .process-branch,
    .process-merge {
        display: none;
    }

    .process-arrow-down {
        margin: 15px 0;
    }

    /* 调解员响应式 */
    .mediator-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mediator-card {
        padding: 20px;
    }

    .mediator-name {
        font-size: 16px;
    }

    .mediator-title {
        font-size: 13px;
    }

    .mediator-desc {
        font-size: 13px;
    }

    /* 最新动态响应式 */
    .news-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .news-item {
        padding: 15px;
    }

    .news-title {
        font-size: 15px;
    }

    .news-date {
        font-size: 13px;
    }
}

/* 最新动态响应式 */
@media (max-width: 575.98px) {
    .simple-nav-container {
        padding: 10px 5px;
    }

    .simple-nav-item {
        flex: 0 0 33.333%;
        margin-bottom: 10px;
    }

    .simple-nav-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
    }

    .simple-nav-icon i {
        font-size: 20px;
    }

    .simple-nav-title {
        font-size: 12px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .news-title {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .news-title a {
        font-size: 15px;
    }

    .news-date {
        text-align: left;
        min-width: auto;
        font-size: 13px;
    }

    .news-container {
        padding: 15px;
    }
}