/* ═══════════════════════════════════════════════════════════════
   components.css — Design System Component Definitions
   Auto-extracted from preview/component-*.html
   DO NOT EDIT MANUALLY — regenerate via extract-components-css.mjs
   ═══════════════════════════════════════════════════════════════ */

/* ── Badge ─────────────────────────────────────────────────── */
/* @anatomy
   <span class="badge badge-default" data-evidence-sample="default">标准</span> <span class="badge badge-accent" data-evidence-sample="accent">精选</span>
*/
/* Component definitions — extracted to components.css by deterministic script */
.badge { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-1) var(--space-3); border-radius: var(--radius-full); font-size: var(--font-size-caption); font-weight: 500; line-height: var(--line-height-caption); white-space: nowrap; min-width: var(--space-6); }
.badge-default { background: var(--color-muted); color: var(--color-foreground); }
.badge-accent { background: var(--color-accent); color: var(--color-on-primary); }
.badge-success { background: var(--ruihua-success-100); color: var(--color-success); }
.badge-warning { background: var(--ruihua-warning-100); color: var(--color-warning); }
.badge-error { background: var(--ruihua-error-100); color: var(--color-error); }

/* ── Button ────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">Primary</span><button class="btn btn-md btn-primary" type="button">立即预订</button><button class="btn btn-md btn-primary" type="button" disabled>立即预订</button>
*/
/* Component definitions — extracted to components.css by deterministic script */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; cursor: pointer; font-family: var(--font-family-base); font-weight: 500; white-space: nowrap; border-radius: var(--radius-md); min-height: var(--size-button-md); padding: 0 var(--space-5); font-size: var(--font-size-body); line-height: 1.2; letter-spacing: .02em; transition: background .15s, border-color .15s; }
  .btn-sm { height: var(--size-button-sm); min-width: var(--size-button-sm); padding: 0 var(--space-4); font-size: var(--font-size-mono); }
  .btn-md { height: var(--size-button-md); min-width: var(--size-button-md); padding: 0 var(--space-5); font-size: var(--font-size-body); }
  .btn-lg { height: var(--size-button-lg); min-width: var(--size-button-lg); padding: 0 var(--space-6); font-size: var(--font-size-body); }
  .btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
  .btn-primary:hover { background: var(--color-primary-hover); }
  .btn-secondary { background: var(--color-secondary); color: var(--color-secondary-foreground); }
  .btn-secondary:hover { filter: brightness(.92); }
  .btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
  .btn-outline:hover { background: var(--interactive-hover); }
  .btn-ghost { background: transparent; color: var(--color-primary); border-color: transparent; }
  .btn-ghost:hover { background: var(--interactive-hover); }
  .btn-block { display: flex; width: 100%; min-height: var(--size-button-lg); padding: 0 var(--space-6); }
  .btn:disabled { cursor: not-allowed; }

/* ── Card ──────────────────────────────────────────────────── */
/* @anatomy
   <span class="label">纵向默认</span> <article class="card card-vertical" data-evidence-sample="vertical default"> <div class="card-media" role="img" aria-label="媒体">
*/
/* Component definitions — extracted to components.css by deterministic script */
    .card { display: flex; flex-direction: column; width: 100%; background: var(--color-surface); overflow: hidden; }
    .card-vertical { border-radius: var(--radius-lg); box-shadow: var(--shadow-2); }
    .card-horizontal { flex-direction: row; box-shadow: var(--shadow-3); }
    .card:hover { filter: brightness(0.97); transition: filter .15s; }
    .card-media { width: 100%; aspect-ratio: 16 / 9; background: var(--color-muted); flex-shrink: 0; }
    .card-horizontal .card-media { width: 160px; aspect-ratio: 4 / 3; }
    .card-content { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-4); }
    .card-title { margin: 0; font: var(--font-weight-h4) var(--font-size-h4)/var(--line-height-h4) var(--font-heading); color: var(--color-foreground); }
    .card-meta { margin: 0; font-size: var(--font-size-body); line-height: var(--line-height-body); color: var(--color-muted); }
    .card-action { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-1); border: none; border-radius: var(--radius-md); padding: var(--space-2) var(--space-4); background: var(--color-primary); color: var(--color-on-primary); font-size: var(--font-size-body); line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s; }
    .card-action:hover { background: var(--color-primary-hover); }

/* ── Cta Link ──────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <a href="#" class="cta-link">了解详情</a> <a href="#" class="cta-link">查看庭院案例</a>
*/
/* Component definitions — extracted to components.css by deterministic script */
  .cta-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-primary); text-decoration: none; font-weight: var(--font-weight-h4); white-space: nowrap; transition: color .15s, background .15s, border-color .15s; }
  .cta-link:hover { color: var(--color-primary-hover); }
  .cta-link:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
  .cta-link.underlined { text-decoration: underline; text-underline-offset: 4px; }
  .cta-link .icon { width: var(--size-icon-md); height: var(--size-icon-md); flex-shrink: 0; }
  .cta-link.disabled { color: var(--color-muted); pointer-events: none; cursor: not-allowed; }

/* ── Input ─────────────────────────────────────────────────── */
/* @anatomy
   <div class="input-wrapper" data-evidence-sample="default md"> <span class="input-label">姓名</span> <input class="input-field" type="text" placeholder="请输入您的姓名"> <span class="input-hint">用于入住登记</span>
*/
/* Component definitions — extracted to components.css by deterministic script */
  .input-wrapper { width: 100%; display: flex; flex-direction: column; gap: var(--space-1); }
  .input-label { font-size: var(--font-size-body); line-height: var(--line-height-body); color: var(--color-foreground); }
  .input-hint { font-size: var(--font-size-caption); line-height: var(--line-height-caption); color: var(--color-muted); }
  .input-field { width: 100%; height: var(--size-input-height); padding: 0 var(--space-3); background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-md); font-family: var(--font-family-base); font-size: var(--font-size-body); color: var(--color-foreground); outline: none; box-sizing: border-box; transition: background .15s, border-color .15s; }
  .input-field::placeholder { color: var(--color-muted); }
  .input-field:hover { background: var(--interactive-hover); }
  .input-field:focus { border: 2px solid var(--color-ring); }
  .input-field.error { border-color: var(--color-error); }
  .input-field.error:focus { border: 2px solid var(--color-error); }
  .input-field:disabled { background: var(--color-secondary); color: var(--color-muted); cursor: not-allowed; }

/* ── Navigation ────────────────────────────────────────────── */
/* @anatomy
   <span class="label">默认</span> <nav class="nav" aria-label="主导航" data-evidence-sample="desktop default"> <a class="nav-brand" href="#">瑞华庭院</a> <ul class="nav-links"> <li><a class="nav-link" href="#">首页</a></li> <li><a class="nav-link" href="#">园林空间</a></li> <li><a class="nav-link" href="#">庭院案例</a></li> <li><a class="nav-link" href="#">关于我们</a></li> </ul> <button class="nav-cta" type="button">预...
*/
/* Component definitions — extracted to components.css by deterministic script */
  .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 var(--space-4); background: var(--color-background); flex: 1 1 auto; min-width: 0; }
  .nav.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-2); }
  .nav-brand { display: inline-flex; align-items: center; height: var(--size-button-md); padding: 0 var(--space-2); font-family: var(--font-heading); font-size: var(--font-size-h4); font-weight: var(--font-weight-h4); color: var(--color-foreground); text-decoration: none; border-radius: var(--radius-md); white-space: nowrap; transition: background .15s; min-width: var(--size-button-md); }
  .nav-brand:hover { background: var(--interactive-hover); }
  .nav-links { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
  .nav-link { display: inline-flex; align-items: center; justify-content: center; height: var(--size-button-md); padding: 0 var(--space-3); color: var(--color-foreground); text-decoration: none; font-size: var(--font-size-body); font-weight: var(--font-weight-body); border-radius: var(--radius-md); white-space: nowrap; transition: background .15s; min-width: var(--size-button-md); }
  .nav-link:hover { background: var(--interactive-hover); }
  .nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--size-button-md); padding: 0 var(--space-4); background: var(--color-primary); color: var(--color-on-primary); border: none; border-radius: var(--radius-md); font-size: var(--font-size-body); font-weight: var(--font-weight-h4); cursor: pointer; white-space: nowrap; transition: background .15s; min-width: var(--size-button-md); }
  .nav-cta:hover { background: var(--color-primary-hover); }

  /* 房间卡片：图片与标题可点击跳详情页 */
  .room-card > a { display: block; text-decoration: none; color: inherit; }
  .room-card__title a { color: inherit; text-decoration: none; }
  .room-card__title a:hover { color: var(--color-primary, #a4804f); }
