/* hyw design system adapted for Mag / fulkidc */
:root {
  --hyw-bg: #f5f5f7;
  --hyw-surface: #ffffff;
  --hyw-text: #1d1d1f;
  --hyw-text-secondary: #6e6e73;
  --hyw-text-muted: #a1a1a6;
  --hyw-border: rgba(0, 0, 0, 0.06);
  --hyw-glass-bg: rgba(255, 255, 255, 0.55);
  --hyw-glass-border: rgba(255, 255, 255, 0.65);
  --hyw-glass-shadow: rgba(0, 0, 0, 0.04);
}

html { scroll-behavior: smooth; }
body.hyw-body {
  margin: 0;
  background: var(--hyw-bg) !important;
  color: var(--hyw-text);
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.hyw-body .header { display: none !important; }
/* 旧页脚区块在子页面保留；首页由 hyw-footer 接管 */
body.hyw-home .foot,
body.hyw-home .footer { display: none !important; }

.hyw-wrap { min-height: 100vh; background: var(--hyw-bg); color: var(--hyw-text); }
body.hyw-body:not(.hyw-home) .hyw-wrap { padding-top: 72px; }

/* Navbar */
.hyw-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 8px 0;
  background: rgba(245,245,247,0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--hyw-border);
}
.hyw-nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hyw-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hyw-text); font-weight: 600; font-size: 14px; }
.hyw-brand img { width: 28px; height: 28px; object-fit: contain; }
.hyw-nav-left { display: flex; align-items: center; gap: 24px; min-width: 0; }
.hyw-nav-divider { width: 1px; height: 16px; background: var(--hyw-border); }
.hyw-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hyw-menu > li { position: relative; }
.hyw-menu > li > a {
  text-decoration: none; color: var(--hyw-text-secondary); font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.hyw-menu > li > a:hover { color: var(--hyw-text); }
.hyw-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--hyw-border); border-radius: 12px; padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,.08); margin-top: 10px; z-index: 20;
}
.hyw-menu > li:hover > .hyw-dropdown { display: block; }
.hyw-dropdown a {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--hyw-text-secondary); font-size: 13px;
}
.hyw-dropdown a:hover { background: #f5f5f7; color: var(--hyw-text); }
.hyw-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hyw-btn-login {
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: #fff; color: #000; text-decoration: none; border: 1px solid var(--hyw-border);
}
.hyw-btn-register {
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: #000; color: #fff; text-decoration: none;
}
.hyw-nav-toggle {
  display: none; border: 0; background: transparent; width: 36px; height: 36px; cursor: pointer;
}
.hyw-nav-toggle span { display: block; height: 2px; background: #111; margin: 6px 0; border-radius: 2px; }

@media (max-width: 900px) {
  .hyw-nav-divider, .hyw-menu { display: none; }
  .hyw-nav-toggle { display: block; }
  .hyw-menu.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 64px; left: 16px; right: 16px;
    background: #fff; border: 1px solid var(--hyw-border); border-radius: 16px; padding: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
  }
  .hyw-menu.open > li > a { display: block; padding: 12px; }
  .hyw-menu.open .hyw-dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px 12px; margin: 0; }
}

/* Hero */
.hyw-hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding: 112px 24px 48px;
}
.hyw-hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.hyw-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hyw-orb-1 { width: 500px; height: 500px; top: -10%; right: -5%; background: rgba(0,0,0,.03); }
.hyw-orb-2 { width: 400px; height: 400px; bottom: 10%; left: -8%; background: rgba(0,0,0,.02); }
.hyw-orb-3 { width: 300px; height: 300px; top: 40%; right: 20%; background: rgba(0,0,0,.02); }
.hyw-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}
.hyw-hero-inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%; }
.hyw-hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 24px; max-width: 640px;
}
.hyw-hero p {
  font-size: 17px; line-height: 1.7; color: var(--hyw-text-secondary); max-width: 480px; margin: 0 0 40px;
}
.hyw-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hyw-cta-primary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 16px;
  background: var(--hyw-text); color: var(--hyw-bg); text-decoration: none; font-weight: 600; font-size: 14px;
}
.hyw-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 16px;
  background: var(--hyw-glass-bg); border: 1px solid var(--hyw-border); color: var(--hyw-text);
  text-decoration: none; font-weight: 600; font-size: 14px; backdrop-filter: blur(12px);
}
.hyw-scroll-hint {
  position: relative; z-index: 2; margin-top: auto; padding-top: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--hyw-text-muted);
}
.hyw-scroll-hint .line { width: 1px; height: 32px; background: currentColor; opacity: .4; }
.hyw-scroll-hint span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* Sections */
.hyw-section { padding: 80px 24px; }
.hyw-container { max-width: 1120px; margin: 0 auto; }
.hyw-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.hyw-label .bar { width: 32px; height: 1px; background: var(--hyw-text-muted); }
.hyw-label span {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--hyw-text-muted);
}
.hyw-section h2 {
  font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px;
}
.hyw-section .desc { color: var(--hyw-text-secondary); max-width: 520px; margin: 0 0 40px; line-height: 1.7; }

.hyw-glass {
  background: var(--hyw-glass-bg);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--hyw-glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px var(--hyw-glass-shadow), inset 0 1px 0 rgba(255,255,255,.1);
}

.hyw-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; padding: 40px 32px;
}
@media (min-width: 768px) { .hyw-stats { grid-template-columns: repeat(4, 1fr); gap: 48px; } }
.hyw-stats .num { font-size: clamp(28px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.hyw-stats .lab { font-size: 12px; color: var(--hyw-text-muted); font-weight: 500; }

.hyw-feat-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { .hyw-feat-grid { grid-template-columns: repeat(3, 1fr); } }
.hyw-feat-card {
  background: #fafafa; border: 1px solid #f0f0f0; border-radius: 16px; padding: 24px;
}
.hyw-feat-card .icon {
  width: 36px; height: 36px; border-radius: 10px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #555;
}
.hyw-feat-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.hyw-feat-card p { font-size: 12px; color: var(--hyw-text-secondary); line-height: 1.7; margin: 0; }

.hyw-about {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
@media (min-width: 900px) { .hyw-about { grid-template-columns: 1fr 1fr; gap: 64px; } }
.hyw-quote { padding: 36px; }
.hyw-quote p { font-size: 16px; font-style: italic; line-height: 1.7; margin: 0 0 28px; opacity: .9; }
.hyw-quote .who { display: flex; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid var(--hyw-border); }
.hyw-quote .who img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.hyw-quote .who strong { display: block; font-size: 14px; }
.hyw-quote .who span { font-size: 12px; color: var(--hyw-text-muted); }

.hyw-cta-box {
  background: #fafafa; border: 1px solid #eee; border-radius: 24px; padding: 48px 32px; text-align: center;
}
.hyw-cta-box h2 { margin-bottom: 12px; }
.hyw-cta-box p { color: var(--hyw-text-secondary); margin: 0 0 28px; font-size: 14px; }

/* Footer */
.hyw-footer {
  padding: 64px 24px 32px; border-top: 1px solid var(--hyw-border); background: var(--hyw-bg);
}
.hyw-footer-top {
  display: flex; flex-direction: column; gap: 40px; margin-bottom: 48px;
}
@media (min-width: 768px) {
  .hyw-footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.hyw-footer-brand p { color: var(--hyw-text-muted); font-size: 14px; max-width: 280px; line-height: 1.7; margin: 12px 0 0; }
.hyw-footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.hyw-footer-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hyw-text-muted); margin: 0 0 12px;
}
.hyw-footer-col a, .hyw-footer-col span {
  display: block; color: var(--hyw-text-secondary); text-decoration: none; font-size: 14px; margin-bottom: 10px;
}
.hyw-footer-col a:hover { color: var(--hyw-text); }
.hyw-footer-bottom {
  display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--hyw-border);
  font-size: 12px; color: var(--hyw-text-muted);
}
@media (min-width: 768px) {
  .hyw-footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.hyw-footer-note {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hyw-border);
  text-align: center; font-size: 10px; color: var(--hyw-text-muted); line-height: 1.7;
}

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
[data-reveal].revealed { opacity: 1; transform: none; }



/* ===== Subpage layout ===== */
.hyw-page {
  min-height: 70vh;
  padding: 112px 24px 80px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px);
}
.hyw-page-head { text-align: center; margin-bottom: 48px; }
.hyw-page-head h1 {
  font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px;
}
.hyw-page-head p {
  color: var(--hyw-text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; font-size: 15px;
}
.hyw-label-center {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px;
}
.hyw-label-center .bar { width: 32px; height: 1px; background: var(--hyw-text-muted); }
.hyw-label-center span {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--hyw-text-muted);
}

.hyw-list-cards { display: grid; gap: 12px; margin-top: 40px; }
.hyw-list-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--hyw-glass-bg); border: 1px solid var(--hyw-glass-border);
  border-radius: 16px; padding: 18px 20px;
}
.hyw-check {
  width: 28px; height: 28px; border-radius: 8px; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center; color: #333; flex-shrink: 0;
}
.hyw-list-card h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.hyw-list-card p { font-size: 12px; color: var(--hyw-text-secondary); margin: 0; line-height: 1.6; }

.hyw-prose {
  background: var(--hyw-glass-bg); border: 1px solid var(--hyw-glass-border);
  border-radius: 20px; padding: 32px; color: var(--hyw-text-secondary); line-height: 1.8; font-size: 14px;
}
.hyw-prose h2, .hyw-prose h3 { color: var(--hyw-text); margin-top: 1.5em; }
.hyw-prose h2:first-child, .hyw-prose h3:first-child { margin-top: 0; }

.hyw-contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 768px) { .hyw-contact-grid { grid-template-columns: repeat(3, 1fr); } }
.hyw-contact-card {
  background: var(--hyw-glass-bg); border: 1px solid var(--hyw-glass-border);
  border-radius: 20px; padding: 28px; text-align: center;
}
.hyw-contact-card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: #f0f0f0;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #555;
}
.hyw-contact-card h3 { font-size: 14px; margin: 0 0 8px; }
.hyw-contact-card p { font-size: 13px; color: var(--hyw-text-secondary); margin: 0; word-break: break-all; }

.hyw-search {
  display: flex; gap: 8px; margin-bottom: 28px;
  background: #fff; border: 1px solid var(--hyw-border); border-radius: 14px; padding: 6px;
}
.hyw-search input {
  flex: 1; border: 0; outline: 0; padding: 10px 14px; font-size: 14px; background: transparent;
  font-family: inherit;
}
.hyw-search button {
  border: 0; background: #111; color: #fff; border-radius: 10px; padding: 10px 18px;
  font-size: 13px; font-weight: 600; cursor: pointer;
}

.hyw-cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
@media (min-width: 768px) { .hyw-cat-grid { grid-template-columns: repeat(4, 1fr); } }
.hyw-cat-card {
  display: block; text-decoration: none; color: inherit; text-align: center;
  background: var(--hyw-glass-bg); border: 1px solid var(--hyw-glass-border);
  border-radius: 16px; padding: 24px 16px;
}
.hyw-cat-card h5 { font-size: 14px; margin: 0; color: var(--hyw-text); }

.hyw-empty { text-align: center; padding: 48px 16px; color: var(--hyw-text-muted); }
.hyw-empty h3 { color: var(--hyw-text); font-size: 16px; }

/* ===== Legacy Mag page overrides (hyw look) ===== */
body.hyw-body .page-hero,
body.hyw-body .pages-tabs { display: none !important; }

body.hyw-body .sections,
body.hyw-body .service-only-list,
body.hyw-body .space,
body.hyw-body .space2x {
  background: transparent !important;
  padding: 24px 0 64px !important;
}
body.hyw-body .container {
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
}
body.hyw-body .box,
body.hyw-body .service-card,
body.hyw-body .content {
  background: var(--hyw-glass-bg) !important;
  border: 1px solid var(--hyw-glass-border) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
body.hyw-body .service-card {
  padding: 24px !important;
  margin-bottom: 16px !important;
  color: var(--hyw-text) !important;
}
body.hyw-body .service-card-title { font-size: 15px !important; font-weight: 600 !important; color: var(--hyw-text) !important; }
body.hyw-body .service-card-info,
body.hyw-body .service-card-info p { color: var(--hyw-text-secondary) !important; font-size: 13px !important; }
body.hyw-body .th-input,
body.hyw-body input[type=search],
body.hyw-body input.form-control {
  border: 1px solid var(--hyw-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
  height: 44px !important;
}
body.hyw-body .c-btn,
body.hyw-body .btn,
body.hyw-body .phone-btn {
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}
body.hyw-body .boxes .box {
  padding: 20px !important;
  transition: none !important;
}
body.hyw-body .boxes .box h5,
body.hyw-body .boxes .box .name { color: var(--hyw-text) !important; font-size: 14px !important; }
body.hyw-body .hometitleSpan span,
body.hyw-body .newHome-service,
body.hyw-body .newHomePage { background: transparent !important; }
body.hyw-body table {
  background: #fff; border-radius: 12px; overflow: hidden;
}
body.hyw-body .friendlyLink { display: none !important; }

/* hide duplicate old footers if any remnant */
body.hyw-body > .footer:not(.hyw-footer),
body.hyw-body > .foot { display: none !important; }
