/* === 信欧科技 设计系统 · 暖木匠心风 === */
:root {
  --brand: #5D4037;
  --brand-light: #795548;
  --brand-dark: #3E2723;
  --accent: #B87333;
  --accent-light: #D4956B;
  --bg: #FAFAF5;
  --bg-warm: #F5F0E8;
  --bg-card: #FFFFFF;
  --text: #2D2D2D;
  --text-light: #666;
  --text-muted: #999;
  --border: #E8E0D8;
  --border-light: #F0EBE5;
  --shadow-sm: 0 1px 3px rgba(93,64,55,0.06);
  --shadow-md: 0 2px 8px rgba(93,64,55,0.08);
  --shadow-lg: 0 4px 16px rgba(93,64,55,0.1);
  --radius: 4px;
  --radius-md: 6px;
  --font-heading: 'Noto Serif SC', 'Songti SC', STSong, serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --success: #2E7D32;
  --warning: #E65100;
  --danger: #C62828;
  --info: #1565C0;
  --alipay: #1677FF;
  --wechat: #07C160;
  --bank: #3A415E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.35; color: var(--text); }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

/* 容器 */
.container { width: min(100%, 1180px); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { width: min(100%, 860px); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* === 顶部通栏 === */
.top-bar {
  background: var(--brand-dark);
  color: #ddd;
  font-size: 12px;
  padding: 5px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: #fff; }

/* === 主导航 === */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  font-family: var(--font-heading);
}
.logo-text { font-family: var(--font-heading); font-size: 17px; font-weight: 600; color: var(--text); }
.logo-text small { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }

.search-box {
  flex: 1; max-width: 360px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.search-box input {
  flex: 1; border: none; padding: 7px 12px; outline: none;
  font-size: 13px; background: transparent;
}
.search-box button {
  background: var(--brand); color: #fff; border: none;
  padding: 0 14px; font-size: 13px;
}

.header-actions { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.header-actions a { color: var(--text-light); white-space: nowrap; }
.header-actions a:hover { color: var(--brand); }

/* 二级导航 */
.nav-bar { background: var(--bg-warm); border-bottom: 1px solid var(--border-light); }
.nav-bar ul { display: flex; list-style: none; gap: 0; flex-wrap: wrap; }
.nav-bar li a {
  display: block; padding: 9px 18px; font-size: 13px;
  color: var(--text); transition: background .2s;
}
.nav-bar li a:hover, .nav-bar li a.active { background: var(--brand); color: #fff; }

/* 手机端汉堡 */
.menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--text); padding: 4px; }

/* === 卡片 === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 18px; }

/* 底部装饰条卡片 */
.card-accent { border-bottom: 3px solid var(--brand); }
/* 左色条卡片 */
.card-left-bar { border-left: 4px solid var(--accent); }

/* === 按钮 === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 22px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A0612A; }
.btn-outline { background: transparent; border: 1px solid var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 32px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* === 徽标 === */
.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 2px; font-size: 11px; font-weight: 500;
}
.badge-hot { background: rgba(198,40,40,0.1); color: var(--danger); }
.badge-new { background: rgba(46,125,50,0.1); color: var(--success); }
.badge-promo { background: rgba(230,81,0,0.1); color: var(--warning); }
.badge-rec { background: rgba(184,115,51,0.1); color: var(--accent); }

/* === 面包屑 === */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb span { margin: 0 6px; }

/* === 分页 === */
.pagination { display: flex; gap: 4px; justify-content: center; padding: 24px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text-light);
}
.pagination .active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }

/* === Section === */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--bg-warm); }
.section-title {
  text-align: center; margin-bottom: 2rem;
}
.section-title h2 { margin-bottom: 6px; }
.section-title p { color: var(--text-muted); font-size: 14px; }
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--accent); margin: 12px auto 0;
}

/* === 服务/产品网格 === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card { position: relative; }
.product-card .card-img {
  height: 180px; overflow: hidden;
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 14px 16px; }
.product-card .product-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.product-card .product-desc { font-size: 13px; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-price { font-size: 18px; font-weight: 700; color: var(--danger); }
.product-card .product-price .orig { font-size: 12px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-card .product-actions { display: flex; gap: 8px; margin-top: 12px; }
.product-card .product-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); margin-top: 8px; }
.product-card .badge { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* === 公告/通知条 === */
.notice-bar {
  background: #FFF8E1;
  border-bottom: 1px solid #FFE082;
  padding: 6px 0;
  font-size: 12px;
  color: #795548;
}
.notice-bar .container { display: flex; align-items: center; gap: 8px; }
.notice-bar strong { color: var(--brand); white-space: nowrap; }

/* === 最近成交 === */
.recent-orders {
  position: fixed;
  bottom: 140px;
  left: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  font-size: 12px;
  z-index: 90;
  max-width: 260px;
  transition: opacity .3s;
}
.recent-orders .ro-close { position: absolute; top: 4px; right: 8px; cursor: pointer; color: var(--text-muted); font-size: 14px; }

/* === 统计条 === */
.stats-bar { background: var(--brand-dark); color: #fff; padding: 18px 0; }
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; text-align: center; }
.stats-bar .stat-num { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--accent-light); }
.stats-bar .stat-label { font-size: 13px; opacity: .85; }

/* === 客服浮窗 === */
.cs-float {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 95;
}
.cs-btn {
  width: 48px; height: 48px;
  background: var(--brand);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.cs-btn .cs-dot {
  position: absolute; top: 2px; right: 2px;
  width: 10px; height: 10px;
  background: var(--success);
  border-radius: 50%;
  border: 2px solid #fff;
}
.cs-panel {
  display: none;
  position: absolute;
  bottom: 56px;
  right: 0;
  width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.cs-panel.open { display: block; }
.cs-panel-header { background: var(--brand); color: #fff; padding: 12px 14px; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.cs-panel-body { padding: 14px; font-size: 13px; }

/* === 返回顶部 === */
.back-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 40px; height: 40px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* === Cookie 横幅 === */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.cookie-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cookie-bar p { font-size: 12px; color: var(--text-light); flex: 1; }
.cookie-bar .btn { flex-shrink: 0; }

/* === 页脚 === */
.site-footer { background: var(--brand-dark); color: #ccc; padding: 40px 0 0; font-size: 13px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding-bottom: 28px;
}
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font-heading); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: var(--accent-light); }
.footer-col p { line-height: 1.8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}
.footer-bottom a { color: #aaa; margin: 0 8px; }

/* === 表单 === */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 5px; color: var(--text);
}
.form-group label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color .2s;
  background: #fff;
}
.form-control:focus { border-color: var(--brand); outline: none; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 3px; display: none; }
.form-group.error .form-control { border-color: var(--danger); }
.form-group.error .form-error { display: block; }

/* 支付方式单选卡 */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pay-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.pay-card:hover { border-color: var(--brand); }
.pay-card.selected { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pay-card input[type="radio"] { display: none; }
.pay-card svg { width: 32px; height: 32px; margin: 0 auto 6px; }
.pay-card .pay-name { font-size: 12px; font-weight: 500; }

/* 滑块验证 */
.slider-verify {
  position: relative;
  height: 38px;
  background: #f0f0f0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.slider-verify .sv-track { position: absolute; left: 0; top: 0; height: 100%; background: var(--success); width: 0; transition: width .1s; }
.slider-verify .sv-text { position: absolute; width: 100%; text-align: center; line-height: 38px; font-size: 13px; color: var(--text-muted); user-select: none; pointer-events: none; }
.slider-verify .sv-handle {
  position: absolute; left: 0; top: 0;
  width: 42px; height: 100%;
  background: #fff;
  border: 1px solid #ddd;
  cursor: grab; touch-action: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  z-index: 2;
}
.slider-verify.verified .sv-track { width: 100% !important; }
.slider-verify.verified .sv-text { color: #fff; }
.slider-verify.verified .sv-handle { left: calc(100% - 42px) !important; }

/* === 侧边栏 === */
.page-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.sidebar { position: sticky; top: 70px; }
.sidebar .card { padding: 0; }
.sidebar-title { padding: 12px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--border); background: var(--bg-warm); }
.sidebar-menu { list-style: none; }
.sidebar-menu li a {
  display: block; padding: 9px 16px; font-size: 13px;
  color: var(--text-light); border-bottom: 1px solid var(--border-light);
  transition: background .15s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active { background: var(--bg-warm); color: var(--brand); }

/* === 详情页 === */
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 24px 0; }
.detail-hero .gallery img { border-radius: var(--radius); border: 1px solid var(--border); }
.detail-info .price-row { margin: 14px 0; padding: 12px 16px; background: #FFF8F0; border-radius: var(--radius); }
.detail-info .price-now { font-size: 28px; font-weight: 700; color: var(--danger); }
.detail-info .price-orig { font-size: 14px; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.detail-tabs { border-bottom: 1px solid var(--border); display: flex; gap: 0; margin-top: 24px; }
.detail-tabs button {
  padding: 10px 22px; border: none; background: none;
  font-size: 14px; color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.detail-tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-content { padding: 20px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* 评价 */
.review-item { padding: 14px 0; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-warm); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--brand); font-weight: 600;
}
.review-name { font-size: 13px; font-weight: 500; }
.review-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }
.review-stars { color: #F9A825; font-size: 13px; }
.review-text { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.review-reply { margin-top: 8px; padding: 8px 12px; background: var(--bg-warm); border-radius: var(--radius); font-size: 12px; color: var(--text-light); }
.review-reply strong { color: var(--brand); }

/* === 登录弹窗 === */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 300;
  justify-content: center; align-items: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  width: min(90%, 400px);
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; color: var(--text-muted); }
.modal-body { padding: 20px; }

/* === 友情链接 === */
.friend-links { padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: #888; }
.friend-links span { margin-right: 12px; }

/* === 提交成功面板 === */
.success-panel {
  text-align: center;
  padding: 40px 20px;
}
.success-panel .check-icon {
  width: 60px; height: 60px;
  background: var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: #fff; font-size: 28px;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .detail-hero { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
  .menu-toggle { display: block; }
  .nav-bar ul { display: none; flex-direction: column; }
  .nav-bar ul.open { display: flex; }
  .nav-bar li a { padding: 10px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recent-orders { display: none; }
  .stats-bar .container { gap: 8px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card .card-img { height: 140px; }
  .pay-methods { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-actions { font-size: 12px; gap: 10px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card .card-body { padding: 10px 12px; }
  .product-card .product-name { font-size: 13px; }
  .product-card .product-price { font-size: 15px; }
}

/* ===== Toast Notification ===== */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #333;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  z-index: 99999;
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  max-width: 90vw;
  text-align: center;
  white-space: nowrap;
}
.toast-msg.toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Print Styles ===== */
@media print {
  .top-bar,
  .site-header,
  .nav-bar,
  .notice-bar,
  .cs-float,
  .back-top,
  .cookie-bar,
  .modal-overlay,
  .recent-orders,
  .friend-links,
  .menu-toggle {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  .site-footer {
    border-top: 1px solid #ccc;
    padding-top: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }
  a[href^="javascript"]::after,
  a[href^="tel"]::after,
  a[href^="mailto"]::after {
    content: "";
  }
  .card,
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
  img {
    max-width: 100% !important;
  }
}

/* ===== Focus & Accessibility ===== */
:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary, #2563eb);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37,99,235,.15);
}
.btn:focus-visible {
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary, #2563eb);
  color: #fff;
  padding: 8px 20px;
  border-radius: 0 0 6px 6px;
  z-index: 100000;
  font-size: 14px;
  transition: top .2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== Form Validation Styles ===== */
.form-control.is-invalid {
  border-color: #dc3545;
}
.form-control.is-valid {
  border-color: #198754;
}
.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}
.form-group.has-error .invalid-feedback {
  display: block;
}
.form-group.has-error .form-control {
  border-color: #dc3545;
}
.form-group.has-success .form-control {
  border-color: #198754;
}

/* ===== Additional Responsive Tweaks ===== */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-col h4 {
    margin-bottom: 8px;
  }
  .top-bar .container {
    flex-direction: column;
    gap: 4px;
    padding: 6px 12px;
    font-size: 12px;
  }
  .search-box {
    display: none;
  }
  .product-actions {
    flex-direction: column;
    gap: 6px;
  }
  .product-actions .btn {
    width: 100%;
    text-align: center;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .card-img img {
    height: 140px;
  }
}
@media (max-width: 360px) {
  .logo-text small {
    display: none;
  }
  .header-actions {
    font-size: 13px;
  }
  .site-footer {
    padding: 24px 8px;
  }
}

/* ===== Selection Styles ===== */
::selection {
  background: var(--primary, #2563eb);
  color: #fff;
}
::-moz-selection {
  background: var(--primary, #2563eb);
  color: #fff;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  .card {
    border: 2px solid #000;
  }
  .btn {
    border: 2px solid currentColor;
  }
  .form-control {
    border: 2px solid #333;
  }
}
