/* ===== 4v1.com 视觉体系 v2 — 低空科技+信息工具专业感 ===== */
/* 色板 */
:root {
  --c-primary: #0B1F3A;      /* 深蓝 主色 */
  --c-blue: #1E90FF;         /* 科技蓝 辅助 */
  --c-teal: #00D4B8;         /* 青绿 强调 */
  --c-bg: #F7F9FC;           /* 浅灰 背景 */
  --c-white: #FFFFFF;
  --c-text: #1A2332;
  --c-text-2: #5A6B7F;
  --c-text-3: #8B9BB0;
  --c-border: #E4EAF2;
  --c-border-light: #EEF2F7;
  --c-success: #10B981;
  --c-warning: #F59E0B;
  --c-danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(11,31,58,.06);
  --shadow-md: 0 4px 16px rgba(11,31,58,.08);
  --shadow-lg: 0 8px 32px rgba(11,31,58,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-blue); text-decoration: none; transition: color .15s; }
a:hover { color: #1565C0; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { font-size: 22px; font-weight: 800; color: var(--c-primary); letter-spacing: -.5px; }
.logo span { color: var(--c-blue); font-weight: 500; }
.main-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.main-nav a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  color: var(--c-text-2); font-size: 15px; font-weight: 500;
  transition: all .15s; white-space: nowrap;
}
.main-nav a:hover { background: var(--c-bg); color: var(--c-primary); text-decoration: none; }
.main-nav a.active { color: var(--c-blue); font-weight: 600; background: rgba(30,144,255,.08); }
.main-nav a.nav-external {
  background: linear-gradient(135deg, var(--c-blue), #1565C0);
  color: #fff; font-weight: 600; padding: 8px 18px;
  margin-left: 8px;
}
.main-nav a.nav-external:hover { background: linear-gradient(135deg, #1565C0, #0D47A1); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(30,144,255,.3); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: block; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--c-white); border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  min-width: 170px; z-index: 200; padding: 6px 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; font-size: 14px;
  color: var(--c-text-2); border-radius: 0; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--c-bg); color: var(--c-blue); }
.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: 12px; flex-shrink: 0; }
.user-info { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; }
.search-box input {
  padding: 8px 14px; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  width: 220px; font-size: 14px; background: var(--c-bg);
  transition: all .15s;
}
.search-box input:focus { outline: none; border-color: var(--c-blue); background: var(--c-white); }
.search-box button {
  padding: 8px 16px; border: 1px solid var(--c-blue); background: var(--c-blue);
  color: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer; font-size: 14px; transition: background .15s;
}
.search-box button:hover { background: #1565C0; }
.search-box input:disabled, .search-box button:disabled { opacity: .5; cursor: not-allowed; }

/* ===== 按钮 ===== */
.btn {
  padding: 9px 20px; border-radius: var(--radius-sm); font-size: 14px;
  display: inline-block; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .15s; text-align: center;
}
.btn-primary { background: var(--c-blue); color: #fff; }
.btn-primary:hover { background: #1565C0; text-decoration: none; color: #fff; }
.btn-outline { border-color: var(--c-blue); color: var(--c-blue); background: transparent; }
.btn-outline:hover { background: rgba(30,144,255,.08); text-decoration: none; }
.btn-ghost { color: var(--c-text-2); background: transparent; }
.btn-ghost:hover { background: var(--c-bg); color: var(--c-text); text-decoration: none; }
.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-teal { background: var(--c-teal); color: var(--c-primary); font-weight: 600; }
.btn-teal:hover { background: #00B8A0; text-decoration: none; color: var(--c-primary); }

/* ===== 主内容 ===== */
main { padding: 28px 0 48px; min-height: 60vh; }
.breadcrumb { font-size: 13px; color: var(--c-text-3); margin-bottom: 20px; }
.breadcrumb a { color: var(--c-text-3); }
.breadcrumb a:hover { color: var(--c-blue); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #132F54 50%, #1A3A65 100%);
  color: #fff; border-radius: var(--radius); padding: 56px 48px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,.15) 0%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: 20%;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,184,.1) 0%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.5px; }
.hero p { font-size: 17px; opacity: .85; margin-bottom: 28px; max-width: 640px; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 28px; font-size: 15px; font-weight: 600; }
.hero-cta .btn-primary { background: var(--c-teal); color: var(--c-primary); }
.hero-cta .btn-primary:hover { background: #00B8A0; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat .num { font-size: 28px; font-weight: 800; color: var(--c-teal); }
.hero-stat .label { font-size: 13px; opacity: .7; margin-top: 2px; }

/* ===== 板块标题 ===== */
.section-title {
  font-size: 22px; font-weight: 700; margin: 36px 0 18px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--c-primary);
}
.section-title a { font-size: 14px; font-weight: 500; color: var(--c-blue); }
.section-subtitle { font-size: 14px; color: var(--c-text-3); margin-top: -12px; margin-bottom: 18px; }

/* ===== 场景入口卡片 ===== */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.scene-card {
  background: var(--c-white); border-radius: var(--radius); padding: 24px 20px;
  border: 1px solid var(--c-border); transition: all .2s;
  display: flex; flex-direction: column;
}
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-blue); text-decoration: none; }
.scene-card .scene-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.scene-card .scene-title { font-size: 16px; font-weight: 700; color: var(--c-primary); margin-bottom: 6px; }
.scene-card .scene-desc { font-size: 13px; color: var(--c-text-2); line-height: 1.5; flex: 1; margin-bottom: 14px; }
.scene-card .scene-btn { font-size: 13px; font-weight: 600; color: var(--c-blue); display: flex; align-items: center; gap: 4px; }
.scene-card:hover .scene-btn { gap: 8px; }

/* ===== 板块入口（旧） ===== */
.portal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 28px; }
.portal-card {
  background: var(--c-white); border-radius: var(--radius-sm); padding: 22px 16px;
  text-align: center; border: 1px solid var(--c-border); transition: all .15s;
}
.portal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--c-blue); }
.portal-card .icon { font-size: 28px; margin-bottom: 8px; }
.portal-card .name { font-weight: 600; color: var(--c-text); }
.portal-card .desc { font-size: 12px; color: var(--c-text-3); margin-top: 4px; }

/* ===== 产品卡片 ===== */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--c-white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--c-border); transition: all .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .thumb {
  background: var(--c-bg); height: 150px; display: flex;
  align-items: center; justify-content: center;
}
.card .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card .body { padding: 16px; }
.card .body h3 { font-size: 15px; margin-bottom: 6px; font-weight: 600; }
.card .body h3 a { color: var(--c-primary); }
.card .meta { font-size: 12px; color: var(--c-text-3); margin-bottom: 10px; }
.card .actions { display: flex; justify-content: space-between; align-items: center; }
.card .price { font-size: 14px; color: var(--c-blue); font-weight: 700; }

/* ===== 两栏布局 ===== */
.two-col { display: flex; gap: 24px; }
.sidebar { width: 260px; flex-shrink: 0; }
.content-col { flex: 1; min-width: 0; }
.filter-panel {
  background: var(--c-white); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--c-border);
}
.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--c-text-2); }

/* ===== 列表条目 ===== */
.list-item {
  background: var(--c-white); border-radius: var(--radius); padding: 20px;
  margin-bottom: 12px; border: 1px solid var(--c-border); transition: all .15s;
}
.list-item:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.list-item h3 { font-size: 16px; margin-bottom: 6px; font-weight: 600; }
.list-item h3 a { color: var(--c-primary); }
.list-item .meta { font-size: 13px; color: var(--c-text-3); margin-bottom: 8px; }
.list-item .summary { font-size: 14px; color: var(--c-text-2); margin-bottom: 10px; line-height: 1.6; }

/* ===== 标签 ===== */
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px;
  border-radius: 20px; font-weight: 500; margin-right: 6px;
}
.tag-blue { background: rgba(30,144,255,.1); color: var(--c-blue); }
.tag-teal { background: rgba(0,212,184,.12); color: #00897B; }
.tag-green { background: rgba(16,185,129,.1); color: var(--c-success); }
.tag-orange { background: rgba(245,158,11,.1); color: var(--c-warning); }
.tag-gray { background: var(--c-bg); color: var(--c-text-3); }
.tags span { display: inline-block; background: rgba(30,144,255,.08); color: var(--c-blue); font-size: 12px; padding: 2px 8px; border-radius: 4px; margin-right: 4px; }

/* ===== 状态 ===== */
.status-ok { color: var(--c-success); font-weight: 600; }
.status-warn { color: var(--c-warning); font-weight: 600; }
.status-off { color: var(--c-text-3); }

/* ===== 详情页 ===== */
.detail-hero {
  display: flex; gap: 32px; background: var(--c-white);
  border-radius: var(--radius); padding: 28px; margin-bottom: 24px;
  border: 1px solid var(--c-border);
}
.detail-hero .thumb {
  width: 340px; height: 260px; background: var(--c-bg);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.detail-hero .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.detail-hero .info h1 { font-size: 26px; margin-bottom: 10px; color: var(--c-primary); }
.detail-hero .info .meta { color: var(--c-text-2); margin-bottom: 14px; }
.spec-table {
  width: 100%; border-collapse: collapse; background: var(--c-white);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
  border: 1px solid var(--c-border);
}
.spec-table th, .spec-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--c-border-light); font-size: 14px;
}
.spec-table th { background: var(--c-bg); width: 150px; color: var(--c-text-2); font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.block {
  background: var(--c-white); border-radius: var(--radius); padding: 24px;
  margin-bottom: 20px; border: 1px solid var(--c-border);
}
.block h2 { font-size: 19px; margin-bottom: 14px; color: var(--c-primary); }

/* ===== 声明条 ===== */
.notice {
  background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 13px; margin: 20px 0;
}
.disclaimer {
  background: var(--c-bg); border-left: 3px solid var(--c-blue);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; color: var(--c-text-2); margin-top: 16px;
}

/* ===== 分页 ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--c-text-2); background: var(--c-white); transition: all .15s;
}
.pagination a:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.pagination .current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); font-weight: 600; }

/* ===== 机构表格 ===== */
.org-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-border); margin-bottom: 16px; }
.org-table { width: 100%; border-collapse: collapse; background: var(--c-white); font-size: 13px; }
.org-table th {
  background: var(--c-bg); padding: 12px 14px; text-align: left;
  font-weight: 600; color: var(--c-text-2); border-bottom: 1px solid var(--c-border);
  white-space: nowrap; position: sticky; top: 0;
}
.org-table td { padding: 12px 14px; border-bottom: 1px solid var(--c-border-light); color: var(--c-text); }
.org-table tr:last-child td { border-bottom: none; }
.org-table tr:hover { background: rgba(30,144,255,.03); }
.org-table a { color: var(--c-primary); font-weight: 500; }
.org-search-bar { margin-bottom: 16px; }
.org-search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.org-search-input {
  padding: 9px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font-size: 14px; background: var(--c-white); min-width: 140px;
}
.org-search-input:focus { outline: none; border-color: var(--c-blue); }

/* ===== 机构卡片网格 ===== */
.org-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-bottom: 20px; }
.org-card {
  background: var(--c-white); border-radius: var(--radius); padding: 18px 20px;
  border: 1px solid var(--c-border); transition: all .15s;
}
.org-card:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.org-card-name { font-size: 15px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.org-card-name a { color: var(--c-primary); }
.org-card-meta { font-size: 13px; color: var(--c-text-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.org-card-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.org-card-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-border-light); display: flex; justify-content: space-between; align-items: center; }
.org-card-update { font-size: 12px; color: var(--c-text-3); }

/* ===== 专题卡片 ===== */
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.topic-card {
  background: var(--c-white); border-radius: var(--radius); padding: 22px 20px;
  border: 1px solid var(--c-border); transition: all .2s; position: relative; overflow: hidden;
}
.topic-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-teal));
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--c-blue); }
.topic-card .topic-num { font-size: 12px; font-weight: 700; color: var(--c-teal); margin-bottom: 8px; letter-spacing: 1px; }
.topic-card .topic-title { font-size: 16px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; }
.topic-card .topic-desc { font-size: 13px; color: var(--c-text-2); line-height: 1.5; margin-bottom: 14px; }
.topic-card .topic-meta { font-size: 12px; color: var(--c-text-3); display: flex; align-items: center; gap: 8px; }

/* ===== 资讯精选 ===== */
.news-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.news-card {
  background: var(--c-white); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--c-border); transition: all .15s; display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--c-blue); box-shadow: var(--shadow-sm); }
.news-card .news-cat { font-size: 12px; font-weight: 600; color: var(--c-blue); margin-bottom: 8px; }
.news-card .news-title { font-size: 15px; font-weight: 700; color: var(--c-primary); margin-bottom: 8px; line-height: 1.4; }
.news-card .news-title a { color: var(--c-primary); }
.news-card .news-summary { font-size: 13px; color: var(--c-text-2); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.news-card .news-impact { font-size: 12px; color: var(--c-text-3); padding-top: 10px; border-top: 1px solid var(--c-border-light); }
.news-card .news-impact strong { color: var(--c-warning); }

/* ===== 页脚 ===== */
.site-footer { background: var(--c-primary); color: rgba(255,255,255,.7); padding: 40px 0 0; margin-top: 48px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-weight: 600; }
.footer-col p { font-size: 13px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-col a:hover { color: var(--c-teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0;
  font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bottom .container { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .scene-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .news-featured { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .sidebar { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .hero { padding: 36px 24px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 22px; }
  .scene-grid, .topic-grid, .card-grid, .news-featured { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { flex-direction: column; }
  .detail-hero { flex-direction: column; }
  .detail-hero .thumb { width: 100%; height: 200px; }
  .main-nav { display: none; }
  .search-box input { width: 140px; }
  .org-card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}


/* ===== 快捷导航栏 ===== */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.quick-nav .container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-nav .container::-webkit-scrollbar { display: none; }
.quick-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.quick-nav-item:hover {
  background: #eff6ff;
  color: #1E90FF;
}
.quick-nav-icon {
  font-size: 16px;
  line-height: 1;
}
@media (max-width: 768px) {
  .quick-nav-item { padding: 6px 10px; font-size: 12px; }
  .quick-nav-icon { font-size: 14px; }
}
