﻿/* 鎶ヤ环锛氭繁鑹?GitHub 椋?+ 椤堕儴瀵艰埅 + 淇濈暀杞藉叆绀轰緥 */
:root {
  --bg: #0d1117;
  --panel: #161b22;
  --panel-2: #1c2330;
  --line: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --cyan: #22d3ee;
  --blue: #58a6ff;
  --green: #22d3ee;
  --danger: #f85149;
  --paper: #fff;
  --paper-text: #1a1d24;
}

html, body {
  height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg) !important;
}

.app-shell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  min-height: 100%;
  height: 100%;
  background: transparent;
}

.sidebar,
html.suite-embed .sidebar,
body.suite-embed .sidebar {
  display: none !important;
}

.workspace {
  padding: 14px 18px 20px !important;
  overflow: auto !important;
  background: transparent !important;
  min-height: 100%;
}

.topbar,
html.suite-embed .topbar,
body.suite-embed .topbar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  background: #161b22 !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.topbar > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 420px;
}

.topbar .eyebrow {
  color: var(--muted) !important;
  margin: 0 !important;
  font-size: 11px !important;
  text-transform: none !important;
}

.topbar h2 {
  margin: 0 !important;
  font-size: 16px !important;
  color: #f0f6fc !important;
  font-weight: 700;
}

.quote-top-nav {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.quote-top-nav .nav-btn,
.nav-btn {
  text-align: center !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #8b949e !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.quote-top-nav .nav-btn.active,
.quote-top-nav .nav-btn:hover,
.nav-btn.active,
.nav-btn:hover {
  color: #22d3ee !important;
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.35) !important;
}

.actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  flex-shrink: 0;
}

#loadDemoBtn,
html.suite-embed #loadDemoBtn,
body.suite-embed #loadDemoBtn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.12) !important;
  border: 1px solid rgba(34, 211, 238, 0.4) !important;
  color: #22d3ee !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 650;
  cursor: pointer;
}

#loadDemoBtn:hover {
  background: rgba(34, 211, 238, 0.2) !important;
}

button {
  cursor: pointer;
  border-radius: 8px !important;
  padding: 8px 13px !important;
  color: var(--text);
  border: 1px solid var(--line);
  background: #1c2330;
  font: inherit;
}

button:hover {
  background: #222a36;
  border-color: #3d444d;
}

.primary {
  background: #0891b2 !important;
  color: #fff !important;
  border-color: #06b6d4 !important;
  font-weight: 700 !important;
}

.ghost {
  background: #1c2330 !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  display: inline-flex !important;
}

.danger {
  background: rgba(248, 81, 73, 0.12) !important;
  border: 1px solid rgba(248, 81, 73, 0.35) !important;
  color: #ffa198 !important;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  background: #0d1117 !important;
  padding: 9px 11px !important;
  outline: none;
  appearance: auto;
  -webkit-appearance: menulist;
}

select {
  display: inline-block !important;
  min-height: 36px;
  background: #0d1117 !important;
  color: var(--text) !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #22d3ee !important;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.panel { display: none; }
.panel.active { display: block !important; }

.cards { grid-template-columns: repeat(4, minmax(140px, 1fr)); }

.metric-card, .glass-card {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #161b22 !important;
  color: var(--text);
}

.metric-card { padding: 16px !important; }
.metric-card span, .metric-card small { color: var(--muted) !important; }
.metric-card strong {
  display: block;
  margin: 6px 0;
  font-size: 24px !important;
  color: #f0f6fc !important;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  margin-top: 12px;
}

.glass-card { padding: 16px !important; }
.feature-list { line-height: 1.8; color: #c9d1d9 !important; }

.status-flow div {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #1c2330 !important;
  color: var(--text);
}

.status-flow b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14) !important;
  color: #22d3ee !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
  background: #161b22;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

label { color: var(--muted) !important; font-size: 12px !important; }
label input { margin-top: 5px; }

.toolbar {
  margin: 10px 0 !important;
  padding: 11px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #161b22 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.toolbar select {
  width: 220px !important;
  display: inline-block !important;
  color: var(--text) !important;
  background: #0d1117 !important;
  min-height: 36px;
}

.toolbar input { width: 96px; }

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: #161b22 !important;
}
#quote .table-wrap { min-height: 420px; }

table { width: 100%; border-collapse: collapse; min-width: 1180px; }

th, td {
  padding: 10px 11px !important;
  border-bottom: 1px solid var(--line) !important;
  text-align: left;
  vertical-align: top;
}
#quoteTable th, #quoteTable td {
  padding: 16px 14px !important;
}

th {
  color: #8b949e !important;
  background: #1c2330 !important;
  font-size: 12px;
  font-weight: 700;
}

td { color: var(--text) !important; font-size: 13px; }

.quote-input {
  min-width: 90px;
  padding: 7px !important;
  border-radius: 8px !important;
  background: #0d1117 !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
}
#quoteTable .quote-input {
  min-height: 42px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
}
#quoteTable .quote-input.spec { min-height: 88px !important; min-width: 320px !important; }
#quoteTable .quote-input.qty, #quoteTable .quote-input.price { width: 120px !important; }

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.summary div {
  padding: 12px !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #161b22 !important;
}

.summary span { display: block; color: var(--muted) !important; font-size: 12px; }
.summary strong { font-size: 17px; color: #f0f6fc; }
.summary .grand {
  border-color: rgba(34, 211, 238, 0.4) !important;
  background: linear-gradient(180deg, #161b22, #12261e) !important;
}
.summary .grand strong { color: #22d3ee; }

.catalog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #161b22;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.catalog-head h2, .catalog-head h3 { margin: 0; color: #f0f6fc; }
.catalog-head p { color: var(--muted); }
.catalog-head input { max-width: 340px; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.product-card {
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  background: #161b22 !important;
}

.product-card h4 { margin: 0 0 6px; color: #f0f6fc !important; }
.product-card p { margin: 5px 0; color: var(--muted) !important; }
.product-card .price { color: #22d3ee !important; font-weight: 800; }

.contract-download-note {
  background: rgba(34, 211, 238, 0.08) !important;
  border: 1px solid rgba(34, 211, 238, 0.28) !important;
  color: #67e8f9 !important;
  border-radius: 10px !important;
  padding: 11px 13px !important;
  margin-bottom: 14px !important;
  display: block !important;
}

.contract-download-note code { color: #22d3ee !important; }

/* 分类列表纵向，禁止外层挤成多列 */
.contract-download-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  width: 100% !important;
}

.contract-download-group {
  background: #161b22 !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  display: block !important;
  padding: 16px !important;
}

.contract-download-group .contract-download-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

@media (min-width: 980px) {
  .contract-download-group .contract-download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.contract-download-card,
.contract-download-grid article,
.contract-card {
  background: #0d1117 !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  color: var(--text) !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
}

.contract-file-icon {
  background: #0891b2 !important;
  border-radius: 10px !important;
  color: #fff !important;
}

.contract-file-main h3 { color: #f0f6fc !important; }
.contract-file-main p,
.contract-file-main small { color: var(--muted) !important; }
.contract-cat-tag {
  color: #67e8f9 !important;
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.28) !important;
}

.contract-group-head { border-bottom: 1px solid var(--line) !important; }
.contract-group-head h3 { color: #f0f6fc !important; }
.contract-group-head p { color: var(--muted) !important; }
.contract-group-count,
.contract-group-head span {
  background: rgba(34, 211, 238, 0.12) !important;
  border-color: rgba(34, 211, 238, 0.3) !important;
  color: #22d3ee !important;
}

/* 鐗堟潈缁熶竴鍦ㄥ乏渚ф爮锛屾ā鍧楀唴涓嶅啀鏄剧ず */
.site-footer {
  display: none !important;
}

.side-card, .chip, .brand { display: none !important; }
.doc-page, .pdf-export-stage, .quote-print-holder { color: #111; }
.doc-page { background: #fff; }

#categorySelect, #productSelect, .quote-combo-select, .quote-combo-input {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background: #0d1117 !important;
  color: var(--text) !important;
}

@media (max-width: 1100px) {
  .cards, .form-grid, .two-col { grid-template-columns: 1fr 1fr !important; }
}
