/*
Theme Name: YCClear Modern
Theme URI: http://www.ycclear.com/
Author: 个人工作室
Description: 银川晓清保洁，全屏首屏与分组版式。
Version: 4.0.0
Text Domain: ycclear-modern
*/

:root {
  --ink: #222;
  --muted: #666;
  --line: #e6e6e6;
  --blue: #6d7fe0;
  --blue-deep: #4d62c8;
  --bg: #f4f5f7;
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }
button, input { font-family: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 80px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.admin-bar .site-header { top: 32px; }
.is-inner { padding-top: 80px; }
.admin-bar.is-inner { padding-top: 112px; }
.nav-shell {
  width: 100%;
  height: 80px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 32px;
  background: transparent;
}
.brand { display: flex; align-items: center; gap: 10px; color: #1d1d1d; flex: 0 0 auto; }
.brand strong { font-size: 16px; font-weight: 650; letter-spacing: 0.04em; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #7d8ae8, #3f56c6);
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav a {
  display: block;
  padding: 8px 12px;
  color: #333;
  font-size: 15px;
  white-space: nowrap;
}
.primary-nav a.is-active,
.primary-nav a:hover { color: var(--blue-deep); }
.header-phone {
  flex: 0 0 auto;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 15px;
  cursor: pointer;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #1b2430;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.28), rgba(10, 16, 28, 0.18) 40%, rgba(10, 16, 28, 0.45));
  z-index: 1;
}
.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
}
.hero-text.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-text h1 {
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.hero-text p {
  margin-top: 16px;
  font-size: 28px;
  letter-spacing: 0.22em;
  color: rgba(226, 232, 255, 0.95);
}
.about-block,
.case-block,
.partner-block { padding: 88px 0 72px; text-align: center; }
.biz-block { padding: 88px 0 80px; text-align: center; background: var(--bg); }
.about-inner {
  position: relative;
  padding: 12px 0 8px;
}
.about-inner::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 520px;
  height: 260px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(120, 140, 180, 0.28) 1.2px, transparent 1.4px) 0 0 / 14px 14px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 72%);
  pointer-events: none;
}
h2 { position: relative; font-size: 36px; font-weight: 650; letter-spacing: 0.08em; }
.line {
  display: block;
  width: 42px;
  height: 3px;
  margin: 14px auto 18px;
  background: var(--blue);
}
.sec-lead, .about-inner p {
  max-width: 760px;
  margin: 0 auto;
  color: #444;
  font-size: 16px;
  line-height: 1.9;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 44px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue-deep);
  background: #fff;
}
.pill:hover { background: var(--blue); color: #fff; }
.about-block .pill { position: relative; }

.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
  text-align: left;
}
.biz-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  border-radius: 16px;
  background: #243044;
  color: #fff;
}
.biz-photo {
  position: absolute;
  inset: -8%;
  background: center / cover no-repeat;
  transform: scale(1);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.biz-card:hover .biz-photo { transform: scale(1.06); }
.biz-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 28, 48, 0.18), rgba(16, 22, 40, 0.7));
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.biz-card:hover .biz-mask { opacity: 0.78; }
.biz-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.biz-copy em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}
.biz-copy strong { font-size: 28px; font-weight: 600; }
.biz-copy i { width: 28px; height: 3px; background: #8ee08a; }
.biz-copy small { color: rgba(255, 255, 255, 0.88); font-size: 14px; line-height: 1.6; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
  text-align: left;
}
.case-card { transition: transform 0.4s ease; }
.case-card:hover { transform: translateY(-8px); }
.case-card a { display: block; color: #333; }
.case-photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.case-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 58, 0) 42%, rgba(18, 32, 64, 0.42));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.case-card:hover .case-photo::after { opacity: 1; }
.case-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: #eee;
  transition: transform 0.55s ease;
}
.case-card:hover img { transform: scale(1.08); }
.case-card a:hover h3 { color: var(--blue-deep); }
.case-card h3 { margin-top: 14px; font-size: 16px; font-weight: 600; line-height: 1.5; transition: color 0.3s ease; }
.case-card p { margin-top: 8px; color: #777; font-size: 14px; line-height: 1.7; }
.case-card time { display: block; margin-top: 10px; color: var(--blue); font-size: 13px; }
.case-block .pill { margin-top: 36px; }

.partner-block {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 560px 320px at 6% 0%, rgba(109, 127, 224, 0.22), transparent 72%),
    radial-gradient(ellipse 520px 300px at 98% 100%, rgba(142, 224, 138, 0.18), transparent 70%),
    linear-gradient(180deg, #f7f8fc 0%, #e6ecf8 100%);
}
.partner-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(77, 98, 200, 0.38) 1.1px, transparent 1.4px) 0 0 / 18px 18px;
  mask-image: radial-gradient(ellipse at 50% 46%, #000 16%, transparent 76%);
  opacity: 0.4;
}
.partner-block > .wrap { position: relative; z-index: 1; }

.partner-banner {
  position: relative;
  min-height: 240px;
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #243044 center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
}
.partner-banner::before,
.partner-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.partner-banner::before {
  background:
    radial-gradient(circle at 16% 28%, rgba(109, 127, 224, 0.55), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(142, 224, 138, 0.28), transparent 36%),
    linear-gradient(118deg, rgba(16, 24, 52, 0.82), rgba(32, 48, 96, 0.58) 52%, rgba(14, 22, 44, 0.84));
}
.partner-banner::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 1px, transparent 1.3px) 0 0 / 22px 22px;
  mask-image: radial-gradient(circle at 50% 45%, #000 8%, transparent 70%);
  opacity: 0.35;
}
.partner-banner ul, .partner-banner .pill { position: relative; z-index: 1; }
.partner-banner ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.partner-banner li { color: #fff; font-size: 18px; letter-spacing: 0.06em; }
.pill-light { border-color: #fff; color: #fff; background: transparent; }
.pill-light:hover { background: #fff; color: var(--blue-deep); }

.site-footer { background: #2c2f33; color: #c8c8c8; padding: 48px 0 0; }
.site-footer a { color: #c8c8c8; }
.site-footer a:hover { color: #fff; }
.site-footer h3 { margin: 0 0 16px; color: #fff; font-size: 16px; font-weight: 600; }
.site-footer p { margin: 0 0 6px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 40px; padding-bottom: 36px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer-phone { display: block; margin: 8px 0 12px; color: #fff !important; font-size: 26px; font-weight: 600; }
.footer-keys { color: #9a9a9a; font-size: 12px; line-height: 1.7; }
.footer-bar { background: #24262a; color: #9a9a9a; font-size: 12px; padding: 12px 0; text-align: center; }
.footer-bar a { color: #9a9a9a; }

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.page-hero h1 { font-size: 28px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.page-hero h1::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  background: var(--blue);
}
.section { padding: 28px 0 64px; }
.sheet, .sheet-list { background: #fff; }
.entry-meta { margin: 0 0 16px; color: var(--muted); }
.entry-content { overflow-x: auto; color: #444; font-size: 15px; }
.entry-content p { margin: 0 0 1rem; }
.entry-content img { margin: 8px 0; height: auto; }
.news-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.news-list a { color: #333; }
.news-list a:hover { color: var(--blue-deep); }
.news-list time { flex-shrink: 0; color: #999; font-size: 13px; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot-grid a { display: block; color: #333; transition: transform 0.45s ease; }
.shot-grid a:hover { transform: translateY(-8px); }
.shot-photo {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.shot-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 28, 58, 0) 46%, rgba(18, 32, 64, 0.4));
  opacity: 0;
  transition: opacity 0.45s ease;
}
.shot-grid a:hover .shot-photo::after { opacity: 1; }
.shot-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #eee;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.shot-grid a:hover img { transform: scale(1.06); }
.shot-grid-tall img { height: 280px; }
.shot-title { display: block; padding: 10px 2px 0; transition: color 0.3s ease; }
.shot-grid a:hover .shot-title { color: var(--blue-deep); }

.mobile-callbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--blue-deep);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .nav-shell { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 8px 12px; }
  .hero-text h1 { font-size: 36px; letter-spacing: 0.12em; }
  .hero-text p { font-size: 18px; letter-spacing: 0.08em; }
  .biz-grid, .case-grid, .footer-grid, .shot-grid { grid-template-columns: 1fr; }
  .mobile-callbar { display: block; }
  body { padding-bottom: 52px; }
  h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-card, .case-card img, .case-photo::after, .case-card h3,
  .biz-photo, .biz-mask,
  .shot-grid a, .shot-grid img, .shot-photo::after, .shot-title { transition: none; }
  .case-card:hover, .shot-grid a:hover { transform: none; }
  .case-card:hover img, .biz-card:hover .biz-photo, .shot-grid a:hover img { transform: none; }
}
