/* 政策详情页样式 */

/* 修复header样式冲突 - 通用覆盖 */
.navbar * {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar .navbar-nav,
.navbar .navbar-nav * {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 修复header样式冲突 */
.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .nav-item .nav-link,
.navbar .navbar-nav li .nav-link {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    padding: 0.5rem 1rem !important;
    color: #333 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
    white-space: nowrap !important;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-item .nav-link:hover,
.navbar .navbar-nav li .nav-link:hover {
    color: #007bff !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-width: 0 !important;
    border-style: none !important;
}

.navbar .navbar-nav .nav-link:focus {
    color: #007bff !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar .navbar-nav .nav-link:active {
    color: #007bff !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 用户下拉菜单样式修复 */
.navbar .navbar-nav .dropdown-menu .dropdown-item {
    border: none !important;
    background: none !important;
    background-color: transparent !important;
    color: #333 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.navbar .navbar-nav .dropdown-menu .dropdown-item:hover {
    color: #007bff !important;
    background: none !important;
    background-color: #f8f9fa !important;
    border: none !important;
    box-shadow: none !important;
}

/* 按钮样式保持 */
.navbar .navbar-nav .btn {
    border: 1px solid #007bff !important;
    background: transparent !important;
    color: #007bff !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.25rem !important;
}

.navbar .navbar-nav .btn-primary {
    background: #007bff !important;
    color: white !important;
    border: 1px solid #007bff !important;
}

.navbar .navbar-nav .btn:hover {
    opacity: 0.8 !important;
}

/* 面包屑导航 */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 15px ;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

/* 政策详情内容 */
.policy-content {
    margin-top: 20px;
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 400px;
}

.policy-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.policy-content .row {
    margin: 0;
}

.policy-content .col-12 {
    padding: 0;
    width: 100%;
    max-width: 100%;
}

/* 确保内容正确显示 */
.policy-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
    display: block;
}

.policy-body {
    padding: 30px;
    background: white;
    min-height: 200px;
}

/* 政策快速入口 */
.policy-quick-entrance {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: -150px;
}

.policy-entrance-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 32px;
    margin-top: 20px;
}

.policy-entrance-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 8px 20px 8px;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.policy-entrance-item:hover {
    box-shadow: 0 16px 32px rgba(37,99,235,0.15);
    transform: translateY(-4px) scale(1.04);
    background: white;
}

.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-detail-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

/* 政策头部 */
.policy-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.policy-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.meta-item i {
    width: 16px;
    text-align: center;
}

/* 政策内容 */
.policy-body {
    padding: 30px;
}

.content-section {
    margin-bottom: 30px;
  }

.content-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.summary-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
    color: #495057;
}

.content-text {
    line-height: 1.8;
    color: #2c3e50;
    font-size: 16px;
}

.content-text p {
    margin-bottom: 15px;
}

.content-text h1, .content-text h2, .content-text h3, .content-text h4, .content-text h5, .content-text h6 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.content-text ul, .content-text ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.content-text li {
    margin-bottom: 5px;
}

.content-text table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.content-text table th,
.content-text table td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
}

.content-text table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.content-text blockquote {
    border-left: 4px solid #667eea;
    padding-left: 15px;
    margin: 15px 0;
    color: #6c757d;
    font-style: italic;
}

/* 政策标签 */
.policy-tags {
    margin-top: 10px;
}

.tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
}

/* 联系方式 */
.contact-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #495057;
}

.contact-item i {
    width: 20px;
    color: #667eea;
}

/* 原文链接 */
.source-link {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* 侧边栏卡片 */
.related-policies-card,
.smart-match-card,
.statistics-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.related-policies-card h3,
.smart-match-card h3,
.statistics-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* 相关政策 */
.related-policy-item {
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.related-policy-item:last-child {
    border-bottom: none;
}

.related-policy-item h4 {
    margin-bottom: 8px;
}

.related-policy-item h4 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.related-policy-item h4 a:hover {
    color: #667eea;
}

.related-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #6c757d;
}

/* 智能匹配卡片 */
.smart-match-card p {
    color: #6c757d;
    margin-bottom: 20px;
}

.smart-match-card .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.smart-match-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 统计信息 */
.stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
}

.stat-item i {
    width: 20px;
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .policy-quick-entrance {
        max-width: 98vw;
        padding: 32px 8px 18px 8px;
    }
    .policy-entrance-list {
        gap: 12px;
    }
}

@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;
    }
    
    .policy-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .policy-header {
        padding: 20px;
    }
    
    .policy-body {
        padding: 20px;
    }
    
    .policy-title {
        font-size: 1.5rem;
    }
    
    .content-section h3 {
        font-size: 1.1rem;
    }
    
    .related-policies-card,
    .smart-match-card,
    .statistics-card {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .policy-header {
        padding: 15px;
    }
    
    .policy-body {
        padding: 15px;
    }
    
    .policy-title {
        font-size: 1.3rem;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

/* 政策导航 */
.policy-navigation {
    background: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.policy-navigation .navigation-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.policy-navigation .nav-item {
    flex: 1;
    max-width: 100%;
}

.policy-navigation .nav-link {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.policy-navigation .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #667eea;
    color: #667eea;
}

.policy-navigation .nav-link.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.policy-navigation .nav-link.disabled:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: transparent;
}

.policy-navigation .nav-prev .nav-link {
    flex-direction: row;
}

.policy-navigation .nav-next .nav-link {
    flex-direction: row-reverse;
}

.policy-navigation .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 16px;
    flex-shrink: 0;
}

.policy-navigation .nav-link.disabled .nav-icon {
    background: #6c757d;
}

.policy-navigation .nav-content {
    flex: 1;
    margin: 0 15px;
}

.policy-navigation .nav-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.policy-navigation .nav-title {
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.4;
    color: #333;
}

.policy-navigation .nav-link.disabled .nav-title {
    color: #6c757d;
}

/* 导航响应式设计 */
@media (max-width: 768px) {
    .policy-navigation .navigation-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .policy-navigation .nav-item {
        max-width: 100%;
    }
    
    .policy-navigation .nav-link {
        padding: 15px;
    }
    
    .policy-navigation .nav-content {
        margin: 0 10px;
    }
    
    .policy-navigation .nav-title {
        font-size: 0.9rem;
    }
}
