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

:root {
  --bg-color: #faf8f5;
  --text-primary: #4d3f3f;
  --text-secondary: #6b6b6b;
  --green-accent: #7d9b76;
  --green-light: #e8f0e6;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.logo:hover {
  color: var(--green-accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--green-accent);
}

.login-btn {
  background-color: var(--green-accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
}

.login-btn:hover {
  background-color: var(--green-dark);
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.profile-btn:hover {
  background-color: var(--green-light);
  color: var(--green-accent);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.cart-btn:hover {
  background-color: var(--green-light);
  color: var(--green-accent);
}

.materials-showcase {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
}

.showcase-content {
  margin-bottom: 60px;
  padding: 0 24px;
}

.showcase-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.showcase-text {
  max-width: 600px;
}

.showcase-text h3 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 20px;
  transition: opacity 0.5s ease;
}

.showcase-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  transition: opacity 0.5s ease;
}

.showcase-carousel {
  overflow: hidden;
  padding: 0 24px;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 280px;
  height: 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: var(--transition);
}

.carousel-item:hover {
  transform: translateY(-8px);
}

.carousel-item.active {
  flex: 0 0 280px;
  height: 400px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.carousel-item.active::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--green-accent);
  border-radius: 12px;
  pointer-events: none;
}

.carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
}

.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.login-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 48px 40px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-content h2 {
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: var(--bg-color);
}

.form-group input:focus {
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(125, 155, 118, 0.15);
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--green-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.submit-btn:hover {
  background-color: var(--green-dark);
}

.login-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
  opacity: 0.7;
}

.copyright-bar {
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.copyright-bar p {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 4px;
}

.copyright-bar a {
  color: var(--text-secondary);
  text-decoration: none;
}

.copyright-bar a:hover {
  color: var(--green-accent);
}

.bottom-nav {
  padding: 60px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
}

.nav-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
}

.nav-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-column:hover .nav-title {
  color: var(--green-accent);
}

.nav-sub {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-sub:hover {
  color: var(--text-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-bottom: 4px;
}

.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--green-accent);
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  opacity: 0.7;
}

.social-links a:hover {
  opacity: 1;
  color: var(--green-accent);
}

footer {
  background-color: #f0ece6;
  color: var(--text-primary);
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover {
  color: var(--green-accent);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .header-nav {
    gap: 16px;
  }

  .header-nav a:not(.login-btn) {
    display: none;
  }

  .bottom-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .carousel-item {
    flex: 0 0 220px;
    height: 320px;
  }

  .carousel-item.active {
    flex: 0 0 260px;
    height: 360px;
  }

  .showcase-content {
    margin-bottom: 40px;
  }

  .showcase-text h3 {
    font-size: 28px;
  }
}
