/* 统一样式文件 - 菑香苑小区网站 */

/* 根变量定义 */
:root {
  /* 暖色调主题色 */
  --color-warm-50: #fff9f2;
  --color-warm-100: #fff1e0;
  --color-warm-200: #ffe4cc;
  --color-warm-300: #ffd2a6;
  --color-warm-400: #ffb873;
  --color-warm-500: #ff9e40;
  --color-warm-600: #fd8c28;
  --color-warm-700: #f57c1a;
  --color-warm-800: #e06c14;
  --color-warm-900: #c2570f;
  
  /* 主要颜色 */
  --color-primary: #e67e22;
  --color-secondary: #3498db;
  --color-accent: #2ecc71;
}

/* 自定义工具类 */
.content-auto {
  content-visibility: auto;
}

.text-shadow-sm {
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.bg-gradient-warm {
  background: linear-gradient(135deg, #fff9f2 0%, #ffe4cc 100%);
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.input-focus:focus {
  outline: none;
  border-color: var(--color-warm-500);
  box-shadow: 0 0 0 2px rgba(255, 158, 64, 0.2);
  transition: all 0.2s ease;
}

.table-shadow {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.payment-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.15);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.payment-card:hover {
  box-shadow: 0 8px 30px rgba(230, 126, 34, 0.2);
  transform: translateY(-4px);
}

.photo-zoom-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-zoom-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.folder-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.folder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(253, 140, 40, 0.15);
}

.photo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(253, 140, 40, 0.15);
}

.aspect-square {
  aspect-ratio: 1/1;
}

.aspect-photo {
  aspect-ratio: 4/3;
}

.toolbar-fixed {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 72rem;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(253, 140, 40, 0.15);
}

.sponsor-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sponsor-card:hover {
  transform: translateY(-2px);
}

.faq-item-active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-item-active .faq-icon {
  transform: rotate(180deg);
}
  
/* 自定义主题色系 - 增加直接可用的颜色类 */
.text-warm-50 { color: #fff9f2; }
.text-warm-100 { color: #fff1e0; }
.text-warm-200 { color: #ffe4cc; }
.text-warm-300 { color: #ffd2a6; }
.text-warm-400 { color: #ffb873; }
.text-warm-500 { color: #ff9e40; }
.text-warm-600 { color: #fd8c28; }
.text-warm-700 { color: #f57c1a; }
.text-warm-800 { color: #e06c14; }
.text-warm-900 { color: #c2570f; }

.bg-warm-50 { background-color: #fff9f2 !important; }
.bg-warm-100 { background-color: #fff1e0 !important; }
.bg-warm-200 { background-color: #ffe4cc !important; }
.bg-warm-300 { background-color: #ffd2a6 !important; }
.bg-warm-400 { background-color: #ffb873 !important; }
.bg-warm-500 { background-color: #ff9e40 !important; }
.bg-warm-600 { background-color: #fd8c28 !important; }
.bg-warm-700 { background-color: #f57c1a !important; }
.bg-warm-800 { background-color: #e06c14 !important; }
.bg-warm-900 { background-color: #c2570f !important; }

/* 阴影样式 */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.shadow-warm {
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.15);
}

/* 移动端导航高亮样式 */
.mobile-nav-active {
  color: #fd8c28;
}

.mobile-nav-inactive {
  color: #6b7280;
}

.mobile-nav-inactive:hover {
  color: #fd8c28;
}

/* 过渡动画增强 */
.transition-transform-warm {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* hover 和 focus 效果增强 */
.hover\:bg-warm-50:hover { background-color: #fff9f2 !important; }
.hover\:bg-warm-100:hover { background-color: #fff1e0 !important; }
.hover\:bg-warm-200:hover { background-color: #ffe4cc !important; }
.hover\:bg-warm-300:hover { background-color: #ffd2a6 !important; }
.hover\:bg-warm-600:hover { background-color: #fd8c28 !important; }
.hover\:bg-warm-700:hover { background-color: #f57c1a !important; }
.hover\:text-warm-600:hover { color: #fd8c28; }
.hover\:text-warm-700:hover { color: #f57c1a; }
.hover\:text-warm-800:hover { color: #e06c14; }

.focus\:ring-warm-500:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 158, 64, 0.3);
}

.focus\:border-warm-500:focus {
  border-color: #ff9e40;
}

/* 全局样式 */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #ff9e40;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #fd8c28;
}

/* 确保图片在容器中正确显示 */
img {
  max-width: 100%;
  height: auto;
}

/* 导航栏样式 */
.nav-link {
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: #fff9f2;
}

.nav-link.active {
  background-color: #fd8c28;
  color: white;
}

/* 统一底部高度调整 */
.footer-spacing {
  height: 2rem; /* 桌面端页面内容与页脚的间距 */
}

.mobile-nav-spacing {
  height: 4rem; /* 移动端页面内容与底部导航的间距 */
}

/* 移动端适配 */
@media (max-width: 767px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* 调整卡片间距 */
  .grid > * {
    margin-bottom: 0.5rem;
  }
  
  /* 服务栅格整体微调：让图标+文字整体更靠下，同时增大行间距的视觉舒适度 */
   .services-grid > div { margin-top: 12px; }
    @media (min-width: 768px) {
      .services-grid > div { margin-top: 16px; }
    }
}