/* 政策频道首页样式 */

/* 页面头部 */
.policy-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
}

.policy-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.policy-page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 30px;
}

/* 政策快速入口 */
.policy-quick-entrance {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: -150px;
    
}

.policy-entrance-list {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 72px;
    margin-top: 20px;
}

.policy-entrance-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    -moz-box-flex: 1;
    -ms-flex: 1 1 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    -webkit-box-shadow: 0 2px 8px rgba(42, 45, 51, 0.06);
    -moz-box-shadow: 0 2px 8px rgba(42, 45, 51, 0.06);
    box-shadow: 0 2px 8px rgba(42, 45, 51, 0.06);
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 28px 8px 20px 8px;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.policy-entrance-item:hover {
    -webkit-box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    -moz-box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
}

.policy-entrance-item .icon {
    margin-bottom: 15px;
}

.policy-entrance-item .icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 16px;
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    margin-bottom: 12px;
    display: block;
}

.policy-entrance-item .title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    text-align: center;
}

.policy-entrance-item .title a {
    color: inherit;
    text-decoration: none;
}

.policy-entrance-item .desc {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* 政策内容区域 */
.policy-content {

    border-radius: 10px;

    margin-bottom: 30px;
}

/* 面包屑导航 */
.breadcrumb {
    background: none;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 政策筛选器 */
.policy-filters {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 80px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    flex-wrap: wrap;
    width: 100%;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    margin-right: 15px;
    min-width: 100px;
    font-size: 0.95rem;
    padding-top: 0;
    flex-shrink: 0;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    align-items: center;
}

.filter-option {
    display: inline-block;
    padding: 8px 16px;
    background: #f8fafc;
    color: #64748b;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.filter-option:hover {
    background: #e2e8f0;
    color: #475569;
    text-decoration: none;
}

.filter-option.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 搜索表单 */
.search-form-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 25px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 0.95rem;
    outline: none;
    color: #374151;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-button:hover {
    background: #2563eb;
}

.search-button i {
    font-size: 0.9rem;
}

/* 政策列表 */
.policy-list {
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.policy-item {
    padding: 20px 25px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item:hover {
    background: #f8fafc;
}

.policy-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.policy-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    margin-right: 15px;
}

.policy-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.policy-title a:hover {
    color: #3b82f6;
    text-decoration: none;
}

.policy-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.policy-level {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.policy-date {
    color: #64748b;
    font-size: 0.9rem;
}

.policy-summary {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.policy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.policy-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 16px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

.pagination .page-link:first-child,
.pagination .page-link:last-child {
    font-size: 12px;
    min-width: 56px;
    width: auto;
    height: 36px;
    padding: 0 10px;
}

.pagination .page-item.active .page-link {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.pagination .page-link:hover:not(.active) {
    background: #f0f6ff;
    color: #2563eb;
    border-color: #bcd0f7;
}

.pagination .page-item.disabled .page-link {
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .policy-quick-entrance {
        max-width: 98vw;
        padding: 32px 8px 18px 8px;
    }
    .policy-entrance-list {
        gap: 52px;
    }
}

@media (max-width: 1200px) {
    .policy-entrance-list {
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .policy-quick-entrance {
        padding: 18px 4px 8px 4px;
    }
    .policy-entrance-list {
        gap: 8px;
    }
    .policy-entrance-item {
        padding: 16px 2px 10px 2px;
    }
    .policy-entrance-item .icon img {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        margin-bottom: 8px;
    }
}

@media (max-width: 768px) {
    .policy-quick-entrance {
        padding: 12px 2px 4px 2px;
        border-radius: 20px;
    }
    .policy-entrance-list {
        flex-wrap: wrap;
        gap: 6px;
    }
    .policy-entrance-item {
        border-radius: 12px;
        padding: 10px 2px 8px 2px;
    }
    .policy-entrance-item .icon img {
        width: 36px;
        height: 36px;
        border-radius: 6px;
        margin-bottom: 6px;
    }
    .policy-entrance-item .title {
        font-size: 1rem;
    }
    .policy-entrance-item .desc {
        font-size: 0.75rem;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .policy-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .policy-meta {
        margin-top: 10px;
        flex-wrap: wrap;
    }
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.no-results h3 {
    color: #475569;
    margin-bottom: 10px;
}

.no-results p {
    color: #64748b;
    margin: 0;
}