/* ==========================================================================
   EXCILON 宜瓷龙 — 全站设计系统
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:root {
  /* 品牌色 */
  --brand-green: #1F6F4A;
  --brand-green-dark: #19341A;
  --brand-green-light: #2E9463;
  --brand-green-tint: #EAF3EE;

  --ink-900: #14181A;
  --ink-800: #23282B;
  --ink-600: #4A5256;
  --ink-400: #7C868A;
  --ink-200: #C6CCCE;

  --paper: #FAF8F4;
  --paper-alt: #F2EEE6;
  --white: #FFFFFF;

  --gold: #B9975B;
  --gold-tint: #F4EEE1;

  /* 莫兰迪点缀色板 */
  --morandi-1: #C9B8A8;
  --morandi-2: #A9B8A4;
  --morandi-3: #9FB0BC;
  --morandi-4: #C7A6A0;
  --morandi-5: #B7AEC4;
  --morandi-6: #D9C9A3;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(20, 24, 26, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 24, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 24, 26, 0.16);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-zh: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-en: 'Inter', 'Noto Sans SC', sans-serif;

  --container: clamp(1240px, 65vw + 260px, 1600px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-zh);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  opacity: 0;
}
body.page-ready { opacity: 1; transition: opacity 0.45s var(--ease); }
body.page-leaving { opacity: 0 !important; transition: opacity 0.2s ease !important; }
@media (prefers-reduced-motion: reduce) {
  body, body.page-ready, body.page-leaving { opacity: 1 !important; transition: none !important; }
}

/* 页面级背景动效（首屏 hero 用），遵循 prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  .anim-kenburns { animation: kenburns 22s ease-in-out infinite alternate; }
  .anim-drift { background-size: 160% 160%; animation: drift-move 14s ease-in-out infinite alternate; }
  .anim-gradient-shift { background-size: 200% 200% !important; animation: gradient-shift 18s ease-in-out infinite alternate; }
}
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes drift-move { from { background-position: 20% 30%; } to { background-position: 80% 70%; } }
@keyframes gradient-shift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; scroll-snap-align: start; }
.section-tight { padding: 64px 0; scroll-snap-align: start; }
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .container { padding: 0 20px; }
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand-green); display: inline-block; }

.section-title {
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-600);
  max-width: 980px;
  margin-bottom: 44px;
}

/* 板块标题错落进场：营造主次分明的灵动感 */
.section-head.reveal { opacity: 1; transform: none; }
.section-head.reveal > .eyebrow,
.section-head.reveal > .section-title,
.section-head.reveal > .section-sub {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.section-head.reveal > .eyebrow { transition-delay: 0s; }
.section-head.reveal > .section-title { transition-delay: 0.1s; }
.section-head.reveal > .section-sub { transition-delay: 0.2s; }
.section-head.reveal.in > .eyebrow,
.section-head.reveal.in > .section-title,
.section-head.reveal.in > .section-sub {
  opacity: 1;
  transform: translateY(0);
}
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* Hero 进场动效：大标题→副标题→按钮 依次丝滑滑入，页面一加载即触发（非滚动触发） */
.hero-enter [data-enter] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
.hero-enter.in [data-enter="1"] { transition-delay: 0.15s; }
.hero-enter.in [data-enter="2"] { transition-delay: 0.32s; }
.hero-enter.in [data-enter="3"] { transition-delay: 0.48s; }
.hero-enter.in [data-enter] { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .hero-enter [data-enter] { transition: none; opacity: 1; transform: none; }
}
.hero-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand-green); color: var(--white); }
.btn-primary:hover { background: var(--brand-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: rgba(20,24,26,0.18); }
.btn-ghost:hover { border-color: var(--ink-900); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none !important; }

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  background: rgba(250, 248, 244, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  color: var(--ink-900);
  transition: box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: none; }
.site-nav.scrolled {
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}
.nav-ai-btn {
  width: 38px; height: 38px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--brand-green-tint); color: var(--brand-green-dark);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-ai-btn:hover { background: var(--brand-green); color: white; transform: scale(1.06); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: 0.02em; }
.nav-logo img { height: 66px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 19px; font-weight: 500; }
.nav-links a { position: relative; padding: 6px 0; opacity: 0.86; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; font-weight: 700; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; border-radius: 2px; }

/* 一级导航下拉子菜单（首页 / 关于宜瓷龙 次级页面） */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  padding: 8px; min-width: 168px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 10;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 10px);
}
.nav-dropdown-menu a {
  padding: 9px 16px; border-radius: 8px; font-size: 19px; font-weight: 500; color: var(--ink-800); opacity: 1; white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--brand-green-tint); color: var(--brand-green-dark); }
@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu { transition: none; }
}

.mobile-menu a.mobile-submenu-link { font-size: 19px; font-weight: 500; padding: 10px 0 10px 20px; opacity: 0.65; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-lang { font-size: 19px; font-weight: 700; border: 1px solid currentColor; border-radius: 999px; padding: 6px 12px; opacity: 0.85; }
.nav-actions .btn-sm { font-size: 19px; }
.nav-lang:hover { opacity: 1; }
.nav-burger { display: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger {
    display: flex; width: 40px; height: 40px; border-radius: 10px; border: 1px solid currentColor;
    align-items: center; justify-content: center; background: none; color: inherit;
  }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 600; background: var(--brand-green-dark);
  color: white; display: flex; flex-direction: column; padding: 24px 24px 40px;
  overflow-y: auto;
  transform: translateY(-100%); transition: transform 0.35s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a { font-size: 19px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-menu .close-btn { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.4); border-radius: 10px; color: white; background: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-green-dark); color: rgba(255,255,255,0.82); padding: 72px 0 28px; scroll-snap-align: start; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: white; margin-bottom: 18px; }
.footer-brand img { height: 30px; width: auto; display: block; background: white; border-radius: 6px; padding: 5px 8px; }
.footer-info li { margin-bottom: 12px; font-size: 19px; }
.footer-info b { color: white; font-weight: 600; }
.footer-info a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-tag { margin-top: 20px; font-size: 19px; color: rgba(255,255,255,0.55); }

.footer-form h4 { color: white; font-size: 22.5px; margin-bottom: 6px; }
.footer-form p.hint { font-size: 19px; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.footer-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 560px) { .footer-form .form-row { grid-template-columns: 1fr; } }
.footer-form input, .footer-form textarea, .footer-form select {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: white; font-size: 19px; font-family: inherit;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.footer-form textarea { min-height: 90px; resize: vertical; grid-column: 1 / -1; }
.footer-form .ai-divert { margin-top: 14px; font-size: 19px; color: rgba(255,255,255,0.65); }
.footer-form .ai-divert button { color: var(--brand-green-light); font-weight: 700; background: none; border: none; padding: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 19px; color: rgba(255,255,255,0.5); }

/* ==========================================================================
   RFQ 询价弹层
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,24,26,0.55); backdrop-filter: blur(3px);
  z-index: 900; display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg); max-width: 620px; width: 100%;
  max-height: 88vh; overflow-y: auto; padding: 40px; position: relative;
  transform: translateY(16px) scale(0.98); transition: transform 0.3s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-200); background: none; font-size: 12px; color: var(--ink-600);
}
.modal-close:hover { background: var(--paper-alt); }
.modal-box h3 { font-size: 24px; margin-bottom: 6px; }
.modal-box .modal-sub { color: var(--ink-600); font-size: 11px; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.full { grid-template-columns: 1fr; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 11px; font-weight: 600; color: var(--ink-600); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ink-200);
  font-size: 11px; font-family: inherit; background: var(--paper);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-green-light); outline-offset: 1px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select .chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--ink-200); font-size: 11px; background: var(--paper);
  transition: all 0.15s var(--ease);
}
.chip-select .chip.selected { background: var(--brand-green); border-color: var(--brand-green); color: white; }
.chip-select .chip-hint { font-size: 11px; color: var(--ink-400); }
.rfq-success { text-align: center; padding: 20px 0; }
.rfq-success .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-green-tint); color: var(--brand-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 19.5px; }
.rfq-success h4 { font-size: 14px; margin-bottom: 8px; }
.rfq-success p { color: var(--ink-600); font-size: 11px; margin-bottom: 4px; }

/* ==========================================================================
   AI 咨询悬浮面板
   ========================================================================== */
.ai-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 700;
  width: 60px; height: 60px; border-radius: 50%; background: var(--brand-green);
  color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); border: none; font-size: 18px;
  transition: transform 0.25s var(--ease);
}
.ai-fab:hover { transform: scale(1.06); }
.ai-fab-bubble {
  position: fixed; right: 96px; bottom: 34px; z-index: 699;
  background: var(--white); border-radius: 16px 16px 4px 16px; padding: 12px 16px;
  box-shadow: var(--shadow-md); font-size: 11px; max-width: 220px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: all 0.3s var(--ease);
}
.ai-fab-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ai-fab-bubble button.dismiss { position:absolute; top:-6px; right:-6px; width:20px;height:20px;border-radius:50%;background:var(--ink-900);color:white;border:none;font-size:11px; }

.ai-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 800;
  width: min(40vw, 640px); min-width: 380px; max-width: 100vw; height: 100%;
  background: var(--white); border-radius: 20px 0 0 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(100%); opacity: 1; pointer-events: none;
  transition: transform 0.35s var(--ease);
}
.ai-panel.open { transform: translateX(0); pointer-events: auto; }
@media (max-width: 760px) {
  .ai-panel { width: 100%; min-width: 0; border-radius: 0; }
}
.ai-panel-head {
  background: var(--brand-green); color: white; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.ai-panel-head .who { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ai-panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #6FE3A0; box-shadow: 0 0 0 3px rgba(111,227,160,0.3); }
.ai-panel-head .sub { font-size: 11px; font-weight: 400; opacity: 0.85; }
.ai-panel-head button { background: none; border: none; color: white; font-size: 13.5px; opacity: 0.85; }
.ai-panel-head button:hover { opacity: 1; }
.ai-panel-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); }
.ai-msg { max-width: 88%; font-size: 11px; line-height: 1.55; }
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; }
.ai-msg .bubble { padding: 12px 15px; border-radius: 16px; }
.ai-msg.bot .bubble { background: white; border-radius: 4px 16px 16px 16px; box-shadow: var(--shadow-sm); }
.ai-msg.user .bubble { background: var(--brand-green); color: white; border-radius: 16px 4px 16px 16px; }
.ai-msg .cursor-blink::after { content: "▍"; animation: blink 0.9s steps(1) infinite; color: var(--brand-green); }
.ai-msg .bubble.ai-thinking { display: flex; align-items: center; gap: 7px; color: var(--ink-500, var(--ink-600)); font-weight: 600; font-size: 11px; }
.ai-thinking-dots { display: inline-flex; gap: 3px; }
.ai-thinking-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-green); opacity: 0.35; animation: aiThinkingBounce 1.1s ease-in-out infinite; }
.ai-thinking-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiThinkingBounce { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.ai-msg .bubble b { font-weight: 800; color: var(--ink-900); }
.ai-msg .bubble .ai-quote { display: block; margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--brand-green); background: var(--brand-green-tint); color: var(--ink-600); font-size: 11px; border-radius: 0 8px 8px 0; }
.ai-msg .bubble .ai-inline-link { color: var(--brand-green); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ai-msg.user .bubble .ai-inline-link { color: white; }
@keyframes blink { 50% { opacity: 0; } }

.ai-card {
  background: white; border: 1px solid var(--ink-200); border-radius: 14px; padding: 12px; margin-top: 8px;
  display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow-sm);
}
.ai-card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: var(--paper-alt); }
.ai-card .meta b { display: block; font-size: 11px; }
.ai-card .meta span { font-size: 11px; color: var(--ink-600); }
.ai-card button { margin-left: auto; flex-shrink: 0; }

.ai-rfq-card { background: white; border: 1px solid var(--brand-green-tint); border-left: 3px solid var(--brand-green); border-radius: 14px; padding: 14px; margin-top: 8px; }
.ai-rfq-card h5 { font-size: 11px; margin-bottom: 10px; }
.ai-rfq-card input { width: 100%; margin-bottom: 8px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--ink-200); font-size: 11px; font-family: inherit; }
.ai-rfq-card .status { font-size: 11px; color: var(--brand-green); font-weight: 700; }

.ai-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.ai-suggest button { font-size: 11px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ink-200); background: white; }
.ai-suggest button:hover { border-color: var(--brand-green); color: var(--brand-green); }

.ai-linkbar { padding: 0 16px 12px; font-size: 11px; border-top: 1px solid var(--paper-alt); padding-top: 10px; }
.ai-linkbar a { color: var(--brand-green); font-weight: 700; }
.ai-linkbar a:hover { text-decoration: underline; }

.ai-panel-foot { padding: 14px 16px; border-top: 1px solid var(--ink-200); display: flex; gap: 10px; background: white; }
.ai-panel-foot input { flex: 1; border: 1px solid var(--ink-200); border-radius: 999px; padding: 11px 16px; font-size: 11px; font-family: inherit; }
.ai-panel-foot input:focus { outline: 2px solid var(--brand-green-light); }
.ai-panel-foot button { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-green); color: white; border: none; font-size: 12px; flex-shrink: 0; }
.ai-panel-foot button:disabled { opacity: 0.5; }

/* ==========================================================================
   通用组件
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; background: var(--brand-green-tint); color: var(--brand-green-dark);
}
.card-hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.scene-icon { width: 26px; height: 26px; flex-shrink: 0; }

/* ==========================================================================
   合规信息组件（报告列表 / 法规时间线 / 检测数据条 / 通过徽章）— 跨页共用
   ========================================================================== */
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--paper); border-radius: 10px; font-size: 11px; gap: 10px; flex-wrap: wrap; }

.timeline-reg { display: flex; flex-direction: column; gap: 14px; }
.timeline-reg .item { display: flex; gap: 14px; align-items: flex-start; }
.timeline-reg .dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline-reg .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--brand-green); flex-shrink: 0; margin-top: 4px; }
.timeline-reg .line { width: 2px; flex: 1; background: var(--ink-200); margin: 2px 0; }
.timeline-reg .region { font-weight: 700; font-size: 11px; }
.timeline-reg .desc { font-size: 11px; color: var(--ink-600); }
.timeline-reg .countdown { font-size: 11px; font-weight: 700; color: var(--gold); margin-top: 3px; }
.timeline-reg .item.urgent .countdown { color: #c0392b; }
.timeline-reg .item.urgent .dot { background: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,0.15); }

.metric-bar-row .top { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.metric-bar-row .track { height: 10px; background: var(--paper-alt); border-radius: 6px; overflow: hidden; position: relative; }
.metric-bar-row .fill { height: 100%; border-radius: 6px; transition: width 1s var(--ease); }
.metric-bar-row .std-line { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-600); }

.pass-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pass-badge { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--brand-green-tint); color: var(--brand-green-dark); font-size: 11px; font-weight: 700; }

/* 测试参数雷达图：产品应用总页（可切场景）与各场景子页（单场景）共用。
   默认展示该场景全部系列，悬浮任意一条线/图例即可突出该系列；网格从中心点向外展开，滚动进入视野时触发。 */
.compare-panel { background: white; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.radar-block + .radar-block { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--paper-alt); }
.radar-block-title { font-size: 22.5px; font-weight: 800; color: var(--ink-900); margin-bottom: 18px; }
.compare-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
@media (max-width: 860px) { .compare-layout { grid-template-columns: 1fr; } }
.radar-svg { width: 100%; max-width: 380px; display: block; }
.radar-wrap .radar-grid { transform-origin: 170px 165px; transform: scale(0); transition: transform 0.9s var(--ease); }
.radar-wrap.in .radar-grid { transform: scale(1); }
.radar-product { cursor: pointer; transition: opacity 0.25s ease; }
.radar-product.dim { opacity: 0.12; }
.radar-axis-label { cursor: pointer; }

/* 右侧放大版图例：替代原先的检测数据长列表，具体数值改为点击维度名称后弹窗展示。
   超过5个系列时自动折成多列（每列最多5个），整体与雷达图纵向居中对齐（靠 .compare-layout 的 align-items:center）。 */
.radar-legend-panel {
  display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column;
  gap: 14px 32px; justify-content: start; align-content: center;
}
.radar-legend-panel [data-id] {
  display: flex; align-items: center; gap: 10px; cursor: pointer; transition: opacity 0.2s ease;
  font-size: 12px; font-weight: 700; color: var(--ink-900); white-space: nowrap;
}
.radar-legend-panel [data-id].dim { opacity: 0.3; }
.radar-legend-panel .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 860px) { .radar-legend-panel { grid-template-rows: repeat(5, auto); gap: 12px 20px; } }
@media (max-width: 560px) { .radar-legend-panel { grid-template-rows: none; grid-auto-flow: row; } }

/* 维度弹窗：点击雷达图上的维度名称后，在其下方弹出该维度的具体对比数据 */
.radar-popup {
  position: absolute; z-index: 30; transform: translateX(-50%);
  background: var(--brand-green-dark); color: white; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 16px 18px; min-width: 200px; max-width: 260px;
}
.radar-popup-title { font-size: 11px; font-weight: 700; margin-bottom: 4px; }
.radar-popup-standard { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 10px; line-height: 1.5; }
.radar-popup-row { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 5px 0; }
.radar-popup-row .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.radar-popup-row span:nth-child(2) { flex: 1; }
.radar-popup-row b { font-weight: 700; }
.radar-popup-row b.pass { color: #6FE3A0; }
@media (prefers-reduced-motion: reduce) { .radar-wrap .radar-grid { transition: none; } }

/* ==========================================================================
   内容详情页 Hero（关于/首页次级页通用）
   ========================================================================== */
.subhero { position: relative; min-height: 92vh; display: flex; align-items: center; background: var(--brand-green-dark); overflow: hidden; scroll-snap-align: start; }
.subhero .subhero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.subhero .subhero-bg.is-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px 40px; color: rgba(255,255,255,0.4); font-size: 11px; line-height: 1.7; border: none; }
.subhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,14,12,0.94) 0%, rgba(10,14,12,0.65) 52%, rgba(10,14,12,0.4) 100%); }
.subhero .container { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; width: 100%; }
.subhero .back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 600; margin-bottom: 36px; transition: color 0.2s; }
.subhero .back-link:hover { color: #fff; }
/* 返回链接与居中的标题内容分离，始终贴靠顶部导航栏下方（见 main.js 中的自动搬运逻辑）；
   不复用 .container 类，避免被 .subhero .container 的 position/z-index 规则覆盖，改为直接复刻其 max-width/padding */
.subhero-backbar { position: absolute; top: 96px; left: 0; right: 0; z-index: 3; padding: 0 28px; }
.subhero-backbar .back-link { margin-bottom: 0; }
.subhero-center { text-align: center; max-width: 720px; margin: 0 auto; }
.subhero-center .eyebrow { justify-content: center; }
.subhero-center .eyebrow::before { display: none; }
.subhero h1 { font-size: 30px; color: white; max-width: 720px; margin: 0 auto 14px; letter-spacing: -0.02em; text-wrap: balance; }
.subhero .lead { color: rgba(255,255,255,0.78); font-size: 19px; max-width: 600px; margin: 0 auto 26px; line-height: 1.75; }
.subhero .badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.subhero .badge-row .badge { background: rgba(255,255,255,0.12); color: white; }

/* 无配图 hero（企业博客 / 合作伙伴等左对齐纯色页头，多页共用） */
.page-hero { position: relative; padding: 150px 0 56px; background: var(--brand-green-dark); color: white; scroll-snap-align: start; overflow: hidden; }
.page-hero-glow {
  position: absolute; inset: -20%; pointer-events: none; z-index: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(46,148,99,0.35) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(185,151,91,0.22) 0, transparent 40%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.65); font-size: 11px; font-weight: 600; margin-bottom: 28px; transition: color 0.2s; }
.page-hero .back-link:hover { color: #fff; }
.page-hero h1 { font-size: 30px; margin-bottom: 14px; letter-spacing: -0.02em; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 700px; font-size: 19px; line-height: 1.75; }

/* YouTube 播放按钮遮罩：多个页面的视频展示区共用 */
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; color: white; background: none; border: none; cursor: pointer; }
.video-play .circle { width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,0.15); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; font-size: 19.5px; border: 1px solid rgba(255,255,255,0.4); transition: transform 0.2s; }
.video-play:hover .circle { transform: scale(1.08); }

/* 统计数字卡：多个页面共用（关于宜瓷龙首屏 / 质量保障 等） */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: white; border-radius: var(--radius-md); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-card b { display: block; font-size: 21px; color: var(--brand-green); }
.stat-card span { font-size: 19px; color: var(--ink-600); }

/* ==========================================================================
   产品系列卡（场景子页共用：products-cookware / stove / appliance / drinkware / bakeware / personal）
   ========================================================================== */
/* 场景6宫格：产品应用场景实拍卡片，首页与产品应用主页共用 */
.scene-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .scene-grid { grid-template-columns: repeat(2, 1fr); } }
.scene-card { position: relative; aspect-ratio: 9/10; border-radius: var(--radius-md); overflow: hidden; color: white; }
.scene-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.scene-card:hover img { transform: scale(1.08); }
.scene-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,14,12,0.85), rgba(10,14,12,0.05) 60%); }
.scene-card .label { position: absolute; left: 18px; bottom: 16px; right: 18px; z-index: 2; }
.scene-card .label h4 { font-size: 22.5px; font-weight: 800; letter-spacing: -0.01em; }
.scene-card .label .label-en { display: block; font-size: 19px; font-weight: 600; color: rgba(255,255,255,0.82); margin-top: 3px; }
.scene-card .label .series { font-size: 11px; opacity: 0; max-height: 0; overflow: hidden; transition: all 0.3s; color: rgba(255,255,255,0.85); margin-top: 6px; }
.scene-card:hover .label .series { opacity: 1; max-height: 60px; }

/* 入口卡片：首页/关于宜瓷龙等多个页面共用（图片 + 标题 + 简介 + "详细了解"） */
.teaser-card { display: block; border-radius: var(--radius-md); overflow: hidden; background: white; box-shadow: var(--shadow-sm); }
.teaser-card .img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--brand-green-dark); }
.teaser-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.teaser-card:hover .img-wrap img { transform: scale(1.06); }
.teaser-card .img-wrap.is-placeholder { display: flex; align-items: center; justify-content: center; }
.teaser-card .img-wrap.is-placeholder .ico { font-size: 30px; }
.teaser-card .body { padding: 20px 22px 22px; }
.teaser-card .body h4 { font-size: 22.5px; margin-bottom: 8px; }
.teaser-card .body p { font-size: 19px; line-height: 1.55; color: var(--ink-600); margin-bottom: 12px; }
.teaser-card .body .more { font-size: 11px; color: var(--brand-green); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.teaser-card .body .more .arrow { transition: transform 0.2s var(--ease); display: inline-block; }
.teaser-card:hover .body .more .arrow { transform: translateX(4px); }

.product-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.placeholder-box { border: 1.5px dashed var(--ink-200); border-radius: var(--radius-md); padding: 26px; text-align: center; color: var(--ink-400); font-size: 11px; background: var(--paper-alt); }

/* 产品卡片：一行一张，图文分栏固定 2:3 比例（配图统一 4:3 裁切，居中显示，不随文案长短变化），
   逐行交替从左/右滑入（同 about.astro 的 .culture-line 手法） */
.pcard-row {
  display: grid; grid-template-columns: 2fr 3fr; align-items: center;
  background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.25s ease;
}
.pcard-row.from-left { transform: translateX(-32px); }
.pcard-row.from-right { transform: translateX(32px); }
.pcard-row.in { opacity: 1; transform: translateX(0); }
.pcard-row:hover { box-shadow: var(--shadow-lg); }
.pcard-row.highlight { box-shadow: 0 0 0 3px var(--brand-green), var(--shadow-lg); }
.pcard-row-img { aspect-ratio: 4/3; align-self: center; display: flex; align-items: center; justify-content: center; background: white; padding: 18px; }
.pcard-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }
.pcard-row-img:not(.is-shield) { padding: 0; }
.pcard-row-img:not(.is-shield) img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; }
.pcard-row-body { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.pcard-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pcard-gen { font-size: 11px; font-weight: 800; color: var(--gold); letter-spacing: 0.04em; }
.pcard-name { font-size: 22.5px; font-weight: 800; letter-spacing: 0.01em; line-height: 1.2; margin-bottom: 12px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.pcard-shield-badge { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.18)); }
.pcard-features { display: flex; flex-direction: column; gap: 9px; }
.pcard-features li { font-size: 19px; color: var(--ink-600); line-height: 1.65; }
.pcard-features li b { color: var(--ink-900); font-weight: 700; }
.pcard-features li b::before { content: "★ "; color: var(--brand-green); }
.pcard-row .actions { display: flex; gap: 8px; margin-top: 16px; }
@media (max-width: 700px) {
  .pcard-row { grid-template-columns: 1fr; }
  .pcard-row-img { width: 100%; padding: 26px; }
  .pcard-row-body { padding: 20px 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .pcard-row { transition: none; } }

.scene-sub-label { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.scene-sub-label h3 { font-size: 24px; font-weight: 700; }
.scene-sub-label .n { font-size: 11px; color: var(--ink-400); font-weight: 600; }

/* 场景子分类切换（如炊具内涂/外涂）：按钮切换而非同页上下堆叠 */
.sub-tabs { display: flex; gap: 10px; margin-bottom: 32px; }
.sub-tab-btn {
  padding: 12px 26px; border-radius: 999px; border: 1px solid var(--paper-alt); background: white;
  font-weight: 700; font-size: 11px; color: var(--ink-600); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sub-tab-btn:hover:not(.active) { border-color: var(--brand-green); color: var(--brand-green); }
.sub-tab-btn.active { background: var(--brand-green); color: white; border-color: var(--brand-green); }

/* 核心技术演进时间线：4列×2行网格，前半代/后半代各占一行，无需横向拖拽；
   原理说明卡片作为网格中一个跨列的元素，插在两行之间，随悬停/点击的世代切换内容。 */
.tech-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; padding: 6px 4px 14px; }
.tt-col {
  display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer;
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.tech-timeline.in .tt-col { opacity: 1; transform: translateY(0); }
.tt-shield { width: 84px; margin-bottom: 10px; }
.tt-shield img { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15)); transition: transform 0.25s var(--ease); }
.tt-col:hover .tt-shield img { transform: translateY(-4px) scale(1.04); }
.tt-badge { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; }
.tt-icon { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--paper-alt); flex-shrink: 0; }
.tt-icon img { width: 100%; height: 100%; object-fit: contain; }
.tt-badge-label { font-size: 11px; font-weight: 700; color: var(--ink-800); white-space: nowrap; }
.tt-chevron {
  background: var(--brand-green-dark); color: white; font-size: 11px; font-weight: 700; padding: 7px 16px 7px 12px;
  clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%, 14% 50%);
  margin-bottom: 12px; white-space: nowrap;
}
.tt-name { font-size: 11px; color: var(--ink-600); line-height: 1.4; }
.tt-detail {
  grid-column: 1 / -1; background: var(--brand-green-dark); color: white; border-radius: var(--radius-md);
  padding: 22px 28px; text-align: center; min-height: 88px; display: flex; flex-direction: column; justify-content: center;
}
.tt-detail h4 { font-size: 22.5px; margin-bottom: 6px; }
.tt-detail p { font-size: 19px; color: rgba(255,255,255,0.72); line-height: 1.7; max-width: 720px; margin: 0 auto; }
.tech-timeline.compact .tt-shield { width: 62px; }
.tech-timeline.compact .tt-detail { padding: 18px 24px; min-height: 76px; }
.tech-timeline.compact .tt-detail p { font-size: 19px; }
@media (max-width: 700px) { .tech-timeline { grid-template-columns: repeat(2, 1fr); } .tt-shield { width: 68px; } }
@media (prefers-reduced-motion: reduce) { .tt-col { transition: none; } }

/* ---------------- 合作伙伴 Logo 墙：无缝滚动跑马灯 ---------------- */
.logo-marquee { display: flex; flex-direction: column; gap: 22px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent); }
.logo-marquee-card { background: white; border-radius: var(--radius-lg); padding: 34px 8px; box-shadow: var(--shadow-sm); }
.logo-marquee-row { display: flex; align-items: center; gap: 48px; width: max-content; animation: logoMarqueeScroll 34s linear infinite; }
.logo-marquee-row:nth-child(2) { animation-direction: reverse; }
.logo-marquee:hover .logo-marquee-row { animation-play-state: paused; }
.logo-chip { flex-shrink: 0; height: 40px; display: flex; align-items: center; justify-content: center; }
.logo-chip img { max-height: 100%; max-width: 130px; object-fit: contain; }
@keyframes logoMarqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logo-marquee-row { animation: none; } }
