@charset "utf-8";

/* =========================================================================
   邹见山 · SetAnchor 个人网站（第二版）
   版式语言：喜利得式 —— 整幅红色工具条、白色页头 + 整幅大菜单、
   首屏轮播 + 右侧双推荐位、3/4 列卡片栅格、红色品牌价值带、红色页脚、
   底部固定快速查询条。
   ========================================================================= */

:root {
  --red:        #D2051E;
  --red-dk:     #A60418;
  --red-lt:     #E8273C;

  /* 墨色阶：全站不用纯黑，最深一档为深石板灰 */
  --ink:        #333B42;
  --ink-2:      #434C54;
  --nav-ink:    #434C54;
  --body:       #505860;
  --muted:      #7C878E;

  --line:       #DDE1E4;
  --line-soft:  #EDEFF1;
  --bg:         #FFFFFF;
  --bg-alt:     #F4F4F2;
  --steel:      #AEB8BE;

  --f: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
       "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1900px;
  --gap: 16px;

  --topbar-h: 46px;
  --header-h: 58px;
  --quick-h:  52px;

  --shadow-1: 0 1px 2px rgba(20,24,29,.07), 0 2px 8px rgba(20,24,29,.05);
  --shadow-2: 0 6px 22px rgba(20,24,29,.13);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* ---- 磨砂粒子：只压暗不提亮，红色保持饱和 ---- */
  --grain: url("../img/noise.png");
  --grain-size: 200px;
  --grain-a: .30;
  --grain-a-soft: .22;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--f);
  padding-bottom: var(--quick-h);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.22; letter-spacing: .2px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 34px; }

/* ---------------------------------------------------------------- icons */
.i { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7;
     stroke-linecap: round; stroke-linejoin: round; }
svg.i { display: inline-block; vertical-align: -2px; margin-left: 5px; }

/* ================================================================ topbar */
.topbar { background: var(--red); color: #fff; position: relative; isolation: isolate; }
.topbar::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    var(--grain) 0 0 / var(--grain-size) var(--grain-size) repeat,
    var(--red);
  background-blend-mode: multiply;
  opacity: var(--grain-a-soft);
}
.topbar__in {
  position: relative; z-index: 1;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 34px;
}
/* 顶栏左侧的品牌说明（原来是返回案例总览，个人站不需要） */
.topbar__title {
  font-size: 13.5px; font-weight: 600; letter-spacing: .6px; color: #fff;
}

.topsearch { display: flex; align-items: center; gap: 0; width: 210px; }
.topsearch input {
  width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid rgba(255,255,255,.65);
  color: #fff; padding: 5px 2px; font-size: 13.5px; outline: none;
}
.topsearch input::placeholder { color: rgba(255,255,255,.82); }
.topsearch input:focus { border-bottom-color: #fff; }
.topsearch button { padding: 4px 0 4px 8px; color: #fff; }
.topsearch button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2;
                        stroke-linecap: round; }

/* ================================================================ header */
.header {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header.is-stuck { box-shadow: var(--shadow-1); }
.header__in { height: var(--header-h); display: flex; align-items: center; gap: 40px; }

/* 页头 logo：与客户案例同款内嵌 SVG 字标（viewBox 253×72）
   宽固定、高按比例自适应，避免把字标压扁 */
.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo__mark { width: 132px; height: auto; display: block; }

/* 主导航：红色只属于当前栏目，悬停不做颜色反馈，
   避免鼠标停在别的栏目上时与当前栏目同时变红 */
.primarynav > ul { display: flex; align-items: center; gap: 2px; }
.primarynav > ul > li { position: relative; }

/* mega menu（整幅面板） */


.hamburger { display: none; width: 40px; height: 34px; padding: 6px; }
.hamburger span { display: block; height: 2.4px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ================================================================ shared */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.eyebrow--light { color: rgba(255,255,255,.82); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; font-size: 15px; font-weight: 700; letter-spacing: .3px;
  border-radius: 2px; transition: background .18s, transform .12s, box-shadow .18s;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); box-shadow: 0 6px 18px rgba(210,5,30,.32); }
.btn--red:active { transform: translateY(1px); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.72); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }

/* chevron link */
.arrowlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: color .16s;
}
.arrowlink::before {
  content: ""; width: 11px; height: 11px; flex: 0 0 auto;
  background: var(--red);
  clip-path: polygon(34% 0, 100% 50%, 34% 100%, 0 100%, 66% 50%, 0 0);
  transition: transform .18s var(--ease);
}
.arrowlink:hover { color: var(--red); }
.arrowlink:hover::before { transform: translateX(3px); }
.arrowlink--light { color: #fff; }
.arrowlink--light:hover { color: #fff; }

/* ================================================================ hero */
.hero { padding-top: 26px; }
.hero__grid { display: grid; grid-template-columns: 1fr 470px; gap: var(--gap); }

.carousel { position: relative; background: var(--ink); overflow: hidden; border-radius: 2px; }
.carousel__viewport { position: relative; aspect-ratio: 16 / 9.4; }
@media (min-width: 1500px) { .carousel__viewport { aspect-ratio: 16 / 8.6; } }

.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__media, .slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide__media img { object-fit: cover; }
.slide.is-active .slide__media img { animation: kenburns 8s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

/* 图片上的渐变遮罩只压暗，不放粒子：mix-blend-mode 会把首屏压成灰面 */
.slide__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,10,13,.80) 0%, rgba(8,10,13,.36) 44%, rgba(8,10,13,0) 74%),
    linear-gradient(92deg, rgba(8,10,13,.70) 0%, rgba(8,10,13,.32) 42%, rgba(8,10,13,0) 72%);
}
.slide__copy {
  position: absolute; left: 0; bottom: 0; padding: 46px 52px 58px;
  max-width: 660px; color: #fff;
}
.slide__copy h2 { font-size: clamp(32px, 3.4vw, 58px); font-weight: 700; letter-spacing: .5px; }
.slide__copy h2 small {
  display: block; margin-top: 10px; font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 600; letter-spacing: .4px; color: rgba(255,255,255,.9);
}
.slide__sub { margin: 14px 0 26px; font-size: 15.5px; color: rgba(255,255,255,.86); max-width: 480px; }
.slide__act { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* carousel control bar */
.carousel__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(0deg, rgba(8,10,13,.55), rgba(8,10,13,0));
}
.cbtn {
  width: 34px; height: 30px; display: grid; place-items: center;
  color: #fff; opacity: .9; transition: opacity .16s, background .16s;
}
.cbtn:hover { opacity: 1; background: rgba(255,255,255,.12); }
.cbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4;
            stroke-linecap: round; stroke-linejoin: round; }
.cbtn--pause .ic-play { display: none; }
.cbtn--pause.is-paused .ic-pause { display: none; }
.cbtn--pause.is-paused .ic-play { display: block; }
.cbtn--pause .ic-play { fill: currentColor; stroke: none; }

.dots { display: flex; align-items: center; gap: 5px; margin: 0 6px; }
.dots button {
  width: 16px; height: 8px; border-radius: 1px; background: rgba(255,255,255,.42);
  transition: width .28s var(--ease), background .2s;
}
.dots button:hover { background: rgba(255,255,255,.75); }
.dots button.is-active { width: 76px; background: var(--red); }

/* hero side promos */
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); min-height: 100%; }
.promo { position: relative; overflow: hidden; border-radius: 2px; background: var(--ink); display: block; }
.promo__media, .promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.promo__media img { object-fit: cover; transition: transform .7s var(--ease); }
.promo:hover .promo__media img { transform: scale(1.055); }
.promo__shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,10,13,.82) 0%, rgba(8,10,13,.32) 52%, rgba(8,10,13,0) 88%);
}
.promo__copy { position: absolute; inset: auto 0 0 0; padding: 26px 30px 28px; color: #fff; }
.promo__copy h3 { font-size: clamp(21px, 1.6vw, 28px); margin-bottom: 14px; }

/* ================================================================ sections */
.section { padding-block: 62px 8px; }
.section--tight { padding-block: 34px 8px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.sechead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-bottom: 34px; padding-bottom: 16px; border-bottom: 2px solid var(--line);
}
.sechead h2 { font-size: clamp(24px, 2vw, 32px); }
.sechead p { font-size: 14.5px; color: var(--body); margin-top: 8px; }

/* plain card */
.card { display: flex; flex-direction: column; }
.card__media { display: block; line-height: 0; overflow: hidden; background: var(--bg-alt); }
.card__media img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10.5;
                   object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding-top: 22px; }
.card__body h3 { font-size: 21px; margin-bottom: 10px; }
.card__body p { font-size: 14.5px; color: var(--body); margin-bottom: 18px; }

/* 悬浮一体卡：外框把图片与文字包在一起 */
.vcard { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
         display: flex; flex-direction: column;
         transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.vcard__media { display: block; line-height: 0; overflow: hidden; }
.vcard__media img { width: 100%; height: 100%; aspect-ratio: 9 / 7.4; object-fit: cover; }
.vcard__body { border-top: 1px solid var(--line); padding: 24px 26px 26px;
               flex: 1 1 auto; display: flex; flex-direction: column; text-align: center; }
.vcard__label { font-size: 13px; color: var(--red); font-weight: 600; margin-bottom: 8px; }
.vcard__body h3 { font-size: 24px; margin-bottom: 14px; }
.vcard__body p { font-size: 14px; color: var(--body); margin-bottom: 20px; }
.vcard__body .arrowlink { margin-top: auto; align-self: center; }

/* value band */
/* 红色品牌带：底部不留白，让白卡正好压在下边缘上（喜利得式） */
.values { position: relative; margin-top: 74px; padding-block: 62px 0; overflow: hidden; isolation: isolate; }
.values__band {
  position: absolute; z-index: 0; inset: 0;
  background:
    linear-gradient(115deg, rgba(255,255,255,.05) 0 10%, rgba(255,255,255,0) 10.1%),
    linear-gradient(115deg, rgba(0,0,0,.14) 0 5%, rgba(0,0,0,0) 5.1%),
    linear-gradient(115deg, #C6041C 0%, #D2051E 42%, #B2031A 100%);
}
.values__band::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grain) center / 300px 300px repeat;
  mix-blend-mode: multiply; opacity: .18;
}
.values__band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    var(--grain) 0 0 / var(--grain-size) var(--grain-size) repeat,
    linear-gradient(115deg, #C6041C 0%, #D2051E 42%, #B2031A 100%);
  background-blend-mode: multiply;
  opacity: var(--grain-a);
}
.values__in { position: relative; z-index: 1; }
.values__title { font-size: clamp(34px, 3.2vw, 56px); color: #fff; margin-bottom: 12px; }
.values__sub { color: rgba(255,255,255,.9); font-size: 15.5px; margin-bottom: 34px; max-width: 720px; }

/* news */
.newsitem { padding-top: 4px; border-top: 3px solid var(--ink); }
.newsitem time { display: block; font-size: 13px; letter-spacing: 1px; color: var(--muted); padding: 16px 0 10px; }
.newsitem h3 { font-size: 19px; margin-bottom: 8px; }
.newsitem p { font-size: 14.5px; color: var(--body); }
.newsitem .arrowlink { margin-top: 14px; }

/* ================================================================ 介绍 / 能力 */
.abil { display: grid; grid-template-columns: 300px 1fr; gap: 46px; align-items: start;
        padding: 34px 0; border-bottom: 1px solid var(--line); }
.abil:last-child { border-bottom: 0; }
.abil__lead { font-size: 22px; font-weight: 700; color: var(--ink); }
.abil__lead span { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
                   text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.abil__desc { font-size: 15px; color: var(--body); margin-bottom: 18px; }
.abil__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 30px; }
.abil__list li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--body); }
.abil__list li::before {
  content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px;
  background: var(--red);
  clip-path: polygon(34% 0, 100% 50%, 34% 100%, 0 100%, 66% 50%, 0 0);
}

/* 能力标签条 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 8px 16px; font-size: 13.5px; color: var(--ink-2);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 2px;
}

/* ================================================================ 视频 */
.videobox { position: relative; background: #0E1216; border-radius: 2px; overflow: hidden; }
.videobox video { display: block; width: 100%; height: auto; }
.videobox__cap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-top: 0;
}
.videobox__cap h3 { font-size: 18px; margin-bottom: 4px; }
.videobox__cap p { font-size: 14px; color: var(--body); }

/* ================================================================ 关于我 */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.about__text p { font-size: 15.5px; color: var(--body); margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 10px; }
.stat { padding: 22px 20px; background: var(--bg-alt); border-left: 3px solid var(--red); }
.stat b { display: block; font-size: clamp(26px, 2.2vw, 34px); color: var(--ink); line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--body); }

/* ================================================================ footer */
.footer { margin-top: 72px; background: var(--red); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.footer::before {
  content: ""; position: absolute; z-index: 0; inset: 0 auto 0 0; width: 34%;
  background:
    linear-gradient(112deg, rgba(255,255,255,.10) 0 16%, rgba(255,255,255,0) 16.1%),
    linear-gradient(112deg, rgba(0,0,0,.10) 0 5%, rgba(0,0,0,0) 5.1%);
  pointer-events: none;
}
.footer::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    var(--grain) 0 0 / var(--grain-size) var(--grain-size) repeat,
    var(--red);
  background-blend-mode: multiply;
  opacity: var(--grain-a);
}
.footer__in {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  padding-top: 56px; padding-bottom: 46px;
}
/* 页脚 logo：同款字标，白底红字，配红色页脚；同样等比 */
.footer__logo { width: 132px; height: auto; display: block; }
.footer__slogan { margin-top: 26px; font-size: clamp(24px, 2.2vw, 38px); font-weight: 700; letter-spacing: .5px; }
.footer__slogan small { display: block; margin-top: 12px; font-size: 15px; font-weight: 400;
                        color: rgba(255,255,255,.9); line-height: 1.7; }

.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fcol h4 { font-size: 15px; margin-bottom: 18px; }
.fcol a, .fcol span { display: block; padding: 7px 0; font-size: 14.5px; color: rgba(255,255,255,.93); transition: opacity .15s; }
.fcol a:hover { opacity: .72; text-decoration: underline; }

.footer__bottom {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 30px;
  border-top: 1px solid rgba(255,255,255,.26);
}
.legal { display: flex; flex-wrap: wrap; gap: 26px; }
.legal a, .legal span { font-size: 13.5px; color: rgba(255,255,255,.9); }
.legal a:hover { text-decoration: underline; }

/* ================================================================ quickbar */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 2px solid var(--red); box-shadow: 0 -2px 14px rgba(20,24,29,.09);
  transition: transform .28s var(--ease);
}
.quickbar.is-hidden { transform: translateY(105%); }
.quickbar__in { display: flex; align-items: center; gap: 14px; height: var(--quick-h); }
.quickbar__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--red); stroke-width: 1.8;
                      stroke-linecap: round; stroke-linejoin: round; }
.quickbar__label { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.quickbar__form { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; max-width: 560px; }
.quickbar__form input {
  flex: 1 1 auto; min-width: 0; padding: 8px 12px; font-size: 14px;
  border: 1px solid var(--line); border-radius: 2px; color: var(--ink); outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.quickbar__form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(210,5,30,.14); }
.quickbar__close { padding: 7px; color: var(--muted); margin-left: auto; }
.quickbar__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2;
                       stroke-linecap: round; }
.quickbar__close:hover { color: var(--red); }
.quickbar__hint {
  max-width: var(--wrap); margin-inline: auto; padding-inline: 34px;
  font-size: 13px; color: var(--red); height: 0; overflow: hidden; transition: height .2s;
}
.quickbar__hint.is-on { height: 30px; padding-bottom: 8px; }

/* ================================================================ 返回入口
   本站为个人网站，顶栏左端放一个回到案例总览的入口 */
.topbar__in { justify-content: space-between; }

/* ================================================================ responsive */
@media (max-width: 1500px) {
  .hero__grid { grid-template-columns: 1fr 400px; }
}
@media (max-width: 1240px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .promo { min-height: 260px; }
  .grid3 { gap: 30px; }
  .carousel__viewport { aspect-ratio: 16 / 9; }
  .abil { grid-template-columns: 240px 1fr; gap: 30px; }
}
@media (max-width: 1024px) {
  .wrap { padding-inline: 22px; }
  .header__in { gap: 20px; }
  .hamburger { display: block; order: 3; margin-left: auto; }
  .primarynav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-2);
    display: none; max-height: 70vh; overflow: auto;
  }
  .primarynav.is-open { display: block; }
  .primarynav > ul { display: block; padding: 8px 0 16px; }
  .primarynav > ul > li > a { padding: 14px 22px; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .footer__in { grid-template-columns: 1fr; gap: 34px; }
  .topsearch { width: 150px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .abil { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 16px; }
  .topbar__in { gap: 16px; }
  .topsearch { width: 110px; }
  .grid3, .grid4 { grid-template-columns: 1fr; gap: 30px; }
  .hero__side { grid-template-columns: 1fr; }
  .slide__copy { padding: 26px 22px 54px; }
  .slide__shade { background: linear-gradient(0deg, rgba(8,10,13,.42) 10%, rgba(8,10,13,.02) 100%); }
  .carousel__viewport { aspect-ratio: 4 / 3.4; }
  .section { padding-block: 44px 8px; }
  .values { margin-top: 48px; padding-block: 44px 0; }
  .footer__cols { grid-template-columns: 1fr; gap: 6px; }
  .quickbar__label { display: none; }
  .dots button.is-active { width: 44px; }
  .abil__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .videobox__cap { flex-direction: column; align-items: flex-start; }
}
/* 高 DPI 下放大颗粒铺贴尺寸，避免颗粒在物理像素上变得过细 */
@media (min-resolution: 1.8dppx) {
  :root { --grain-size: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* 图片加载失败时的兜底：留出浅灰块而不是塌陷 */
.img-missing { background: var(--bg-alt); min-height: 80px; }

/* ============ 「SetAnchor 的专业能力」============
   参考喜利得的浅色做法：暖浅灰底 + 大片柔和斜角 + 极细分隔线 +
   红色仅作小标题点缀。整体轻盈通透，与页面浅色调统一。
   选择器限定 section#intro —— personal.html 中的 div#intro 不受影响。
*/
section#intro {
    position: relative;
    isolation: isolate;
    border-radius: 18px;
    padding: 52px 48px 56px;
    margin-block: 30px 26px;
    background: #F4F1ED;                       /* 暖浅灰底，带一点米色温度 */
    border: 1px solid rgba(0, 0, 0, 0.055);
    box-shadow: 0 22px 56px -38px rgba(0, 0, 0, 0.40);
    overflow: hidden;
}
/* 大片柔和斜角：边界用较长的过渡带，钝而不抢眼 */
section#intro::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    /* 一条斜线把背景分为两块：左下暖灰、右上更亮 */
    background: linear-gradient(114deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 51.8%,
        rgba(255, 255, 255, 0.88) 52.2%,
        rgba(255, 255, 255, 0.88) 100%);
    pointer-events: none;
}
/* 极细噪点，避免大面积浅色发死 */

/* 标题区 */
section#intro .sechead {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}
section#intro .sechead h2 {
    color: var(--ink);
}
section#intro .sechead p {
    color: var(--body);
}
/* 眉标用红色小字，只做点缀（喜利得的做法） */
section#intro .eyebrow {
    color: var(--red);
}
section#intro .arrowlink {
    color: var(--ink);
}

/* 能力行：只留极细的分隔线 */
/* 列表项：浅色胶囊，白底细边，悬停淡红 */

@media (max-width: 760px) {
    section#intro {
        padding: 32px 20px 36px;
        border-radius: 14px;
    }
}

/* ============ 「SetAnchor 的专业能力」表格 ============
   内容重构为真表格：左列能力分类，右列覆盖内容。
   条目回归朴素列表，去掉胶囊。
*/
.abil-table table {
    width: 100%;
    border-collapse: collapse;
}
.abil-table th {
    text-align: left;
    padding: 0 0 12px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.abil-table td {
    vertical-align: top;
    padding: 26px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.065);
}
.abil-table tr:last-child td {
    border-bottom: 0;
    padding-bottom: 6px;
}
.abil-table td:first-child {
    width: 290px;
    padding-right: 46px;
}
.abil-cat {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
}
.abil-cat span {
    display: block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--red);
}
.abil-table td p {
    margin-bottom: 14px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--body);
}
.abil-table .abil-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 30px;
}
.abil-table .abil-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--body);
}
.abil-table .abil-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 8px;
    height: 8px;
    background: var(--red);
    clip-path: polygon(34% 0, 100% 50%, 34% 100%, 0 100%, 66% 50%, 0 0);
}
/* 悬停：整行轻微提亮，便于横向读 */

@media (max-width: 860px) {
    .abil-table td:first-child {
        width: auto;
        padding-right: 0;
    }
    .abil-table, .abil-table tbody, .abil-table tr, .abil-table td {
        display: block;
        width: 100%;
    }
    .abil-table thead {
        display: none;
    }
    .abil-table td {
        padding: 14px 0 0;
        border-bottom: 0;
    }
    .abil-table tbody tr {
        display: block;
        padding: 22px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.065);
    }
    .abil-table .abil-list {
        grid-template-columns: 1fr;
    }
}


/* 数字：大号加粗，收紧字距 */
/* 数字下方一道极短的红线，做细节 */

@media (max-width: 760px) {
}

/* ============ 「关于开发者」个人介绍 ============
   改为单栏排版：控制行宽保证可读性，首段升级为引导句（大字 + 红色竖线），
   其余为正文，整体留白加大。文字内容未作任何改动。
   选择器限定 #aboutme —— 不影响其它版块。
*/
#aboutme .about {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
#aboutme .about__text {
    max-width: 68ch;
    padding-left: 26px;
    border-left: 2px solid rgba(0, 0, 0, 0.10);
}
/* 引导句：更大、更深，第一眼抓住重点 */
#aboutme .about__lead {
    font-size: 19px !important;
    line-height: 1.75 !important;
    color: var(--ink) !important;
    font-weight: 600;
    margin-bottom: 22px !important;
}
#aboutme .about__text p {
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--body);
    margin-bottom: 16px;
}
#aboutme .about__text p:last-of-type {
    margin-bottom: 26px;
}
/* 按钮：方角细边，克制 */
#aboutme .about__text .btn {
    border-radius: 3px;
}

@media (max-width: 760px) {
    #aboutme .about__text {
        padding-left: 18px;
        border-left-width: 2px;
    }
    #aboutme .about__lead {
        font-size: 16.5px !important;
    }
}

/* ============ 主导航排版（参考喜利得）============
   原来字重 700、颜色偏灰，一行字显得笨重。
   现改为中等字重 + 近黑 + 更宽松的间距，并给当前项一道细下划线。
   .primarynav 仅 index.html 使用，不影响其它页面。
*/
.primarynav > ul {
    gap: 4px;
}
.primarynav > ul > li > a {
    position: relative;
    display: block;
    padding: 20px 22px;
    font-size: 16.5px;
    font-weight: 600;                 /* 参考喜利得：中等偏粗 */
    letter-spacing: 0.01em;
    color: #4C565E;                   /* 近黑，取代原来的偏灰 #434C54 */
    transition: color 0.18s ease;
}
.primarynav > ul > li > a:hover {
    color: var(--red);
}
.primarynav > ul > li > a.is-current {
    color: var(--red);
    font-weight: 700;
}
/* 当前项：底部一道细红线 */

/* 移动端下拉里同步调整 */
@media (max-width: 1000px) {
    .primarynav > ul > li > a {
        padding: 14px 24px;
        font-size: 16px;
    }
}

/* ============ 个人简介右侧：个人标签 ============
   原为六个数字统计（其中「20年+」与 95后 相互矛盾），改为标签云。
   样式沿用站内 .chips 的语汇：小圆角、细边，不用胶囊。
*/
.ptags__title {
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.ptags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ptags__list li {
    padding: 9px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--ink-2);
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 3px;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ptags__list li:hover {
    border-color: rgba(210, 5, 30, 0.42);
    color: var(--red);
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .ptags__list li {
        padding: 8px 13px;
        font-size: 13.5px;
    }
}

/* h1 样式与原来的 h2 逐字一致（SEO 需要 h1，视觉完全不变） */
.slide__copy h1 { font-size: clamp(32px, 3.4vw, 58px); font-weight: 700; letter-spacing: .5px; }
.slide__copy h1 small { display: block; margin-top: 10px; font-size: clamp(15px, 1.15vw, 19px); font-weight: 600; letter-spacing: .4px; color: rgba(255,255,255,.9); }

/* ---------- 视频居中大播放按钮 ---------- */
.videobox__frame { position: relative; line-height: 0; }
.videobox__play {
    position: absolute; left: 50%; top: 50%;
    width: 160px; height: 160px; margin: 0; padding: 0;
    transform: translate(-50%, -50%);
    border: 0; background: none; cursor: pointer; z-index: 3;
    transition: transform .18s ease, opacity .22s ease;
}
.videobox__play svg { display: block; width: 100%; height: 100%;
    filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .45)); }
.videobox__play:hover { transform: translate(-50%, -50%) scale(1.07); }
.videobox__play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.videobox__play.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
    .videobox__play { width: 96px; height: 96px; }
}

/* 视频蒙皮：未播放时压暗，播放时淡出 */
.videobox__frame::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(8, 10, 13, .47);
    transition: opacity .28s ease;
    pointer-events: none; z-index: 2;
}
.videobox__frame.is-playing::after { opacity: 0; }

/* 页脚抖音码 */
.fqr { margin-top: 16px; display: flex; align-items: center; gap: 12px; }
.fqr img {
    width: 64px; height: 64px; display: block;
    background: #fff; border-radius: 4px; padding: 4px;
}
.fqr span { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
@media (max-width: 720px) {
    .fqr img { width: 56px; height: 56px; }
}

/* ---------- 隐藏「为工程师打造的锚固设计支持」区块 ---------- */
#about { display: none !important; }

/* ---------- 下载和系统要求 ---------- */
.dl-intro { font-size: 15px; line-height: 1.85; color: var(--body); max-width: 1080px; margin: 0 0 10px; }
.dl-req { margin-top: 34px; }
.dl-req h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: .3px; margin: 0 0 16px; color: var(--ink); }
.dl-req dl { margin: 0; }
.dl-req div { display: flex; gap: 6px; font-size: 14px; line-height: 2; color: #4A5057; }
.dl-req dt { font-weight: 700; color: #2E3237; flex: 0 0 auto; }
.dl-req dd { margin: 0; }
.dl-note { font-size: 13.5px; line-height: 1.85; color: var(--muted); margin-top: 14px; max-width: 1080px; }
@media (max-width: 900px) {
    }

/* ---------- 下载和系统要求 ---------- */
.dl-intro { font-size: 15px; line-height: 1.9; color: var(--body); max-width: 880px; margin: 0; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.dlcard {
    display: flex; flex-direction: column; position: relative;
    background: #F4F1ED; padding: 32px 34px 34px;
    transition: box-shadow .22s ease, transform .22s ease;
}
.dlcard:hover { box-shadow: 0 16px 36px rgba(20, 26, 33, .10); transform: translateY(-2px); }
.dlcard--soon:hover { box-shadow: 0 16px 36px rgba(20, 26, 33, .05); }
.dlcard__head { margin-bottom: 16px; }
.dlcard__tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
    color: var(--red); background: rgba(210, 5, 30, .07); padding: 3px 9px; margin-bottom: 12px;
}
.dlcard__tag--gray { color: #7C878E; background: #F0F2F4; }
.dlcard h4 { font-size: 21px; font-weight: 700; letter-spacing: .2px; margin: 0; color: #242A30; }
.dlcard h4 span { display: block; font-size: 13px; font-weight: 500; letter-spacing: .3px; color: #8B959C; margin-top: 7px; }
.dlcard p { font-size: 14px; line-height: 1.9; color: #545C63; margin: 0 0 18px; }
.dlcard__list { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.dlcard__list li {
    position: relative; padding-left: 18px; font-size: 13.5px; line-height: 2; color: #6A737A;
}
.dlcard__list li::before {
    content: ""; position: absolute; left: 2px; top: 13px;
    width: 5px; height: 5px; border-radius: 50%; background: #C9CFD4;
}
.dlcard .btn { align-self: flex-start; }
.btn--disabled {
    background: #EDEFF1; color: #A7B0B7; cursor: not-allowed;
    box-shadow: none; pointer-events: none;
}
.dl-req { margin-top: 40px; }
.dl-req h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 700; letter-spacing: .3px; margin: 0 0 16px; color: var(--ink); }
.dl-req dl { margin: 0; }
.dl-req div { display: flex; gap: 6px; font-size: 14px; line-height: 2; color: #4A5057; }
.dl-req dt { font-weight: 700; color: #2E3237; flex: 0 0 auto; }
.dl-req dd { margin: 0; }
.dl-note { font-size: 13.5px; line-height: 1.9; color: var(--muted); margin-top: 16px; max-width: 1000px; }
@media (max-width: 900px) {
    .dl-grid { grid-template-columns: 1fr; }
    .dlcard { padding: 24px 22px 26px; }
}
