:root {
  --om-ink: #1f2933;
  --om-muted: #6b7280;
  --om-cream: #fffaf0;
  --om-cream-soft: #fffdf7;
  --om-card: rgba(255, 255, 255, 0.92);
  --om-blue: #2563eb;
  --om-blue-deep: #1d4ed8;
  --om-gold: #d9b66f;
  --om-gold-soft: rgba(217, 182, 111, 0.28);
  --om-gold-line: rgba(217, 182, 111, 0.42);
  --om-shadow: 0 18px 45px rgba(79, 70, 49, 0.08);
  --om-shadow-soft: 0 10px 28px rgba(79, 70, 49, 0.06);
}

[x-cloak] {
  display: none !important;
}

body.om-shell,
.om-shell {
  min-height: 100vh;
  color: var(--om-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 241, 199, 0.72), transparent 34rem),
    radial-gradient(circle at 90% 8%, rgba(219, 234, 254, 0.56), transparent 28rem),
    linear-gradient(180deg, #fffaf0 0%, #f8fbff 48%, #fffdf7 100%);
}

.om-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--om-gold-line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 30px rgba(79, 70, 49, 0.06);
  backdrop-filter: blur(18px);
}

.om-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--om-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.om-brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--om-gold-line);
  box-shadow: 0 8px 20px rgba(217, 182, 111, 0.16);
}

.om-nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #5b6472;
  font-size: 0.875rem;
}

.om-nav-link {
  border-radius: 9999px;
  padding: 0.45rem 0.75rem;
  transition: transform 150ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.om-nav-link:active {
  transform: translateY(1px) scale(0.99);
}

.om-nav-link:hover {
  color: var(--om-blue);
  background: rgba(37, 99, 235, 0.06);
}

.om-nav-link-active {
  color: var(--om-blue);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 251, 235, 0.7));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 6px 16px rgba(37, 99, 235, 0.08);
  font-weight: 700;
}

.om-card,
.om-gold-card {
  border: 1px solid var(--om-gold-line);
  background: var(--om-card);
  box-shadow: var(--om-shadow-soft);
  backdrop-filter: blur(12px);
}

.om-card {
  border-radius: 1rem;
}

.om-gold-card {
  border-radius: 1.5rem;
  box-shadow: var(--om-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.om-card-hover {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.om-card-hover:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 182, 111, 0.78);
  box-shadow: 0 18px 42px rgba(79, 70, 49, 0.12);
}

.om-card-hover:active {
  transform: translateY(0);
  box-shadow: var(--om-shadow-soft);
}

.om-page-enter {
  animation: omPageEnter 220ms ease-out both;
}

.om-soft-enter {
  animation: omSoftEnter 190ms ease-out both;
}

.om-list-enter > * {
  animation: omSoftEnter 180ms ease-out both;
}

.om-link-feedback {
  transition: transform 150ms ease, color 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.om-link-feedback:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes omPageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes omSoftEnter {
  from { opacity: 0; transform: translateY(6px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.om-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 111, 0.46);
  border-radius: 2rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.88)),
    radial-gradient(circle at 85% 20%, rgba(251, 191, 36, 0.18), transparent 18rem);
  box-shadow: var(--om-shadow);
}

.om-hero::after {
  content: "";
  position: absolute;
  inset: 1px;
  pointer-events: none;
  border-radius: 1.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.om-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(217, 182, 111, 0.52);
  border-radius: 9999px;
  background: rgba(255, 251, 235, 0.82);
  color: #9a6b17;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.om-button-primary,
.om-button-secondary,
.om-button-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.8rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.om-button-primary:active,
.om-button-secondary:active,
.om-button-danger:active {
  transform: translateY(1px) scale(0.99);
}

.om-button-primary:focus-visible,
.om-button-secondary:focus-visible,
.om-button-danger:focus-visible,
.om-nav-link:focus-visible,
.om-link-feedback:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(217, 182, 111, 0.18);
}

.om-button-primary:disabled,
.om-button-secondary:disabled,
.om-button-danger:disabled {
  transform: none;
  box-shadow: none;
}

.om-button-primary {
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: linear-gradient(135deg, var(--om-blue), #3b82f6);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.om-button-primary:hover {
  background: linear-gradient(135deg, var(--om-blue-deep), var(--om-blue));
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
}

.om-button-secondary {
  border: 1px solid var(--om-gold-line);
  background: rgba(255, 255, 255, 0.72);
  color: #4b5563;
}

.om-button-secondary:hover {
  border-color: rgba(217, 182, 111, 0.76);
  background: rgba(255, 251, 235, 0.9);
  color: #1f2937;
}

.om-button-danger {
  border: 1px solid rgba(248, 113, 113, 0.28);
  background: rgba(254, 242, 242, 0.72);
  color: #dc2626;
}

.om-button-danger:hover {
  background: #fee2e2;
}

.om-input,
.om-select,
.om-textarea {
  border: 1px solid rgba(209, 213, 219, 0.95);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.om-input:focus,
.om-select:focus,
.om-textarea:focus {
  outline: none;
  border-color: rgba(217, 182, 111, 0.85);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(217, 182, 111, 0.16);
}

.om-badge-blue,
.om-badge-gold,
.om-badge-green,
.om-badge-purple,
.om-badge-gray,
.tag-blue,
.tag-purple,
.tag-green,
.tag-amber {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.55rem;
}

.om-badge-blue,
.tag-blue {
  background: #eff6ff;
  color: #2563eb;
}

.om-badge-gold,
.tag-amber {
  background: #fffbeb;
  color: #b45309;
}

.om-badge-green,
.tag-green {
  background: #ecfdf5;
  color: #059669;
}

.om-badge-purple,
.tag-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.om-badge-gray {
  background: #f3f4f6;
  color: #4b5563;
}

.om-section-title {
  color: #9a6b17;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.om-logo-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.9), transparent 18rem),
    linear-gradient(135deg, #fffdf7 0%, #fff7df 52%, #eff6ff 100%);
}

.om-logo-panel::before {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px solid var(--om-gold-line);
  border-radius: 2rem;
  pointer-events: none;
}

.om-modal-backdrop {
  background: rgba(31, 41, 51, 0.42);
  backdrop-filter: blur(6px);
  animation: omFadeIn 160ms ease-out both;
}

.om-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.om-modal-panel {
  animation: omModalIn 190ms ease-out both;
}

.om-modal-header {
  border-bottom: 1px solid rgba(217, 182, 111, 0.32);
  background: rgba(255, 255, 255, 0.9);
}

.om-modal-footer {
  border-top: 1px solid rgba(217, 182, 111, 0.26);
  background: rgba(255, 255, 255, 0.82);
}

.om-loading-line,
.om-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.64), rgba(255,248,230,0.92), rgba(255,255,255,0.64));
  background-size: 220% 100%;
  animation: omSkeleton 1.15s ease-in-out infinite;
}

.om-loading-line {
  height: 0.78rem;
}

.om-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--om-blue);
  border-radius: 9999px;
  animation: omSpin 700ms linear infinite;
}

@keyframes omFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes omModalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes omSkeleton {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

@keyframes omSpin {
  to { transform: rotate(360deg); }
}

/* Offer喵投递辅导 Agent */
.om-coach {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.om-coach-button {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 9999px;
  border: 2px solid rgba(217, 182, 111, 0.82);
  background: #fff;
  box-shadow: 0 18px 42px rgba(79, 70, 49, 0.18), 0 0 0 8px rgba(217, 182, 111, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  overflow: hidden;
}

.om-coach-button:hover,
.om-coach-button.is-open {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(79, 70, 49, 0.22), 0 0 0 10px rgba(217, 182, 111, 0.16);
}

.om-coach-button img,
.om-coach-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.om-coach-ping {
  position: absolute;
  inset: -0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 182, 111, 0.7);
  animation: omCoachPulse 1.9s ease-out infinite;
}

@keyframes omCoachPulse {
  0% { transform: scale(0.82); opacity: 0.8; }
  100% { transform: scale(1.22); opacity: 0; }
}

.om-coach-panel {
  width: min(460px, calc(100vw - 24px));
  height: min(680px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 111, 0.54);
  border-radius: 1.5rem;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 24px 70px rgba(79, 70, 49, 0.2);
  backdrop-filter: blur(18px);
}

.om-coach-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(217, 182, 111, 0.32);
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255, 248, 230, 0.92));
}

.om-coach-header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.om-coach-header-btn {
  border-radius: 9999px;
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(217, 182, 111, 0.42);
  background: rgba(255, 255, 255, 0.86);
  color: #4b5563;
  box-shadow: 0 6px 14px rgba(79, 70, 49, 0.06);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.om-coach-header-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 182, 111, 0.76);
  background: rgba(255, 251, 235, 0.96);
  color: #1f2937;
  box-shadow: 0 8px 18px rgba(79, 70, 49, 0.1);
}

.om-coach-header-btn.is-primary {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(239, 246, 255, 0.94);
  color: #1d4ed8;
}

.om-coach-header-btn.is-primary:hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: rgba(219, 234, 254, 0.98);
  color: #1e40af;
}

.om-coach-header-btn:active {
  transform: translateY(0) scale(0.99);
}

.om-coach-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--om-gold-line);
  background: #fff;
}

.om-coach-quick {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem 0;
}

.om-coach-chip {
  border: 1px solid rgba(217, 182, 111, 0.38);
  border-radius: 9999px;
  padding: 0.3rem 0.55rem;
  background: rgba(255, 255, 255, 0.78);
  color: #6b4f1d;
  font-size: 0.7rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.om-coach-chip:hover {
  border-color: rgba(217, 182, 111, 0.76);
  background: rgba(255, 251, 235, 0.95);
}

.om-coach-messages {
  flex: 1;
  overflow: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.om-coach-message { display: flex; }
.om-coach-message.is-user { justify-content: flex-end; }

.om-coach-bubble {
  max-width: 88%;
  border-radius: 1rem;
  padding: 0.62rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.48;
  border: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(255,255,255,0.9);
  color: #374151;
}

.om-coach-message.is-user .om-coach-bubble {
  border-color: rgba(37, 99, 235, 0.18);
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.om-coach-job-card {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(217, 182, 111, 0.34);
  border-radius: 0.95rem;
  padding: 0.6rem;
  background: rgba(255, 251, 235, 0.76);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.om-coach-job-card:hover {
  transform: translateY(-1px);
  border-color: rgba(217, 182, 111, 0.82);
  background: rgba(255, 248, 220, 0.95);
}

.om-coach-compose {
  border-top: 1px solid rgba(217, 182, 111, 0.32);
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.72);
}

.om-coach-status {
  margin-bottom: 0.35rem;
  color: #9a6b17;
  font-size: 0.72rem;
  font-weight: 700;
}

.om-coach-compose textarea {
  font-size: 0.78rem;
  line-height: 1.45;
}

.om-coach-compose select,
.om-coach-compose button {
  font-size: 0.75rem;
}

.om-coach-highlight {
  border-color: rgba(217, 182, 111, 0.95) !important;
  box-shadow: 0 0 0 4px rgba(217, 182, 111, 0.16), var(--om-shadow-soft);
}

@media (max-width: 640px) {
  .om-coach {
    right: 0.75rem;
    bottom: 0.75rem;
  }
  .om-coach-panel {
    height: min(620px, calc(100vh - 96px));
  }
}

@media (max-width: 900px) {
  .om-nav {
    align-items: flex-start;
    gap: 1rem;
    flex-direction: column;
  }

  .om-nav-links {
    width: 100%;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .om-nav-link {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
