/* =========================================
   银发财经 — 政策详情页专属样式
   用途：仅 policy_detail.html 模板生成的页面引用
   隔离说明：所有类名以 .policy- 为前缀或具有页面特异性
   ========================================= */

/* ---- Hero 区 ---- */
.policy-hero {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.policy-hero .ph-left { flex: 1; min-width: 0; }
.policy-hero .ph-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.policy-hero .ph-sub { font-size: 13px; opacity: 0.85; margin-bottom: 4px; }
.policy-hero .ph-meta { font-size: 12px; opacity: 0.7; }
.policy-hero .ph-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

/* ---- 返回按钮（深色背景专用） ---- */
.policy-back-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.policy-back-btn:hover { background: rgba(255,255,255,0.25); }

/* ---- 内容区 ---- */
.policy-content { max-width: 900px; margin: 0 auto; padding: 30px; }

/* ---- 元信息网格 ---- */
.policy-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.policy-meta-card {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 14px 16px;
  border-left: 4px solid #7c3aed;
}
.policy-meta-card .meta-label {
  font-size: 11px;
  color: #999;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.policy-meta-card .meta-value { font-size: 14px; font-weight: 600; color: #333; }
.policy-meta-card .meta-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}
.policy-badge-strong { background: #ecfdf5; color: #059669; }
.policy-badge-medium { background: #fef3c7; color: #d97706; }
.policy-badge-weak { background: #fee2e2; color: #991b1b; }

/* ---- 章节 ---- */
.policy-section { margin-bottom: 28px; }
.policy-section h2 {
  font-size: 17px;
  color: #444;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
}

/* ---- 政策正文 ---- */
.policy-text {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.8;
  font-size: 14px;
  color: #333;
}
.policy-text p { margin-bottom: 12px; }

/* ---- 标签 ---- */
.policy-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.policy-tag-item {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #f0fdf4;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ---- 适用对象 ---- */
.policy-target-list { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-target-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  font-size: 13px;
  color: #555;
  border: 1px solid #e5e7eb;
}

/* ---- 来源框 ---- */
.policy-source-box {
  background: #f0f7ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.policy-source-box .source-label { font-size: 11px; color: #666; margin-bottom: 6px; }
.policy-source-box .source-url { font-size: 13px; word-break: break-all; }
.policy-source-box .source-url a { color: #1e40af; text-decoration: none; font-weight: 500; }
.policy-source-box .source-url a:hover { text-decoration: underline; }
.policy-source-box .source-meta { font-size: 12px; color: #999; margin-top: 8px; }

/* ---- 验证框 ---- */
.policy-verify-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.policy-verify-box .v-icon { font-size: 16px; }
.policy-verify-box .v-text { font-size: 13px; color: #065f46; }
.policy-verify-box .v-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #059669;
  color: #fff;
}

/* ---- 相关推荐 ---- */
.policy-related-section { margin-top: 32px; padding-top: 24px; border-top: 2px solid #e5e7eb; }
.policy-related-section h3 { font-size: 15px; color: #444; margin-bottom: 14px; }
.policy-related-list { display: flex; flex-direction: column; gap: 10px; }
.policy-related-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.policy-related-item:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.policy-related-item .ri-name {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}
.policy-related-item .ri-tool {
  font-size: 11px;
  color: #7c3aed;
  background: #f3f0ff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .policy-hero { padding: 18px 16px; }
  .policy-hero .ph-title { font-size: 17px; }
  .policy-content { padding: 16px; }
  .policy-meta-grid { grid-template-columns: 1fr 1fr; }
}
