/* ============================================================
   首页专属样式
   ============================================================ */

/* ---------- 轮播 ---------- */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
}

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

.hero-slider .slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider .slide::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero-slider .slide::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: 10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.slide-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.slide-content h2 {
    font-size: 44px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.slide-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
    padding: 10px 34px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.25s ease;
}

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

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

.slider-dots span {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dots span.active {
    background: #fff;
}

/* ---------- 数据统计 ---------- */
.stats-bar {
    background: var(--white);
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item strong {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary);
    font-family: "DIN Alternate", "Arial", sans-serif;
}

.stat-item span {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
}

.stat-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ---------- 协会简介布局 ---------- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 56px;
    align-items: center;
}

.section-head.left {
    text-align: left;
    margin-bottom: 22px;
}

.section-head.left h2::after {
    left: 0;
    transform: none;
}

.about-text {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
    text-align: justify;
    margin-bottom: 14px;
}

.about-left .btn {
    margin-top: 10px;
}

/* ---------- 职能卡片 ---------- */
.duty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.duty-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.duty-item.blue { border-top-color: #1a5fb4; }
.duty-item.red { border-top-color: #c41e3a; }
.duty-item.teal { border-top-color: #0d7377; }
.duty-item.gold { border-top-color: #c9922e; }
.duty-item.purple { border-top-color: #7a5ba8; }
.duty-item.dark { border-top-color: #4a627e; }

.duty-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.duty-item .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.duty-item.blue .icon { background: linear-gradient(135deg, #1a5fb4, #3d8be0); }
.duty-item.red .icon { background: linear-gradient(135deg, #a01730, #d9536a); }
.duty-item.teal .icon { background: linear-gradient(135deg, #0d7377, #2ba3a1); }
.duty-item.gold .icon { background: linear-gradient(135deg, #9a6a1f, #d4a54a); }
.duty-item.purple .icon { background: linear-gradient(135deg, #5b3a8e, #8c66c9); }
.duty-item.dark .icon { background: linear-gradient(135deg, #2c3e50, #4a627e); }

.duty-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.duty-item p {
    font-size: 12.5px;
    color: var(--text-lighter);
    line-height: 1.6;
}

/* ---------- 新闻布局 ---------- */
.news-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.news-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.news-side .news-panel + .news-panel {
    margin-top: 26px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to right, var(--primary-light), #fff 70%);
}

.news-side .panel-head {
    background: linear-gradient(to right, var(--primary-light), #fff 70%);
}

.panel-head h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-head h3::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary);
}

.panel-head .more {
    font-size: 13px;
    color: var(--text-lighter);
}

.panel-head .more:hover {
    color: var(--primary);
}

.notice-list {
    padding: 8px 22px 14px;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li a {
    flex: 1;
    margin-right: 14px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-list li a::before {
    content: "•";
    color: var(--primary);
    margin-right: 8px;
}

.notice-list li a:hover {
    color: var(--primary);
}

.notice-list li span {
    color: var(--text-lighter);
    font-size: 12.5px;
    flex-shrink: 0;
}

/* ---------- 党建区块 ---------- */
.party-section {
    background: linear-gradient(to bottom, #fff 0%, var(--red-light) 100%);
}

.center-btn {
    text-align: center;
    margin-top: 38px;
}

/* ---------- 会员墙 ---------- */
.member-wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.member-logo {
    height: 88px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: default;
}

.member-logo.blue { background: linear-gradient(135deg, #1a5fb4, #3d8be0); }
.member-logo.teal { background: linear-gradient(135deg, #0d7377, #2ba3a1); }
.member-logo.gold { background: linear-gradient(135deg, #9a6a1f, #d4a54a); }
.member-logo.purple { background: linear-gradient(135deg, #5b3a8e, #8c66c9); }
.member-logo.red { background: linear-gradient(135deg, #a01730, #d9536a); }
.member-logo.dark { background: linear-gradient(135deg, #2c3e50, #4a627e); }
.member-logo.gray { background: linear-gradient(135deg, #4b5563, #6b7280); }

.member-logo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .hero-slider {
        height: 420px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }

    .member-wall {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .hero-slider {
        height: 340px;
    }

    .slide-content h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .slide-content p {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item strong {
        font-size: 30px;
    }

    .member-wall {
        grid-template-columns: repeat(2, 1fr);
    }

    .duty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
