/* =========================================================
   亳州至今文化传媒 官网样式
   主色等设计变量集中在 :root，改一处全站生效
   ========================================================= */

:root {
  /* ====== 品牌主色：改这里即可换全站主色 ====== */
  --brand: #2D5BFF;
  --brand-dark: #1E40D8;
  --brand-soft: rgba(45, 91, 255, 0.08);

  /* 中性色 */
  --ink: #0B0D12;
  --ink-2: #3A3F4B;
  --ink-3: #6B7280;
  --line: #E8EAF0;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FC;
  --bg-dark: #0B0D12;

  /* 排版与间距 */
  --maxw: 1160px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 40px rgba(11, 13, 18, 0.08);
  --shadow-lg: 0 24px 70px rgba(11, 13, 18, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 全局横向溢出兜底：任何子元素都不会把整页撑得能左右拉动 */
html, body { max-width: 100%; overflow-x: hidden; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ====== 通用按钮 ====== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  cursor: pointer; border: none;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px var(--brand-soft); }
.btn--primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(45,91,255,.28); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ====== 区块通用 ====== */
.section { padding: 120px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section__tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brand); padding: 6px 14px;
  background: var(--brand-soft); border-radius: 999px; margin-bottom: 18px;
}
.section__tag--light { color: #fff; background: rgba(255,255,255,.14); }
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section__title--light { color: #fff; }
.section__desc { margin-top: 16px; font-size: 17px; color: var(--ink-3); }

/* ====== 滚动进场动画 ====== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ====== 导航栏 ====== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav__logo-img { height: 34px; width: auto; display: block; }
.nav__logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
}
.nav__logo-text { font-size: 18px; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color .25s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 10px 22px; border-radius: 999px; background: var(--ink); color: #fff !important;
  font-weight: 600; transition: background .25s, transform .25s var(--ease);
}
.nav__cta:hover { background: var(--brand); transform: translateY(-1px); }
/* 滚动后实底 */
.nav.is-scrolled { background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--line); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); }

/* ====== Hero ====== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
    radial-gradient(60% 60% at 75% 20%, rgba(45,91,255,.16), transparent 60%),
    radial-gradient(50% 50% at 15% 80%, rgba(45,91,255,.10), transparent 60%),
    var(--bg);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 38px 38px; opacity: .5;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
}
.hero__inner { padding-top: 90px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero__copy { max-width: 600px; min-width: 0; }
.hero__eyebrow { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: 0.04em; margin-bottom: 22px; }
.hero__title { font-size: clamp(38px, 5vw, 68px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.hero__sub { margin-top: 28px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-3); max-width: 560px; }
.hero__actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* 平台 logo 横排自动滚动：仅移动端显示（桌面用右侧浮动卡片） */
.hero__platforms { display: none; width: 100%; margin-top: 40px; overflow: hidden; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.hero__platforms-track { display: flex; gap: 14px; width: max-content; animation: marquee 22s linear infinite; }
.hero__platforms-track img { width: 40px; height: 40px; border-radius: 11px; object-fit: contain; flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 右侧浮动视觉区：8 个平台卡片错落排布 */
.hero__visual { position: relative; height: 520px; }
.hero__orb {
  position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(45,91,255,.30), rgba(45,91,255,0) 70%);
  filter: blur(10px);
}
.floatcard {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; background: rgba(255,255,255,.85); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.9); border-radius: 16px; box-shadow: var(--shadow-lg);
  animation: floaty 6s var(--ease) infinite; animation-delay: var(--d); white-space: nowrap;
}
.floatcard__ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 11px;
  object-fit: contain; display: block;
}
.floatcard__t { font-size: 14px; font-weight: 700; color: var(--ink); }

/* 八张卡片错落定位 */
.floatcard[data-p="gzh"]     { top: 4%;  left: 14%; }
.floatcard[data-p="weibo"]   { top: 0;   right: 4%; }
.floatcard[data-p="douyin"]  { top: 28%; left: 0; }
.floatcard[data-p="mp"]      { top: 24%; right: 16%; }
.floatcard[data-p="xhs"]     { top: 52%; left: 18%; }
.floatcard[data-p="sph"]     { top: 50%; right: 0; }
.floatcard[data-p="bili"]    { bottom: 2%; left: 2%; }
.floatcard[data-p="toutiao"] { bottom: 6%; right: 20%; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.hero__scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; background: var(--brand); border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ====== 关于我们：左右分栏 ====== */
.about__split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.about__intro { position: sticky; top: 110px; }
.about__intro .section__title { margin: 18px 0 24px; }
.about__lead { font-size: 17px; line-height: 1.85; color: var(--ink-3); }
.about__list { display: flex; flex-direction: column; }
.about__item { display: flex; gap: 24px; padding: 30px 0; border-top: 1px solid var(--line); }
.about__item:first-child { border-top: none; padding-top: 0; }
.about__num { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: 0.04em; line-height: 1.6; flex: 0 0 auto; }
.about__item-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.about__item-body p { color: var(--ink-3); font-size: 15.5px; line-height: 1.75; }

/* ====== 媒体矩阵：自动循环横向滚动（transform 驱动，移动端可靠）====== */
.scroller { position: relative; margin-top: 8px; width: 100%; max-width: 100%; overflow: hidden; }
.scroller__track {
  display: flex; gap: 24px; width: max-content;
  padding: 10px 24px 24px;
  cursor: grab; will-change: transform; user-select: none; touch-action: pan-y;
}
.scroller__track img { -webkit-user-drag: none; user-drag: none; }
.scroller__track.is-dragging { cursor: grabbing; }
/* 两侧渐隐提示还有内容 */
.scroller::before, .scroller::after {
  content: ""; position: absolute; top: 0; bottom: 24px; width: 64px; z-index: 2; pointer-events: none;
}
.scroller::before { left: 0; background: linear-gradient(90deg, var(--bg-alt), transparent); }
.scroller::after { right: 0; background: linear-gradient(270deg, var(--bg-alt), transparent); }

/* 卡片：近正方形，内容短时显方、长时自动长高 */
.scroller__track .mcard {
  flex: 0 0 200px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 28px 20px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; overflow: hidden;
}
.scroller__track .mcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.scroller__track .mcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.scroller__track .mcard:hover::before { transform: scaleX(1); }
/* 账号头像：圆形，右下角叠加小平台角标 */
.mcard__avatar { position: relative; width: 64px; height: 64px; margin-bottom: 16px; flex: 0 0 auto; }
.mcard__logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--bg); }
.mcard__badge { position: absolute; right: -3px; bottom: -3px; width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); background: var(--bg); }
.scroller__track .mcard__name { font-size: 16px; line-height: 1.35; word-break: break-word; }
.scroller__track .mcard__desc { font-size: 13px; margin-bottom: 0; line-height: 1.5; word-break: break-word; }

/* 左右箭头按钮 */
.scroller__btn {
  position: absolute; top: 50%; transform: translateY(-60%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px); color: var(--ink);
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), background .25s, opacity .3s, color .25s;
  opacity: 0;
}
.scroller:hover .scroller__btn { opacity: 1; }
.scroller__btn:hover { background: var(--brand); color: #fff; transform: translateY(-60%) scale(1.06); }
.scroller__btn--prev { left: 28px; }
.scroller__btn--next { right: 28px; }

.mcard__name { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.mcard__desc { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.mcard__meta { font-size: 12.5px; color: var(--ink-3); opacity: .8; }

/* ====== 工具产品 ====== */
.tools__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tcard__thumb { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-soft), var(--bg-alt)); color: var(--brand); font-weight: 700; font-size: 18px; letter-spacing: .04em; overflow: hidden; }
.tcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard__body { padding: 26px; }
.tcard__body h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.tcard__body p { font-size: 14.5px; color: var(--ink-3); margin-bottom: 18px; }
.tcard__link { font-size: 14.5px; font-weight: 600; color: var(--brand); }

/* ====== 数据成果 ====== */
.section--stats { background: var(--bg-dark); position: relative; overflow: hidden; }
.section--stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 80% 0%, rgba(45,91,255,.28), transparent 60%); }
.stats__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; }
.stat__num { display: block; font-size: clamp(36px, 5vw, 60px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; min-height: 1.1em; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; transform: translateZ(0); backface-visibility: hidden; }
.stat__label { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,.6); }
.stats__note { position: relative; text-align: center; margin-top: 40px; font-size: 13px; color: rgba(255,255,255,.4); }

/* ====== 联系我们 ====== */
.contact__card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 56px; background: var(--bg-alt); border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); }
.contact__desc { margin: 16px 0 30px; font-size: 16px; color: var(--ink-3); }
.contact__list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.contact__list li { display: flex; gap: 18px; font-size: 15.5px; }
.contact__list li span:first-child { min-width: 76px; color: var(--ink-3); font-weight: 600; }
.contact__list a:hover { color: var(--brand); }
.contact__right { text-align: center; }
.qr { width: 180px; height: 180px; margin: 0 auto; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr__cap { margin-top: 16px; font-size: 14px; color: var(--ink-3); }

/* ====== 页脚 ====== */
.footer { background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 56px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__logo-img { height: 30px; width: auto; display: block; filter: invert(1) brightness(2); }
.footer__brand p { color: #fff; font-weight: 600; }
.footer__meta { text-align: right; font-size: 13.5px; line-height: 1.9; }
.footer__meta a:hover { color: #fff; }
.footer__beian { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.footer__gongan { display: inline-flex; align-items: center; gap: 6px; }
.footer__gongan img { width: 16px; height: 16px; object-fit: contain; }

/* ====== 响应式 ====== */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__platforms { display: block; }
  .nav__links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(18px); padding: 12px 24px 24px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .4s var(--ease); }
  .nav__links a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; }
  .nav.is-open .nav__links { transform: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .about__cols { grid-template-columns: 1fr; }
  .about__split { grid-template-columns: 1fr; gap: 40px; }
  .about__intro { position: static; text-align: center; }
  .about__intro .about__lead { text-align: left; }
  .scroller__btn { display: none; }
  .scroller__track .mcard { flex-basis: 170px; }
  .tools__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__card { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__meta { text-align: center; }
}
@media (max-width: 520px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .scroller__track .mcard { flex-basis: 150px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
