/* ============ YANIER — 极简设计系统 ============ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --text: #1d1d1f;
  --text-dark-bg: #f5f5f7;
  --muted: #6e6e73;
  --muted-dark-bg: #86868b;
  --accent: #ff9500;
  --accent-hover: #e68600;
  --hairline: #d2d2d7;
  --radius: 18px;
  --max-width: 1024px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 149, 0, 0.22); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 22px; }

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: rgba(251, 251, 253, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  height: 44px;
  background: rgba(251, 251, 253, 0.92);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav.scrolled .nav-inner { height: 44px; }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  gap: 20px;
}
.nav-logo { font-size: 17px; font-weight: 700; letter-spacing: 0.14em; }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 13px; color: rgba(0, 0, 0, 0.72); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px;
  color: #fff;
  background: var(--accent);
  padding: 5px 15px;
  border-radius: 980px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
}
.hamburger span { width: 17px; height: 1.5px; background: var(--text); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* ============ 首屏 ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 11vw, 130px) 0 48px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72%;
  background:
    radial-gradient(38% 55% at 22% 18%, rgba(255, 149, 0, 0.10), transparent 70%),
    radial-gradient(32% 48% at 80% 10%, rgba(255, 77, 46, 0.07), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: 2px;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(46px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.hero-media { max-width: 920px; margin: 0 auto; }
/* 品牌图原始显示：无边框、无阴影、无圆角，白色留白与页面自然融合 */
.hero-media img {
  width: 100%;
  height: auto;
}
/* 首屏元素阶梯式入场 */
.hero .container > .reveal:nth-child(1) { transition-delay: 0.06s; }
.hero .container > .reveal:nth-child(2) { transition-delay: 0.16s; }
.hero .container > .reveal:nth-child(3) { transition-delay: 0.26s; }
.hero .container > .reveal:nth-child(4) { transition-delay: 0.36s; }
.hero .container > .reveal:nth-child(5) { transition-delay: 0.46s; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 980px;
  box-shadow: 0 8px 24px rgba(255, 149, 0, 0.28);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(255, 149, 0, 0.34);
}
.btn-link { color: var(--accent); background: none; font-size: 16px; }
.btn-link span { display: inline-block; transition: transform 0.25s ease; }
.btn-link:hover span { transform: translateX(3px); }
.btn-block { display: block; width: 100%; padding: 14px; border-radius: 12px; }

/* ============ 品牌故事（暗色） ============ */
.story {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-dark-bg);
  padding: clamp(110px, 15vw, 180px) 0;
  text-align: center;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255, 149, 0, 0.13), transparent 70%);
  pointer-events: none;
}
.story .container { position: relative; }
.eyebrow-dark { color: var(--accent); }
.story-title {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 30px;
}
.story-text { max-width: 640px; margin: 0 auto; }
.story-rule {
  width: 34px;
  height: 2px;
  margin: 0 auto 42px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.story-text p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
  color: var(--muted-dark-bg);
}
.story-text p + p { margin-top: 22px; }

/* ============ 品牌宣言 ============ */
.statement { padding: clamp(110px, 17vw, 210px) 0; text-align: center; }
.statement-text {
  font-size: clamp(36px, 6.5vw, 80px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

/* ============ 产品理念 ============ */
.philosophy { background: var(--bg-alt); padding: clamp(110px, 14vw, 170px) 0; }
.philosophy-head { text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }
.philosophy-head h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}
.pillar {
  padding: 40px 30px 10px;
  text-align: center;
  border-left: 1px solid var(--hairline);
  transition: transform 0.45s var(--ease);
}
.pillar:first-child { border-left: none; }
.pillar:hover { transform: translateY(-5px); }
.pillar-num {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.pillar h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.pillar h3::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: var(--hairline);
  transition: width 0.45s var(--ease), background 0.45s var(--ease);
}
.pillar:hover h3::after { width: 46px; background: var(--accent); }
.pillar p { color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ============ 联系我们 ============ */
.contact { padding: clamp(110px, 14vw, 170px) 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 90px);
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.story-title, .philosophy-head h2, .contact-copy h2 { text-wrap: balance; }
.contact-desc { color: var(--muted); font-size: 17px; margin-bottom: 30px; }
.contact-email {
  display: inline-block;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 26px;
}
.contact-email:hover { text-decoration: underline; }
.contact-meta li { color: var(--muted); font-size: 14px; padding: 5px 0; }

.contact-form { border-top: 1px solid var(--hairline); padding-top: 6px; }
.form-group { margin-bottom: 26px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 0;
  color: var(--text);
  border-radius: 0;
  resize: vertical;
  transition: border-color 0.25s ease;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.form-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

/* ============ 表单状态与反馈 ============ */
.btn[disabled] { opacity: 0.55; cursor: default; }
.btn[disabled]:hover { background: var(--accent); }

.form-error {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #d70015;
}

.form-success {
  text-align: center;
  padding: 26px 0 8px;
  animation: success-pop 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
}
.success-icon svg { width: 100%; height: 100%; }
.success-icon circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: draw-circle 0.55s ease-out forwards;
}
.success-icon path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw-check 0.32s ease-out 0.5s forwards;
}
.form-success h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.form-success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 22px;
}
.btn-again {
  background: none;
  border: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
}
.btn-again:hover { text-decoration: underline; }

@keyframes draw-circle { to { stroke-dashoffset: 0; } }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes success-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 38px 0 48px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.footer-sub { margin-top: 6px; }

/* ============ 艺术标题：渐变关键词 + 手绘笔触 ============ */
.art {
  color: var(--accent);
  background: linear-gradient(95deg, #ff9500 0%, #ff4d2e 55%, #ff9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.swash {
  display: block;
  width: 150px;
  height: auto;
}
.swash path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
/* 三种布局下的笔触位置 */
.story .swash { margin: -24px auto 26px; }
.philosophy-head .swash { margin: 16px auto 0; }
.contact-copy .swash { margin: 16px 0 26px; }

/* 笔触随所在板块进入视口时画出 */
.story-title.visible + .swash path,
.philosophy-head.visible .swash path,
.contact-copy.visible .swash path {
  animation: draw-swash 1.1s ease-out 0.35s forwards;
}
@keyframes draw-swash { to { stroke-dashoffset: 0; } }

/* ============ 进入视口动画（克制） ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    gap: 0;
    background: rgba(251, 251, 253, 0.98);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 0;
  }
  .nav-links.open a { padding: 14px 22px; font-size: 15px; }
  .nav-links.open a + a { border-top: 1px solid var(--hairline); }
}
@media (max-width: 640px) {
  .philosophy-grid { grid-template-columns: 1fr; }
  .pillar { padding: 28px 12px; border-left: none; border-top: 1px solid var(--hairline); }
  .pillar:first-child { border-top: none; }
}

/* ============ 减少动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; opacity: 1; }
  .swash path, .story-title.visible + .swash path,
  .philosophy-head.visible .swash path, .contact-copy.visible .swash path { stroke-dashoffset: 0; }
}
