/* 全局样式变量 */
:root {
  --primary-color: #8B7355;
  --secondary-color: #A0826D;
  --accent-color: #CDB79E;
  --text-dark: #3A3A3A;
  --text-light: #6B6B6B;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* 导航栏样式 */
.navbar {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: rgba(139, 115, 85, 0.05);
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 500;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}

/* Hero 区域 */
.hero-section {
  min-height: 70vh;
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.1) 0%, rgba(202, 183, 158, 0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.9;
}

.hero-content {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

/* 快速入口卡片 */
.Quick-entry-card {
  background: var(--bg-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  cursor: pointer;
}

.Quick-entry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.Quick-entry-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.Quick-entry-card:hover img {
  transform: scale(1.05);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* 图片画廊 - 瀑布流 */
.gallery-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* 材质工艺 - 图文交替 */
.material-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: 12px;
}

.material-section:nth-child(even) {
  flex-direction: row-reverse;
}

.material-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.material-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.material-image:hover img {
  transform: scale(1.05);
}

.material-content {
  flex: 1;
}

/* 系法艺术卡片 */
.tie-method-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
}

.tie-method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tie-method-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.step-list {
  list-style: none;
  padding-left: 0;
}

.step-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 2rem;
}

.step-list li::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
  font-size: 0.875rem;
  background: var(--bg-white);
  margin-top: 4rem;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .gallery-grid {
    column-count: 2;
  }
  
  .material-section {
    flex-direction: column !important;
    gap: 2rem;
  }
  
  .material-section:nth-child(even) {
    flex-direction: column !important;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    column-count: 1;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .material-section {
    padding: 1.5rem;
  }
  
  .material-image img {
    height: 250px;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .material-section {
    padding: 1rem;
  }
  
  .tie-method-card {
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

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

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}