:root {
  --bg: #f3f7fd;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #10213a;
  --muted: #68809f;
  --border: #dbe5f1;
  --primary: #1f67ff;
  --primary-dark: #1754d1;
  --danger: #db375d;
  --success-bg: #ecfdf3;
  --success-text: #12653d;
  --error-bg: #fff1f2;
  --error-text: #a61b3d;
  --shadow: 0 18px 55px rgba(16, 33, 58, 0.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, #f7faff 30%, #f3f7fd 100%);
  color: var(--text);
}
a { text-decoration: none; color: inherit; }
.site-shell { min-height: 100vh; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid rgba(219,229,241,.8);
}
.nav-row { display:flex; align-items:center; justify-content:space-between; min-height:82px; gap: 20px; }
.brand { display:flex; align-items:center; gap:14px; }
.brand strong { display:block; font-size:1.1rem; }
.brand small { color: var(--muted); display:block; margin-top:2px; }
.brand-badge {
  width:48px; height:48px; border-radius:16px; display:grid; place-items:center;
  background: linear-gradient(135deg, #1f67ff, #7c9dff); color:#fff; font-weight:800;
  box-shadow: 0 10px 24px rgba(31,103,255,.35);
}
.nav-links { display:flex; gap:26px; color: var(--muted); font-weight:600; }
.nav-links a:hover, .text-link:hover { color: var(--primary); }
.notice-wrap { margin-top: 18px; }
.notice { padding: 16px 18px; border-radius: 18px; font-weight: 600; }
.notice ul { margin: 10px 0 0 18px; }
.notice-success { background: var(--success-bg); color: var(--success-text); }
.notice-error { background: var(--error-bg); color: var(--error-text); }
.hero { padding: 52px 0 34px; }
.hero-grid {
  display:grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: stretch;
}
.hero-grid > div:first-child {
  background: linear-gradient(135deg, #1449c6 0%, #1f67ff 50%, #6f8fff 100%);
  color:#fff; padding: 52px; border-radius: 34px; box-shadow: var(--shadow);
}
.eyebrow {
  display:inline-flex; padding: 7px 12px; border-radius:999px; font-size:.82rem; font-weight:700;
  letter-spacing:.02em; background: rgba(255,255,255,.16); color: inherit;
}
.hero h1, .detail-card h1, .auth-card h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.02; margin: 18px 0 16px; }
.hero p { font-size: 1.06rem; line-height: 1.8; color: rgba(255,255,255,.88); max-width: 640px; }
.hero-stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.hero-stats div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 18px; border-radius: 18px; }
.hero-stats strong { display:block; font-size: 1.6rem; margin-bottom: 6px; }
.hero-stats span { color: rgba(255,255,255,.8); }
.search-panel, .panel-card, .detail-card, .sidebar-card, .auth-card, .stat-card, .action-card, .job-card, .category-card, .empty-card {
  background: var(--surface); border: 1px solid rgba(219,229,241,.92); border-radius: var(--radius); box-shadow: var(--shadow);
}
.search-panel { padding: 30px; }
.search-panel h2 { margin: 0 0 20px; font-size: 1.5rem; }
.search-form, .admin-form { display:flex; flex-direction:column; gap: 16px; }
.field-row { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field-group { display:flex; flex-direction:column; gap: 8px; }
label { font-weight:700; font-size:.95rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); background: #fbfdff; color: var(--text);
  border-radius: 16px; padding: 14px 15px; font: inherit; outline: none; transition: .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,103,255,.12); background:#fff; }
textarea { resize: vertical; min-height: 110px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px; border:0; cursor:pointer;
  padding: 14px 20px; border-radius: 16px; font-weight: 700; font: inherit; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #4d86ff); color: #fff; box-shadow: 0 12px 26px rgba(31,103,255,.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #3b78ff); }
.btn-secondary { background: #edf3ff; color: var(--primary); }
.btn-secondary:hover { background: #dde9ff; }
.btn-danger { background: #fff0f3; color: var(--danger); }
.btn-block { width:100%; }
.section { padding: 28px 0 48px; }
.section-soft { background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(242,247,253,.75)); }
.section-head { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom: 24px; }
.section-head.compact { align-items:center; }
.section-head h1, .section-head h2 { margin: 8px 0 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.text-link { color: var(--primary); font-weight: 700; }
.category-grid, .jobs-grid, .stats-grid, .admin-actions { display:grid; gap: 20px; }
.category-grid { grid-template-columns: repeat(3, 1fr); }
.jobs-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.admin-actions { grid-template-columns: repeat(3, 1fr); }
.category-card, .job-card, .action-card, .stat-card, .panel-card, .empty-card { padding: 24px; }
.category-card:hover, .job-card:hover, .action-card:hover { transform: translateY(-3px); }
.category-card { display:flex; flex-direction:column; justify-content:space-between; min-height: 210px; }
.category-card p { color: var(--muted); line-height: 1.7; }
.category-card span { font-weight: 800; color: var(--primary); }
.job-top, .job-meta, .detail-meta, .table-actions, .button-row { display:flex; flex-wrap:wrap; gap: 10px; }
.job-top { justify-content:space-between; align-items:center; margin-bottom: 16px; }
.job-tag {
  display:inline-flex; align-items:center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  background: #edf3ff; color: var(--primary); font-weight: 800; font-size: .86rem;
}
.job-date, .job-company, .job-card p, .detail-company, .content-block p, .footer p, .footer a, .login-help { color: var(--muted); }
.job-card h3 { margin: 0 0 10px; font-size: 1.28rem; }
.job-company { font-weight: 700; margin-bottom: 14px; }
.job-meta span, .detail-meta div {
  background: var(--surface-soft); border: 1px solid var(--border); padding: 10px 12px; border-radius: 14px; font-size: .93rem;
}
.job-card p { line-height: 1.72; min-height: 82px; }
.detail-layout { display:grid; grid-template-columns: 1.6fr .8fr; gap: 24px; }
.detail-card, .sidebar-card { padding: 30px; }
.detail-company { font-size: 1.1rem; margin-bottom: 18px; font-weight: 700; }
.detail-meta { margin-bottom: 26px; }
.detail-meta div { display:flex; flex-direction:column; min-width: 150px; }
.detail-meta strong { color: var(--text); margin-bottom: 5px; }
.content-block + .content-block { margin-top: 26px; }
.content-block h2 { margin-bottom: 10px; }
.content-block p { line-height: 1.8; }
.auth-wrap { display:grid; place-items:center; min-height: calc(100vh - 250px); }
.auth-card { width: min(520px, 100%); padding: 34px; }
.auth-card h1 { font-size: 2.2rem; color: var(--text); }
.login-help { margin-top: 18px; }
.admin-grid { display:grid; grid-template-columns: .95fr 1.35fr; gap: 24px; }
.table-wrap { overflow:auto; }
.data-table { width:100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { text-align:left; padding: 16px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { font-size: .88rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-actions form { margin: 0; }
.stat-card strong { display:block; font-size: 2.2rem; margin-bottom: 8px; }
.stat-card span, .action-card p { color: var(--muted); }
.action-card h3 { margin-top: 0; }
.footer { margin-top: 30px; padding: 28px 0 18px; background: #0d1a30; color: #d8e3f8; }
.footer-grid { display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.footer h3, .footer h4 { color:#fff; margin-top:0; }
.footer a { display:block; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(216,227,248,.14); margin-top: 20px; padding-top: 16px; color: #9bb0d2; }
@media (max-width: 1024px) {
  .hero-grid, .detail-layout, .admin-grid, .category-grid, .jobs-grid, .stats-grid, .admin-actions, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid > div:first-child { padding: 36px; }
}
@media (max-width: 760px) {
  .nav-row, .section-head, .job-top { flex-direction: column; align-items:flex-start; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .hero-grid, .detail-layout, .admin-grid, .category-grid, .jobs-grid, .stats-grid, .admin-actions, .footer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .search-panel, .panel-card, .detail-card, .sidebar-card, .auth-card { padding: 22px; }
  .container { width: min(100% - 20px, 1180px); }
  .hero h1 { font-size: 2.4rem; }
}
