/* Global Settings & Variables */
:root {
  --bg-color: #fdfdfd;
  --text-primary: #2c2c2c;
  --text-secondary: #6e6e6e;
  --accent-color: #aeb6bf; /* 莫兰迪灰蓝 */
  --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --nav-height: 70px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Water.css Overrides */
body {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.03);
  box-sizing: border-box;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-slider {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  margin-bottom: 4rem;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-size: cover;
  background-position: center top;
}

.slide.active {
  opacity: 1;
}

.hero-text {
  position: absolute;
  bottom: 15%;
  left: 5%;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  max-width: 600px;
  z-index: 10;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section Common */
.section-title {
  text-align: center;
  margin: 6rem 0 3rem;
  font-size: 1.8rem;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* Grid Layout */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.card {
  display: block;
  cursor: pointer;
}

.card-img-wrap {
  overflow: hidden;
  position: relative;
  aspect-ratio: 3/4;
  background: #f0f0f0;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.card-info {
  padding: 1rem 0;
  text-align: center;
}

.card-name {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.card-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Inspiration Section */
.inspiration {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 8rem 0;
  background: #f8f8f8;
  padding: 4rem;
}

.insp-text {
  flex: 1;
}

.insp-img {
  flex: 1.5;
  height: 500px;
  object-fit: cover;
}

/* Masonry Layout */
.masonry {
  column-count: 3;
  column-gap: 2rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
}

/* Detail Page */
.detail-container {
  display: flex;
  gap: 4rem;
  padding-top: calc(var(--nav-height) + 2rem);
}

.detail-gallery {
  flex: 1.5;
  display: grid;
  gap: 1rem;
}

.detail-main-img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-sidebar {
  flex: 1;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.detail-specs {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  border-top: 1px solid #eee;
}

.detail-specs li {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Style Guide */
.style-topic {
  margin-bottom: 8rem;
}

.topic-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn-outline {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border: 1px solid var(--text-primary);
  margin-top: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: all 0.3s;
}

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

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 0;
  font-size: 0.8rem;
  color: #ccc;
  margin-top: 6rem;
  border-top: 1px solid #f5f5f5;
}

/* Back To Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-size: 1.2rem;
  color: var(--text-secondary);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 1.5rem;
  }
  
  .nav-links {
    gap: 1.5rem;
    font-size: 0.8rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .inspiration {
    flex-direction: column-reverse;
    padding: 2rem;
  }
  
  .masonry {
    column-count: 1;
  }
  
  .detail-container {
    flex-direction: column;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
}