/* 类似 Excel 助手下载页的橙色 H5 卡片风格 */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #FF9E59 0%, #FFCC80 60%, #FFE0B2 100%);
  min-height: 100vh;
  color: #333;
}

.h5-card {
  max-width: 420px;
  margin: 36px auto 48px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(255, 100, 40, 0.22);
  overflow: hidden;
  position: relative;
}

/* 顶部橙色装饰条 */
.h5-card::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #FF7A2F, #FFB347);
}

.card-head {
  padding: 22px 22px 16px;
}

.tag-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFE082;
  color: #BF360C;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-icon { font-size: 13px; }

.tool-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.tool-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.tool-icon svg { display: block; width: 100%; height: 100%; }
.tool-info { flex: 1; }
.tool-name {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #222;
}
.tool-meta {
  margin: 0;
  font-size: 13px;
  color: #999;
}

.desc-bubble {
  background: #E8F4FD;
  color: #1565C0;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 14px;
  border-left: 3px solid #42A5F5;
}

/* 卡片主体 */
.card-body {
  padding: 18px 22px 26px;
  border-top: 1px dashed #E0E0E0;
}
.body-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  color: #222;
}
.body-title.sm { font-size: 15px; }
.sub-title {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
}
.warn {
  margin: 0 0 14px;
  font-size: 12px;
  color: #D84315;
  background: #FFF3E0;
  padding: 6px 10px;
  border-radius: 8px;
}

/* 表单 */
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 600;
}
.field input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  border-color: #FF7A2F;
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.12);
}
.field.row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.field-grow { flex: 1; }

.btn-ghost {
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid #FF7A2F;
  border-radius: 12px;
  background: #fff;
  color: #FF7A2F;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.btn-ghost:hover { background: #FFF3E0; }
.btn-ghost:disabled {
  border-color: #BDBDBD;
  color: #9E9E9E;
  cursor: not-allowed;
  background: #F5F5F5;
}

.btn-action {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 2px dashed #FF7A2F;
  border-radius: 14px;
  background: #fff;
  color: #E65100;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  transition: all .2s;
}
.btn-action:hover { background: #FFF3E0; }
.btn-action:disabled {
  border-color: #BDBDBD;
  color: #9E9E9E;
  background: #FAFAFA;
  cursor: not-allowed;
}
.lock { font-size: 15px; }

.note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  min-height: 18px;
  color: #666;
}
.note.err { color: #D84315; }

.foot-hint {
  margin: 14px 0 0;
  font-size: 11px;
  color: #9E9E9E;
  text-align: center;
}

/* 机构选择 */
.org-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 260px;
  overflow-y: auto;
}
.org {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}
.org input { accent-color: #FF7A2F; }
.org:hover, .org.active {
  border-color: #FF7A2F;
  background: #FFF3E0;
}
.org-code {
  font-weight: 700;
  color: #FF7A2F;
  font-size: 13px;
}
.org-name {
  color: #444;
  font-size: 13px;
}

/* 查件状态条 */
.who-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #E0E0E0;
}
.who-bar span {
  flex: 1;
  font-size: 13px;
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link {
  border: none;
  background: transparent;
  color: #FF7A2F;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.link:hover { text-decoration: underline; }

/* 最近查询 */
.recent { margin-top: 16px; }
.recent-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.recent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.recent-list button {
  border: 1px solid #E0E0E0;
  background: #F5F5F5;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
.recent-list button:hover { border-color: #FF7A2F; color: #FF7A2F; background: #FFF3E0; }

/* 结果 */
.result-summary { padding-bottom: 10px; }
.body-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kv {
  background: #FAFAFA;
  border-radius: 10px;
  padding: 10px 12px;
}
.kv .k { font-size: 11px; color: #999; margin-bottom: 3px; }
.kv .v { font-size: 13px; color: #333; word-break: break-all; }
.empty {
  grid-column: 1 / -1;
  color: #999;
  font-size: 12px;
  text-align: center;
  padding: 16px;
}

/* 时间线 */
.tl { list-style: none; margin: 0; padding: 0; }
.tl-item {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid #FFE0B2;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFAB91;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #FFCCBC;
}
.tl-item:first-child::before { background: #FF7A2F; box-shadow: 0 0 0 2px rgba(255, 122, 47, 0.3); }
.tl-time {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}
.tl-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag {
  font-size: 10px;
  color: #fff;
  background: #78909C;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 400;
}
.tl-org, .tl-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.45;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 100;
  max-width: 86vw;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .h5-card { margin: 20px 14px 32px; border-radius: 20px; }
}
