/* ------------
   车况查询指南 /guide/ — standalone stylesheet, not loaded by the query pages.
   Colours follow the H5 site: orange #ffa241 / #ff7600, page grey #f0f2f5, dark #2e2e30.
   ------------ */
:root {
  --orange: #ff7600;
  --orange-soft: #ffa241;
  --orange-bg: #fff4e8;
  --ink: #1e1e1f;
  --text: #3d3d40;
  --muted: #6b6b6f;
  --line: #e8e8ec;
  --page: #f0f2f5;
  --dark: #2e2e30;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--page);
}

a { color: #1f6fd1; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 3px; }

.g-wrap { max-width: 760px; margin: 0 auto; padding: 0 14px; }

/* header */
.g-header { background: linear-gradient(135deg, var(--orange-soft) 0%, var(--orange) 100%); color: #fff; }
.g-header-row { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.g-brand { color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.g-brand:hover { text-decoration: none; }
.g-header-nav a { color: #fff; font-size: 14px; margin-left: 14px; }
.g-header-nav .g-pill { display: inline-block; line-height: 20px; background: rgba(255, 255, 255, 0.95); color: var(--orange); font-weight: 700; padding: 7px 14px; border-radius: 17px; }
.g-header-nav .g-pill:hover { text-decoration: none; background: #fff; }

/* hero */
.g-hero { background: linear-gradient(180deg, var(--orange) 0%, var(--orange) 40%, var(--page) 40%); padding-bottom: 4px; }
.g-hero-card { background: #fff; border-radius: 12px; padding: 16px 16px 18px; box-shadow: 0 6px 20px rgba(214, 96, 0, 0.12); }
.g-crumbs { font-size: 12px; color: var(--muted); }
.g-crumbs ol { list-style: none; }
.g-crumbs li { display: inline; }
.g-crumbs li + li::before { content: "›"; margin: 0 6px; color: #b8b8bd; }
.g-crumbs a { color: var(--muted); }
.g-hero h1 { color: var(--ink); font-size: 22px; line-height: 1.4; margin: 8px 0 6px; }
.g-meta { font-size: 12px; color: var(--muted); }
.g-lead { margin-top: 10px; font-size: 15px; color: var(--text); }

/* article body */
.g-card { background: #fff; border-radius: 12px; padding: 4px 16px 18px; margin-top: 12px; }
.g-article h2 { color: var(--ink); font-size: 18px; line-height: 1.5; margin: 22px 0 8px; padding-left: 10px; border-left: 4px solid var(--orange); }
.g-article h3 { color: var(--ink); font-size: 16px; margin: 16px 0 6px; }
.g-article p { margin: 8px 0; }
.g-article ul, .g-article ol { margin: 8px 0 8px 22px; }
.g-article li { margin: 4px 0; }
.g-article strong { color: var(--ink); }

.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.g-article table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.g-article th, .g-article td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.g-article th { background: #fafafb; color: var(--ink); white-space: nowrap; }

.g-tip { background: var(--orange-bg); border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-size: 14px; color: #7a3d00; }
.g-note { background: #f6f7f9; border-radius: 8px; padding: 10px 12px; margin: 12px 0; font-size: 13px; color: var(--muted); }

/* call to action — same orange as the site's buttons */
.g-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--orange-bg); border: 1px solid #ffd8b0; border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.g-cta p { margin: 0; font-size: 14px; color: #7a3d00; line-height: 1.6; }
.g-cta p strong { color: #7a3d00; }
.g-btn { flex-shrink: 0; display: inline-block; background: linear-gradient(135deg, #ff8c38 0%, var(--orange) 100%); color: #fff; font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 20px; box-shadow: 0 3px 10px rgba(255, 118, 0, 0.3); white-space: nowrap; }
.g-btn:hover { color: #fff; text-decoration: none; opacity: 0.92; }

/* FAQ */
.g-faq dt { color: var(--ink); font-weight: 700; margin-top: 16px; }
.g-faq dt::before { content: "Q"; display: inline-block; width: 20px; height: 20px; line-height: 20px; margin-right: 6px; text-align: center; font-size: 12px; color: #fff; background: var(--orange); border-radius: 4px; vertical-align: 2px; }
.g-faq dd { margin: 6px 0 0 26px; }

/* hub list */
.g-list { list-style: none; margin: 0 !important; }
.g-list li { border-bottom: 1px solid var(--line); padding: 12px 0; margin: 0 !important; }
.g-list li:last-child { border-bottom: 0; }
.g-list a { font-size: 16px; font-weight: 700; color: var(--ink); }
.g-list span { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

.g-related h2 { font-size: 16px; }

/* footer */
.g-footer { text-align: center; font-size: 12px; line-height: 1.8; color: var(--muted); padding: 20px 14px 28px; }
.g-footer a { color: var(--muted); text-decoration: underline; }

@media (min-width: 768px) {
  .g-wrap { padding: 0 20px; }
  .g-hero h1 { font-size: 26px; }
  .g-hero-card, .g-card { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 360px) {
  .g-header-nav .g-hide-xs { display: none; }
  .g-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* links inside running text: underline so they are not distinguished by colour alone */
.g-article p a, .g-article li a, .g-article td a, .g-article dd a { text-decoration: underline; text-underline-offset: 2px; }
