:root {
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #f97316;
  --accent-soft: #fff7ed;
  --teal: #0e9f8a;
  --teal-soft: #ecfdf8;
  --success: #16a34a;
  --success-soft: #f0fdf4;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ink: #0f172a;
  --slate: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --navy: #0b1220;
  --navy-2: #101b2e;
  --white: #ffffff;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.1);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

body.dark {
  --primary: #60a5fa;
  --primary-strong: #3b82f6;
  --primary-soft: rgba(96, 165, 250, 0.14);
  --accent: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --ink: #f1f5f9;
  --slate: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --surface: #111827;
  --surface-2: #0f172a;
  --surface-3: #1e293b;
  --navy: #020617;
  --navy-2: #0b1220;
  --white: #ffffff;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.45);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.h1,
.h2,
.h3,
.h4 {
  color: var(--ink);
  line-height: 1.25;
  font-weight: 700;
}

.h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}

.h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.h3 {
  font-size: 1.25rem;
}

.h4 {
  font-size: 1.05rem;
}

.lead {
  color: var(--slate);
  font-size: 1.06rem;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: var(--primary-strong);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.btn-accent:hover {
  background: #ea580c;
  color: #fff;
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-success:hover {
  background: #15803d;
  color: #fff;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-sm {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.panel-pad {
  padding: 32px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-blue {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-orange {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-green {
  background: var(--success-soft);
  color: var(--success);
}

.badge-red {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge-yellow {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-gray {
  background: var(--surface-3);
  color: var(--slate);
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.icon-badge.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-badge.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-label .req {
  color: var(--danger);
}

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-control::placeholder {
  color: var(--muted);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
}

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-error {
  display: none;
  margin-top: 6px;
  color: var(--danger);
  font-size: 0.82rem;
}

.field-error.show {
  display: block;
}

.form-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
}

.radio-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  color: var(--slate);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.radio-pill input:checked + span {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.radio-pill input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--surface-3);
  border-radius: var(--radius-md);
}

.segmented button {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate);
  font-weight: 600;
  transition: all 0.16s ease;
}

.segmented button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box .form-control {
  padding-left: 40px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 20px 0;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  display: block;
  margin-bottom: 14px;
  color: var(--line);
  font-size: 2.8rem;
}

.empty-state strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.dark .navbar {
  background: rgba(17, 24, 39, 0.9);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.08rem;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  height: 34px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.16s ease, background 0.16s ease;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.16s ease;
}

.icon-button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-menu-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background: var(--navy);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 85%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 720px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 42px;
}

.metric {
  position: relative;
  padding-left: 14px;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--teal));
}

.metric-value {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.metric-label {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hero-panel-title {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}

.ticket-mini {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.ticket-mini + .ticket-mini {
  margin-top: 10px;
}

.ticket-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ticket-mini-title {
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
}

.ticket-mini-desc {
  color: #94a3b8;
  font-size: 0.78rem;
}

.progress-track {
  height: 6px;
  margin-top: 12px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--teal), var(--primary));
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  margin: 16px 0 8px;
  color: var(--ink);
  font-size: 1.08rem;
}

.feature-card p {
  color: var(--slate);
  font-size: 0.94rem;
}

/* Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.plan-featured {
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: var(--shadow-md);
}

.plan-head {
  padding: 26px 24px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  text-align: center;
}

.plan-featured .plan-head {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
}

.plan-name {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 700;
}

.plan-price {
  font-size: 2rem;
  font-weight: 800;
}

.plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.82;
}

.plan-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.plan-list {
  flex: 1;
  margin: 0 0 24px;
  list-style: none;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.plan-list i {
  margin-top: 3px;
  color: var(--success);
  font-size: 0.85rem;
}

/* Articles */
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.article-toolbar .search-box {
  width: min(320px, 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-md);
}

.article-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: #fff;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.article-card:nth-child(3n + 2) .article-cover {
  background: linear-gradient(135deg, var(--accent), #f59e0b);
}

.article-card:nth-child(3n + 3) .article-cover {
  background: linear-gradient(135deg, #0f766e, var(--teal));
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.article-title {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-excerpt {
  margin-bottom: 18px;
  color: var(--slate);
  font-size: 0.92rem;
}

.article-card .btn {
  margin-top: auto;
}

.article-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.article-item:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.article-item + .article-item {
  margin-top: 12px;
}

.article-item h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.article-item p {
  color: var(--slate);
  font-size: 0.9rem;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.category-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.18s ease;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.category-card.active {
  background: var(--primary-soft);
}

.category-card h3 {
  margin: 12px 0 6px;
  color: var(--ink);
  font-size: 1rem;
}

.category-card p {
  color: var(--slate);
  font-size: 0.86rem;
}

.category-count {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.detail-body {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.85;
}

.detail-body h2,
.detail-body h3 {
  margin: 28px 0 12px;
  color: var(--ink);
}

.detail-body p {
  margin-bottom: 14px;
}

.detail-body ul,
.detail-body ol {
  margin: 0 0 16px 22px;
}

.detail-body li {
  margin-bottom: 6px;
}

.detail-body code {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.9em;
}

.detail-body pre {
  margin: 16px 0;
  padding: 16px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
}

.detail-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.detail-body blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-soft);
}

.detail-body table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
}

.detail-body th,
.detail-body td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.info-box,
.warning-box,
.success-box {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
}

.info-box {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  color: var(--slate);
}

.warning-box {
  border-left: 4px solid var(--warning);
  background: var(--warning-soft);
  color: var(--slate);
}

.success-box {
  border-left: 4px solid var(--success);
  background: var(--success-soft);
  color: var(--slate);
}

/* Tickets */
.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.ticket-form-panel {
  padding: 28px;
}

.ticket-side {
  display: grid;
  gap: 16px;
}

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.side-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
}

.side-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.contact-line i {
  width: 18px;
  color: var(--primary);
  text-align: center;
}

.status-timeline {
  position: relative;
  margin: 8px 0;
  padding-left: 22px;
}

.status-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 8px 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 2px solid var(--line);
}

.timeline-item.done {
  color: var(--ink);
}

.timeline-item.done::before {
  background: var(--success);
  border-color: var(--success);
}

.timeline-item.current::before {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.status-card.pending {
  border-left-color: var(--warning);
}

.status-card.processing {
  border-left-color: var(--primary);
}

.status-card.resolved {
  border-left-color: var(--success);
}

.status-card.closed {
  border-left-color: var(--muted);
}

.status-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-id {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.status-card h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 1rem;
}

.status-card p {
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 0.9rem;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.status-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticket-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.ticket-detail-meta .meta-cell {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
}

.meta-cell-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.meta-cell-value {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.reply-list {
  display: grid;
  gap: 14px;
}

.reply {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.reply-author {
  color: var(--ink);
  font-weight: 700;
}

.reply-body {
  color: var(--slate);
  white-space: pre-wrap;
}

/* Contact / About / Resume */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.method-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1rem;
}

.method-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.method-card strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.hour-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.hour-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.hour-card span {
  color: var(--slate);
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.team-card {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.team-card h3 {
  color: var(--ink);
  font-size: 1.1rem;
}

.team-role {
  display: block;
  margin: 4px 0 12px;
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
}

.team-card p {
  color: var(--slate);
  font-size: 0.9rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.value-card h3 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.value-card p {
  color: var(--slate);
  font-size: 0.92rem;
}

.resume-section {
  margin-top: 40px;
}

.resume-section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--line);
  color: var(--ink);
  font-size: 1.3rem;
}

.resume-section > h2 i {
  color: var(--primary);
}

.exp-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.exp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.exp-head h3 {
  color: var(--ink);
  font-size: 1.05rem;
}

.exp-period {
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.exp-company {
  margin-bottom: 10px;
  color: var(--slate);
  font-size: 0.92rem;
}

.exp-card ul {
  margin: 0 0 0 18px;
  color: var(--slate);
  font-size: 0.92rem;
}

.exp-card li {
  margin-bottom: 4px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--slate);
  font-size: 0.84rem;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: 72px;
  padding: 56px 0 28px;
  background: var(--navy);
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.footer h3 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.footer p {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #94a3b8;
  transition: color 0.16s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  color: #64748b;
  font-size: 0.82rem;
}

.footer-beian {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
}

.footer-beian img {
  height: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 50%;
  color: #94a3b8;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

/* Floating WeChat */
.wc-float-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
}

.wc-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #07c160;
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(7, 193, 96, 0.45);
}

.wc-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.wc-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fa5151;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.wc-popup {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 230px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wc-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wc-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wc-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #07c160;
  flex-shrink: 0;
}

.wc-avatar svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.wc-name {
  margin: 0;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 700;
}

.wc-status {
  margin: 2px 0 0;
  color: #888;
  font-size: 12px;
}

.wc-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #07c160;
}

.wc-qr-box {
  margin: 8px 0;
  text-align: center;
}

.wc-qr-box img {
  width: 132px;
  height: 132px;
  border-radius: var(--radius-md);
}

.wc-hint {
  margin-top: 6px;
  color: #888;
  font-size: 12px;
  text-align: center;
}

.wc-cta-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  border-radius: var(--radius-md);
  background: #07c160;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background 0.16s ease;
}

.wc-cta-btn:hover {
  background: #06a150;
  color: #fff;
}

.wc-close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #bbb;
  font-size: 20px;
  line-height: 1;
}

/* AI Chat */
.chat-float-wrap {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 998;
}

.chat-fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-fab:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.45);
}

.chat-fab i {
  font-size: 1.35rem;
}

.chat-fab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  padding: 3px 7px;
  border: 2px solid var(--surface);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  width: 380px;
  height: min(600px, calc(100vh - 140px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.chat-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-head-title .icon-badge {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  overflow: hidden;
  padding: 0;
}

.chat-head-title .icon-badge img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.chat-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-head-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  transition: all 0.16s ease;
}

.chat-head-actions button:hover {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--ink);
}

.chat-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 8px 10px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
}

.chat-tab {
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--slate);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.16s ease;
}

.chat-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

.chat-view {
  display: none;
  flex: 1;
  min-height: 0;
}

.chat-view.active {
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--surface-2);
}

.chat-message {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.chat-message .msg-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.8rem;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.chat-message.user .msg-avatar {
  background: var(--accent);
}

.msg-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.chat-message.user .msg-bubble {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.msg-time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-typing .msg-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chat-typing .typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}

.chat-typing .typing-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing .typing-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-quick button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.chat-quick button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-composer textarea {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--ink);
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.chat-composer textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.chat-composer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  transition: background 0.16s ease, transform 0.16s ease;
}

.chat-composer button:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

.chat-composer button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.chat-settings {
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  background: var(--surface-2);
}

.chat-settings h4 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 0.9rem;
}

.chat-settings h4:first-child {
  margin-top: 0;
}

.chat-settings .form-control {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.86rem;
}

.chat-settings .form-group {
  margin-bottom: 12px;
}

.chat-settings .form-label {
  font-size: 0.84rem;
}

.chat-settings textarea.form-control {
  min-height: 88px;
}

.chat-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.chat-settings-actions .btn {
  min-height: 38px;
  font-size: 0.84rem;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.chat-status .status-dot {
  width: 7px;
  height: 7px;
}

@media (max-width: 480px) {
  .chat-float-wrap {
    right: 16px;
    bottom: 90px;
  }

  .chat-panel {
    right: -16px;
    bottom: 62px;
    width: calc(100vw - 16px);
    height: min(72vh, 620px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* Notification */
.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
  animation: toast-in 0.25s ease;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast.warning {
  border-left-color: var(--warning);
}

.toast i {
  margin-top: 2px;
  color: var(--primary);
}

.toast.success i {
  color: var(--success);
}

.toast.error i {
  color: var(--danger);
}

.toast.warning i {
  color: var(--warning);
}

.toast span {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Page hero / content header */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--primary-soft), transparent);
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.page-hero p {
  max-width: 680px;
  margin-top: 8px;
  color: var(--slate);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb i {
  font-size: 0.7rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .features-grid,
  .articles-grid,
  .plans-grid,
  .category-list,
  .team-grid,
  .value-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-panel {
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .section {
    padding: 48px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .features-grid,
  .articles-grid,
  .plans-grid,
  .category-list,
  .team-grid,
  .value-grid,
  .service-grid,
  .contact-grid,
  .ticket-layout,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-actions .btn {
    display: none;
  }

  .nav-actions .icon-button {
    display: inline-flex;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    padding: 20px;
    background: var(--surface);
    overflow-y: auto;
  }

  .mobile-menu.active {
    display: block;
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .mobile-menu ul {
    list-style: none;
  }

  .mobile-menu li {
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu li a {
    display: block;
    padding: 14px 4px;
    color: var(--ink);
    font-weight: 600;
  }

  .mobile-menu li a.active {
    color: var(--primary);
  }

  .mobile-menu .btn {
    margin-top: 18px;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .article-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .article-toolbar .search-box {
    width: 100%;
  }

  .article-item {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .ticket-detail-meta {
    grid-template-columns: 1fr;
  }

  .panel-pad,
  .ticket-form-panel {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hours-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-metrics {
    gap: 18px;
  }

  .hours-grid {
    grid-template-columns: 1fr;
  }

  .exp-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
