/* 全站基础样式。--lime 是品牌绿色；--ink 是正文色；--paper 是底色。
   各方案可覆盖变量，但同一方案保持一致。页面布局分别由 concepts.css 和 gallery.css 负责。 */
:root { --lime: #c5f76b; --ink: #172019; --paper: #f4f5f0; --muted: #60675f; --line: rgba(23,32,25,.16); --radius: 18px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible { outline: 3px solid #7ba832; outline-offset: 5px; }
h1,h2,h3,p { margin: 0; }
button, a { touch-action: manipulation; }
::selection { background: var(--lime); color: #102014; }

/* Logo 原图不修改；容器裁去透明留白，仅影响页面里的显示尺寸。 */
.brand { position: relative; display: block; width: 174px; height: 50px; overflow: hidden; flex-shrink: 0; }
.brand img { position: absolute; width: 204px; height: auto; max-width: none; left: -17px; top: -11px; }
.brand-lightplate { width: 166px; height: 44px; border-radius: 9px; background: #f6f8ef; }
.brand-lightplate img { width: 180px; left: -7px; top: -10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 52px; padding: 15px 24px; border: 0; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button:active { transform: translateY(0) scale(.98); }
.button-dark { background: #172019; color: #fff; }
.button-dark:hover { background: #344333; }
.button-lime { background: var(--lime); color: #14200e; }
.button-lime:hover { background: #d6ff92; }
.text-link { display: inline-flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; padding: 12px 0; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(4px,-3px); }

/* 底部方案切换器属于本轮设计预览，正式官网不会包含它。 */
.concept-switch { position: fixed; z-index: 40; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 4px; align-items: center; padding: 6px; background: rgba(248,250,244,.94); border: 1px solid rgba(23,32,25,.15); border-radius: 14px; color: #172019; box-shadow: 0 8px 35px rgba(5,30,18,.13); backdrop-filter: blur(16px); }
.concept-switch a { font-size: 12px; padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
.concept-switch a:hover { background: #e7ebdf; }
.concept-switch a[aria-current="page"] { background: #172019; color: var(--lime); }
.concept-switch .switch-back { border-right: 1px solid #d8ddcf; border-radius: 0; padding-right: 15px; margin-right: 3px; }

/* 联系弹窗是原生 dialog：showModal 负责焦点隔离，关闭后焦点回到触发按钮。 */
.contact-dialog { width: min(480px, calc(100% - 32px)); padding: 36px; border: 1px solid #d3dbc9; border-radius: 20px; color: #172019; background: #f7f9f2; box-shadow: 0 25px 90px rgba(0,0,0,.2); }
.contact-dialog::backdrop { background: rgba(9,20,15,.6); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; font-size: 26px; padding: 8px; }
.contact-dialog h2 { font-size: 29px; margin: 18px 0 14px; }
.contact-dialog p { font-size: 15px; line-height: 1.9; color: #5a6556; }
.contact-dialog .dialog-note { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dbe2d1; font-size: 13px; }
.contact-dialog .button { margin-top: 24px; }

/* 减少动态效果时，关闭 CSS 长动画与平滑滚动；3D 层还会读同一个系统偏好。 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 640px) {
  .brand { width: 145px; height: 45px; }
  .brand img { width: 175px; left: -15px; top: -9px; }
  .brand-lightplate { width: 142px; height: 40px; }
  .brand-lightplate img { width: 155px; left: -6px; top: -8px; }
  .concept-switch { bottom: 10px; gap: 2px; width: max-content; max-width: calc(100% - 16px); }
  .concept-switch a { padding: 9px 8px; font-size: 11px; }
  .concept-switch .switch-back { padding-right: 9px; }
}
