/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a56db;
  --primary-dark: #1440a8;
  --accent: #f97316;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --bg: #f5f7fa;
  --white: #ffffff;
  --header-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  margin-right: 24px;
}
.logo-icon { font-size: 22px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  height: var(--header-h);
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active { border-bottom: 2px solid var(--primary); }

.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(var(--header-h) - 1px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 150px;
  z-index: 100;
  overflow: hidden;
}
.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.dropdown-menu a:hover { background: var(--bg); color: var(--primary); }

.arrow { font-size: 10px; opacity: .6; }

.btn-publish {
  margin-left: auto;
  padding: 7px 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s;
}
.btn-publish:hover { background: var(--primary-dark); color: var(--white); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
  margin-left: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a56db 0%, #1e3a8a 60%, #312e81 100%);
  padding: 80px 0 100px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 50%, rgba(99,102,241,.25) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 80% 30%, rgba(16,185,129,.15) 0%, transparent 60%);
}

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

.hero-badge {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.highlight { color: #fbbf24; }

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
}

.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  padding: 12px 32px;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: #ea6c00; color: var(--white); transform: translateY(-1px); }

.btn-secondary {
  padding: 12px 32px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.25); color: var(--white); }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; }

/* ===== Welcome ===== */
.welcome {
  background: var(--bg);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.welcome .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.welcome-text { font-size: 16px; flex: 1; }
.welcome-text strong { color: var(--primary); }
.welcome-actions { display: flex; gap: 10px; }

.btn-reg {
  padding: 7px 22px;
  background: var(--primary);
  color: var(--white);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s;
}
.btn-reg:hover { background: var(--primary-dark); color: var(--white); }

.btn-login {
  padding: 7px 22px;
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-login:hover { background: var(--primary); color: var(--white); }

/* ===== Services ===== */
.services {
  padding: 60px 0;
  background: var(--white);
}

.section-header { text-align: center; margin-bottom: 40px; }
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-desc { color: var(--text-light); font-size: 15px; margin-top: 8px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 22px;
  transition: box-shadow .25s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 8px 30px rgba(26,86,219,.12);
  transform: translateY(-3px);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.service-list { list-style: none; }
.service-list li {
  padding: 5px 0;
  font-size: 13px;
}
.service-list li::before { content: "›  "; color: var(--primary); font-weight: 700; }
.service-list a { color: var(--text-light); transition: color .15s; }
.service-list a:hover { color: var(--primary); }

/* ===== Publish / Info List ===== */
.publish-section {
  background: var(--bg);
  padding: 50px 0;
  border-top: 1px solid var(--border);
}

.section-title-alt {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid var(--primary);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.info-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  transition: background .15s;
}
.info-item:hover { background: #eff6ff; }

.info-item a {
  font-size: 13px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}
.info-item a:hover { color: var(--primary); }

.info-company {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.info-loc {
  font-size: 11px;
  color: var(--text-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== Featured ===== */
.featured {
  padding: 50px 0;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.featured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.more-link {
  font-size: 13px;
  color: var(--primary);
  transition: opacity .15s;
}
.more-link:hover { opacity: .7; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.featured-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--bg);
  transition: box-shadow .2s, background .15s;
}
.featured-card:hover { background: #eff6ff; box-shadow: 0 2px 12px rgba(26,86,219,.08); }

.fc-title a {
  font-size: 13px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s;
}
.fc-title a:hover { color: var(--primary); }

.fc-company {
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
}
.fc-loc {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* ===== Hot Section ===== */
.hot-section {
  padding: 50px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hot-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  transition: box-shadow .2s;
}
.hot-item:hover { box-shadow: 0 2px 12px rgba(26,86,219,.08); }

.hot-title a {
  font-size: 13px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hot-title a:hover { color: var(--primary); }

.hot-info {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.hot-info span:first-child { font-size: 11px; color: var(--accent); }
.hot-info span:last-child { font-size: 11px; color: var(--text-light); }

/* ===== Footer ===== */
.footer {
  background: #1e293b;
  color: rgba(255,255,255,.7);
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.footer a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer a:hover { color: var(--white); }
.footer-info p + p { margin-top: 4px; }
.footer-copy p + p { margin-top: 4px; }

/* ===== Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(3px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
.modal-overlay.active { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.modal-box {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: slideUp .25s ease;
}

.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 22px;
}
.modal-sub a { color: var(--primary); font-weight: 500; }
.modal-sub a:hover { text-decoration: underline; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--text); }

.form-group input[type="text"],
.form-group input[type="password"] {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: var(--bg);
  width: 100%;
}
.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
  background: var(--white);
}
.form-group input.input-error { border-color: #ef4444; }

.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 38px; }
.pwd-eye {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 15px;
  opacity: .5;
  user-select: none;
  transition: opacity .15s;
}
.pwd-eye:hover { opacity: .9; }

.field-err { font-size: 12px; color: #ef4444; min-height: 16px; }

.code-row { flex-direction: row !important; align-items: flex-end; gap: 10px; }
.code-row > div { display: flex; flex-direction: column; gap: 5px; }

.btn-send-code {
  height: 42px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.btn-send-code:hover { background: #eff6ff; border-color: var(--primary); }
.btn-send-code:disabled { color: var(--text-light); border-color: var(--border); cursor: not-allowed; background: var(--bg); }

.agree-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
}
.agree-row input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--primary); }
.agree-row a { color: var(--primary); }

.login-extra {
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
}
.forget-link { font-size: 12px; color: var(--text-light); }
.forget-link:hover { color: var(--primary); }

.btn-modal-submit {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  margin-top: 4px;
}
.btn-modal-submit:hover { background: var(--primary-dark); }
.btn-modal-submit:active { transform: scale(.98); }

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 0 10px;
  text-align: center;
}
.modal-success.show { display: flex; }
.success-icon { font-size: 48px; line-height: 1; }
.modal-success p { font-size: 15px; color: var(--text); font-weight: 500; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid, .hot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .featured-grid, .hot-grid { grid-template-columns: 1fr; }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    z-index: 999;
    align-items: stretch;
    gap: 0;
  }
  .nav.open { display: flex; }

  .nav-link { height: auto; padding: 10px 20px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; border-left: 3px solid var(--border); margin-left: 20px; }

  .btn-publish { display: none; }
  .menu-toggle { display: block; }
  .welcome .container { flex-direction: column; align-items: flex-start; }
}

