/**
 * zx-laoli60 装修网站 - 原木奶油风
 * 颜色体系：
 * - 背景：#FFF8F0（奶油白）
 * - 卡片：#FFFFFF
 * - 主色：#8B7355（原木棕）
 * - 强调：#C4956A（暖杏色）
 * - 文字：#3D3229（深棕）
 */

/* ===== 基础重置 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background-color: #FFF8F0;
  color: #3D3229;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ===== 顶部木纹条 ===== */
.wood-grain-top {
  height: 8px;
  background: linear-gradient(90deg, #8B7355 0%, #A08060 25%, #C4956A 50%, #A08060 75%, #8B7355 100%);
  background-size: 200% 100%;
  animation: woodGrain 8s linear infinite;
}

@keyframes woodGrain {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ===== 导航栏 ===== */
.navbar {
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(61, 50, 41, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #8B7355 0%, #C4956A 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #8B7355;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-size: 15px;
  color: #3D3229;
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #C4956A;
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: #C4956A;
  border-radius: 1px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #8B7355;
  border-radius: 1px;
  transition: all 0.3s;
}

/* ===== Hero 区域 ===== */
.hero {
  padding: 60px 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F0 100%);
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #3D3229;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-title span {
  color: #C4956A;
}

.hero-desc {
  font-size: 18px;
  color: #666;
  margin-bottom: 24px;
  max-width: 500px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8B7355;
  font-size: 14px;
}

.hero-meta-item i {
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  flex-shrink: 0;
}

.progress-ring {
  width: 200px;
  height: 200px;
  position: relative;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  fill: none;
  stroke: #f0e6dc;
  stroke-width: 12;
}

.progress-ring-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 565.48;
  stroke-dashoffset: 141.37;
  transition: stroke-dashoffset 1s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-value {
  font-size: 36px;
  font-weight: 700;
  color: #8B7355;
  display: block;
}

.progress-label {
  font-size: 12px;
  color: #999;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #8B7355 0%, #C4956A 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 115, 85, 0.4);
}

.btn-secondary {
  background: white;
  color: #8B7355;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  border-color: #C4956A;
  color: #C4956A;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ===== 模块区域 ===== */
.modules-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #3D3229;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: #888;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.module-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(61, 50, 41, 0.06);
  transition: all 0.3s;
  cursor: pointer;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(61, 50, 41, 0.12);
}

.module-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.module-card:nth-child(1) .module-icon { background: #FFF5EB; }
.module-card:nth-child(2) .module-icon { background: #F0F7FF; }
.module-card:nth-child(3) .module-icon { background: #F5F0FF; }
.module-card:nth-child(4) .module-icon { background: #E8F5E9; }
.module-card:nth-child(5) .module-icon { background: #FFF3E0; }
.module-card:nth-child(6) .module-icon { background: #E3F2FD; }
.module-card:nth-child(7) .module-icon { background: #FCE4EC; }

.module-title {
  font-size: 18px;
  font-weight: 600;
  color: #3D3229;
  margin-bottom: 8px;
}

.module-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.6;
}

.module-count {
  font-size: 13px;
  color: #C4956A;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 列表页样式 ===== */
.page-header {
  background: white;
  padding: 40px 20px;
  border-bottom: 1px solid rgba(139, 115, 85, 0.1);
}

.page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #3D3229;
  margin-bottom: 8px;
}

.page-desc {
  font-size: 15px;
  color: #888;
}

.content-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.list-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(61, 50, 41, 0.06);
  transition: all 0.3s;
}

.list-card:hover {
  box-shadow: 0 4px 16px rgba(61, 50, 41, 0.1);
}

.list-card-image {
  height: 160px;
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe5db 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.list-card-body {
  padding: 20px;
}

.list-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D3229;
  margin-bottom: 8px;
}

.list-card-desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 16px;
  line-height: 1.5;
}

.list-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #aaa;
}

.list-card-tags {
  display: flex;
  gap: 8px;
}

.tag {
  padding: 4px 10px;
  background: #FFF8F0;
  color: #8B7355;
  border-radius: 4px;
  font-size: 12px;
}

/* ===== 时间线样式 ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #C4956A 0%, #8B7355 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  width: 18px;
  height: 18px;
  background: white;
  border: 3px solid #C4956A;
  border-radius: 50%;
}

.timeline-dot.completed {
  background: #C4956A;
}

.timeline-content {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 50, 41, 0.06);
}

.timeline-date {
  font-size: 13px;
  color: #C4956A;
  margin-bottom: 8px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #3D3229;
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 14px;
  color: #666;
}

/* ===== 表格样式 ===== */
.data-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(61, 50, 41, 0.06);
}

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

.data-table th,
.data-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #f0e6dc;
}

.data-table th {
  background: #FFF8F0;
  font-weight: 600;
  color: #8B7355;
  font-size: 14px;
}

.data-table td {
  font-size: 14px;
  color: #3D3229;
}

.data-table tr:hover td {
  background: #FFFCF8;
}

.price-cell {
  color: #C4956A;
  font-weight: 600;
}

/* ===== 预算统计 ===== */
.budget-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.budget-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(61, 50, 41, 0.06);
  text-align: center;
}

.budget-card-value {
  font-size: 32px;
  font-weight: 700;
  color: #8B7355;
  margin-bottom: 8px;
}

.budget-card-label {
  font-size: 14px;
  color: #888;
}

/* ===== 标签云 ===== */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-cloud-item {
  padding: 10px 20px;
  background: white;
  border-radius: 20px;
  font-size: 14px;
  color: #3D3229;
  box-shadow: 0 2px 4px rgba(61, 50, 41, 0.06);
  transition: all 0.3s;
}

.tag-cloud-item:hover {
  background: #8B7355;
  color: white;
  transform: translateY(-2px);
}

/* ===== 底部 ===== */
.footer {
  background: #3D3229;
  color: #d4c8bc;
  padding: 48px 20px 24px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section a {
  color: #a89a8c;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #C4956A;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .progress-ring {
    width: 160px;
    height: 160px;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 24px;
  }

  .list-grid {
    grid-template-columns: 1fr;
  }

  .budget-summary {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== 辅助类 ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none; }
.loading { opacity: 0.6; pointer-events: none; }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
