/* ============================================
   传统剑道与居合道修行极简道场 - 主样式表
   视觉风格：极简枯山水白+武士道藏青
   ============================================ */

/* --- CSS变量定义 --- */
:root {
  --color-primary: #1C2833;
  --color-accent: #8B0000;
  --color-bg: #FDFCF0;
  --color-card: #F5F4E8;
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-border: #D4D0C8;
  --color-white: #FFFFFF;
  --font-heading: "Noto Serif SC", "Source Han Serif CN", serif;
  --font-body: "Noto Sans SC", "Source Han Sans CN", sans-serif;
  --font-vertical: "Noto Serif SC", serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --max-width: 1200px;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-card: 0 2px 12px rgba(28, 40, 51, 0.08);
  --shadow-hover: 0 8px 32px rgba(28, 40, 51, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.4;
  font-weight: 700;
}

/* --- 竹门拉开滑动动画 --- */
@keyframes slideFromLeft {
  from { transform: translateX(-60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideFromRight {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes brushWrite {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes inkSpread {
  0% { transform: scale(0.8); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.animate-slide-left { animation: slideFromLeft 0.8s var(--transition-slow) forwards; }
.animate-slide-right { animation: slideFromRight 0.8s var(--transition-slow) forwards; }
.animate-fade-up { animation: fadeInUp 0.6s var(--transition-slow) forwards; }
.animate-brush { animation: brushWrite 1.2s ease forwards; }

.ccfbd8eaa {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* --- 导航栏 --- */
.c912a51ae {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 252, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.c912a51ae.scrolled {
  box-shadow: 0 2px 20px rgba(28, 40, 51, 0.1);
}

.c059c66e9 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c4579076c {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.c4579076c::before {
  content: "剣";
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-bg);
  border-radius: 2px;
  margin-right: 0.5rem;
  font-size: 1rem;
}

.c377b071c {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.c377b071c a {
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
}

.c377b071c a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.c377b071c a:hover::after {
  width: 100%;
}

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

.ce8eec81c span {
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
}

/* --- Hero区域 --- */
.c7180fe9d {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cfff9e422 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.cfff9e422 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c1295dff7 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 40, 51, 0.7) 0%, rgba(28, 40, 51, 0.3) 100%);
  z-index: 2;
}

.ca412392b {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-bg);
  padding: 2rem;
}

.c9204aa58 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-vertical);
  font-size: 2.5rem;
  letter-spacing: 0.3em;
  margin: 0 auto 2rem;
  display: inline-block;
  animation: brushWrite 1.5s ease 0.5s forwards;
  clip-path: inset(0 100% 0 0);
}

.c51019cff {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 0.2em;
}

.c56477562 {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.1em;
}

.c56477562:hover {
  background: #A00000;
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(139, 0, 0, 0.4);
}

/* --- 刀光闪过特效 --- */
.c4a0a6d4a {
  position: absolute;
  top: 50%;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  z-index: 4;
  animation: bladeSlash 2s ease 1.5s forwards;
  opacity: 0;
}

@keyframes bladeSlash {
  0% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* --- 通用区块 --- */
.c7ef896b4 {
  padding: var(--spacing-xl) var(--spacing-md);
}

.c86ceb012 {
  max-width: var(--max-width);
  margin: 0 auto;
}

.c1392babd {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.c1392babd::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

.c31885802 {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-top: -2rem;
  margin-bottom: var(--spacing-lg);
}

/* --- 师范指导阵 --- */
.c7ff2bc30 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.c943ede30 {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-card);
  transition: all var(--transition-base);
}

.c943ede30:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.c943ede30 img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.c943ede30:hover img {
  filter: brightness(0.7);
}

.caabad413 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(28, 40, 51, 0.9));
  color: var(--color-bg);
  transform: translateY(60%);
  transition: transform var(--transition-slow);
}

.c943ede30:hover .caabad413 {
  transform: translateY(0);
}

.c68b520b3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.c7d1fb3b9 {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.c20906d18 {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}

.c943ede30:hover .c20906d18 {
  opacity: 0.9;
}

/* --- 修心历程时间轴 --- */
.c3ed4a328 {
  background: var(--color-card);
}

.c8181d4b8 {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-card);
}

/* --- 道场环境 --- */
.ca75c458d {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.ca75c458d img {
  width: 100%;
  transition: transform 8s ease;
}

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

.c1ea5d641 {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(28, 40, 51, 0.85);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 2px;
}

/* --- 动态卡片 --- */
.c35758060 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cf1957753 {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.cf1957753:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cf1957753 img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.c6d836ac4 {
  padding: 1.2rem;
}

.c46cbf1a2 {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.cdefccbc7 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.c70ca5a8d {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- FAQ手风琴 --- */
.c9acc52d0 {
  background: var(--color-card);
}

.ce4ad39b9 {
  max-width: 800px;
  margin: 0 auto;
}

.c74e133b6 {
  border-bottom: 1px solid var(--color-border);
  padding: 1.2rem 0;
}

.c6468c0e2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  padding-right: 1rem;
}

.c6468c0e2::after {
  content: "＋";
  font-size: 1.2rem;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.c74e133b6.active .c6468c0e2::after {
  content: "－";
  transform: rotate(180deg);
}

.cec5d47a6 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 0.9rem;
}

.c74e133b6.active .cec5d47a6 {
  max-height: 300px;
  padding-top: 1rem;
}

/* --- 互动组件：木人桩 --- */
.mokujin-section {
  text-align: center;
}

.mokujin-container {
  position: relative;
  display: inline-block;
  max-width: 400px;
  margin: 0 auto;
}

.mokujin-target {
  position: absolute;
  cursor: pointer;
  border: 2px dashed transparent;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.mokujin-target:hover {
  border-color: var(--color-accent);
  background: rgba(139, 0, 0, 0.1);
}

.mokujin-tooltip {
  position: absolute;
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  white-space: nowrap;
  z-index: 10;
}

.mokujin-target:hover + .mokujin-tooltip {
  opacity: 1;
}

/* --- 呼吸节拍器 --- */
.c44155135 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg) 0;
}

.cec3ac03e {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 4s ease-in-out;
}

.cec3ac03e.inhale {
  transform: scale(1.3);
}

.cec3ac03e.exhale {
  transform: scale(1);
}

.breath-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--color-primary);
  opacity: 0;
}

.breath-ripple.active {
  animation: ripple 2s ease-out;
}

.cd9b4b215 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
}

.cb0e573ee {
  margin-top: 2rem;
}

.c9678fa5a {
  padding: 0.7rem 2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}

.c9678fa5a:hover {
  background: var(--color-accent);
}

/* --- 升段倒计时 --- */
.c876f8355 {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.cb4df46b9 {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.c510c10ac {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c5204d4ae {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.c4643fe79 {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
}

/* --- 页脚 --- */
.c0dc34fa6 {
  background: var(--color-primary);
  color: rgba(253, 252, 240, 0.8);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.cb6eca9d7 {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.c613d334e {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-bg);
  margin-bottom: 1rem;
}

.cd40e1b7b {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.8;
}

.c8d50d605 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-bg);
  margin-bottom: 1rem;
}

.c79ccf5b1 {
  list-style: none;
}

.c79ccf5b1 li {
  margin-bottom: 0.5rem;
}

.c79ccf5b1 a {
  color: rgba(253, 252, 240, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition-base);
}

.c79ccf5b1 a:hover {
  color: var(--color-bg);
}

.ccbf75b30 {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(253, 252, 240, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* --- 面包屑 --- */
.c4d22440c {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.c4d22440c a {
  color: var(--color-text-light);
}

.c4d22440c a:hover {
  color: var(--color-primary);
}

.c4d22440c span {
  margin: 0 0.5rem;
}

/* --- 内页通用 --- */
.cf84e902b {
  padding: 8rem 2rem 3rem;
  background: var(--color-primary);
  color: var(--color-bg);
  text-align: center;
}

.cf84e902b h1 {
  color: var(--color-bg);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cf84e902b p {
  opacity: 0.8;
  font-size: 1rem;
}

.ccafd0993 {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.ccafd0993 h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.ccafd0993 h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.8rem;
}

.ccafd0993 p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.ccafd0993 ul, .ccafd0993 ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.ccafd0993 li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* --- 课程表格 --- */
.c4a59e79b {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.c4a59e79b th {
  background: var(--color-primary);
  color: var(--color-bg);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
}

.c4a59e79b td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.c4a59e79b tr:nth-child(even) {
  background: var(--color-card);
}

/* --- 产品卡片 --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--color-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.product-info {
  padding: 1.2rem;
}

.product-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.product-price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- 搜索页 --- */
.c67cc2eea {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

.c079e5d2e {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
}

.c0c30e366 {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid var(--color-border);
  border-right: none;
  font-size: 1rem;
  outline: none;
  background: var(--color-white);
  transition: border-color var(--transition-base);
}

.c0c30e366:focus {
  border-color: var(--color-primary);
}

.c4d9fb8b6 {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition-base);
}

.c4d9fb8b6:hover {
  background: var(--color-accent);
}

.cdf1a6885 {
  list-style: none;
}

.search-result-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.search-result-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.search-result-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- 404页面 --- */
.c47bfe49a {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.c19c9141e {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: var(--color-primary);
  line-height: 1;
  opacity: 0.3;
}

.cc3cd6ffd {
  font-size: 1.5rem;
  margin: 1rem 0 2rem;
}

.cff253324 {
  padding: 0.8rem 2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  display: inline-block;
  transition: background var(--transition-base);
}

.cff253324:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* --- 水墨晕染悬停效果 --- */
.c81592e19 {
  position: relative;
  overflow: hidden;
}

.c81592e19::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(28, 40, 51, 0.3) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.c81592e19:hover::after {
  opacity: 1;
}

/* --- 响应式断点 --- */
@media (max-width: 1024px) {
  .c7ff2bc30 {
    grid-template-columns: repeat(2, 1fr);
  }
  .c35758060 {
    grid-template-columns: repeat(2, 1fr);
  }
  .cb6eca9d7 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }

  .c377b071c {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition-slow);
  }

  .c377b071c.active {
    right: 0;
  }

  .ce8eec81c {
    display: flex;
  }

  .c9204aa58 {
    font-size: 1.8rem;
  }

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

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

  .cb6eca9d7 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ccbf75b30 {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .cb4df46b9 {
    gap: 1rem;
  }

  .c5204d4ae {
    font-size: 2rem;
  }

  .c7ef896b4 {
    padding: var(--spacing-lg) var(--spacing-sm);
  }

  .cf84e902b {
    padding: 6rem 1.5rem 2rem;
  }

  .cf84e902b h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .c9204aa58 {
    font-size: 1.5rem;
  }

  .c1392babd {
    font-size: 1.4rem;
  }

  .c56477562 {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
}

/* --- 打印样式 --- */
@media print {
  .c912a51ae, .c0dc34fa6, .ce8eec81c, .c56477562 {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
