/* 全局样式 - 绿色建筑评价标准条文解读 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f7fa;
    font-size: 15px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* 顶部导航 */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.top-nav a {
    color: #2c8c47;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 4px;
    transition: all 0.2s;
}

.top-nav a:hover {
    background: #e8f5e9;
}

.top-nav .nav-info {
    color: #666;
    font-size: 13px;
}

/* 条文页头部 */
.provision-header {
    background: linear-gradient(135deg, #2c8c47 0%, #1a5c2e 100%);
    color: white;
    padding: 30px 35px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.provision-header .breadcrumb {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.provision-header .breadcrumb a {
    color: white;
    text-decoration: none;
}

.provision-header h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.provision-header .provision-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.provision-header .meta-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 13px;
}

.provision-header .meta-tag.type-control {
    background: #dc3545;
}
.provision-header .meta-tag.type-score {
    background: #28a745;
}
.provision-header .meta-tag.type-bonus {
    background: #ffc107;
    color: #333;
}
.provision-header .meta-tag.stars-1 { background: #6c757d; }
.provision-header .meta-tag.stars-2 { background: #17a2b8; }
.provision-header .meta-tag.stars-3 { background: #fd7e14; }
.provision-header .meta-tag.stars-5 { background: #dc3545; }

/* 内容卡片 */
.section-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-card .card-header {
    background: #f8f9fa;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #2c8c47;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card .card-header .icon {
    font-size: 20px;
}

.section-card .card-body {
    padding: 20px 25px;
    line-height: 1.9;
}

.section-card .card-body p {
    margin-bottom: 12px;
}

.section-card .card-body ul, 
.section-card .card-body ol {
    margin: 10px 0 10px 25px;
}

.section-card .card-body li {
    margin-bottom: 8px;
}

/* 条文原文块 */
.provision-original {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 18px 22px;
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.9;
    border-radius: 0 4px 4px 0;
}

.provision-original .label {
    font-weight: bold;
    color: #856404;
    margin-bottom: 8px;
    display: block;
}

/* 技术细则表格 */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.tech-table th, .tech-table td {
    border: 1px solid #ddd;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.tech-table th {
    background: #e8f5e9;
    color: #1a5c2e;
    font-weight: 600;
}

.tech-table tr:nth-child(even) td {
    background: #fafafa;
}

/* 提示框 */
.alert {
    padding: 14px 18px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-info {
    background: var(--info-light);
    border-color: #90CAF9;
    color: #0D47A1;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert .alert-title {
    font-weight: bold;
    margin-bottom: 6px;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: #e9ecef;
    border-radius: 10px;
    font-size: 12px;
    color: #495057;
}

.tag-profession {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: white;
}

.tag-profession.planning { background: #2e7d32; }
.tag-profession.architecture { background: #7b1fa2; }
.tag-profession.structure { background: #c62828; }
.tag-profession.plumbing { background: #00695c; }
.tag-profession.hvac { background: #e65100; }
.tag-profession.electrical { background: #4a148c; }
.tag-profession.intelligence { background: #2e7d32; }
.tag-profession.landscape { background: #558b2f; }

/* 底部导航 */
.bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.bottom-nav a {
    flex: 1;
    padding: 15px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    text-align: center;
}

.bottom-nav a:hover {
    border-color: #2c8c47;
    box-shadow: 0 2px 8px rgba(44,140,71,0.15);
    transform: translateY(-2px);
}

.bottom-nav a.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bottom-nav .nav-title {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.bottom-nav .nav-content {
    font-weight: 600;
    color: #2c8c47;
}

/* 难度星级 */
.difficulty {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.difficulty .star {
    color: #ffc107;
    font-size: 14px;
}

.difficulty .star.empty {
    color: #e0e0e0;
}

/* 性价比标签 */
.cost-effective {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.cost-effective.high { background: #28a745; color: white; }
.cost-effective.medium { background: #ffc107; color: #333; }
.cost-effective.low { background: #dc3545; color: white; }

/* 实用清单 */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 8px 0 8px 30px;
    position: relative;
    border-bottom: 1px dashed #e9ecef;
}

.checklist li:last-child { border-bottom: none; }

.checklist li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 9px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232c8c47' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.checklist li.checked::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpolyline points='8 12 11 15 16 9'/%3E%3C/svg%3E");
}

.checklist li input[type="checkbox"] {
    position: absolute;
    left: 6px;
    top: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 关联条文 */
.related-provisions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.related-item {
    padding: 10px 14px;
    background: #f8f9fa;
    border-left: 3px solid #2c8c47;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    font-size: 14px;
}

.related-item:hover {
    background: #e8f5e9;
    transform: translateX(3px);
}

.related-item .rel-num {
    font-weight: bold;
    color: #2c8c47;
    margin-right: 6px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container { padding: 10px; }
    .provision-header { padding: 20px; }
    .provision-header h1 { font-size: 22px; }
    .section-card .card-body { padding: 15px; }
    .bottom-nav { flex-direction: column; }
}
