/* ============ HOU7 Portfolio ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #16161a;
  --ink-soft: #6b6b70;
  --line: #e8e8e4;
  --accent: #ff4d2e;
  --radius: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { 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.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
em { font-style: normal; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  border-bottom: none;
}
.header-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; height: 100px;
  transition: height .3s ease;
}
.logo {
  font-size: 28px; font-weight: 900; letter-spacing: 1px;
  transition: font-size .3s ease;
}
/* 滑动后置顶：导航栏压缩到 50px，文字同步缩小 */
.site-header.scrolled .header-inner { height: 50px; gap: 32px; }
.site-header.scrolled .logo { font-size: 22px; }
.logo em { color: inherit; }
/* 导航：与首屏右栏（你好，我是侯琦）同一起点，4 个分类等距分布，联系靠最右 */
.nav { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) {
  .header-inner { display: flex; justify-content: space-between; }
  .nav { gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
}
.nav-link { font-size: 28px; color: var(--ink-soft); transition: color .2s, font-size .3s; position: relative; }
.site-header.scrolled .nav-link { font-size: 16px; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center; transition: transform .25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.menu-btn { display: none; background: none; border: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 0; overflow: hidden; }
.hero-kicker {
  font-size: 13px; letter-spacing: 4px; color: var(--accent);
  font-weight: 600; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900; line-height: 1.12; letter-spacing: 2px;
}
/* 首屏文字：左标题 / 右介绍（左右排版） */
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: end;
}
.hero-sub {
  margin-top: 0; font-size: 17px; color: var(--ink-soft); max-width: 560px;
  line-height: 1.9;
}
.hero-sub strong { color: var(--ink); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .hero-sub { margin-top: 0; }
}
.hero-stats {
  display: flex; gap: 64px; margin-top: 56px;
}
.stat strong { font-size: 40px; font-weight: 900; }
.stat span { font-size: 20px; font-weight: 700; color: var(--accent); }
.stat i { display: block; font-style: normal; font-size: 13px; color: var(--ink-soft); }

.hero-marquee {
  margin-top: 90px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  animation: marquee 24s linear infinite;
  font-weight: 700; font-size: 15px; letter-spacing: 2px;
}
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: 1px;
}
.section-head h2 em {
  font-size: 14px; color: var(--ink-soft); font-weight: 500;
  letter-spacing: 3px; margin-left: 14px; text-transform: uppercase;
}

/* ---------- Filters ---------- */
.work { background: var(--bg); }
/* 首页所有板块（导航 / 首屏 / 案例 / 服务 / 关于 / 联系 / 页脚）
   统一使用与「精选案例」相同的栅格宽度与左右边距，保证全站左缘对齐 */
.hero .container,
.hero-intro .container,
.work .container,
.services .container,
.about .container,
.contact .container,
.header-inner,
.footer-inner {
  width: 100%;
  max-width: 1560px;
  padding-left: 22px;
  padding-right: 22px;
}
/* 精选案例：标题与筛选按钮同一行，筛选右对齐 */
.work .section-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; margin-bottom: 60px;
  border-top: 1px solid #888888; padding-top: 15px;
}
.filters {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  margin: 0; justify-content: space-between; align-items: center;
}
.filter-btn {
  padding: 0; border: none; border-radius: 0;
  background: none; font-size: 22px; cursor: pointer; color: var(--ink-soft);
  font-family: var(--font); transition: color .25s;
}
.filter-btn:hover { color: var(--ink); }
.filter-btn.active { background: none; color: var(--ink); font-weight: 600; }

/* ---------- Case Grid ---------- */
.case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 24px;
}
.case-card { cursor: pointer; margin-bottom: 20px; animation: fadeUp .5s ease both; }
.case-card.hide { display: none; }
.case-cover {
  position: relative; aspect-ratio: 3/2; border-radius: 0;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.case-cover .cover-logo {
  font-size: clamp(36px, 4vw, 56px); font-weight: 900; color: #fff;
  letter-spacing: 4px;
}
.case-cover .cover-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.case-card:hover .cover-img { transform: scale(1.1); }
.case-cover .cover-arrow {
  position: absolute; right: 16px; bottom: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; opacity: 0; transform: translateY(8px);
  transition: all .3s ease;
}
.case-card:hover .cover-arrow { opacity: 1; transform: translateY(0); }
.case-info { padding: 14px 2px 0; }
.case-info h3 {
  font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink);
  line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.case-sub {
  font-size: 18px; font-weight: 300; color: #a6a6ad;
  line-height: 1.5; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-more { text-align: center; margin-top: 72px; }
.work-more p { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
.btn-outline {
  display: inline-block; padding: 14px 44px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 700; transition: all .25s;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
/* 服务范围：左右布局——左标题、右服务列表 */
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px 64px;
  align-items: start;
}
.services-grid .section-head { margin: 0; }
.service-list { border-top: 1px solid var(--line); }
.service-item {
  display: flex; gap: 32px; align-items: flex-start;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease, background .3s ease;
}
.service-item:hover { padding-left: 24px; background: #fff; }
.service-no { font-size: 14px; font-weight: 800; color: var(--accent); padding-top: 6px; }
.service-item h3 { font-size: 22px; font-weight: 800; }
.service-item p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; max-width: 640px; }
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- About ---------- */
.about { background: var(--ink); color: #fff; }
/* 关于我页面（about.html）的样式已内联在该文件内，单独维护 */
.about .section-head h2 em { color: rgba(255,255,255,.5); }
.about-inner {
  display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start;
}
.about-card {
  background: linear-gradient(145deg, #2a2a30, #1d1d22);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px; padding: 48px 36px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.about-logo {
  width: 110px; height: 110px; border-radius: 28px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; font-weight: 900;
  box-shadow: 0 16px 40px -12px rgba(255,77,46,.55);
}
.about-meta { text-align: center; }
.about-meta strong { display: block; font-size: 22px; letter-spacing: 2px; }
.about-meta span { font-size: 13px; color: rgba(255,255,255,.55); }
.about-text p { color: rgba(255,255,255,.75); margin-bottom: 18px; font-size: 16px; }
.about-points { list-style: none; margin-top: 26px; }
.about-points li {
  padding: 10px 0; color: rgba(255,255,255,.85);
  border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 15px;
}

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact .container { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 8px; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.contact-title { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: 2px; }
.contact-sub { color: var(--ink-soft); margin-top: 18px; max-width: 420px; line-height: 1.8; }
.contact-right { display: flex; flex-direction: column; gap: 40px; }
.contact-group i {
  display: block; font-style: normal; font-size: 14px; font-weight: 600;
  color: var(--ink); margin-bottom: 10px;
}
.contact-group p { color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
/* 联系板块：全部文字行间距 1.3 */
.contact-title, .contact-sub, .contact-group i, .contact-group p, .contact-mail { line-height: 1.3; }
.contact-mail {
  font-size: 14px; color: var(--ink-soft);
  transition: color .25s;
}
.contact-mail:hover { color: var(--accent); }
.contact-links {
  margin-top: 30px; color: var(--ink-soft);
  display: flex; justify-content: center; gap: 14px; font-size: 14px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* 首页页脚：与联系板块两栏栅格对齐，© 文字与业务咨询/合作邮箱同一起点 */
.footer-inner.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
}
.footer-grid .footer-right {
  grid-column: 2; /* 固定在右栏：© 对齐业务咨询/合作邮箱，回到顶部到页面最右 */
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
}
@media (max-width: 640px) {
  .footer-inner.footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-right { grid-column: 1; flex-direction: column; align-items: flex-start; }
}

/* ---------- Footer ---------- */
/* 悬浮回到顶部按钮（仅箭头，无文字） */
.back-top {
  /* 右边与「联系我们」内容右边缘对齐；距视口底部 200px */
  position: fixed;
  right: max(22px, calc(50% - 838px)); /* 内容区右边缘：50% 视口 - 860px + 22px 内边距 */
  bottom: 200px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: #efefef; color: #16161a;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -12px rgba(22,22,26,.35);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s ease;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { background: #e2e2e2; }
@media (max-width: 640px) {
  .back-top {
    right: 14px; bottom: 200px; width: 42px; height: 42px;
  }
}
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--ink-soft);
}
.footer-logo { font-weight: 900; font-size: 18px; color: var(--ink); }
.footer-logo em { color: inherit; }
.to-top:hover { color: var(--ink); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-mask { position: absolute; inset: 0; background: rgba(22,22,26,.6); backdrop-filter: blur(6px); }
.modal-body {
  position: relative; width: min(720px, 92vw);
  background: #fff; border-radius: 24px; overflow: hidden;
  transform: translateY(24px) scale(.97); transition: transform .35s ease;
}
.modal.open .modal-body { transform: translateY(0) scale(1); }
.modal-cover { height: 300px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.modal-cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-cover .cover-logo { font-size: 64px; font-weight: 900; color: #fff; letter-spacing: 6px; }
.modal-info { padding: 36px 40px 44px; }
.modal-info h3 { font-size: 26px; font-weight: 900; }
.modal-info p { color: var(--ink-soft); margin-top: 14px; font-size: 15px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.modal-tags span {
  font-size: 12px; background: var(--bg-soft); color: var(--ink-soft);
  padding: 5px 12px; border-radius: 6px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.92);
  font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------- Reveal 动画 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: all .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (min-width: 1560px) {
  .hero .container,
  .hero-intro .container,
  .work .container,
  .services .container,
  .about .container,
  .contact .container,
  .header-inner,
  .footer-inner { max-width: 1720px; }
}
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 38px 18px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { max-width: 320px; }
  .hero-stats { gap: 40px; }
  .filter-btn { padding: 9px 16px; font-size: 13px; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero .container,
  .work .container,
  .services .container,
  .about .container,
  .contact .container,
  .header-inner,
  .footer-inner { padding-left: 14px; padding-right: 14px; }
  .work .section-head { grid-template-columns: 1fr; gap: 16px; align-items: flex-start; margin-bottom: 30px; }
  .filters { justify-content: flex-start; }
  .filters { width: 100%; margin-left: 0; justify-content: flex-start; gap: 8px; }
  .filter-btn { padding: 8px 14px; font-size: 12.5px; }
  .nav {
    position: fixed; top: 100px; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .site-header.scrolled .nav { top: 50px; }
  .nav.open { max-height: 380px; }
  .nav-link { padding: 16px 24px; }
  .menu-btn { display: block; }
  .case-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  section { padding: 70px 0; }
  .service-item { flex-direction: column; gap: 8px; }
  .footer-inner { flex-direction: column; gap: 8px; }
}

/* ---------- 作品详情页 ---------- */
.detail { padding: 130px 0 90px; }

/* 详情页：顶部导航不固定，随页面滚动 */
body.page-detail .site-header { position: static; }
body.page-detail .detail { padding-top: 36px; }
body.page-detail .site-header.scrolled { border-bottom-color: transparent; }
.detail-back {
  display: inline-block; font-size: 14px; color: var(--ink-soft);
  margin-bottom: 40px; transition: color .2s;
}
.detail-back:hover { color: var(--accent); }
/* 详情页头部：左标题 / 右详细介绍 */
.detail-head {
  display: grid; grid-template-columns: 5fr 7fr; gap: 36px 72px;
  align-items: start; margin-bottom: 56px;
}
.detail-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--accent); background: #fff1ee;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.detail-title {
  font-size: clamp(30px, 4vw, 48px); font-weight: 900;
  line-height: 1.2; letter-spacing: 1px;
}
.detail-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--ink-soft);
  margin-top: 10px; font-weight: 500;
}
.detail-desc {
  font-size: 16px; line-height: 1.3; letter-spacing: 0; font-weight: 500;
  color: #3d3d42; margin-top: 4px;
}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-tags span {
  font-size: 12px; color: var(--ink-soft);
  background: var(--bg-soft); padding: 6px 12px; border-radius: 6px;
}
.detail-time {
  display: flex; align-items: baseline; gap: 14px;
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.detail-time i {
  font-style: normal; font-size: 12px; color: var(--ink-soft); letter-spacing: 1px;
  display: inline-flex; align-items: center;
}
/* 「制作时间」前的大圆点：直径与字号相同 */
.detail-time i::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  background: var(--ink); margin-right: 8px; flex: 0 0 auto;
}
.detail-time strong { font-size: 15px; font-weight: 700; }
.detail-gallery { display: flex; flex-direction: column; gap: 0; }
.gallery-item {
  margin: 0; border-radius: 0; overflow: visible;
  background: transparent; box-shadow: none;
}
.gallery-item img { width: 100%; display: block; cursor: zoom-in; border-radius: 0; box-shadow: none; }
.detail-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 80px; border-top: 1px solid var(--line); padding-top: 40px;
}
.detail-nav-item {
  display: block; padding: 22px 24px; border: 1px solid var(--line);
  border-radius: 14px; transition: all .25s;
}
.detail-nav-item:hover { border-color: var(--ink); transform: translateY(-2px); }
.detail-nav-item span { font-size: 12px; color: var(--ink-soft); }
.detail-nav-item strong { display: block; font-size: 16px; margin-top: 6px; }
.detail-nav-item.next { text-align: right; }

/* 图片放大 */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(12,12,14,.94);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px; overflow: auto; cursor: zoom-out;
}
.lightbox img { max-width: 1100px; width: 100%; border-radius: 8px; }

/* 空状态 */
.empty-tip {
  color: var(--ink-soft); font-size: 14px; text-align: center;
  border: 1px dashed var(--line); border-radius: 14px; padding: 40px;
}

@media (max-width: 640px) {
  .detail { padding-top: 110px; }
  body.page-detail .detail { padding-top: 28px; }
  .detail-head { grid-template-columns: 1fr; gap: 28px; }
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav-item.next { text-align: left; }
}

/* 卡片作为链接 */
a.case-card { display: block; color: inherit; }

/* ================= 首屏：流动极光（绿色调） ================= */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 50% -10%, #071710 0%, #04100b 45%, #030806 100%);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 120px 0 0;
  overflow: hidden;
}
/* 首屏背景：石纹图本身已足够暗，不叠加压暗滤镜与遮罩，保持原图亮度 */
.hero-video,
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
  display: block;
}
/* 首屏简介（banner 内，左右布局，垂直居中） */
/* 个人简介（banner 下方，白底左右布局） */
.hero-intro { background: var(--bg); padding: 141px 0 29px; }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: start;
  width: 100%;
}
.intro-name {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800; line-height: 1.3; letter-spacing: 1px;
  color: var(--ink);
}
.hero-intro .intro-text,
.hero-intro .intro-right > div {
  font-size: 32px; line-height: 1.3; letter-spacing: 1px; color: var(--ink); font-weight: 400; max-width: 760px;
}
.hero-intro .intro-text strong { color: var(--ink); }
/* 简介靠右：与导航「作品works」同列起点 */
.intro-right { grid-column: 2; }
.hero-intro .hero-cta { margin-top: 36px; }
.hero-intro .hero-btn { background: var(--ink); color: #fff; }
.hero-intro .hero-btn:hover { box-shadow: 0 16px 36px -14px rgba(22,22,26,.5); }
.hero-intro .hero-btn.ghost { background: transparent; color: var(--ink); border-color: rgba(22,22,26,.4); }
.hero-intro .hero-btn.ghost:hover { background: rgba(22,22,26,.06); border-color: var(--ink); }
@media (max-width: 900px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero-intro { padding: 56px 0 20px; }
  /* 手机端：单列，简介文字左侧保留 70px 留白，按钮贴回左缘 */
  .intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .intro-right { grid-column: auto; padding-left: 70px; }
  .hero-intro .intro-text,
  .hero-intro .intro-right > div { font-size: 25px; padding-left: 0; }
}
.hero .container {
  position: relative; z-index: 3;
  width: 100%; flex: 1 1 auto; min-width: 0;
  margin-left: auto; margin-right: auto;
  text-align: left; align-items: flex-start;
  display: flex; flex-direction: column;
}
/* 暗色首屏上的文字 */
.hero .hero-title {
  color: #fff;
}
.hero .hero-sub { color: rgba(255,255,255,.72); }
.hero .hero-sub strong { color: #fff; }
.hero-kicker { color: #7fb6ff; }
.hero-stats .stat strong { color: #fff; }
.hero-stats .stat i { color: rgba(255,255,255,.55); }
.hero-marquee { border-color: rgba(255,255,255,.14); }
.hero-marquee .marquee-track { color: rgba(255,255,255,.85); }

/* CTA 按钮 */
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 46px; }
.hero-btn {
  display: inline-block; padding: 15px 38px; border-radius: 999px;
  background: #fff; color: #0a0b14; font-weight: 800; font-size: 15px;
  letter-spacing: .5px; transition: transform .25s, box-shadow .25s, background .25s;
}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -14px rgba(255,255,255,.5); }
.hero-btn.ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.hero-btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.hero-scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 4px; color: rgba(255,255,255,.4);
  z-index: 3; animation: scrollFloat 2.6s ease-in-out infinite;
}
@keyframes scrollFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: .45; }
  50% { transform: translate(-50%, 8px); opacity: .85; }
}

/* 顶部导航：暗色首屏状态下白字透明 */
.site-header.dark-hero {
  background: transparent; backdrop-filter: none;
  border-bottom: none;
}
.site-header.dark-hero .logo { color: #fff; }
.site-header.dark-hero .logo em { color: inherit; }
.site-header.dark-hero .nav-link { color: rgba(255,255,255,.78); }
.site-header.dark-hero .nav-link:hover,
.site-header.dark-hero .nav-link.active { color: #fff; }
.site-header.dark-hero .menu-btn span { background: #fff; }
/* 轮播切到浅色海报时：导航自动换成深色文字（不加底色），保证可读 */
.site-header.dark-hero .logo { transition: color .35s ease; }
.site-header.dark-hero.light-slide:not(.scrolled) .logo { color: var(--ink); }
.site-header.dark-hero.light-slide:not(.scrolled) .nav-link { color: var(--ink-soft); }
.site-header.dark-hero.light-slide:not(.scrolled) .nav-link:hover,
.site-header.dark-hero.light-slide:not(.scrolled) .nav-link.active { color: var(--ink); }
.site-header.dark-hero.light-slide:not(.scrolled) .menu-btn span { background: var(--ink); }
.site-header.dark-hero.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
}
.site-header.dark-hero.scrolled .logo { color: var(--ink); }
.site-header.dark-hero.scrolled .nav-link { color: var(--ink-soft); }
.site-header.dark-hero.scrolled .nav-link:hover,
.site-header.dark-hero.scrolled .nav-link.active { color: var(--ink); }
.site-header.dark-hero.scrolled .menu-btn span { background: var(--ink); }

@media (max-width: 640px) {
  .hero { min-height: 88vh; padding: 130px 0 90px; }
  .hero .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .site-header.dark-hero .nav.open { background: #0a0c16; }
  .site-header.dark-hero .nav.open .nav-link { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.1); }
}

/* ===== 在线留言（云服务入库） ===== */
.inquiry-form { display: flex; flex-direction: column; gap: 14px; margin-top: 2px; }
.inquiry-form input,
.inquiry-form textarea {
  border: none; border-bottom: 1px solid #d9d9d9; background: transparent;
  padding: 8px 0; font-size: 15px; font-family: inherit; color: var(--ink);
  border-radius: 0; outline: none; resize: vertical; transition: border-color .2s;
}
.inquiry-form input:focus,
.inquiry-form textarea:focus { border-bottom-color: var(--ink); }
.inquiry-form ::placeholder { color: #b5b5b5; }
.inquiry-submit {
  align-self: flex-start; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 10px 28px; font-size: 14px; letter-spacing: 1px; cursor: pointer; transition: opacity .2s;
}
.inquiry-submit:hover { opacity: .85; }
.inquiry-submit[disabled] { opacity: .5; cursor: default; }
.inquiry-tip { font-size: 13px; color: var(--ink-soft); min-height: 18px; margin: 0; line-height: 1.4; }
.inquiry-tip.ok { color: #1a7f37; }
.inquiry-tip.err { color: #c0392b; }
