:root {
  --blue: #0672cb;
  --blue-dark: #00447c;
  --blue-soft: #e6f2fa;
  --blue-mid: #b3d4ef;
  --ink: #1a1a1a;
  --ink-2: #333;
  --muted: #666;
  --line: #d8d8d8;
  --bg: #f5f6f7;
  --white: #fff;
  --danger: #ce1126;
  --warn: #c65d00;
  --ok: #0d7a3f;
  --radius: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 99;
  background: var(--white);
  padding: 8px 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
  position: relative;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
  background: #f5f6f7;
}

.logo::after {
  content: "LOGO";
  position: absolute;
  right: -6px;
  top: -6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--blue);
  padding: 1px 5px;
  border-radius: 2px;
  line-height: 1.3;
  pointer-events: none;
}

.header-search {
  flex: 1;
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.header-search input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 9px 12px;
  font: inherit;
}

.header-search input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(6, 114, 203, 0.15);
}

.header-search > button[type="submit"] {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  padding: 0 14px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 50;
  max-height: 320px;
  overflow: auto;
}

.search-suggest[hidden] {
  display: none;
}

.search-suggest-group {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.search-suggest-group:last-child {
  border-bottom: 0;
}

.search-suggest-label {
  padding: 4px 14px 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-suggest a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.875rem;
}

.search-suggest a:hover,
.search-suggest a[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.search-suggest-empty {
  padding: 16px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
  white-space: nowrap;
}

.header-utils a {
  color: var(--ink-2);
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ink-2);
  cursor: pointer;
}

.lang-btn:hover,
.lang-switcher.open .lang-btn {
  border-color: var(--blue);
  color: var(--blue);
}

.lang-caret {
  font-size: 0.7rem;
  opacity: 0.7;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 60;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu li {
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.875rem;
}

.lang-menu li:hover,
.lang-menu li[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.nav-main {
  border-top: 1px solid var(--line);
}

.nav-main ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--max);
  display: flex;
  gap: 24px;
}

.nav-main a {
  position: relative;
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-main a:hover,
.nav-main a.active,
.nav-main .current-menu-item > a,
.nav-main .current_page_item > a {
  color: var(--blue);
  text-decoration: none;
}

.nav-main a:hover::after,
.nav-main a.active::after,
.nav-main .current-menu-item > a::after,
.nav-main .current_page_item > a::after {
  transform: scaleX(1);
}

/* Layout — use main.page so it does not match WordPress body.page */
main.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 64px;
  min-height: 60vh;
}

.page-title {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 28px;
}

/* Hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.hub-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  animation: rise 0.5s ease both;
}

.hub-card:nth-child(2) {
  animation-delay: 0.08s;
}

.hub-card:nth-child(3) {
  animation-delay: 0.16s;
}

.hub-card:hover {
  border-color: var(--blue-mid);
  box-shadow: 0 4px 16px rgba(6, 114, 203, 0.12);
}

.hub-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
  font-size: 0.9375rem;
}

.hub-card .link-more {
  position: relative;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--blue);
  text-decoration: none;
}

.hub-card .link-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.hub-card .link-more:hover,
.hub-card .link-more:focus-visible {
  text-decoration: none;
}

.hub-card .link-more:hover::after,
.hub-card .link-more:focus-visible::after {
  transform: scaleX(1);
}

.hub-card .link-more span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hub-card .link-more:hover span {
  transform: translateX(3px);
}

.hub-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Article */
.article {
  max-width: 820px;
}

/* Help-article layout (Google-style support period) */
.help-article {
  max-width: 760px;
}

.help-article > .lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.help-article h2 {
  font-size: 1.35rem;
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0;
  border-bottom: 0;
  letter-spacing: -0.01em;
}

.help-article h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.6rem;
}

.help-article .help-section {
  margin-bottom: 0.5rem;
}

.help-article .product-list {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.help-article .accordion {
  margin: 1rem 0 1.5rem;
  border-color: #dadce0;
}

.help-article .acc-trigger {
  font-size: 1rem;
  padding: 14px 16px;
}

.help-article .acc-panel {
  padding: 0 16px 16px;
}

.help-article .help-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.25rem;
}

.help-related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.help-related h2 {
  margin-top: 0;
}

.help-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-related li {
  margin-bottom: 0.6rem;
}

.help-related a {
  font-weight: 500;
}

/* Advisory / KB detail (Dell DSA style) */
.advisory-page {
  max-width: var(--max);
}

.kb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.kb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kb-actions button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 6px;
}

.kb-actions button:hover {
  text-decoration: underline;
}

.kb-summary {
  background: var(--bg);
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  margin: 0 0 28px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.kb-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.kb-toc {
  position: sticky;
  top: 88px;
}

.kb-toc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 4px 0 8px;
}

.kb-toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 12px 16px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.kb-toc-toggle .kb-toc-chevron {
  color: var(--blue);
  transition: transform 0.2s ease;
}

.kb-toc-toggle.is-collapsed .kb-toc-chevron {
  transform: rotate(180deg);
}

.kb-toc-panel {
  padding: 0 8px 8px;
}

.kb-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kb-toc-nav a {
  display: block;
  padding: 8px 10px;
  color: var(--ink-2);
  border-radius: 2px;
  font-size: 0.875rem;
  text-decoration: none;
}

.kb-toc-nav a:hover,
.kb-toc-nav a:focus {
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-decoration: none;
}

.kb-toc-sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 10px;
}

.kb-toc-legal {
  display: inline-block;
  margin: 14px 4px 0;
  color: var(--blue);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.kb-toc-legal:hover {
  text-decoration: underline;
}

.kb-toc h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.kb-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kb-toc nav a {
  display: block;
  padding: 7px 8px;
  color: var(--ink-2);
  border-radius: 2px;
  font-size: 0.875rem;
  text-decoration: none;
}

.kb-toc nav a:hover,
.kb-toc nav a:focus {
  background: var(--blue-soft);
  color: var(--blue-dark);
  text-decoration: none;
}

.kb-toc-extra {
  margin: 10px 0 0;
  font-size: 0.8125rem;
}

.btn-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 16px;
  padding: 9px 14px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-feedback:hover {
  background: var(--blue-soft);
}

.btn-feedback:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.btn-feedback-icon {
  flex-shrink: 0;
}

.feedback-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-backdrop[hidden] {
  display: none;
}

.feedback-dialog {
  width: min(480px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  padding: 22px 22px 18px;
}

.feedback-dialog .form-row.required label::after {
  content: " *";
  color: #c62828;
}

.feedback-dialog h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.feedback-dialog .hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.875rem;
}

.feedback-dialog .form-row {
  margin-bottom: 14px;
}

.feedback-dialog .form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.feedback-toast {
  margin-top: 10px;
  padding: 10px 12px;
  background: #e8f6ee;
  border: 1px solid #9dceb0;
  color: var(--ok);
  border-radius: var(--radius);
  font-size: 0.875rem;
  display: none;
}

.feedback-toast.show {
  display: block;
}

.kb-body section {
  margin-bottom: 2rem;
  scroll-margin-top: 96px;
}

.kb-body h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.kb-body h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.6rem;
}

.severity-line {
  margin: 0;
}

.kb-body .wp-block-table,
.kb-body .table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.kb-body .wp-block-table table,
.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 560px;
}

.kb-body .wp-block-table th,
.kb-body .wp-block-table td,
.kb-table th,
.kb-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.kb-body .wp-block-table thead th,
.kb-table thead th {
  background: #f7f8f9;
  font-weight: 700;
}

.kb-section-content > *:first-child {
  margin-top: 0;
}

.kb-section-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 0.75rem 0 1rem;
}

.kb-section-content th,
.kb-section-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.kb-section-content thead th {
  background: #f7f8f9;
  font-weight: 700;
}

.kb-table th {
  background: var(--bg);
  font-weight: 700;
  white-space: nowrap;
}

.kb-table tr:last-child td {
  border-bottom: 0;
}

.kb-table .mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.kb-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.kb-meta {
  margin-top: 2.5rem;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 420px;
}

.kb-meta h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.kb-meta dl {
  margin: 0;
}

.kb-meta dl > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.875rem;
}

.kb-meta dt {
  color: var(--muted);
}

.kb-meta dd {
  margin: 0;
}

@media (max-width: 960px) {
  .kb-layout {
    grid-template-columns: 1fr;
  }

  .kb-toc {
    position: static;
  }
}

.article h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.article h3 {
  font-size: 1.05rem;
  margin: 1.4rem 0 0.5rem;
}

.article p,
.article li {
  color: var(--ink-2);
  font-size: 0.95rem;
}

.article ul {
  padding-left: 1.25rem;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.article th,
.article td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.article th {
  background: var(--bg);
}

.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  font-size: 0.9rem;
}

/* Notice banner */
.notice {
  background: var(--blue-soft);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.notice button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin: 0 0 24px;
}

.tabs button {
  border: 0;
  background: transparent;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* Feature strip on advisories */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: var(--white);
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

.feature-item a {
  font-weight: 600;
  font-size: 0.9rem;
}

.api-banner {
  background: #f0f7fc;
  border-left: 4px solid var(--blue);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* Patch selector */
.patch-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  position: sticky;
  top: 88px;
  min-width: 0;
  overflow: hidden;
}

.filters h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.filter-group {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.filter-group input[type="text"],
.filter-group input[type="date"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 8px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-width: 0;
}

.date-row input[type="date"] {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.filter-date-error {
  margin: 8px 0 0;
  color: #b42318;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
}

.check-list .indent {
  margin-left: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  padding: 9px 16px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.btn-block {
  width: 100%;
}

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.results-head .count {
  color: var(--muted);
  font-size: 0.9rem;
}

.results-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 0.15s;
}

.result-item:last-child {
  border-bottom: 0;
}

.result-item:hover {
  background: #fafbfc;
}

.result-item h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.result-item h4 a {
  color: var(--ink);
}

.result-item h4 a:hover {
  color: var(--blue);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  color: var(--white);
  white-space: nowrap;
  height: fit-content;
}

.badge-alert {
  background: var(--danger);
}

.badge-critical {
  background: #8b0000;
}

.badge-high {
  background: var(--danger);
}

.badge-medium {
  background: var(--warn);
}

.badge-low {
  background: #5a6a7a;
}

.badge-notice {
  background: var(--blue);
}

.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

/* Accordion */
.accordion {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.acc-item + .acc-item {
  border-top: 1px solid var(--line);
}

.acc-trigger {
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 0;
  padding: 16px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.acc-trigger:hover {
  background: var(--bg);
}

.acc-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 400;
}

.acc-item.open .acc-trigger::after {
  content: "−";
}

.acc-panel {
  display: none;
  padding: 0 18px 18px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.acc-item.open .acc-panel {
  display: block;
  animation: fade 0.25s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.product-list {
  columns: 2;
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

/* Form */
.form-card {
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-row .hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row.required label::after {
  content: " *";
  color: var(--danger);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.form-success {
  display: none;
  background: #e8f6ee;
  border: 1px solid #9dceb0;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  color: var(--ok);
}

.form-success.show {
  display: block;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f5c2c0;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 16px;
  color: #b42318;
  font-size: 0.9rem;
}

.inquiry-results {
  margin-top: 32px;
  max-width: 720px;
}

.inquiry-results h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.inquiry-count,
.inquiry-empty {
  color: var(--muted);
  margin: 0 0 16px;
}

.inquiry-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  background: var(--white);
}

.inquiry-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.inquiry-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.inquiry-meta,
.inquiry-waiting {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.875rem;
}

.inquiry-meta-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.9rem;
}

.inquiry-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.6;
  background: #eef2f6;
  color: #334155;
}

.inquiry-type--report {
  background: #e8f1fb;
  color: #1d4f91;
}

.inquiry-type--feedback {
  background: #f3eef8;
  color: #5b3d7a;
}

.inquiry-results .beice-report-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  line-height: 1.6;
}

.inquiry-results .beice-report-status--pending {
  background: #fcf0e3;
  color: #996800;
}

.inquiry-results .beice-report-status--replied {
  background: #e6f4ea;
  color: #137333;
}

.inquiry-results .beice-report-status--closed {
  background: #f0f0f1;
  color: #50575e;
}

.inquiry-replies {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.inquiry-replies h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.inquiry-replies ol {
  margin: 0;
  padding-left: 18px;
}

.inquiry-replies li {
  margin-bottom: 10px;
}

.inquiry-reply-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.inquiry-reply-body {
  background: #f6f7f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 36px 20px 24px;
  margin-top: 40px;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 6px;
}

.site-footer a {
  color: var(--muted);
}

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

/* Responsive */
@media (max-width: 960px) {
  .hub-grid,
  .hub-grid.three,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .patch-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .product-list {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .header-search {
    display: none;
  }

  .header-utils a {
    display: none;
  }

  .nav-main ul {
    gap: 12px;
    overflow-x: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .result-item {
    grid-template-columns: 1fr;
  }
}
