/* ========================================
   生活服务网站 - 统一样式系统
   品牌气质：新西兰自然绿 + 温暖金，简洁留白
   ======================================== */

/* ========== 1. CSS变量定义 ========== */
@import url('https://cdn.jsdelivr.net/npm/@fontsource/roboto@5.0.8/index.css');

:root {
  /* NZ Naturalism Palette — 唯一配色定义 */
  --primary-color: #2D5A27;
  --primary-dark: #1D3A17;
  --primary-light: #3D7A37;
  --primary-soft: #EAF4E8;

  --accent-color: #F59E0B;
  --accent-strong: #D97706;
  --accent-dark: #B45309;
  --accent-light: #FEF3C7;
  --accent-green: #52C41A;

  --text-primary: #2C3E50;
  --text-secondary: #5D6D7E;
  --text-tertiary: #95A5A6;

  /* Backgrounds */
  --bg-page: #F5F5DC;
  --bg-white: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-dark: rgba(45, 90, 39, 0.9);
  --bg-soft: var(--bg-page);
  --secondary-bg: #F5F5DC;
  --beige-light: #FAFAF0;

  /* Borders & Dividers */
  --border-color: #EAEAEA;
  --border-light: #F5F5F5;

  /* State Colors */
  --success-color: #2E7D32;
  --warning-color: #F59E0B;
  --error-color: #D32F2F;
  --info-color: #0288D1;

  /* Card Shadows (NZ style) */
  --card-shadow: 0 8px 24px rgba(45, 90, 39, 0.10);
  --card-shadow-hover: 0 16px 32px rgba(45, 90, 39, 0.18);

  /* Modern Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(45, 90, 39, 0.28);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --border-radius: 12px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 40px;
  --spacing-2xl: 64px;

  /* Typography */
  --font-family: 'Roboto', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}


/* ========== 2. 基础样式重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--bg-page);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  box-shadow: var(--shadow-xs);
}

/* ========== 3. 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* ========== 4. 按钮样式 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 主按钮 */
.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 次按钮 */
.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
}

/* 成功按钮 */
.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #389E0D;
}

/* 警告按钮 */
.btn-warning {
  background: var(--warning-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-warning:hover:not(:disabled) {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-warning {
  background: transparent;
  border: 2px solid var(--warning-color);
  color: var(--warning-color);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-outline-warning:hover:not(:disabled) {
  background: var(--warning-color);
  color: white;
  transform: translateY(-2px);
}

.btn-nz-primary,
.btn-brand {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-nz-primary:hover:not(:disabled),
.btn-brand:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-nz-primary,
.btn-outline-brand {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--radius-md);
}

.btn-outline-nz-primary:hover:not(:disabled),
.btn-outline-brand:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-outline-nz-primary.active,
.btn-outline-nz-primary:active,
.btn-outline-brand.active,
.btn-outline-brand:active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.bg-warning {
  background-color: var(--warning-color) !important;
}

.bg-brand {
  background-color: var(--primary-color) !important;
}


/* Removed orphan lines */

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.section-kicker {
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary-color);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ========== 19. 导航与页眉 ========== */
.app-navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  border-bottom: 2px solid rgba(45, 90, 39, 0.10);
}

.nav-brand {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
}

.nav-link-ghost {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-md);
}

.nav-link-ghost:hover,
.nav-link-ghost.active {
  color: var(--primary-dark);
  background: rgba(45, 90, 39, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ========== 20. Hero & Banner ========== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
}

/* ========== 21. 标签与徽标 ========== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(45, 90, 39, 0.08);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 13px;
}

.tag-soft {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 12px;
}

/* ========== 22. 表单/认证 ========== */
.auth-shell {
  min-height: 100vh;
  background: linear-gradient(145deg, rgba(45, 90, 39, 0.92), rgba(0, 27, 94, 0.92)), url('/nz-pattern.svg');
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
}

.auth-card {
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-hero {
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
}

.auth-hero h2 {
  font-size: 28px;
  font-weight: 800;
}

.auth-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.auth-form {
  padding: var(--spacing-xl);
  background: #fff;
}

.form-control,
.form-select {
  border-radius: var(--radius-md);
  border: 2px solid #e5e7eb;
  padding: 12px 14px;
  font-size: 15px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.18);
}

.btn-primary,
.btn-success {
  box-shadow: var(--shadow-sm);
}

/* ========== 23. 网格与列表 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-lg);
}

.list-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========== 24. 响应式调整 ========== */
@media (max-width: 992px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 32px;
  }
}

/* ========== 25. 可访问性样式 ========== */

/* 跳转到主内容链接 */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 10px;
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* 键盘导航焦点样式 */
.keyboard-nav *:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

.keyboard-nav a:focus,
.keyboard-nav button:focus,
.keyboard-nav input:focus,
.keyboard-nav select:focus,
.keyboard-nav textarea:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(45, 90, 39, 0.22);
}

/* focus-visible 支持 */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* 减少动画 */
@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;
  }
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

/* 高对比度支持 */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #1a4d1a;
    --primary-light: #2d7a2d;
    --primary-dark: #0d260d;
    --text-primary: #000000;
    --text-secondary: #1a1a1a;
    --border-color: #333333;
  }

  .btn-primary,
  .btn-warning {
    border: 2px solid currentColor;
  }
}

/* ========== 26. 懒加载样式 ========== */

/* 懒加载占位 */
img[data-src],
[data-bg] {
  background-color: var(--bg-gray);
  min-height: 100px;
}

.lazy-loading {
  opacity: 0.5;
  filter: blur(5px);
}

.lazy-loaded {
  opacity: 1;
  filter: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* ========== 27. 语言切换器样式 ========== */
.lang-switcher .btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.85rem;
}

.lang-switcher .btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher .dropdown-menu {
  min-width: 150px;
}

.lang-switcher .dropdown-item.active {
  background: var(--primary-color);
  color: white;
}

/* 导航栏语言切换器 */
.navbar .lang-switcher .btn {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.navbar .lang-switcher .btn:hover {
  background: var(--primary-color);
  color: white;
}

/* ========== 28. 信任背书与快捷入口 ========== */
.trust-strip {
  margin-top: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  text-align: center;
}

.trust-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.trust-badges {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-lg);
}

.quick-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  color: inherit;
  text-decoration: none;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.quick-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: #fff;
  font-size: 20px;
}

.quick-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.quick-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.quick-action {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ========== 29. 需求筛选条 ========== */
.filter-bar {
  padding: var(--spacing-lg);
}

.filter-title {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.filter-bar .form-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.filter-bar .form-control,
.filter-bar .form-select {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
}

/* ========== 30. 紧急消息 ========== */
.urgent-panel {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  animation: urgentPulse 5s ease-in-out infinite;
}

.urgent-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-strong), var(--primary-color));
}

.urgent-list {
  display: grid;
  gap: var(--spacing-md);
}

.urgent-item {
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(45, 90, 39, 0.06);
  border: 1px solid rgba(45, 90, 39, 0.12);
  animation: urgentFade 0.4s ease;
}

.urgent-level {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(45, 90, 39, 0.12);
  color: var(--primary-dark);
}

.urgent-level.urgent {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.urgent-level.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.urgent-text {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--spacing-sm);
}

@keyframes urgentPulse {
  0% {
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.12);
  }

  50% {
    box-shadow: 0 12px 28px rgba(244, 162, 97, 0.22);
  }

  100% {
    box-shadow: 0 8px 20px rgba(45, 90, 39, 0.12);
  }
}

@keyframes urgentFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Homepage Refresh ===== */
.top-ticker {
  background: var(--beige-light);
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(45, 90, 39, 0.12);
  font-size: 14px;
}

.top-ticker.is-empty {
  display: none;
}

.ticker-track {
  overflow: hidden;
  padding: 0.6rem 0;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
}

.ticker-content.is-animated {
  animation: tickerMove 18s linear infinite;
}

.top-ticker:hover .ticker-content.is-animated {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.ticker-item i {
  color: var(--accent-strong);
}

.ticker-item a {
  color: var(--primary-dark);
  text-decoration: underline;
  font-weight: 600;
}

.ticker-sep {
  opacity: 0.4;
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-content {
  text-align: center;
}

.hero-main {
  max-width: 820px;
  margin: 0 auto;
}

.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

.hero-section {
  padding: 4.5rem 0 8rem;
}

.hero-section .display-4 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.search-box {
  max-width: 620px;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.hot-label {
  color: rgba(255, 255, 255, 0.8);
}

.hot-tag {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
}

.hot-tag:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.3);
}

.hero-floating {
  margin-top: 3.5rem;
  margin-bottom: -5rem;
  position: relative;
  z-index: 2;
}

.floating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.floating-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(45, 90, 39, 0.10);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.floating-card h6 {
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--text-primary) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.floating-card:hover h6 {
  color: var(--text-primary) !important;
}

.floating-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(45, 90, 39, 0.12);
  color: var(--primary-color);
}

.floating-icon.floating-accent {
  background: rgba(244, 162, 97, 0.2);
  color: var(--accent-strong);
}

.floating-icon.floating-warn {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.floating-icon.floating-info {
  background: rgba(37, 99, 235, 0.15);
  color: #1d4ed8;
}

.section-offset {
  padding-top: 10rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
}

/* Skeletons */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #eef2ef;
  border-radius: 12px;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: translateX(-100%);
  animation: skeletonMove 1.4s infinite;
}

@keyframes skeletonMove {
  to {
    transform: translateX(100%);
  }
}

.skeleton-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  margin: 0 auto;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.short {
  width: 60%;
  margin: 0 auto;
}

.skeleton-line.wide {
  width: 80%;
}

.skeleton-button {
  height: 36px;
  border-radius: 999px;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .floating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-bottom: 6rem;
  }

  .hero-floating {
    margin-bottom: -3rem;
  }

  .floating-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .floating-card {
    min-width: 220px;
  }

  .section-offset {
    padding-top: 7rem;
  }
}


/* ===== Homepage Layout Overrides ===== */
/* NOTE: :root variables are now unified at the top of this file */

body {
  font-family: var(--font-family);
  background: var(--secondary-bg);
}

/* 导航栏优化 - 新西兰风格 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  padding: 1rem 0;
  border-bottom: 3px solid transparent;
  border-image: url('nz-pattern.svg') 30 stretch;
}

.navbar-brand {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.btn-nz-primary,
.btn-brand {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(45, 90, 39, 0.25);
  transition: all 0.3s ease;
}

.btn-nz-primary:hover,
.btn-brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 39, 0.35);
}

.btn-outline-nz-primary,
.btn-outline-brand {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-outline-nz-primary:hover,
.btn-outline-brand:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.bg-brand {
  background-color: var(--primary-color);
}

/* Hero Section - 新西兰自然风格 */
.hero-section {
  background: linear-gradient(135deg, #2D5A27 0%, #3D7A37 50%, #52C41A 100%);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 8rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2.5rem;
}

.hero-layout {
  align-items: stretch;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-card {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  height: 100%;
}

.display-4 {
  font-weight: 800;
  font-size: 3rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0;
}

/* 搜索框优化 */
.search-box {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-width: 620px;
}

.search-box .form-control {
  border: none;
  padding: 1.2rem 1.5rem;
  font-size: 1.1rem;
  background: transparent;
}

.search-box .form-control:focus {
  box-shadow: none;
  outline: none;
  border-color: var(--primary-color);
}

.search-box .btn {
  padding: 1.2rem 2rem;
  border-radius: 0;
}

.hero-side {
  display: grid;
  gap: 1.5rem;
  height: 100%;
}

.hero-side .urgent-panel,
.hero-side .quick-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: var(--card-shadow);
}

.hero-side .urgent-panel {
  padding: 1.5rem;
}

.quick-panel {
  border-radius: 18px;
  padding: 1.5rem;
}

.quick-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
}

.quick-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quick-grid-compact .quick-card {
  padding: 1rem;
  border: 1px solid rgba(45, 90, 39, 0.10);
  background: #fff;
}

.quick-grid-compact .quick-card h3 {
  font-size: 0.95rem;
}

.quick-grid-compact .quick-card p {
  font-size: 0.8rem;
  margin-bottom: 0;
}

.quick-grid-compact .quick-action {
  font-size: 0.75rem;
}

.hero-card .trust-strip {
  justify-content: flex-start;
  text-align: left;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 90, 39, 0.10);
}

/* 卡片设计优化 - 新西兰自然风格 */
.service-card,
.demand-card,
.hover-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf7 100%);
  border-radius: var(--border-radius);
  border: 1px solid rgba(45, 90, 39, 0.10);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  height: 100%;
}

.service-card:hover,
.demand-card:hover,
.hover-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.service-card .card-body {
  padding: 2.5rem 2rem;
}

/* 服务图标优化 - 新西兰风格 */
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.10) 0%, rgba(51, 90, 166, 0.16) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.18) 0%, rgba(51, 90, 166, 0.24) 100%);
}

.service-card .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a202c;
  margin-bottom: 0.75rem;
}

.service-card .card-text {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Verified Check 图标 */
.verified-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-green);
  color: white;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

.verified-badge .verified-text {
  font-weight: 650;
}

.service-card {
  position: relative;
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-card-link:hover {
  color: inherit;
}

/* 需求卡片优化 */
.demand-card .card-body {
  padding: 2rem;
}

.demand-card .card-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a202c;
  margin-bottom: 1rem;
}

.demand-card .badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}

.demand-card .card-text {
  color: #718096;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.demand-card .btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

/* 区块标题优化 */
.section-title {
  font-weight: 800;
  font-size: 2.25rem;
  color: #1a202c;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

/* 间距优化 */
.section-spacing {
  padding: 5rem 0;
}

/* Footer 优化 - 新西兰风格 */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  margin-top: 0;
  border-top: 3px solid transparent;
  border-image: url('nz-pattern.svg') 30 stretch;
}

footer h5 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  transition: all 0.3s ease;
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  transform: translateX(5px);
}

/* 响应式优化 */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .hero-banner {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    padding: 2rem;
    text-align: center;
  }

  .hero-card .search-box {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-card .trust-strip {
    justify-content: center;
    text-align: center;
  }

  .quick-grid-compact {
    grid-template-columns: 1fr;
  }
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #ff4d4f;
  color: #fff;
  font-size: 0.7rem;
  margin-left: 6px;
}

.notification-read {
  opacity: 0.7;
}