/* ===================================
   独立茶人 — 设计系统
   =================================== */

/* ---------- CSS 变量 ---------- */
:root {
  /* 配色 */
  --ink-green: #1a2e1a;
  --deep-green: #2d4a2d;
  --moss-green: #3d5f3d;
  --warm-gold: #c9a84c;
  --light-gold: #dfc576;
  --pale-gold: #f0e4b8;
  --rice-white: #f5f0e6;
  --warm-white: #faf7f0;
  --parchment: #ede5d0;
  --charcoal: #2c2c2c;
  --soft-black: #1a1a1a;
  --dim-text: #6b6355;

  /* 字体 */
  --font-serif: 'Noto Serif SC', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;

  /* 间距 */
  --section-padding: 120px;
  --container-max: 1200px;

  /* 动画 */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-gold) var(--ink-green);
}

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background-color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.8;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--ink-green);
}

::-webkit-scrollbar-thumb {
  background: var(--warm-gold);
  border-radius: 3px;
}

/* ===================================
   导航栏
   =================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.5s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(26, 46, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--warm-gold);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--warm-gold);
  font-weight: 700;
  transition: all 0.3s var(--ease-smooth);
}

.nav-brand:hover .brand-icon {
  background: var(--warm-gold);
  color: var(--ink-green);
  transform: rotate(360deg);
  transition-duration: 0.6s;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--rice-white);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 240, 230, 0.8);
  letter-spacing: 3px;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--warm-gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--warm-gold);
}

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

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--rice-white);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ===================================
   Hero 区域
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero-bg.png') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 46, 26, 0.7) 0%,
    rgba(26, 46, 26, 0.5) 40%,
    rgba(26, 46, 26, 0.75) 100%
  );
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--rice-white);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 12px;
  color: var(--warm-gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 8px;
  margin-bottom: 32px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero-line {
  width: 60px;
  height: 1px;
  background: var(--warm-gold);
  margin: 0 auto 28px;
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 4px;
  color: rgba(245, 240, 230, 0.7);
}

/* Hero 淡入动画 */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 230, 0.5);
  z-index: 2;
  transition: color 0.3s;
}

.scroll-hint:hover {
  color: var(--warm-gold);
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 4px;
  font-weight: 300;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===================================
   通用板块
   =================================== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 8px;
  color: var(--warm-gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.section-tag::before,
.section-tag::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: var(--warm-gold);
  opacity: 0.4;
}

.section-tag::before {
  right: calc(100% + 16px);
}

.section-tag::after {
  left: calc(100% + 16px);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--ink-green);
  letter-spacing: 4px;
  line-height: 1.4;
}

.section-desc {
  margin-top: 16px;
  font-size: 15px;
  color: var(--dim-text);
  letter-spacing: 2px;
  font-weight: 300;
}

/* ===================================
   关于茶人
   =================================== */
.about {
  background: var(--warm-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

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

.image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 120px;
  height: 120px;
  border: 2px solid var(--warm-gold);
  border-radius: 8px;
  z-index: -1;
}

.about-quote {
  position: relative;
  margin-bottom: 28px;
  padding-left: 24px;
  border-left: 2px solid var(--warm-gold);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 60px;
  color: var(--warm-gold);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: -10px;
  left: 24px;
}

.about-quote p {
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--deep-green);
  line-height: 1.8;
  letter-spacing: 1px;
}

.about-text {
  font-size: 15px;
  line-height: 2;
  color: var(--dim-text);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--parchment);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--warm-gold);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--warm-gold);
  margin-left: 2px;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--dim-text);
  letter-spacing: 2px;
}

/* ===================================
   茶品甄选
   =================================== */
.collection {
  background: var(--rice-white);
}

.tea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.tea-card {
  background: var(--warm-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
}

.tea-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.tea-card:hover .card-image img {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(26, 46, 26, 0.8));
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-smooth);
}

.tea-card:hover .card-overlay {
  transform: translateY(0);
}

.card-origin {
  font-size: 12px;
  color: var(--pale-gold);
  letter-spacing: 3px;
}

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

.card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-green);
  margin-bottom: 4px;
  letter-spacing: 2px;
}

.card-type {
  font-size: 12px;
  color: var(--warm-gold);
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 500;
}

.card-desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--dim-text);
  margin-bottom: 16px;
}

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

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--deep-green);
  background: var(--parchment);
  border-radius: 20px;
  transition: all 0.3s;
}

.tea-card:hover .tag {
  background: var(--warm-gold);
  color: var(--ink-green);
}

/* ===================================
   茶道哲学
   =================================== */
.philosophy {
  background: var(--ink-green);
  color: var(--rice-white);
  overflow: hidden;
}

.philosophy .section-title {
  color: var(--rice-white);
}

.philosophy-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 168, 76, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.philosophy-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 72px;
}

.scroll-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  position: relative;
  transition: all 0.5s var(--ease-smooth);
}

.scroll-item:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-4px);
}

.scroll-number {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--warm-gold);
  opacity: 0.5;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.scroll-body h3 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--warm-gold);
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.scroll-body p {
  font-size: 14px;
  line-height: 2;
  color: rgba(245, 240, 230, 0.6);
  letter-spacing: 0.5px;
}

.philosophy-quote {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.philosophy-quote blockquote p {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--pale-gold);
  letter-spacing: 4px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.philosophy-quote cite {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: rgba(245, 240, 230, 0.4);
  letter-spacing: 2px;
}

/* ===================================
   页脚/联系
   =================================== */
.footer {
  background: var(--soft-black);
  color: var(--rice-white);
}

.footer-top {
  padding: var(--section-padding) 0 80px;
}

.footer-top .section-title {
  color: var(--rice-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: 12px;
  transition: all 0.4s var(--ease-smooth);
}

.contact-card:hover {
  border-color: var(--warm-gold);
  background: rgba(201, 168, 76, 0.05);
  transform: translateY(-4px);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--warm-gold);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.contact-card:hover .contact-icon {
  background: var(--warm-gold);
  color: var(--ink-green);
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 2px;
}

.contact-card p {
  font-size: 14px;
  color: rgba(245, 240, 230, 0.5);
  letter-spacing: 1px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 14px;
  color: rgba(245, 240, 230, 0.5);
  letter-spacing: 2px;
}

.footer-brand .brand-icon {
  width: 32px;
  height: 32px;
  font-size: 14px;
  color: var(--warm-gold);
  border-color: rgba(201, 168, 76, 0.3);
}

.footer-copy {
  font-size: 12px;
  color: rgba(245, 240, 230, 0.3);
  letter-spacing: 1px;
}

/* ===================================
   滚动动画
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.reveal-left {
  transform: translateX(-60px) translateY(0);
}

.reveal.reveal-left.revealed {
  transform: translateX(0) translateY(0);
}

.reveal.reveal-right {
  transform: translateX(60px) translateY(0);
}

.reveal.reveal-right.revealed {
  transform: translateX(0) translateY(0);
}

/* ===================================
   响应式
   =================================== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .tea-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  /* 移动导航 */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 46, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transition: right 0.4s var(--ease-out-expo);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    font-size: 18px;
    letter-spacing: 6px;
  }

  /* 布局调整 */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-frame img {
    height: 350px;
  }

  .about-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 32px;
  }

  .tea-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .philosophy-scroll {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scroll-item {
    padding: 28px 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

  .hero-subtitle {
    letter-spacing: 8px;
    font-size: 12px;
  }

  .hero-desc {
    letter-spacing: 2px;
    font-size: 14px;
  }

  .philosophy-quote blockquote p {
    font-size: 18px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .section-tag::before,
  .section-tag::after {
    width: 20px;
  }
}
