/* mirror_flow:p6_ai_generated */
/* ============================================
   中山市雅的亮彩灯饰有限公司 - 通用样式表
   ID: 440 | 相对路径: style/css/common.css
   版本: 1.0.0
   ============================================ */

/* ---------- CSS 自定义属性（变量） ---------- */
:root {
  /* 主色板 - 暖光金调 */
  --color-primary: #c8943e;
  --color-primary-light: #e0b860;
  --color-primary-dark: #a0752a;
  --color-primary-soft: #fbf3e2;
  --color-primary-glow: #f5d78c;

  /* 辅助色 - 深灰系 */
  --color-secondary: #2c2c2c;
  --color-secondary-light: #4a4a4a;
  --color-secondary-dark: #1a1a1a;

  /* 中性色 */
  --color-white: #ffffff;
  --color-off-white: #fafaf8;
  --color-light-gray: #f5f5f3;
  --color-mid-gray: #e8e6e0;
  --color-gray: #b0ada6;
  --color-dark-gray: #6b6760;
  --color-charcoal: #3d3a35;

  /* 功能色 */
  --color-success: #5a9e6f;
  --color-warning: #d4a853;
  --color-error: #c25a4a;
  --color-info: #5a7f9e;

  /* 文字色 */
  --text-primary: #2c2c2c;
  --text-secondary: #5c5a55;
  --text-muted: #989590;
  --text-on-primary: #ffffff;
  --text-on-dark: #e8e6e0;
  --text-link: #b08830;
  --text-link-hover: #8a6520;

  /* 背景色 */
  --bg-body: #fafaf8;
  --bg-section: #ffffff;
  --bg-section-alt: #f8f6f0;
  --bg-footer: #2c2c2c;
  --bg-header: #ffffff;
  --bg-overlay: rgba(20, 18, 14, 0.65);

  /* 边框 */
  --border-color: #e5e2da;
  --border-color-light: #f0ede7;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 14px;
  --border-radius-xl: 20px;
  --border-radius-round: 50%;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 24px rgba(200, 148, 62, 0.3), 0 0 6px rgba(200, 148, 62, 0.15);

  /* 字体 */
  --font-family-base: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --font-family-heading: "PingFang SC", "Microsoft YaHei", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-family-mono: "SF Mono", "Consolas", "Monaco", "Courier New", monospace;

  /* 字号阶梯 */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  /* 字重 */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* 行高 */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* 间距系统 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* 容器宽度 */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-wide: 1440px;
  --container-padding: 1.5rem;

  /* 过渡 */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* 断点参考（用于参考，实际以媒体查询为准） */
  /* --bp-sm: 640px;  --bp-md: 768px;  --bp-lg: 1024px;  --bp-xl: 1280px;  --bp-2xl: 1536px; */
}

/* ---------- CSS Reset / 归一化 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-body);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-link-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---------- 容器系统 ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--full {
  max-width: 100%;
}

/* ---------- 栅格系统（Flex 版） ---------- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--space-4) * -1);
  margin-right: calc(var(--space-4) * -1);
}

.col {
  flex: 1;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  min-width: 0;
}

.col-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
.col-2  { flex: 0 0 16.667%; max-width: 16.667%; }
.col-3  { flex: 0 0 25%;     max-width: 25%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-5  { flex: 0 0 41.667%; max-width: 41.667%; }
.col-6  { flex: 0 0 50%;     max-width: 50%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-8  { flex: 0 0 66.667%; max-width: 66.667%; }
.col-9  { flex: 0 0 75%;     max-width: 75%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-11 { flex: 0 0 91.667%; max-width: 91.667%; }
.col-12 { flex: 0 0 100%;    max-width: 100%; }

/* ---------- Grid 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto-fill { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Flex 工具 ---------- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-xs { gap: var(--space-2); }
.gap-sm { gap: var(--space-4); }
.gap-md { gap: var(--space-6); }
.gap-lg { gap: var(--space-10); }
.gap-xl { gap: var(--space-16); }

/* ---------- 间距工具 ---------- */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-4); }
.mt-md { margin-top: var(--space-8); }
.mt-lg { margin-top: var(--space-12); }
.mt-xl { margin-top: var(--space-20); }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-4); }
.mb-md { margin-bottom: var(--space-8); }
.mb-lg { margin-bottom: var(--space-12); }
.mb-xl { margin-bottom: var(--space-20); }
.pt-sm { padding-top: var(--space-4); }
.pt-md { padding-top: var(--space-8); }
.pt-lg { padding-top: var(--space-12); }
.pt-xl { padding-top: var(--space-20); }
.pb-sm { padding-bottom: var(--space-4); }
.pb-md { padding-bottom: var(--space-8); }
.pb-lg { padding-bottom: var(--space-12); }
.pb-xl { padding-bottom: var(--space-20); }
.py-sm { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-md { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-lg { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-xl { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.px-sm { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-md { padding-left: var(--space-8); padding-right: var(--space-8); }
.px-lg { padding-left: var(--space-12); padding-right: var(--space-12); }

/* ---------- 文本工具 ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--color-primary); }
.text-white { color: var(--color-white); }
.font-light { font-weight: var(--weight-light); }
.font-normal { font-weight: var(--weight-regular); }
.font-medium { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold { font-weight: var(--weight-bold); }
.uppercase { text-transform: uppercase; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- 按钮组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--text-on-primary);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background-color: var(--color-primary-soft);
  color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--dark {
  background-color: var(--color-secondary);
  color: var(--text-on-dark);
  border-color: var(--color-secondary);
}

.btn--dark:hover {
  background-color: var(--color-secondary-light);
  border-color: var(--color-secondary-light);
  color: var(--text-on-dark);
}

.btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--color-light-gray);
  color: var(--text-primary);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-xs);
  border-radius: var(--border-radius-sm);
}

.btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-md);
  border-radius: var(--border-radius-lg);
}

.btn--pill {
  border-radius:
