:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --bg: #f8fafc;
  --card: #ffffff;
  --brand: #1d4ed8;
  --brand-dark: #1e3a8a;
  --brand-soft: #eff6ff;
  --brand-border: #bfdbfe;
  --gold: #d97706;
  --gold-soft: #fffbeb;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --container: 1200px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--brand-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.main-nav a.nav-cta {
  background: var(--brand);
  color: #ffffff;
  margin-left: 6px;
}

.main-nav a.nav-cta:hover,
.main-nav a.nav-cta.active {
  background: var(--brand-dark);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}

/* Announcement Banner (Top Full-Width Strip Below Nav) */
.announce-bar {
  background: linear-gradient(90deg, #eff6ff 0%, #f0f9ff 50%, #fffbeb 100%);
  border-bottom: 1px solid #dbeafe;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #1e3a8a;
  line-height: 1.55;
}

.announce-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--brand);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 1px;
}

.announce-text {
  margin: 0;
  word-break: break-word;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #1d4ed8 100%);
  color: #ffffff;
  padding: 44px 0 42px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e0f2fe;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: #cbd5e1;
  max-width: 620px;
}

.search-box {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
  margin-bottom: 16px;
}

.search-box input[type="text"] {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.search-box select {
  border: none;
  border-left: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink-2);
  background: transparent;
  outline: none;
  cursor: pointer;
}

.search-box button {
  background: var(--brand);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.search-box button:hover {
  background: var(--brand-dark);
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.hot-tags a {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
}

.hot-tags a:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(6px);
}

.hero-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #fef3c7;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

.hero-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-quick-links a {
  display: block;
  text-align: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--brand-dark);
}

.hero-quick-links a.alt {
  background: #f59e0b;
  color: #0f172a;
}

.hero-quick-links a:hover {
  opacity: 0.92;
}

/* Sections */
.section {
  padding: 36px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 4px;
  background: var(--brand);
}

.section-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

/* Chips & Filter Bar */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.chip:hover,
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow);
}

/* Job Card */
.job-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.job-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.job-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
}

.job-title a {
  color: var(--ink);
}

.job-title a:hover {
  color: var(--brand);
}

.job-salary {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--line-soft);
  color: var(--ink-2);
}

.tag-blue {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tag-green {
  background: var(--emerald-soft);
  color: #065f46;
}

.tag-gold {
  background: var(--gold-soft);
  color: #92400e;
}

.job-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-2);
}

.job-company {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-date {
  color: var(--muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* AI Tools Feature Banner */
.ai-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
}

.ai-banner h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ai-banner p {
  margin: 0 0 16px;
  color: #cbd5e1;
  font-size: 14.5px;
}

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

.ai-mini-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #ffffff;
  display: block;
}

.ai-mini-card:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.ai-mini-card strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
  color: #fef3c7;
}

.ai-mini-card span {
  font-size: 12.5px;
  color: #cbd5e1;
  display: block;
  line-height: 1.45;
}

/* Article Cards */
.article-card h3 {
  margin: 8px 0 8px;
  font-size: 16.5px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--ink);
}

.article-card h3 a:hover {
  color: var(--brand);
}

.article-excerpt {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

/* Subpage Header & Breadcrumb */
.page-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 28px 0;
}

.breadcrumb {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.breadcrumb a {
  color: #e0f2fe;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.3;
}

.page-banner p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14.5px;
}

/* Detail Layout */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.prose {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.prose h2 {
  font-size: 19px;
  color: var(--ink);
  margin: 24px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--brand);
}

.prose h3 {
  font-size: 16.5px;
  color: var(--ink);
  margin: 18px 0 8px;
}

.prose p {
  margin: 0 0 14px;
}

.prose ul, .prose ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin-bottom: 6px;
}

.ai-tip-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 20px;
}

.ai-tip-box h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  color: var(--brand-dark);
}

.ai-tip-box p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* Filter Form */
.filter-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.filter-row input[type="text"],
.filter-row select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
  min-width: 0;
}

.filter-row input[type="text"] {
  flex: 1 1 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink-2);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.pagination span.current {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  font-weight: 600;
}

/* Interactive Tools */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--ink);
  background: #ffffff;
  font-family: inherit;
}

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

.calc-result {
  background: #f8fafc;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
}

.calc-highlight {
  font-size: 26px;
  font-weight: 700;
  color: var(--brand);
  margin: 4px 0 10px;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.result-table th,
.result-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.result-table th {
  color: var(--muted);
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.bar-track {
  width: 100%;
  min-width: 100px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), #3b82f6);
  border-radius: 999px;
}

.prompt-output {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 12px;
  max-height: 300px;
  overflow-y: auto;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0 24px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 7px;
  font-size: 13.5px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .hero-grid,
  .detail-grid,
  .ai-banner,
  .tool-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ai-mini-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a.nav-cta {
    margin-left: 0;
    text-align: center;
  }
  .brand-logo {
    height: 38px;
  }
  .hero {
    padding: 28px 0 30px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .search-box {
    flex-direction: column;
  }
  .search-box select {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .grid-3,
  .grid-2,
  .grid-4,
  .form-row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 26px 0;
  }
  .section-title {
    font-size: 19px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
}
