/* ============================================================
   银霖官网 · 全站增强样式（视觉美化 + 移动端自适应）
   由原各页面内联 style#yl-visual-polish / style#yl-mobile-enhance 合并
   顺序与合并前一致，保证层叠结果不变
   ============================================================ */

/* ---------- 视觉美化增强 ---------- */
/* ============ 视觉美化增强（精致质感） ============ */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--cyan); color: var(--primary-dark); }

/* 顶部信息条 */
.topbar { letter-spacing: .3px; }

/* 导航：毛玻璃 + 精致 Logo */
header.nav { background: rgba(62,51,32,.96); -webkit-backdrop-filter: saturate(150%) blur(10px); backdrop-filter: saturate(150%) blur(10px); }
.logo img { filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }

/* 当前栏目导航高亮：一级金色下划线 + 高亮文字 */
.nav-inner a.active, .nav-inner .drop-label.active {
  color: #fff !important;
  border-bottom-color: var(--accent) !important;
}
.nav-inner .dropdown:has(.drop-panel a.active) > .drop-label { color: #fff !important; border-bottom-color: var(--accent) !important; }
/* 二级下拉项高亮 */
.drop-panel a.active { background: linear-gradient(90deg, rgba(143,106,30,.12), transparent); color: var(--cyan-deep) !important; font-weight: 600; }
.drop-panel a.active .dot { background: var(--accent); box-shadow: 0 0 0 3px rgba(201,164,92,.18); }
@media (max-width: 960px) {
  .drop-panel a.active { background: rgba(201,160,64,.14); color: #fff !important; }
  nav.menu > a.active, nav.menu .drop-label.active { color: #fff !important; border-left-color: var(--accent); }
}

/* 咨询按钮：金色渐变 + 高光扫过 */
.btn-consult {
  background: linear-gradient(135deg,#EAD3A0 0%,#C9A45C 55%,#B08A47 100%);
  box-shadow: 0 4px 14px rgba(201,164,92,.3); border: none;
  position: relative; overflow: hidden;
}
.btn-consult::after {
  content:""; position:absolute; top:0; left:0; width:40%; height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  transform: skewX(-25deg) translateX(-160%);
}
.btn-consult:hover::after { animation: ylShine .75s ease; }
@keyframes ylShine { from{ transform:skewX(-25deg) translateX(-160%) } to{ transform:skewX(-25deg) translateX(360%) } }
.btn-consult:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(201,164,92,.42); }

/* 下拉面板更立体 */
.drop-panel { border:1px solid rgba(62,51,32,.06); box-shadow:0 18px 46px rgba(62,51,32,.2); }
.drop-panel a { transition: background .2s, color .2s, padding-left .2s; }
.drop-panel a:hover { padding-left: 26px; }

/* 轮播底部柔和遮罩，文字更聚焦 */
.carousel::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:24%;
  background: linear-gradient(transparent, rgba(42,33,21,.38));
  pointer-events:none; z-index:1;
}
.dots span { box-shadow: 0 1px 5px rgba(0,0,0,.45); }

/* 数据背书：加粗数字 + 竖分隔线 */
.stat .num { font-weight: 800; letter-spacing: -.5px; }
.stats-inner .stat { position: relative; }
.stats-inner .stat:not(:last-child)::after {
  content:""; position:absolute; right:-9px; top:50%; transform:translateY(-50%);
  width:1px; height:40px; background: var(--border);
}

/* 板块标题：装饰短线 + 渐变下划线 */
.section-head .kicker { display:inline-flex; align-items:center; gap:12px; }
.section-head .kicker::before, .section-head .kicker::after {
  content:""; width:26px; height:1px; background:linear-gradient(90deg,transparent,var(--cyan-deep));
}
.section-head .kicker::after { transform: rotate(180deg); }
.section-head h2 { font-weight: 800; letter-spacing: .5px; }
.section-head h2::after {
  content:""; display:block; width:52px; height:3px; border-radius:3px;
  margin:14px auto 0; background:linear-gradient(90deg,var(--cyan),var(--cyan-deep));
}

/* 卡片：多层柔和阴影 + 精致描边 + 悬浮增强 */
.biz-card, .ind-card, .case-card, .news-card, .culture-card, .team-card, .cert-item, .step, .num-item {
  box-shadow: 0 2px 6px rgba(62,51,32,.04), 0 14px 34px rgba(62,51,32,.06);
  border: 1px solid rgba(62,51,32,.06);
}
.biz-card:hover, .ind-card:hover, .case-card:hover, .news-card:hover, .culture-card:hover, .team-card:hover {
  box-shadow: 0 8px 20px rgba(62,51,32,.09), 0 22px 48px rgba(62,51,32,.14);
}
.biz-card .icon, .ind-card .icon, .about-point, .hcard { box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }

/* 双引擎横排：右上角光晕 */
.engine-banner { position:relative; overflow:hidden; }
.engine-banner::before {
  content:""; position:absolute; width:340px; height:340px; border-radius:50%;
  right:-90px; top:-150px; background:radial-gradient(circle,rgba(201,160,64,.2),transparent 70%);
  pointer-events:none;
}
.engine-banner > * { position:relative; z-index:1; }

/* 主按钮：金色渐变 + 微光 */
.btn-primary, .page-hero .act-main {
  background:linear-gradient(135deg,#E3C15C 0%,#8F6A1E 100%);
  box-shadow:0 6px 18px rgba(143,106,30,.3); border:none;
}
.btn-primary:hover, .page-hero .act-main:hover { box-shadow:0 10px 26px rgba(143,106,30,.42); }
.btn-gold, .page-hero.gold .act-main {
  background:linear-gradient(135deg,#EAD3A0,#C9A45C); box-shadow:0 6px 18px rgba(201,164,92,.3); border:none;
}

/* CTA 区：光晕 + 细网格纹理 */
.cta, .cta-strip { position:relative; overflow:hidden; }
.cta::before, .cta-strip::before {
  content:""; position:absolute; width:540px; height:540px; border-radius:50%;
  left:50%; top:-280px; transform:translateX(-50%);
  background:radial-gradient(circle,rgba(201,160,64,.16),transparent 66%); pointer-events:none;
}
.cta::after, .cta-strip::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.6;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:42px 42px;
}
.cta .container, .cta-strip .container { position:relative; z-index:1; }

/* 内页头图：轻微网格提升层次 */
.page-hero::after {
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.35;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:46px 46px;
}
.page-hero .container { position:relative; z-index:1; }

/* 页脚：顶部渐变线 + 栏目标题装饰 */
footer { position:relative; }
footer::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,var(--cyan-deep),var(--accent),var(--cyan)); opacity:.75;
}
.footer-grid h5 { position:relative; padding-left:12px; }
.footer-grid h5::before {
  content:""; position:absolute; left:0; top:3px; bottom:3px; width:3px; border-radius:2px; background:var(--cyan);
}
.footer-grid a { transition: color .2s, padding-left .2s; }
.footer-grid a:hover { padding-left:3px; }

/* 回到顶部 */
.yl-to-top {
  position:fixed; right:22px; bottom:26px; z-index:80;
  width:46px; height:46px; border-radius:50%;
  background:linear-gradient(135deg,var(--primary-light),var(--primary));
  color:var(--cyan); border:1px solid rgba(201,160,64,.38);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 6px 20px rgba(42,33,21,.35);
  opacity:0; visibility:hidden; transform:translateY(12px);
  transition:opacity .3s, transform .3s, visibility .3s, background .3s, color .3s;
}
.yl-to-top.show { opacity:1; visibility:visible; transform:none; }
.yl-to-top:hover { background:var(--cyan); color:var(--primary-dark); }

/* 顶部阅读进度条 */
.yl-progress {
  position:fixed; left:0; top:0; height:3px; z-index:120; width:0;
  background:linear-gradient(90deg,var(--cyan),var(--accent));
  box-shadow:0 0 8px rgba(201,160,64,.5); transition:width .1s linear;
}

/* 滚动淡入（JS 门控，不干扰 hover 变换） */
body.yl-polish-on .reveal-on-scroll { opacity:0; }
body.yl-polish-on .reveal-on-scroll.shown { opacity:1; animation:ylReveal .65s cubic-bezier(.22,1,.36,1) backwards; }
@keyframes ylReveal { from{ opacity:0; transform:translateY(18px) } to{ opacity:1; transform:none } }
@media (prefers-reduced-motion: reduce) {
  body.yl-polish-on .reveal-on-scroll { opacity:1 !important; animation:none !important; }
}

/* 响应式微调（置于移动增强之前，移动规则最终生效） */
@media (max-width:960px) {
  .stats-inner .stat:not(:last-child)::after { display:none; }
  .yl-to-top { right:14px; bottom:16px; width:42px; height:42px; }
}
@media (max-width:560px) {
  .section-head .kicker::before, .section-head .kicker::after { width:16px; }
  .section-head h2::after { width:40px; bottom:-9px; }
  .cta::before, .cta-strip::before { width:340px; height:340px; top:-170px; }
}

/* ---------- 移动端自适应增强 ---------- */
/* ============ 移动端自适应增强 ============ */
html { -webkit-text-size-adjust: 100%; }
.menu-toggle { display: none; }
.menu-toggle .bar {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .28s ease, opacity .2s ease;
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-cta { display: none; }
img, video, table { max-width: 100%; }
.contact-line .c-d, .footer-grid li, .drop-panel a { overflow-wrap: break-word; word-break: break-word; }

@media (max-width: 960px) {
  /* 防止横向溢出（clip 不破坏 sticky 吸顶） */
  html, body { overflow-x: clip; }

  /* ---- 顶部与导航 ---- */
  .topbar { display: none; }
  .nav-inner { height: 60px; gap: 12px; }
  .logo { font-size: 19px; letter-spacing: 1px; gap: 9px; }
  .logo img { height: 36px; }
  .btn-consult { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

  .menu-toggle {
    display: inline-flex; order: 5; flex: none;
    width: 44px; height: 44px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }

  nav.menu {
    display: block; position: fixed; top: 60px; left: 0; right: 0;
    background: var(--primary); box-shadow: 0 10px 24px rgba(42,33,21,.3);
    max-height: 0; overflow: hidden; z-index: 99;
    transition: max-height .35s ease;
    padding: 0; gap: 0;
  }
  nav.menu.nav-open { max-height: calc(100vh - 60px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  nav.menu > a, nav.menu > .dropdown > .drop-label {
    display: block; width: 100%; padding: 14px 24px; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0;
  }
  nav.menu > .dropdown { padding: 0; }
  nav.menu > a.active, nav.menu .drop-label.active { border-left: 3px solid var(--accent); }
  .dropdown.open > .drop-label { color: #fff; background: rgba(255,255,255,.06); }

  .drop-panel {
    display: block; position: static; min-width: 0; box-shadow: none;
    background: rgba(0,0,0,.2); border-radius: 0; margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .dropdown.open .drop-panel { max-height: 460px; }
  .drop-panel a { padding: 12px 24px 12px 44px; color: rgba(255,255,255,.9); font-size: 14.5px; border-bottom: 0; }
  .drop-panel a:hover { background: rgba(255,255,255,.07); color: #fff; }
  .drop-panel .dot { background: var(--cyan); }

  .menu-cta {
    display: block; margin: 18px 24px 26px; text-align: center;
    background: var(--accent); color: var(--primary-dark);
    padding: 13px; border-radius: 8px; font-weight: 600; font-size: 16px;
  }

  /* ---- 首屏轮播：按原图比例完整显示，文字清晰 ---- */
  .slide img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 35% center; }
  .carousel-btn { width: 38px; height: 38px; font-size: 19px; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .dots span { width: 20px; }
  .dots span.on { width: 32px; }

  /* ---- 通用板块 ---- */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 38px; }
  .section-head h2 { font-size: 29px; }
  .section-head .sub { font-size: 15px; padding: 0 8px; }
  .biz-card, .ind-card, .case-card, .news-card, .culture-card,
  .team-card, .job-card, .num-item, .side-card { padding: 26px 22px; }
  .cta h2 { font-size: 27px; }
  .cta { padding: 58px 0; }
  .cta-actions .btn-primary, .cta-actions .btn-gold { padding: 13px 26px; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; }
  .page-hero, .page-hero { padding: 64px 0 70px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero .lead { font-size: 16px; }
  .cta-strip h2 { font-size: 25px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 56px; }
  nav.menu { top: 56px; }
  .logo { font-size: 17px; }
  .logo img { height: 30px; }
  .btn-consult { display: none; }  /* 小屏收起，咨询入口移入菜单，避免拥挤 */

  .slide img { aspect-ratio: 4 / 3; object-position: 30% center; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: 24px; }
  .section-head .kicker { font-size: 12px; letter-spacing: 2px; }
  .section-head .sub { font-size: 13.5px; }

  .stats-inner { gap: 8px; padding: 24px 0; }
  .stat .num { font-size: 25px; }
  .stat .label { font-size: 11.5px; }

  .biz-card, .ind-card, .case-card, .news-card, .culture-card,
  .team-card, .job-card, .num-item, .side-card { padding: 22px 18px; }
  .biz-card h3 { font-size: 18px; }
  .biz-card li { font-size: 13.5px; }
  .about-points { gap: 10px; }
  .about-point { padding: 13px 14px; }
  .about-point .t { font-size: 13.5px; }
  .about-point .d { font-size: 12.5px; }
  .engine-banner { padding: 24px 20px; gap: 16px; }
  .steps { gap: 12px; }
  .step { padding: 22px 10px; }
  .step h4 { font-size: 15px; }
  .step p { font-size: 12.5px; }
  .cert-item { padding: 18px 12px; }
  .cert-item .d { font-size: 12px; }
  .case-nums { gap: 6px; }
  .case-nums .cn { padding: 9px 4px; }
  .case-nums .cn b { font-size: 17px; }
  .case-nums .cn i { font-size: 11px; }
  .faq-item summary { padding: 15px 18px; font-size: 14.5px; }
  .faq-item .faq-a { padding: 0 18px 16px; font-size: 13.5px; }
  .logo-item { font-size: 12px; letter-spacing: 0; }
  .trust-inner { flex-direction: column; gap: 18px; }
  .cta h2 { font-size: 23px; }
  .cta-actions { gap: 12px; }
  .cta-actions .btn-primary, .cta-actions .btn-gold { width: 100%; max-width: 320px; }
  .join { padding: 28px 20px; }
  .join-left h3 { font-size: 23px; }
  .contact { padding: 54px 0; }
  .contact-form { padding: 24px 18px; }
  .contact-line .c-d { font-size: 13.5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .page-hero { padding: 52px 0 58px; }
  .page-hero h1 { font-size: 27px; }
  .page-hero .lead { font-size: 15px; }
  .hero-acts a { padding: 11px 18px; font-size: 14px; }
  .hero-cards { grid-template-columns: 1fr; }
  .cta-strip h2 { font-size: 21px; }
  .num-item { gap: 12px; }
  .num-item .n { width: 40px; height: 40px; font-size: 16px; }
  .job-card .jc-name { font-size: 17px; }
}

@media (max-width: 360px) {
  .logo { font-size: 15px; }
  .logo img { height: 26px; }
  .stat .num { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .slide img { aspect-ratio: 1 / 1; object-position: 28% center; }
}
