/* 悠悠草 Hub 首页 — 大气简洁布局 × yycey.com/u/ui.html 色板 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600&family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root {
  --primary: #1F8F7E;
  --primary-hover: #187A6C;
  --accent: #C2186A;
  --void: #F0F2F5;
  --base: #F7F8FA;
  --card: #FFFFFF;
  --text: #0F1317;
  --text-2: #3D4752;
  --text-3: #5C6670;
  --line: rgba(20, 24, 28, 0.12);
  --line-soft: rgba(20, 24, 28, 0.08);
  --shadow: 0 1px 0 #fff inset, 0 0 0 0.5px rgba(20, 24, 28, 0.05), 0 10px 28px rgba(20, 24, 28, 0.06);
  --shadow-hover: 0 1px 0 #fff inset, 0 0 0 0.5px rgba(20, 24, 28, 0.06), 0 16px 36px rgba(20, 24, 28, 0.09);
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  --brand-gradient: linear-gradient(90deg, #D64D8F 0%, #9B6BC9 20%, #2BB8C9 40%, #3CB89A 60%, #8FB83A 80%, #C9A227 100%);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --pad-x: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
}
.skip-link:focus { left: 12px; top: 12px; }

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 248, 250, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 48px;
}
.nav-logo {
  width: auto;
  height: 48px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-3);
}
.nav-links a,
.nav-links .nav-link {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  color: inherit;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links .nav-link:hover {
  color: var(--text);
  border-bottom-color: rgba(31, 143, 126, 0.45);
}
.nav-links a.is-active,
.nav-links .nav-link.is-active,
.nav-item.is-active > .nav-link {
  color: var(--primary);
  font-weight: 600;
  border-bottom-color: var(--primary);
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.55;
  transition: transform 0.15s ease;
}
.nav-item.is-open > .nav-dropdown-toggle .nav-caret,
.nav-item:hover > .nav-dropdown-toggle .nav-caret {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 168px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-item:hover > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
  display: flex;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px !important;
  border-radius: 8px;
  border-bottom: none !important;
  color: var(--text-2) !important;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-dropdown a:hover,
.nav-dropdown a.is-active {
  background: rgba(31, 143, 126, 0.08);
  color: var(--primary) !important;
}
.nav-actions { flex-shrink: 0; }
.btn-nav {
  padding: 11px 18px !important;
  font-size: 0.98rem !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 480px at 12% -10%, rgba(31, 143, 126, 0.11), transparent 60%),
    radial-gradient(760px 420px at 92% 8%, rgba(194, 24, 106, 0.06), transparent 55%),
    linear-gradient(180deg, #F7F8FA 0%, #F0F2F5 72%, #F7F8FA 100%);
}
.hero-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-banner-shade {
  display: none;
}
.hero-has-banner .hero-plane {
  background: #0f1419;
}
.hero-has-banner .hero-banner-shade {
  display: block;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 20, 25, 0.45) 0%, rgba(15, 20, 25, 0.55) 45%, rgba(247, 248, 250, 0.92) 100%),
    linear-gradient(90deg, rgba(15, 20, 25, 0.25), transparent 40%, rgba(15, 20, 25, 0.2));
  pointer-events: none;
}
.hero-has-banner .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}
.hero-has-banner .hero-title {
  background: linear-gradient(120deg, #ffffff 0%, #d8f3ee 55%, #f8d6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-has-banner .hero-lead {
  background: rgba(255, 255, 255, 0.92);
}
.hero-inner {
  width: min(760px, calc(100% - 2 * var(--pad-x)));
  margin: 0 auto;
  padding: clamp(72px, 12vh, 120px) 0 clamp(64px, 10vh, 100px);
  text-align: center;
  animation: rise 0.75s var(--ease) both;
}
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin: 0 auto 32px;
  max-width: 34em;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.7;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
  text-align: left;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff !important;
  font-weight: 500;
  font-size: 0.95rem;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-solid:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 143, 126, 0.28);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-2) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: rgba(31, 143, 126, 0.45);
  color: var(--text) !important;
  background: #fff;
}

/* —— Sections —— */
.section {
  padding: clamp(64px, 9vw, 104px) var(--pad-x);
}
.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}
.section-head {
  max-width: 36em;
  margin: 0 0 clamp(32px, 4vw, 48px);
}
.section-head.center,
.section-products .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lead {
  margin: 0;
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1.7;
}

.section-products { background: var(--card); }
.section-features { background: var(--base); }
.section-about { background: var(--card); }
.section.section-alt { background: var(--base); }
.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 500;
}

/* —— Product grid —— */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
  animation: rise 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(31, 143, 126, 0.28);
}
.product-media {
  aspect-ratio: 16 / 10;
  background: var(--void);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.03); }
.product-placeholder {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(31, 143, 126, 0.18), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(194, 24, 106, 0.1), transparent 50%),
    var(--void);
}
.product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
  flex: 1;
}
.product-body h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.product-body p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-more {
  margin-top: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--primary);
}

/* —— Features —— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
}
.feature-card {
  position: relative;
  padding: 28px 24px 26px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.feature-index {
  display: block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
}
.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* —— About —— */
.about-panel {
  max-width: 720px;
}
.about-copy {
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.8;
}
.brand-rule {
  height: 3px;
  width: min(200px, 45%);
  border-radius: 999px;
  background: var(--brand-gradient);
}

/* —— Bottom CTA —— */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cta-banner h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 500;
}
.cta-banner p {
  margin: 0;
  color: var(--text-3);
  max-width: 36em;
}
.cta-banner .eyebrow { margin-bottom: 10px; }

/* —— Footer —— */
.site-foot {
  border-top: 1px solid var(--line-soft);
  background: var(--card);
  padding: 36px var(--pad-x) 44px;
  color: var(--text-3);
  font-size: 0.85rem;
}
.foot-shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px 32px;
  align-items: start;
}
.foot-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.foot-links a:hover,
.foot-meta a:hover { color: var(--primary); }
.foot-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  text-align: right;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* —— Product detail —— */
.hero-product {
  min-height: min(62vh, 620px);
}
.hero-product .hero-inner {
  padding-bottom: clamp(48px, 8vh, 72px);
}
.section-cover {
  padding-top: 0;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.product-hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--void);
  box-shadow: var(--shadow);
}
.zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.product-hero-media img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}
.product-hero-media .zoom-trigger:hover img { transform: scale(1.02); }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 24px);
}
.shot-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--void);
  transition: transform 0.45s var(--ease);
}
.shot-card .zoom-trigger:hover img { transform: scale(1.03); }
.shot-card figcaption {
  padding: 12px 16px 14px;
  font-size: 0.86rem;
  color: var(--text-3);
  font-weight: 500;
}

.zoom-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px 72px 64px;
  background: rgba(15, 19, 23, 0.78);
  backdrop-filter: blur(10px);
}
.zoom-mask.is-open,
.zoom-mask:not([hidden]) { display: flex; }
.zoom-mask[hidden] { display: none !important; }
.zoom-stage {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 100%;
  text-align: center;
}
.zoom-stage img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: #0F1317;
}
.zoom-stage figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.zoom-close,
.zoom-nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
}
.zoom-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 26px;
}
.zoom-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 32px;
}
.zoom-prev { left: 16px; }
.zoom-next { right: 16px; }
.zoom-close:hover,
.zoom-nav:hover { background: rgba(255, 255, 255, 0.22); }
.product-copy {
  margin: 0 0 28px;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.8;
}
.contact-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 19, 23, 0.38);
  backdrop-filter: blur(6px);
}
.contact-mask.is-open,
.contact-mask:not([hidden]) { display: flex; }
.contact-mask[hidden] { display: none !important; }
.contact-dialog {
  width: min(460px, 100%);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;
}
.contact-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 0;
}
.contact-head .eyebrow { margin-bottom: 8px; }
.contact-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
}
.contact-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 0 4px;
}
.contact-body { padding: 16px 24px 26px; }
.contact-form label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.contact-form label span { color: var(--accent); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(31, 143, 126, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 143, 126, 0.12);
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form .btn-solid {
  margin-top: 18px;
  width: 100%;
}
.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-ok { color: var(--primary); margin: 8px 0 0; }
.contact-err { color: var(--accent); margin: 0 0 12px; }

@media (max-width: 960px) {
  .catalog-grid,
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-shell { grid-template-columns: 1fr 1fr; }
  .foot-meta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { min-height: 0; }
  .hero-inner {
    text-align: left;
    padding: 56px 0 64px;
  }
  .hero-cta { justify-content: flex-start; }
  .hero-lead { text-align: left; }
  .catalog-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .shot-grid { grid-template-columns: 1fr; }
  .hero-product { min-height: 0; }
  .zoom-mask { padding: 56px 16px 24px; }
  .zoom-nav { display: none; }
  .foot-shell { grid-template-columns: 1fr; }
  .section-products .section-head { text-align: left; margin-left: 0; margin-right: 0; }
}
