/* ===== HV慧见专家网络官网 公共样式 ===== */
:root {
  /* 慧见品牌蓝（取自 Logo） */
  --navy: #0b3b90;
  --navy-dark: #082d6f;
  --navy-deep: #061f4e;
  /* 慧见品牌红（取自 Logo V 形） */
  --gold: #e5494d;
  --gold-light: #ff8a80;
  --red: #e5494d;
  --red-dark: #c23337;
  --ink: #2b3245;
  --muted: #6b7280;
  --line: #e6e9f0;
  --bg-soft: #f5f7fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(8, 45, 111, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.75;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== 顶部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 44px; width: auto; }
.logo-text { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 2px; }
.main-nav { display: flex; gap: 8px; align-items: center; }
.main-nav a {
  padding: 8px 14px; font-size: 15px; color: var(--ink); border-radius: 6px; position: relative;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-soft); }
.main-nav a.active { color: var(--navy); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 8px 18px !important; border-radius: 6px;
}
.nav-cta:hover { background: var(--navy-dark) !important; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px;
}

/* ===== 首屏 Hero ===== */
.hero {
  position: relative; color: #fff; min-height: 560px; overflow: hidden;
  display: flex; align-items: center;
  background: var(--navy-deep) url("../images/hero-main.jpg") center/cover no-repeat;
}
/* 关键修复：.hero 是 flex 容器，.container 作为 flex 项在小屏会按 max-content
   撑到 1180px 而不收缩，导致首屏所有内容超屏。强制宽度 100% + min-width:0。 */
.hero > .container { width: 100%; min-width: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6, 31, 78, 0.9) 0%, rgba(6, 31, 78, 0.6) 55%, rgba(6, 31, 78, 0.28) 100%);
}
.hero-inner { position: relative; padding: 90px 0; max-width: 760px; }
.hero-tag { color: var(--gold-light); letter-spacing: 4px; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-size: 42px; line-height: 1.35; font-weight: 700; margin-bottom: 20px; }
.hero p.lead { font-size: 18px; color: #d7dcea; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 8px; font-size: 16px;
  font-weight: 600; transition: all .2s ease; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }

/* 页头（内页） */
.page-hero {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1d56c4);
  color: #fff; padding: 76px 0;
}
.page-hero h1 { font-size: 36px; margin-bottom: 12px; }
.page-hero p { color: #ccd4e6; max-width: 780px; font-size: 17px; }
.breadcrumb { font-size: 13px; color: #9aa6c4; margin-bottom: 14px; }
.breadcrumb a { color: #c9d2e8; }

/* ===== 通用区块 ===== */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy-deep); color: #fff; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 52px; }
.section-kicker { color: var(--gold); letter-spacing: 3px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.section-head h2 { font-size: 32px; color: var(--navy); margin-bottom: 14px; }
.section.navy .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); font-size: 16px; }
.section.navy .section-head p { color: #b9c2d9; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(8, 45, 111, 0.14); }
.card h3 { color: var(--navy); font-size: 19px; margin-bottom: 10px; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), #1d56c4); color: var(--gold-light);
  font-size: 24px; margin-bottom: 18px;
}
.card p { color: var(--muted); font-size: 15px; }
.card ul { color: var(--muted); font-size: 15px; padding-left: 18px; margin-top: 8px; }
.card ul li { padding: 2px 0; }

/* 数据指标 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 42px; font-weight: 700; color: var(--gold); }
.stat .num span { font-size: 22px; }
.stat .label { color: #b9c2d9; font-size: 15px; margin-top: 6px; }
.stats.light .stat .num { color: var(--navy); }
.stats.light .stat .label { color: var(--muted); }

/* 图文并排 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { color: var(--navy); font-size: 30px; margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }

/* 列表/要点 */
.check-list { list-style: none; }
.check-list li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; color: var(--gold); font-weight: 700;
}

/* 案例 */
.case-item { border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin-bottom: 28px; }
.case-item h3 { color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.case-item p { color: var(--muted); font-size: 15px; }
.case-item .tag {
  display: inline-block; background: var(--bg-soft); color: var(--navy); font-size: 12px;
  padding: 2px 10px; border-radius: 20px; margin-bottom: 8px; margin-right: 6px;
}

/* 时间轴 */
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item .year { font-weight: 700; color: var(--navy); font-size: 18px; }
.timeline-item p { color: var(--muted); font-size: 15px; }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
table.data-table th, table.data-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
table.data-table tr:nth-child(even) td { background: var(--bg-soft); }

/* 行业标签墙 */
.tag-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag-wall .pill {
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  padding: 10px 22px; border-radius: 30px; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow);
}

/* ===== 表单 ===== */
.form-section { background: var(--bg-soft); }
.gk-form {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 42px 44px; box-shadow: var(--shadow); max-width: 980px; margin: 0 auto;
}
.gk-form .form-title { font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.gk-form .form-sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin-bottom: 22px; }
.form-row.single { grid-template-columns: 1fr; }
.form-field label { display: block; font-size: 15px; color: var(--ink); margin-bottom: 8px; }
.form-field label .req { color: #d8392b; margin-left: 4px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1px solid #cdd3e0; border-radius: 8px; padding: 13px 16px;
  font-size: 15px; font-family: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 59, 144, 0.12);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.radio-group { display: flex; gap: 42px; flex-wrap: wrap; align-items: center; }
.radio-group .radio-label { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.radio-group input[type="radio"] { width: 20px; height: 20px; accent-color: var(--navy); cursor: pointer; }
.form-submit {
  background: var(--navy-dark); color: #fff; border: none; border-radius: 8px;
  padding: 15px 60px; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.form-submit:hover { background: var(--navy); }
.form-status { margin-top: 16px; font-size: 15px; display: none; }
.form-status.ok { display: block; color: #177245; }
.form-status.err { display: block; color: #d8392b; }

/* 联系我们信息卡 */
.contact-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.contact-info .card { text-align: center; }
.contact-info .card .icon { margin: 0 auto 16px; }

/* 招聘职位 */
.job-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 28px; margin-bottom: 14px;
}
.job-item .job-name { font-size: 18px; font-weight: 600; color: var(--navy); }
.job-item .job-city { color: var(--muted); font-size: 14px; }

/* ===== 页脚 ===== */
.site-footer { background: var(--navy-deep); color: #aeb7cf; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer a { display: block; color: #aeb7cf; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand p { font-size: 14px; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px;
  font-size: 13px; text-align: center; color: #7f8aa8;
}

/* ===== 响应式 ===== */
@media (max-width: 960px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 18px; }
  .gk-form { padding: 28px 22px; }
  .section { padding: 56px 0; }
  .hero { min-height: 480px; }
  /* 手机端首屏防溢出：缩小字号与留白，按钮减小内边距 */
  html, body { overflow-x: clip; } /* clip 不创建滚动容器，不影响吸顶导航 */
  .hero-inner { padding: 60px 0; max-width: 100%; }
  .hero-tag { font-size: 12px; letter-spacing: 2px; margin-bottom: 14px; }
  .hero h1 { font-size: 25px; line-height: 1.45; margin-bottom: 16px; }
  .hero p.lead { font-size: 15px; line-height: 1.8; margin-bottom: 26px; }
  /* 超出屏幕的文字一律自动换行 */
  .hero h1, .hero p.lead, .hero-tag { overflow-wrap: anywhere; word-break: break-word; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 11px 20px; font-size: 15px; }
  /* 英文站首屏按钮文字较长，再缩一档 */
  .hero-actions-en .btn { padding: 10px 16px; font-size: 13px; }
  /* 滚动字幕条整体收紧，避免挤压首屏宽度 */
  .ticker-link { padding: 8px 14px; gap: 8px; }
  .ticker-badge { font-size: 11px; padding: 2px 8px; }
  .ticker-track { font-size: 12px; }
  .page-hero { padding: 52px 0; }
  .page-hero h1 { font-size: 27px; }
  .page-hero p { font-size: 15px; }
}

/* 小屏手机（≤480px）进一步缩小 */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 22px; }
  .hero-tag { font-size: 11px; letter-spacing: 1px; }
  .hero p.lead { font-size: 14px; }
}

/* ===== 会议活动 ===== */
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.event-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  scroll-margin-top: 96px; /* 分享链接锚点跳转时避开固定页头 */
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(8, 45, 111, 0.14); }
.event-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.event-date {
  background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px;
  text-align: center; min-width: 82px; flex-shrink: 0;
}
.event-date .d { font-size: 24px; font-weight: 700; line-height: 1.2; }
.event-date .m { font-size: 12px; color: #c9d2e8; margin-top: 2px; }
.event-status { display: inline-block; font-size: 12px; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.event-status.open { background: #e8f6ee; color: #177245; }
.event-status.full { background: #fdf0ef; color: #d8392b; }
.event-status.closed { background: #eef1f6; color: #6b7280; }
.event-card h3 { color: var(--navy); font-size: 19px; margin-bottom: 4px; }
.event-summary { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.event-expert {
  background: var(--bg-soft); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; font-size: 14px;
}
.event-expert .who { color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.event-expert .bio { color: var(--muted); }
.event-meta { list-style: none; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.event-meta li { padding: 3px 0; }
.event-meta li strong { color: var(--ink); font-weight: 600; display: inline-block; min-width: 72px; }
.event-topics { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.event-topics .t-title { color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.event-topics ul { padding-left: 18px; }
.event-card .btn { margin-top: auto; align-self: flex-start; padding: 11px 30px; font-size: 15px; }
.event-card .btn.disabled {
  background: #d3d8e2; color: #fff; pointer-events: none;
}
.event-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 34px; }

@media (max-width: 960px) {
  .event-grid { grid-template-columns: 1fr; }
}

/* ===== 首页会议滚动信息条 ===== */
.event-ticker { margin-top: 30px; max-width: 660px; }
.ticker-link {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px; padding: 9px 18px; color: #fff;
}
.ticker-link:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.ticker-badge {
  flex-shrink: 0; background: var(--red); color: #fff; font-size: 12px;
  padding: 2px 10px; border-radius: 20px; font-weight: 600; letter-spacing: 1px;
}
.ticker-viewport { overflow: hidden; flex: 1; min-width: 0; }
.ticker-track {
  display: inline-block; white-space: nowrap; font-size: 14px; color: #e3e8f5;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-track .t-item { margin-right: 56px; }
.ticker-track .t-date { color: var(--gold-light); margin-right: 8px; }
.ticker-link:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== 会议分享 ===== */
.event-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
/* 三个按钮（会议报名/文字分享/海报分享）整体缩小三分之一，文字同步调小 */
.event-actions .btn { padding: 7px 17px; font-size: 10px; }
.btn-share {
  background: #fff; border: 1px solid var(--navy); color: var(--navy);
}
.btn-share:hover { background: var(--navy); color: #fff; }

/* 分享提示 toast */
.hv-toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%) translateY(20px);
  background: rgba(6, 31, 78, 0.94); color: #fff; font-size: 15px;
  padding: 13px 26px; border-radius: 10px; z-index: 999; opacity: 0;
  transition: opacity .25s ease, transform .25s ease; pointer-events: none;
  max-width: 86vw; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .event-ticker { max-width: 100%; }
}

/* ===== 会议海报弹层 ===== */
.poster-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 20, 48, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.poster-dialog {
  background: #fff; border-radius: 16px; padding: 26px 26px 22px;
  max-width: 430px; width: 100%; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); text-align: center;
}
.poster-title { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.poster-img-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-soft);
}
.poster-img-wrap img { width: 100%; display: block; }
.poster-loading { padding: 60px 0; color: var(--muted); font-size: 14px; }
.poster-hint { font-size: 13px; color: var(--muted); margin: 14px 4px 16px; line-height: 1.7; }
.poster-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.poster-btns .btn { padding: 10px 22px; font-size: 14px; }

/* 海报复制成功横幅 */
.poster-success {
  background: #e8f6ee; color: #177245; font-size: 15px; font-weight: 600;
  border: 1px solid #bfe6cd; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 14px; line-height: 1.6;
}

/* ===== 今日慧见（每日专家观点） ===== */
.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.insight-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 20px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(8, 45, 111, 0.14); }
.insight-tag {
  display: inline-block; align-self: flex-start;
  background: rgba(11, 59, 144, 0.08); color: var(--navy);
  font-size: 13px; font-weight: 600; border-radius: 999px;
  padding: 4px 12px; margin-bottom: 12px;
}
.insight-text { font-size: 14px; line-height: 1.8; color: var(--ink); margin: 0 0 14px; flex: 1; }
.insight-who { font-size: 13px; color: var(--muted); }
.insight-date { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 6px; }
@media (max-width: 1080px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .insight-grid { grid-template-columns: 1fr; } }

/* ===== 中英文切换按钮 ===== */
.lang-switch {
  margin-left: 10px !important; padding: 5px 12px !important;
  border: 1.5px solid var(--navy) !important; border-radius: 999px;
  font-size: 13px !important; font-weight: 600; color: var(--navy) !important;
  background: transparent; line-height: 1.4;
}
.lang-switch:hover { background: var(--navy) !important; color: #fff !important; }
.lang-switch::after { display: none !important; }
