/**
 * @file query.css
 * @description "报告查询"页面专属样式 / 'Report Query' page styles
 *
 * 搜索框、报告卡片、查询流程图等模块
 * Search box, report card, query flow modules
 *
 * 科技棱角 Tech Angular — dark blue-tech theme
 */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg:#0a0a0f;
  --bg2:#12121a;
  --bg3:#1a1a24;
  --card:#12121a;
  --text:#e2e8f0;
  --body:#b8c4d0;
  --accent:#3b82f6;
  --accent2:#06b6d4;
  --hover:#2563eb;
  --border:#1e293b;
  --shadow-sm:0 2px 8px rgba(0,0,0,.3);
  --shadow-md:0 8px 32px rgba(59,130,246,.06);
  --shadow-lg:0 20px 60px rgba(59,130,246,.1);
}

body {
  background:var(--bg);
  color:var(--text);
  font-family:'Noto Sans SC',sans-serif;
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
  overflow-x:hidden;
}

::selection {
  background:var(--accent);
  color:#fff;
}

body::before {
  content:'';
  position:fixed;
  inset:0;
  z-index:9999;
  pointer-events:none;
  opacity:.03;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: 'JetBrains Mono', 'Noto Sans SC', monospace;
  color: #e2e8f0;
  font-weight: 700;
}

/* ===== 页面顶部 / Page Hero ===== */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero p {
  font-size: 18px;
  color: #64748b;
  font-weight: 400;
}

.vertical-text {
  position: absolute;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(59,130,246,0.18);
  text-transform: uppercase;
}

.vertical-text.left {
  left: -40px;
  top: 0;
}

.vertical-text.right {
  right: -40px;
  top: 0;
}

/* ===== 搜索框 / Search Box ===== */
.search-section {
  padding: 0 0 80px;
}

.search-box {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.input-container {
  position: relative;
  flex: 1;
}

.fancy-input {
  width: 100%;
  padding: 12px 10px;
  height: 48px;
  border: 2px solid var(--accent);
  font-size: 17px;
  font-family: 'Noto Sans SC', sans-serif;
  background: #1a1a24;
  color: var(--text);
  outline: none;
  border-radius: 0;
}

.fancy-input::placeholder {
  color: #64748b;
  font-size: 14px;
}

.fancy-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.fancy-label {
  position: absolute;
  top: -10px;
  left: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  pointer-events: none;
  background: #12121a;
  padding: 0 4px;
}

.btn-search {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 28px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Noto Sans SC', sans-serif;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-search:hover {
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,130,246,.25);
}

.btn-search:active {
  transform: translateY(0);
}

/* ===== 查询结果面板 / Query Result Panel ===== */
.report-section {
  padding: 0 0 120px;
  display: none;
}

.report-section.visible {
  display: block;
}

.report-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.report-panel {
  background: var(--card);
  border-radius: 2px;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  border-left: 3px solid #3b82f6;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.report-id {
  font-family: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
  font-size: 20px;
  color: #3b82f6;
  font-weight: 700;
  background: rgba(59,130,246,0.08);
  padding: 10px 20px;
  border-radius: 2px;
  letter-spacing: 2px;
  display: inline-block;
  border: 1.5px solid rgba(59,130,246,0.2);
}

.report-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
}

.status-pass {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
}

.status-fail {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
}

.status-info {
  background: rgba(6,182,212,0.1);
  color: #06b6d4;
}

.meta-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.meta-item label {
  display: block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.meta-item span {
  font-size: 16px;
  color: #e2e8f0;
  font-weight: 500;
}

.report-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

.report-results h3 {
  font-size: 18px;
  margin-bottom: 24px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
}

/* ===== 结果详情网格 / Result Detail Grid ===== */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #1a1a24;
  border-radius: 2px;
  border: 1px solid var(--border);
}

.result-item .item-name {
  font-size: 15px;
  color: #94a3b8;
}

.result-item .item-status {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-item .item-status.pass {
  color: #22c55e;
}

.result-item .item-status.fail {
  color: #ef4444;
}

.result-item .item-status.info {
  color: #06b6d4;
}

.info-section {
  padding: 80px 0 120px;
}

.info-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 横条式信息栏 ===== */
.info-strip {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:0;
  border:1px solid #1e293b;
  background:#12121a;
}

.info-strip-item {
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:20px 24px;
  border-bottom:1px solid #1e293b;
}

.info-strip-item:nth-child(odd) {
  border-right:1px solid #1e293b;
}

.info-strip-item:nth-last-child(-n+2) {
  border-bottom:none;
}

.info-strip-item i {
  font-size:18px;
  color:#3b82f6;
  margin-top:2px;
  width:20px;
  flex-shrink:0;
}

.info-strip-item strong {
  display:block;
  font-family:'JetBrains Mono',monospace;
  font-size:14px;
  font-weight:700;
  color:#e2e8f0;
  margin-bottom:2px;
}

.info-strip-item span {
  font-size:12px;
  color:#8896a8;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  background: var(--card);
  border-radius: 2px;
  padding: 40px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  border-top: 2px solid rgba(59,130,246,0.2);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

.info-card:hover {
  transform: none;
  border-top-color: #3b82f6;
  box-shadow: 0 0 12px rgba(59,130,246,.12);
}

.info-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  background: rgba(59,130,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 20px;
  color: #3b82f6;
}

.info-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  font-family: 'Noto Sans SC', sans-serif;
  font-weight: 500;
  color: #e2e8f0;
}

.info-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #64748b;
}

.search-card {
  max-width:640px;
  margin:0 auto;
  background:var(--card);
  border-radius:2px;
  padding:32px 36px 28px;
  box-shadow:0 4px 24px rgba(0,0,0,.3);
  border:1px solid var(--border);
}

.search-hint {
  text-align:center;
  margin-top:14px;
  font-size:13px;
  color:#8896a8;
}

.search-hint span {
  color:var(--accent);
  cursor:pointer;
  border-bottom:1px dashed var(--accent);
  transition:color .2s;
}

.search-hint span:hover {
  color:var(--hover);
}

.flow-section {
  padding:60px 0 80px;
}

.flow-inner {
  max-width:1000px;
  margin:0 auto;
  padding:0 24px;
}

.flow-section .section-header {
  text-align:center;
  margin-bottom:48px;
}

.flow-section .section-header h2 {
  font-size:clamp(24px,3vw,32px);
  margin-bottom:8px;
  color:var(--text);
}

.flow-section .section-header p {
  color:#8896a8;
  font-size:15px;
}

.flow-steps {
  display:flex;
  align-items:flex-start;
  justify-content:center;
  gap:0;
}

.flow-step {
  flex:1;
  max-width:260px;
  text-align:center;
  padding:0 20px;
  position:relative;
}

.flow-num {
  font-family:'JetBrains Mono',monospace;
  font-size:32px;
  font-weight:700;
  color:rgba(59,130,246,.15);
  margin-bottom:8px;
}

.flow-icon {
  width:56px;
  height:56px;
  border-radius:2px;
  background:var(--accent);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  margin-bottom:16px;
  box-shadow:0 4px 16px rgba(59,130,246,.25);
}

.flow-step h3 {
  font-size:16px;
  font-family:'Noto Sans SC',sans-serif;
  font-weight:600;
  color:var(--text);
  margin-bottom:8px;
}

.flow-step p {
  font-size:13px;
  color:#8896a8;
  line-height:1.7;
}

.flow-arrow {
  display:flex;
  align-items:center;
  padding-top:60px;
  color:rgba(59,130,246,.25);
  font-size:20px;
}

/* ===== 响应式 / Responsive ===== */
@media(max-width:768px) {
  .flow-steps {
    flex-direction:column;
    align-items:center;
    gap:24px;
  }
  .flow-arrow {
    padding-top:0;
    transform:rotate(90deg);
  }
}

section:last-of-type {
  padding-bottom:48px;
}

@media (max-width: 768px) {
  .nav-links {
    display:none;
  }
  .nav-links a i {
    font-size:14px;
  }
  .nav-mobile {
    display:block;
  }
  .hero {
    padding: 140px 0 60px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .vertical-text {
    display: none;
  }
  .search-box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .btn-search {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .report-panel {
    padding: 28px 20px;
  }
  .report-header {
    flex-direction: row;
    align-items: center;
  }
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }
}

@media(max-width:768px) {
  .hero {
    padding:90px 0 24px;
  }
  .hero h1 {
    font-size:24px;
  }
  .hero p {
    font-size:13px;
  }
  .search-card {
    padding:20px 16px;
    border-radius:2px;
  }
  .search-hint {
    font-size:11px;
    margin-top:8px;
  }
  .fancy-input {
    font-size:14px;
    height:42px;
  }
  .btn-search {
    height:42px;
    font-size:13px;
    padding:8px 16px;
    width:100%;
    justify-content:center;
  }
  .search-box {
    flex-direction:column;
    gap:10px;
  }
  .flow-section {
    padding:32px 0 36px;
  }
  .flow-section .section-header {
    margin-bottom:20px;
  }
  .flow-section .section-header h2 {
    font-size:1.2rem;
  }
  .flow-steps {
    flex-direction:column;
    align-items:center;
    gap:18px;
  }
  .flow-arrow {
    padding-top:0;
    transform:rotate(90deg);
  }
  .flow-step {
    padding:0 16px;
  }
  .flow-num {
    font-size:22px;
  }
  .flow-icon {
    width:44px;
    height:44px;
    font-size:17px;
    margin-bottom:8px;
  }
  .flow-step h3 {
    font-size:13px;
    margin-bottom:3px;
  }
  .flow-step p {
    font-size:11px;
  }
  .info-section {
    padding:32px 0 40px;
  }
  .info-grid {
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .info-card {
    padding:16px 12px;
    border-radius:2px;
  }
  .info-card .card-icon {
    width:36px;
    height:36px;
    font-size:14px;
    margin-bottom:10px;
  }
  .info-card h3 {
    font-size:.9rem;
    margin-bottom:4px;
  }
  .info-card p {
    font-size:.78rem;
  }
  .section {
    padding:32px 0;
  }
  .section-header h2 {
    font-size:1.2rem;
  }
  .section-header p {
    font-size:.8rem;
  }
  .report-panel {
    padding:20px 16px;
  }
  .report-header {
    flex-direction:row;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
  }
  .report-id {
    font-size:13px;
    flex:none;
    padding:8px 14px;
    letter-spacing:1px;
  }
  .report-status {
    font-size:12px;
    padding:4px 12px;
    white-space:nowrap;
  }
  .report-meta {
    gap:8px 16px;
    margin-bottom:16px;
  }
  .meta-row-3 {
    grid-template-columns:1fr 1fr !important;
  }
  .meta-item {
    padding:6px 0;
  }
  .meta-item label {
    font-size:10px;
    margin-bottom:2px;
  }
  .meta-item span {
    font-size:13px;
  }
  .report-divider {
    margin-bottom:16px;
  }
  .report-results h3 {
    font-size:14px;
    margin-bottom:12px;
  }
  .result-item {
    padding:10px 12px;
  }
  .result-item .item-name {
    font-size:12px;
  }
  .result-item .item-status {
    font-size:11px;
  }
  .search-section {
    padding:0 16px 32px;
  }
  .flow-inner {
    padding:0 16px;
  }
  .info-inner {
    padding:0 16px;
  }
}

@media(max-width:480px) {
  .hero {
    padding:80px 0 20px;
  }
  .hero h1 {
    font-size:20px;
  }
  .hero p {
    font-size:12px;
  }
  .search-card {
    padding:14px 10px;
  }
  .fancy-input {
    font-size:13px;
    height:40px;
  }
  .btn-search {
    height:40px;
    font-size:12px;
  }
  .info-grid {
    grid-template-columns:repeat(2,1fr);
    gap:8px;
  }
  .info-card {
    padding:14px 10px;
  }
  .info-card .card-icon {
    width:32px;
    height:32px;
    font-size:13px;
    margin-bottom:8px;
  }
  .info-card h3 {
    font-size:.82rem;
  }
  .info-card p {
    font-size:.75rem;
  }
  .flow-num {
    font-size:18px;
  }
  .flow-icon {
    width:38px;
    height:38px;
    font-size:15px;
  }
  .flow-step h3 {
    font-size:12px;
  }
  .flow-step p {
    font-size:10px;
  }
  .section {
    padding:24px 0;
  }
  .meta-row-3 {
    grid-template-columns:1fr 1fr !important;
  }
  .report-meta {
    gap:6px 12px;
    margin-bottom:12px;
  }
  .meta-item span {
    font-size:12px;
  }
}
