/* ============ 群益投资展会官网 - PHP 版样式 ============ */
:root {
  --primary: #0a4da3;
  --primary-foreground: #ffffff;
  --hero: #0a2540;
  --accent: #d97706;
  --success: #16a34a;
  --background: #ffffff;
  --card: #ffffff;
  --muted: #f4f6fa;
  --muted-foreground: #64748b;
  --foreground: #0f172a;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08);
  --shadow-md: 0 6px 18px rgba(10, 37, 64, .10);
  --shadow-lg: 0 14px 34px rgba(10, 37, 64, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.65;
  display: flex; flex-direction: column; min-height: 100vh;
}
.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; flex-shrink: 0;
}
.brand-text { line-height: 1.2; }
.brand-text strong { font-size: 16px; display: block; }
.brand-text small { color: var(--muted-foreground); font-size: 11px; letter-spacing: 1px; }
.main-nav { display: flex; gap: 2px; }
.main-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; transition: .2s;
}
.main-nav a:hover { background: var(--muted); }
.main-nav a.active { color: var(--primary); font-weight: 600; background: var(--muted); }
.header-actions { display: flex; gap: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 18px; cursor: pointer; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 22px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: #083d82; }
.btn-secondary { background: #fff; color: var(--primary); }
.btn-outline { border-color: var(--border); background: #fff; }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--muted); }
.btn-lg { padding: 14px 34px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-danger { background: #dc2626; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 首页轮播 ---------- */
.hero { position: relative; height: 52vh; min-height: 380px; max-height: 640px; overflow: hidden; background: var(--hero); }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.hero .slide.current { opacity: 1; pointer-events: auto; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,60,.78), rgba(10,25,60,.15) 55%, rgba(10,25,60,.3)); }
.hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 60px; align-items: flex-start; }
.hero-content h1 { color: #fff; font-size: 34px; font-weight: 700; text-shadow: 0 2px 8px rgba(0,0,0,.4); max-width: 760px; }
.hero-content p { color: rgba(255,255,255,.9); font-size: 17px; margin-top: 10px; }
.hero-content .btn { margin-top: 22px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(0,0,0,.3); color: #fff; border: none; border-radius: 50%;
  width: 42px; height: 42px; font-size: 20px; cursor: pointer; transition: .2s;
}
.hero-arrow:hover { background: rgba(0,0,0,.55); }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: .25s; }
.hero-dots button.current { width: 30px; background: #fff; }

/* ---------- 区块 ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--muted); }
.section-title { font-size: 26px; font-weight: 700; text-align: center; }
.section-title-bar { width: 64px; height: 4px; border-radius: 99px; background: var(--accent); margin: 12px auto 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 16px; text-align: center; transition: .25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--muted-foreground); margin-top: 4px; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: 26px; font-weight: 700; }
.about-bar { width: 64px; height: 4px; border-radius: 99px; background: var(--accent); margin: 10px 0 20px; }
.about-grid p { color: var(--muted-foreground); white-space: pre-line; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.about-grid .btn { margin-top: 22px; }

.expo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.expo-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-md); transition: .25s; display: block; }
.expo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.expo-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; transition: transform .5s; }
.expo-card:hover img { transform: scale(1.04); }
.expo-card .body { padding: 22px; }
.expo-card h3 { font-size: 17px; font-weight: 700; }
.expo-card:hover h3 { color: var(--primary); }
.expo-card p { font-size: 14px; color: var(--muted-foreground); margin-top: 8px; }

.cta-band { background: var(--primary); color: #fff; text-align: center; padding: 60px 0; }
.cta-band h2 { font-size: 27px; font-weight: 700; }
.cta-band p { opacity: .9; margin: 12px 0 0; }
.cta-band .btn { margin-top: 24px; }

/* ---------- 页头横幅（内页） ---------- */
.page-hero { background: linear-gradient(135deg, var(--hero), var(--primary)); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { opacity: .9; margin-top: 10px; font-size: 16px; }
.page-body { max-width: 880px; margin: 44px auto 0; }
.page-body img.cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16/8; object-fit: cover; margin-bottom: 28px; box-shadow: var(--shadow-md); }
.content-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-sm); line-height: 1.9;
}
.content-card p { margin-bottom: 14px; color: rgba(15,23,42,.9); }

/* ---------- 上届回顾 ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); transition: .25s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-item .cap { padding: 14px 16px; }
.gallery-item .cap .t { font-weight: 600; font-size: 14px; }
.gallery-item .cap .d { font-size: 12px; color: var(--muted-foreground); margin-top: 3px; }

/* ---------- 表单 ---------- */
.form-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-md); max-width: 460px; margin: 48px auto;
}
.form-panel.wide { max-width: 640px; }
.form-panel h1 { font-size: 22px; font-weight: 700; text-align: center; }
.form-panel .sub { text-align: center; color: var(--muted-foreground); font-size: 13px; margin: 8px 0 24px; }
.form-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field .req { color: #ef4444; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; font-family: inherit; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10,77,163,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: var(--muted-foreground); margin-top: 6px; }
.linklike { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 12px; padding: 0; font-family: inherit; }
.linklike:hover { text-decoration: underline; }

.alert { border-radius: 10px; padding: 11px 15px; font-size: 14px; margin: 18px 0; }
.alert-error { background: rgba(220,38,38,.08); color: #dc2626; }
.alert-info { background: rgba(10,77,163,.08); color: var(--primary); }
.alert-success { background: rgba(22,163,74,.1); color: var(--success); }
.center-page { text-align: center; padding: 80px 0; }
.center-page .icon { font-size: 42px; margin-bottom: 14px; }
.center-page h1 { font-size: 23px; margin-bottom: 10px; }
.center-page p { color: var(--muted-foreground); margin-bottom: 22px; }

/* 登记记录 */
.reg-record { border: 1px solid var(--border); border-radius: 10px; background: var(--card); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.status-pill { border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 500; }
.status-pill.pending { background: rgba(202,138,4,.12); color: var(--accent); }
.status-pill.approved { background: rgba(22,163,74,.12); color: var(--success); }

/* ---------- 表格 ---------- */
.table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.data th, table.data td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.data th { background: var(--muted); font-weight: 600; white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data img.thumb { width: 80px; height: 40px; object-fit: cover; border-radius: 6px; }

/* ---------- 后台 ---------- */
.admin-header { background: var(--hero); color: #fff; }
.admin-header .header-inner { height: 58px; }
.admin-header .brand-logo { background: var(--primary); }
.admin-header a { color: rgba(255,255,255,.85); }
.admin-header a:hover { color: #fff; }
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-nav a { padding: 7px 14px; border-radius: 8px; font-size: 14px; }
.admin-nav a.active { background: rgba(255,255,255,.15); font-weight: 600; }
.admin-wrap { padding: 32px 0 64px; }
.admin-wrap h1 { font-size: 22px; margin-bottom: 20px; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1px solid var(--border); border-radius: 99px; padding: 7px 16px; font-size: 13px; background: #fff; cursor: pointer; font-family: inherit; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-tip { text-align: center; color: var(--muted-foreground); padding: 48px 0; }
.thumb-lg { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* 对话框 */
dialog.modal { border: none; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0; width: min(520px, 92vw); }
dialog.modal::backdrop { background: rgba(15,23,42,.5); }
dialog.modal .modal-body { padding: 26px; }
dialog.modal h2 { font-size: 17px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--hero); color: #fff; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; padding: 48px 20px; }
.footer-brand { margin-bottom: 14px; }
.footer-desc { font-size: 13.5px; opacity: .8; line-height: 1.8; }
.site-footer h3 { font-size: 14px; letter-spacing: 1px; opacity: .9; margin-bottom: 16px; }
.footer-nav { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-nav a { font-size: 13.5px; opacity: .8; }
.footer-nav a:hover { opacity: 1; }
.footer-contact { list-style: none; display: grid; gap: 10px; font-size: 13.5px; opacity: .8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); text-align: center; padding: 14px; font-size: 12px; opacity: .7; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; box-shadow: var(--shadow-md);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .expo-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 24px; }
}
