/* 养老社保频道样式 */
:root {
    --primary-color: #1B5E20;
    --secondary-color: #2E7D32;
    --accent-color: #43A047;
    --light-bg: #E8F5E9;
    --text-primary: #1B5E20;
    --text-secondary: #388E3C;
    --text-light: #81C784;
    --border-color: #C8E6C9;
    --shadow-sm: 0 2px 4px rgba(27,94,32,0.05);
    --shadow-md: 0 4px 8px rgba(27,94,32,0.1);
    --shadow-lg: 0 8px 16px rgba(27,94,32,0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Banner区域 */
.banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
    position: relative;
}

.banner-content {
    margin-bottom: 40px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 快速导航 */
.social-quick-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.quick-nav-item:hover {
    transform: translateY(-5px);
}

.quick-nav-item i {
    font-size: 36px;
    margin-bottom: 10px;
}

.quick-nav-item span {
    font-size: 16px;
}

/* 内容区域通用样式 */
.content-section {
    padding: 60px 0;
}

.content-section.bg-light {
    background: var(--light-bg);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 28px;
    color: var(--text-primary);
    margin: 0;
}

.more-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.more-link:hover {
    text-decoration: underline;
}

/* 社保查询样式 */
.query-tabs {
    display: flex;
    gap: 15px;
}

.tab-btn {
    padding: 8px 20px;
    border: none;
    background: var(--light-bg);
    color: var(--text-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: var(--border-color);
}

.tab-btn.active {
    background: var(--accent-color);
    color: white;
}

.query-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.query-form {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-query {
    width: 100%;
    padding: 12px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-query:hover {
    background: var(--secondary-color);
}

.query-tips {
    background: #F8F9FA;
    padding: 20px;
    border-radius: var(--radius-lg);
}

.query-tips h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.query-tips i {
    color: var(--accent-color);
}

.query-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.query-tips li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.query-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 政策解读样式 */
.policy-filter {
    display: flex;
    gap: 10px;
}

.filter-tag {
    padding: 6px 15px;
    border-radius: 20px;
    background: white;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-tag:hover {
    background: var(--border-color);
}

.filter-tag.active {
    background: var(--accent-color);
    color: white;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.policy-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.policy-card.featured {
    grid-column: span 2;
}

.policy-image {
    position: relative;
    height: 200px;
}

.policy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.policy-info {
    padding: 20px;
}

.policy-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.policy-info h3 {
    margin: 10px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.policy-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.policy-meta {
    display: flex;
    gap: 20px;
}

.policy-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.policy-meta i {
    font-size: 16px;
    color: var(--accent-color);
}

/* 救助申请样式 */
.assistance-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.assistance-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.assistance-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.assistance-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.assistance-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.assistance-icon i {
    font-size: 30px;
    color: var(--accent-color);
}

.assistance-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.assistance-card p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.assistance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.assistance-list li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    padding-left: 20px;
    position: relative;
}

.assistance-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.btn-apply {
    display: inline-block;
    padding: 10px 25px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.3s;
}

.btn-apply:hover {
    background: var(--secondary-color);
}

.assistance-guide {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.assistance-guide h3 {
    margin: 0 0 20px;
    color: var(--text-primary);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step h4 {
    margin: 0 0 5px;
    color: var(--text-primary);
}

.step p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* 福利资讯样式 */
.welfare-tabs {
    display: flex;
    gap: 15px;
}

.welfare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.welfare-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.welfare-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.welfare-icon {
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.welfare-icon i {
    font-size: 30px;
    color: var(--accent-color);
}

.welfare-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.welfare-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.welfare-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.welfare-tags .tag {
    position: static;
    background: var(--light-bg);
    color: var(--text-secondary);
}

.btn-detail {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background: var(--secondary-color);
}

/* 慈善援助样式 */
.charity-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.project-image {
    position: relative;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    color: white;
}

.progress-bar {
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-bottom: 5px;
}

.progress-text {
    font-size: 12px;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary);
}

.project-info p {
    margin: 0 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
}

.project-meta i {
    color: var(--accent-color);
}

.btn-donate {
    width: 100%;
    padding: 10px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-donate:hover {
    background: var(--secondary-color);
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .policy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welfare-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charity-projects {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .query-content {
        grid-template-columns: 1fr;
    }
    
    .assistance-content {
        grid-template-columns: 1fr;
    }
    
    .assistance-types {
        grid-template-columns: 1fr;
    }
    
    .policy-card.featured {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .social-quick-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .quick-nav-item {
        width: calc(50% - 15px);
    }
    
    .policy-grid {
        grid-template-columns: 1fr;
    }
    
    .welfare-grid {
        grid-template-columns: 1fr;
    }
    
    .welfare-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        width: calc(50% - 10px);
    }
}

@media (max-width: 576px) {
    .quick-nav-item {
        width: 100%;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .policy-meta,
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* 政策解读新样式 */
.policy-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.policy-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.policy-list {
    background: white;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.policy-list h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.policy-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.policy-list li:last-child {
    border-bottom: none;
}

.policy-list .date {
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 50px;
}

.policy-list a {
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
    transition: color 0.3s;
}

.policy-list a:hover {
    color: var(--accent-color);
}

/* 办事指南样式 */
.guide-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.guide-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.guide-icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.guide-icon i {
    font-size: 24px;
    color: var(--accent-color);
}

.guide-card h3 {
    margin: 0 0 15px;
    color: var(--text-primary);
}

.guide-steps {
    margin-bottom: 20px;
}

.guide-step {
    margin-bottom: 15px;
}

.guide-step h4 {
    color: var(--text-primary);
    margin: 0 0 10px;
    font-size: 16px;
}

.guide-step ul,
.guide-step ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.guide-step li {
    margin-bottom: 5px;
}

.btn-guide {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: background-color 0.3s;
}

.btn-guide:hover {
    background: var(--secondary-color);
}

/* FAQ样式 */
.faq-section {
    background: white;
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-section h3 {
    color: var(--text-primary);
    margin: 0 0 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.faq-question i {
    color: var(--accent-color);
}

.faq-question h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* 指南卡片滚动样式 */
.guide-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.guide-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.guide-scroll .guide-card {
    min-width: 300px;
    scroll-snap-align: start;
}

/* 慈善援助样式更新 */
.charity-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.charity-grid::-webkit-scrollbar {
    display: none;
}

.charity-grid .project-card {
    min-width: 300px;
    scroll-snap-align: start;
}

/* FAQ样式更新 */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-question i {
    color: var(--accent-color);
}

.faq-question h4 {
    flex: 1;
    margin: 0;
    color: var(--text-primary);
    font-size: 16px;
}

.toggle-icon {
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 15px;
}

.faq-item.active .faq-answer {
    padding: 0 15px 15px;
}

/* 响应式更新 */
@media (max-width: 768px) {
    .guide-scroll .guide-card,
    .charity-grid .project-card {
        min-width: 280px;
    }
}

@media (max-width: 1200px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .policy-content {
        grid-template-columns: 1fr;
    }
    
    .welfare-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charity-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .welfare-grid,
    .charity-grid {
        grid-template-columns: 1fr;
    }
    
    .guide-steps {
        flex-direction: column;
    }
}

/* 慈善援助滚动容器 */
.charity-container {
    position: relative;
    padding: 0 40px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.scroll-btn:hover {
    background: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.scroll-btn.prev {
    left: 0;
}

.scroll-btn.next {
    right: 0;
}

.scroll-btn i {
    font-size: 24px;
}

.charity-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.charity-grid::-webkit-scrollbar {
    display: none;
}

.charity-grid .project-card {
    flex: 0 0 300px;
    margin-right: 0;
}

@media (max-width: 768px) {
    .charity-container {
        padding: 0 30px;
    }

    .scroll-btn {
        width: 30px;
        height: 30px;
    }

    .scroll-btn i {
        font-size: 20px;
    }

    .charity-grid .project-card {
        flex: 0 0 280px;
    }
} 