/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; }

/* ===== Theme Colors ===== */
:root {
  --orange-primary: #f5a623;
  --orange-dark: #e8860a;
  --orange-light: #fff5e0;
  --orange-gradient: linear-gradient(135deg, #ff9a2e, #f5c842);
  --warm-bg: #fef9f0;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

/* ===== Header / Nav Bar ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  max-width: 960px;
  margin: 0 auto;
}
.header .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
}
.header .logo img {
  height: 100%;
  width: auto;
}
.header .logo-divider {
  width: 1px;
  height: 24px;
  background: #ddd;
  margin: 0 4px;
}

/* Pagination styles for company list */
.pagination {
  display: flex;
  flex-wrap: wrap; /* 手机端按钮多时换行，避免撑出横向滚动条 */
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 16px 0 32px;
}
.pagination .pg-btn {
  background: var(--white);
  border: 1px solid #e6e6e6;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 14px;
  color: var(--text-primary);
}
.pagination .pg-btn:hover:not(:disabled) {
  background: var(--orange-light);
}
.pagination .pg-btn.active {
  background: var(--orange-primary);
  border-color: var(--orange-primary);
  color: #fff;
}
.pagination .pg-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

@media (max-width: 600px) {
  .pagination { gap: 4px; padding: 12px 0; }
  .pagination .pg-btn { min-width: 22px; height: 26px; padding: 2px 4px; font-size: 12px; border-radius: 5px; }
}

/* Company detail styles */
.company-detail-section {
  background: var(--warm-bg);
}
.section-inner h2#companyName {
  font-size: 1.4rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.section-inner h2#companyName::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-gradient);
}
.company-intro {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.company-intro.empty {
  color: #aaa;
}
.company-contact {
  background: var(--white);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.company-contact p { margin: 6px 0; color: var(--text-secondary); font-size: .9rem; }
.company-contact strong { color: var(--text-primary); }
.job-list { display: flex; flex-direction: column; gap: 12px; }

/* Desktop nav */
.header .desktop-nav {
  display: none;
}
.header .desktop-nav ul {
  display: flex;
  gap: 24px;
}
.header .desktop-nav a {
  font-size: .92rem;
  color: var(--text-primary);
  padding: 8px 4px;
  position: relative;
  transition: color .2s;
}
.header .desktop-nav a:hover,
.header .desktop-nav a:active {
  color: var(--orange-dark);
}
.header .desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: width .2s;
}
.header .desktop-nav a:hover::after {
  width: 100%;
}

/* ===== Hamburger Button (mobile only) ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Slide-in Nav (mobile) ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100%;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.nav-panel.open {
  transform: translateX(0);
}
.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background: var(--orange-gradient);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
}
.nav-panel-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.2);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
}
.nav-panel ul {
  padding: 8px 0;
  flex: 1;
}
.nav-panel li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: .95rem;
  color: var(--text-primary);
  transition: background .2s;
}
.nav-panel li a:hover,
.nav-panel li a:active {
  background: var(--orange-light);
  color: var(--orange-dark);
}
.nav-panel li .nav-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* ===== Stats Section（已移入招聘企业板块顶部） ===== */
.stats-section {
  padding: 0 0 28px;
}
.stats-inner {
  display: grid;
  /* 当前 4 项均分；恢复「参与人次」第 5 项时改回 repeat(5, 1fr) */
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 16px 12px;
  border-left: 1px solid #e0d4c2;
  transition: transform .2s;
}
.stat-item:first-child {
  border-left: none;
}
.stat-item:active {
  transform: scale(.97);
}
.stat-icon {
  color: var(--orange-dark);
  margin: 0 auto 8px;
}
.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange-dark);
  line-height: 1.2;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .stats-section { padding: 0 0 14px; }
  .stats-inner { gap: 0; }
  .stat-item { padding: 10px 2px; }
  .stat-icon { margin-bottom: 5px; }
  .stat-icon svg { width: 20px; height: 20px; }
  .stat-number { font-size: 1.1rem; }
  .stat-label { font-size: .62rem; white-space: nowrap; }
}
/* 极窄屏（≤359px）允许标签折行，避免溢出 */
@media (max-width: 359px) {
  .stat-label { white-space: normal; }
}

/* ===== Banner ===== */
.banner {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Mobile Banner ===== */
@media (max-width: 767px) {
  .banner {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .banner img {
    height: 100%;
    width: auto;
  }
}

/* ===== Brand Strip (首页 banner 下方 5 图并排) ===== */
.brand-strip {
  width: 100%;
  background: #ffebd7;
  padding: 30px 0 40px;
}
.brand-strip-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 首尾图标与内容区两端对齐，剩余空间均分到间隙 */
  gap: 30px; /* 中间间距 */
  padding: 0 40px; /* 与 .section-inner 的 40px 一致：960-80=880，正好对齐下方统计栏内容宽 */
}
.brand-strip img {
  flex: 0 0 auto; /* 不再撑满，改固定宽度 */
  width: 150px; /* 图标调小 */
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}
/* 第 5 张图包了 <a> 后，由 a 顶替 img 作为 flex item，需同步尺寸规则 */
.brand-strip a.brand-link {
  flex: 0 0 auto;
  display: block;
}
.brand-strip a.brand-link:hover img {
  opacity: .88;
}
@media (max-width: 767px) {
  .brand-strip-inner {
    gap: 6px;
    padding: 0 10px;
  }
  .brand-strip-inner {
    justify-content: flex-start;
  }
  .brand-strip a.brand-link {
    flex: 1 1 0;
    min-width: 0;
  }
  .brand-strip img {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    border-radius: 4px;
  }
}

/* ===== 首页首屏（仅 PC）：banner 高度 = 一屏 - 下方 5 图区域 =====
   用 Grid 精确锁定 body 为 100vh；banner 行使用 minmax(0,1fr) 保证不会被内容撑大，
   从而随浏览器缩放/放大也始终一屏无滚动条。仅作用于 body.home（首页）。 */
@media (min-width: 768px) {
  body.home {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100vh;
    overflow: hidden;
  }
  body.home .banner {
    position: relative;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body.home .banner img {
    height: 100%;
    width: auto;
    display: block;
  }
}

/* ===== Section Shared ===== */
.section {
  padding: 32px 16px;
}
.section-title {
  text-align: center;
  margin-bottom: 24px;
}
.section-title h2 {
  font-size: 1.4rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-gradient);
}
.section-title p {
  margin-top: 8px;
  font-size: .85rem;
  color: var(--text-light);
}

/* ===== Event Info Section ===== */
.event-info {
  background: var(--warm-bg);
}
.info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.info-card h3 {
  font-size: 1.05rem;
  color: var(--orange-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-card h3 .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange-dark);
}
.info-item {
  display: flex;
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: .9rem;
  line-height: 1.6;
}
.info-item:last-child {
  border-bottom: none;
}
.info-item .label {
  color: var(--text-secondary);
  min-width: 70px;
  flex-shrink: 0;
}
.info-item .value {
  color: var(--text-primary);
}

/* ===== Activity Highlights ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.highlight-card {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--orange-primary);
  transition: transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.highlight-card:active {
  transform: scale(.97);
}
.highlight-card .hl-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--orange-dark);
}
.highlight-card h4 {
  font-size: .95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.highlight-card p {
  font-size: .78rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 24px 16px;
  background: #333;
  color: #aaa;
  font-size: .75rem;
  line-height: 1.8;
}
.footer .footer-logo {
  margin-bottom: 12px;
}
.footer .footer-logo img {
  height: 30px;
  width: auto;
  margin: 0 auto;
}

/* ===== Job Categories ===== */
.job-categories {
  background: var(--warm-bg);
  padding-bottom: 24px;
}

/* Search Bar */
.search-bar {
  display: flex;
  margin: 20px auto 0;
  gap: 10px;
}
.search-inp {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #e0d6c8;
  border-radius: 6px;
  font-size: .9rem;
  outline: none;
  background: var(--white);
  transition: border-color .2s;
}
.search-inp:focus {
  border-color: var(--orange-primary);
}
.search-btn {
  padding: 12px 28px;
  background: var(--orange-gradient);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.search-btn:hover {
  opacity: .9;
}

/* Company List */
.company-list {
  margin: 20px auto 0;
  display: grid;
  /* minmax(0,1fr)：1fr 默认最小值是内容宽度，长公司名会把轨道撑出屏幕 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.company-item {
  min-width: 0;
}
.company-item {
  padding: 0; /* 内部由链接承担可点击区域 */
}
.company-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 10px;
  font-size: .95rem;
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(12,23,34,0.04);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.company-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(12,23,34,0.06);
}
.company-name {
  flex: 1;
  min-width: 0; /* 关键：允许 flex 子项收缩到内容宽度以下，否则 ellipsis 不生效 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 12px;
}
.company-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  font-size: 1.05rem;
  color: var(--text-light);
}

/* Company detail container */
#companyDetailWrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 16px 32px;
}

/* Improve job card visuals */
.job-card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #f0e4d4;
  box-shadow: 0 8px 30px rgba(12,23,34,0.04);
}
.job-head { display:flex; justify-content:space-between; align-items:center; gap: 12px; }
.job-title { font-weight:700; color:var(--orange-dark); font-size:1rem; }
.job-toggle { border-radius: 999px; padding:8px 12px; background: var(--orange-gradient); color:#fff; border:none; }
.job-toggle:hover { opacity: .95; }
.job-body { max-height:0; overflow:hidden; transition: max-height .28s ease, padding .2s ease; border-top: 1px dashed #f0e4d4; margin-top: 10px; padding-top: 10px; }
.job-body.open { max-height: 1200px; padding: 10px 0 0; }
.job-body p { display:flex; margin:0; line-height:1.8; color:#333; }
.job-label { flex:0 0 80px; font-weight:700; }

.apply-btn {
  background: var(--orange-gradient);
  color: var(--white);
  border: none;
  padding: 10px 32px;
  border-radius: 20px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245,166,35,.3);
  transition: opacity .2s, transform .15s;
}
.apply-btn:hover { opacity: .9; transform: translateY(-1px); }
.apply-btn:active { transform: translateY(0); }
.apply-btn.applied { background: #ccc; box-shadow: none; cursor: default; color: #888; }
.apply-btn:disabled { opacity: 1; }

/* Back button on detail */
.back-btn {
  background: transparent;
  color: #f5a623;
  border: 2px solid #f5a623;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.back-btn:hover { background: #f5a623; color: #fff; }
.back-btn:active { transform: translateY(0); }

/* Pagination & toggle buttons */
.pg-btn {
  background: var(--orange-gradient);
  color: var(--white);
  border: none;
  padding: 10px 28px;
  border-radius: 20px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: opacity .2s, transform .15s;
}
.pg-btn:hover { opacity: .9; transform: translateY(-1px); }
.pg-btn:active { transform: translateY(0); }

/* Responsive tweaks */
@media (max-width: 767px) {
  .company-link { padding: 12px 14px; }
  #companyDetailWrap { padding: 8px 12px; }
  .job-card { padding: 12px; }
  .job-title { font-size: .9rem; }
  .job-toggle {
    flex: 0 0 auto;
    padding: 6px 14px;
    font-size: .85rem;
    white-space: nowrap;
  }
  /* 岗位展开明细文字缩小 */
  .job-body p { font-size: .82rem; line-height: 1.7; }
  .job-label { flex: 0 0 70px; }
  /* 长内容字段（如岗位职责）：手机端标签与内容分两行 */
  .job-body p.multiline { display: block; }
  .job-body p.multiline .job-label { display: block; }
}

/* ===== Video Section ===== */
.video-section {
  background: var(--white);
}
.video-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000 url(../images/video1.jpg) center/cover no-repeat;
  aspect-ratio: 16/9;
  width: 100%;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(245, 166, 35, 0.9);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 2;
}
.play-btn:hover {
  background: var(--orange-dark);
  transform: translate(-50%, -50%) scale(1.1);
}
.play-btn svg {
  color: var(--white);
  margin-left: 4px;
}

/* ===== Mobile Fixes ===== */
@media (max-width: 767px) {
  .section-title { margin-bottom: 16px; }
  .search-bar {
    margin-top: 14px;
    gap: 8px;
  }
  .search-inp { padding: 11px 14px; font-size: .88rem; }
  .search-btn { padding: 11px 18px; flex-shrink: 0; font-size: .9rem; }
  .company-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 14px;
  }
  .company-link {
    padding: 13px 14px;
    min-height: 44px;
    font-size: .92rem;
  }
  .company-link:active {
    background: #fff6e8;
    transform: none;
  }
  .company-name { padding-right: 8px; }
  .back-home-wrap { padding: 8px 0 28px; }
}

/* ===== Desktop Enhancements ===== */
@media (min-width: 768px) {
  .header-inner {
    padding: 12px 0;
  }

  .header .desktop-nav {
    display: block;
  }
  .hamburger {
    display: none;
  }

  .section {
    padding: 48px 40px;
    max-width: 960px;
    margin: 0 auto;
  }
  .stats-section {
    padding: 0 0 32px;
  }
  .stats-inner {
    max-width: none;
    margin: 0;
  }
  .job-categories,
  .event-info {
    max-width: none;
    margin: 0;
    padding: 48px 0;
  }
  .section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 40px;
  }
  .highlights-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .banner img {
    width: 100%;
    height: auto;
  }
  .search-bar {
    max-width: 560px;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}
.modal-dialog {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  animation: modalIn .3s ease;
}
.modal-dialog-large {
  max-width: 560px;
}
@keyframes modalIn {
  from { opacity:0; transform:translateY(-20px) scale(.97); }
  to { opacity:1; transform:translateY(0) scale(1); }
}
.modal-content {
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}
.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}
.modal-close {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: color .2s;
}
.modal-close:hover { color: var(--text-primary); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body {
  padding: 24px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.required {
  color: #e74c3c;
  margin-right: 2px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--orange-primary);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group { flex: 1; }
.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}
.file-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--orange-light);
  color: var(--orange-dark);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.file-upload-btn:hover {
  background: var(--orange-primary);
  color: var(--white);
}
.file-name {
  font-size: 13px;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.file-hint {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
}
.error-msg {
  min-height: 20px;
  font-size: 13px;
  color: #e74c3c;
  margin-bottom: 12px;
}
.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--orange-gradient);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.modal-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}
.modal-switch a {
  color: var(--orange-primary);
  font-weight: 500;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.toast-success { background: #52c41a; }
.toast.toast-error { background: #e74c3c; }

/* ===== Mobile Modal ===== */
@media (max-width: 767px) {
  .modal-dialog {
    max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    animation: modalSlideUp .3s ease;
  }
  .modal-dialog-large { max-width: 100%; }
  .modal-body { padding-bottom: 80px; }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .form-row { flex-direction: column; gap: 0; }
}

/* ===== 企业列表占位/加载/错误提示（list.html） ===== */
.list-tip {
  padding: 48px 16px;
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.7;
}
.list-retry {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 22px;
  min-height: 44px;
  border: none;
  border-radius: 22px;
  background: var(--orange-gradient);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.list-retry:hover { opacity: .92; }
.list-retry:active { transform: translateY(1px); }

/* ===== 列表页底部「返回首页」按钮 ===== */
.back-home-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 0 40px;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 32px;
  border-radius: 22px;
  background: var(--orange-gradient);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: opacity .15s, transform .15s;
}
.back-home-btn:hover { opacity: .92; }
.back-home-btn:active { transform: translateY(1px); }
