/* =============================================
   种菜网 (zhongcai.io) - Main Stylesheet
   Design inspired by huidu.io style
   ============================================= */

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-bg: #f0fdf4;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --danger: #ef4444;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --header-height: 64px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.6;
  font-size: 14px;
}

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

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

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

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

/* ============ Top Bar ============ */
.top-bar {
  background: var(--text-primary);
  color: #cbd5e1;
  font-size: 12px;
  height: 36px;
  display: flex;
  align-items: center;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: #cbd5e1;
  margin-left: 16px;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar .announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  flex: 1;
}

.top-bar .announcement i {
  color: var(--accent);
}

.announcement-text {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  flex: 1;
}

.announcement-scroll {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ============ Header ============ */
.header {
  background: var(--bg-white);
  height: var(--header-height);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.logo span {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  margin-left: -4px;
}

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

.main-nav a {
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

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

.btn-accent:hover {
  background: #d97706;
  color: white;
}

.btn-white {
  background: white;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-white:hover {
  border-color: var(--primary);
}

.btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ============ Hero Section ============ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 50%, #047857 100%);
  padding: 60px 0 50px;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat-num {
  font-size: 28px;
  font-weight: 700;
}

.hero-stats .stat-label {
  font-size: 13px;
  opacity: 0.8;
}

/* ============ Search Box ============ */
.search-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px;
  display: flex;
  max-width: 720px;
  box-shadow: var(--shadow-lg);
}

.search-box .search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
}

.search-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.search-tab.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.search-input-wrapper {
  display: flex;
  flex: 1;
  align-items: center;
}

.search-box select {
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-light);
  border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
  cursor: pointer;
  min-width: 120px;
}

.search-box input[type="text"] {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  outline: none;
  min-width: 200px;
}

.search-box input[type="text"]::placeholder {
  color: var(--text-light);
}

.search-box .btn-search {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.search-box .btn-search:hover {
  background: var(--primary-dark);
}

.hot-keywords {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.hot-keywords a {
  color: rgba(255,255,255,0.9);
  margin: 0 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
}

.hot-keywords a:hover {
  background: rgba(255,255,255,0.25);
  color: white;
}

/* ============ Section Common ============ */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  color: var(--text-secondary);
  font-size: 13px;
}

.section-more:hover {
  color: var(--primary);
}

/* ============ Category Grid ============ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-card .icon {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  transition: var(--transition);
}

.category-card:hover .icon {
  background: var(--primary);
  color: white;
}

.category-card .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.category-card .count {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Job Cards ============ */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.job-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.job-card .job-info {
  flex: 1;
}

.job-card .job-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-card .job-title .tag-urgent {
  background: var(--danger);
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.job-card .job-title .tag-top {
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 500;
}

.job-card .job-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.job-card .job-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-card .job-salary {
  font-size: 18px;
  font-weight: 700;
  color: var(--danger);
  white-space: nowrap;
  margin-left: 20px;
}

.job-card .job-company {
  text-align: right;
  margin-left: 20px;
  min-width: 160px;
}

.job-card .job-company .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.job-card .job-company .info {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Company Cards ============ */
.company-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.company-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.company-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.company-card .company-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.company-card .company-logo {
  width: 48px;
  height: 48px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.company-card .company-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.company-card .company-industry {
  font-size: 12px;
  color: var(--text-light);
}

.company-card .company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.company-card .company-tags span {
  background: var(--bg-gray);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.company-card .company-jobs {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ============ News Cards ============ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

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

.news-card .news-image {
  height: 180px;
  background: linear-gradient(135deg, var(--primary-bg), #dcfce7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 40px;
}

.news-card .news-body {
  padding: 16px 20px;
}

.news-card .news-category {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.news-card .news-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-summary {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card .news-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Supply & Demand ============ */
.sd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.sd-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  gap: 16px;
}

.sd-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.sd-card .sd-type {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  height: fit-content;
}

.sd-card .sd-type.supply {
  background: #fef3c7;
  color: #92400e;
}

.sd-card .sd-type.demand {
  background: #dbeafe;
  color: #1e40af;
}

.sd-card .sd-content {
  flex: 1;
}

.sd-card .sd-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sd-card .sd-desc {
  font-size: 13px;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.sd-card .sd-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-light);
}

.sd-card .sd-price {
  color: var(--danger);
  font-weight: 600;
  font-size: 14px;
}

/* ============ Sidebar ============ */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

.sidebar .widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.sidebar .widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar .widget-title i {
  color: var(--primary);
}

.sidebar .hot-jobs {
  list-style: none;
}

.sidebar .hot-jobs li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar .hot-jobs li:last-child {
  border-bottom: none;
}

.sidebar .hot-jobs li a {
  color: var(--text-primary);
  font-size: 14px;
}

.sidebar .hot-jobs li a:hover {
  color: var(--primary);
}

.sidebar .hot-jobs .salary {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
}

/* ============ Quick Links ============ */
.quick-links {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.quick-links .container {
  display: flex;
  gap: 24px;
  align-items: center;
}

.quick-links a {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

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

.quick-links .hot {
  color: var(--danger);
}

/* ============ Footer ============ */
.footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: white;
}

/* ============ Page Header / Breadcrumb ============ */
.page-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

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

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

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============ Filters ============ */
.filter-bar {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.filter-row:last-child {
  border-bottom: none;
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 80px;
  flex-shrink: 0;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-options a {
  padding: 4px 12px;
  color: var(--text-secondary);
  font-size: 13px;
  border-radius: 4px;
  transition: var(--transition);
}

.filter-options a:hover,
.filter-options a.active {
  background: var(--primary);
  color: white;
}

/* ============ Pagination ============ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.pagination .active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============ Forms ============ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

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

select.form-control {
  cursor: pointer;
}

/* ============ Cards / Panels ============ */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-body {
  padding: 20px;
}

/* ============ Tags ============ */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.tag-green {
  background: var(--primary-bg);
  color: var(--primary);
}

.tag-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-yellow {
  background: #fef3c7;
  color: #92400e;
}

.tag-red {
  background: #fee2e2;
  color: #dc2626;
}

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--border);
}

.empty-state p {
  font-size: 15px;
}

/* ============ Tabs ============ */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
}

.tab {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

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

.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ============ Resume Cards ============ */
.resume-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.resume-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}

.resume-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.resume-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
}

.resume-card .name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.resume-card .job-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.resume-card .detail {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.resume-card .expected-salary {
  font-size: 14px;
  color: var(--danger);
  font-weight: 600;
  margin-top: 8px;
}

/* ============ Detail Page ============ */
.detail-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  padding: 24px 0;
}

.detail-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border-light);
}

.detail-content h1 {
  font-size: 24px;
  margin-bottom: 16px;
}

.detail-sidebar .widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
}

/* ============ Login / Register Modal ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 420px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.modal .close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

/* ============ Admin Panel ============ */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  background: var(--text-primary);
  padding: 20px 0;
}

.admin-sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: #94a3b8;
  font-size: 14px;
  transition: var(--transition);
}

.admin-sidebar .menu-item:hover,
.admin-sidebar .menu-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-sidebar .menu-item i {
  width: 20px;
  text-align: center;
}

.admin-content {
  padding: 24px;
  background: var(--bg-gray);
}

.admin-content .stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-content .stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-content .stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.admin-content .stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-content .stat-card .stat-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============ Data Table ============ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table th {
  background: var(--bg-gray);
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}

.data-table tr:hover {
  background: var(--bg-light);
}

/* ============ Mobile Menu ============ */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

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

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  font-size: 16px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .company-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .resume-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .detail-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: block; }

  .hero { padding: 32px 0; }
  .hero h1 { font-size: 24px; }
  .hero-stats { gap: 20px; }
  .hero-stats .stat-num { font-size: 20px; }

  .search-box {
    flex-direction: column;
  }
  .search-box select {
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
  }
  .search-box input[type="text"] {
    min-width: auto;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .category-card {
    padding: 16px 8px;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .resume-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sd-grid {
    grid-template-columns: 1fr;
  }

  .job-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .job-card .job-salary {
    margin-left: 0;
  }
  .job-card .job-company {
    text-align: left;
    margin-left: 0;
  }

  .section-title { font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-content .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .resume-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
}
