/* ===== 4v1.com 基础样式（P0 骨架） ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #333; background: #f7f8fa; line-height: 1.6; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* 头部 */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { font-size: 22px; font-weight: 700; color: #1a73e8; }
.logo span { color: #333; font-weight: 400; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { padding: 8px 14px; border-radius: 6px; color: #555; font-size: 15px; position: relative; }
.main-nav a:hover { background: #f0f4ff; text-decoration: none; }
.main-nav a.active { color: #1a73e8; font-weight: 600; }
.badge { background: #fef3c7; color: #92400e; font-size: 11px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
.header-right { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; }
.search-box input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px 0 0 6px; width: 180px; font-size: 13px; }
.search-box button { padding: 6px 12px; border: 1px solid #1a73e8; background: #1a73e8; color: #fff; border-radius: 0 6px 6px 0; cursor: pointer; font-size: 13px; }
.search-box input:disabled, .search-box button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 按钮 */
.btn { padding: 7px 16px; border-radius: 6px; font-size: 14px; display: inline-block; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; text-decoration: none; }
.btn-outline { border: 1px solid #1a73e8; color: #1a73e8; }
.btn-outline:hover { background: #f0f4ff; text-decoration: none; }

/* 主内容 */
main { padding: 24px 0 40px; min-height: 60vh; }
.breadcrumb { font-size: 13px; color: #888; margin-bottom: 16px; }
.breadcrumb a { color: #888; }

/* Hero */
.hero { background: linear-gradient(135deg, #1a73e8, #4f8ef7); color: #fff; border-radius: 12px; padding: 48px 40px; margin-bottom: 28px; }
.hero h1 { font-size: 32px; margin-bottom: 10px; }
.hero p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.hero .btn { background: #fff; color: #1a73e8; margin-right: 10px; font-weight: 600; }

/* 板块入口 */
.section-title { font-size: 20px; font-weight: 700; margin: 28px 0 16px; display: flex; justify-content: space-between; align-items: center; }
.section-title a { font-size: 14px; font-weight: 400; }
.portal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.portal-card { background: #fff; border-radius: 10px; padding: 22px 16px; text-align: center; border: 1px solid #eee; transition: transform .15s; }
.portal-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); text-decoration: none; }
.portal-card .icon { font-size: 28px; margin-bottom: 8px; }
.portal-card .name { font-weight: 600; color: #333; }
.portal-card .desc { font-size: 12px; color: #999; margin-top: 4px; }

/* 卡片网格 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.card .thumb { background: #e8eef7; height: 140px; display: flex; align-items: center; justify-content: center; color: #999; font-size: 13px; }
.card .body { padding: 14px; }
.card .body h3 { font-size: 15px; margin-bottom: 6px; }
.card .meta { font-size: 12px; color: #888; margin-bottom: 8px; }
.card .actions { display: flex; justify-content: space-between; align-items: center; }

/* 两栏布局 */
.two-col { display: flex; gap: 24px; }
.sidebar { width: 240px; flex-shrink: 0; }
.content-col { flex: 1; }
.filter-panel { background: #fff; border-radius: 10px; padding: 18px; border: 1px solid #eee; }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; color: #555; }
.filter-group input[type="range"] { width: 100%; }
.filter-group .range-val { font-size: 12px; color: #888; }

/* 列表条目 */
.list-item { background: #fff; border-radius: 10px; padding: 18px; margin-bottom: 12px; border: 1px solid #eee; }
.list-item h3 { font-size: 16px; margin-bottom: 6px; }
.list-item .meta { font-size: 13px; color: #666; margin-bottom: 8px; }
.list-item .summary { font-size: 14px; color: #555; margin-bottom: 10px; }
.tags span { display: inline-block; background: #eef2ff; color: #4338ca; font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }

/* 状态标签 */
.status-ok { color: #16a34a; font-weight: 600; }
.status-warn { color: #d97706; font-weight: 600; }
.status-off { color: #999; }

/* 详情页 */
.detail-hero { display: flex; gap: 28px; background: #fff; border-radius: 12px; padding: 28px; margin-bottom: 20px; border: 1px solid #eee; }
.detail-hero .thumb { width: 320px; height: 240px; background: #e8eef7; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #999; flex-shrink: 0; }
.detail-hero .info h1 { font-size: 24px; margin-bottom: 8px; }
.detail-hero .info .meta { color: #666; margin-bottom: 12px; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.spec-table th { background: #f9fafb; width: 140px; color: #666; font-weight: 600; }
.block { background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 20px; border: 1px solid #eee; }
.block h2 { font-size: 18px; margin-bottom: 12px; }

/* 声明条 */
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 12px 16px; border-radius: 8px; font-size: 13px; margin: 16px 0; }
.disclaimer { background: #f9fafb; border-left: 3px solid #1a73e8; padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 13px; color: #555; margin-top: 16px; }

/* 分页 */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.pagination .current { background: #1a73e8; color: #fff; border-color: #1a73e8; }

/* 页脚 */
.site-footer { background: #1f2937; color: #d1d5db; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 36px 0; }
.footer-col h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.footer-col p, .footer-col li { font-size: 13px; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col a { color: #d1d5db; }
.footer-bottom { border-top: 1px solid #374151; padding: 14px 0; font-size: 12px; color: #9ca3af; }
.footer-bottom .container { display: flex; justify-content: space-between; }

/* 占位页 */
.coming-soon { text-align: center; padding: 80px 20px; background: #fff; border-radius: 12px; }
.coming-soon h1 { font-size: 28px; margin-bottom: 16px; }
.coming-soon p { color: #666; margin-bottom: 8px; }

/* 机构列表表格（UOM 同款） */
.org-search-bar { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; }
.org-search-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.org-search-input { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 13px; flex: 1; min-width: 120px; }
.org-search-input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.org-table-wrap { overflow-x: auto; margin-top: 0; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.org-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 0; table-layout: auto; }
.org-table th { background: #e5e7eb; color: #1f2937; font-weight: 600; padding: 11px 10px; text-align: left; border-bottom: 2px solid #9ca3af; border-right: 1px solid #d1d5db; white-space: nowrap; position: sticky; top: 0; }
.org-table th:last-child { border-right: none; }
.org-table td { padding: 11px 10px; border-bottom: 1px solid #e5e7eb; border-right: 1px solid #f0f0f0; color: #374151; vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-table td:last-child { border-right: none; }
.org-table tbody tr:nth-child(even) { background: #f9fafb; }
.org-table tbody tr:hover { background: #dbeafe; }
.org-table td:nth-child(1) { text-align: center; width: 70px; }
.org-table td:nth-child(2) { font-weight: 600; min-width: 180px; }
.org-table td:nth-child(2) a { color: #1d4ed8; text-decoration: none; }
.org-table td:nth-child(2) a:hover { text-decoration: underline; }
.org-table td:nth-child(3) { min-width: 150px; color: #111; }
.org-table td:nth-child(4) { min-width: 200px; max-width: 340px; color: #111; white-space: normal; word-break: break-all; line-height: 1.5; }
.org-table td:nth-child(5) { width: 155px; color: #111; }
.org-table td:nth-child(6) { text-align: center; width: 80px; color: #111; }
.org-table td:nth-child(7) { text-align: center; width: 80px; color: #111; }
.org-table td:nth-child(8) { text-align: center; width: 120px; color: #111; }

/* 机构详情页 */
.org-detail-header { border-left: 4px solid #1a73e8; }
.org-status-badge { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 13px; font-weight: 500; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-off { background: #f3f4f6; color: #6b7280; }
.org-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.org-detail-grid .block { margin-bottom: 0; }
.org-detail-grid .spec-table th { width: 120px; }
@media (max-width: 768px) { .org-detail-grid { grid-template-columns: 1fr; } }
