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

/* --- 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; }

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

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

/* --- 导航栏 --- */
.cae1a7852 {
  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);
}

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

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

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

.c4a0137cc::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;
}

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

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

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

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

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

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

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

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

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

.c1ec88d19 {
  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;
}

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

.c501de9a6 {
  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);
}

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

.c137f30af {
  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;
}

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

/* --- 刀光闪过特效 --- */
.ccdacb141 {
  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; }
}

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

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

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

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

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

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

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

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

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

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

.c7a1d0c82 {
  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);
}

.cc716c366:hover .c7a1d0c82 {
  transform: translateY(0);
}

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

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

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

.cc716c366:hover .c35d135f3 {
  opacity: 0.9;
}

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

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

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

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

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

.ce41c6ad3 {
  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;
}

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

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

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

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

.ce86b8d7c {
  padding: 1.2rem;
}

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

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

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

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

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

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

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

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

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

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

.c27d4c639.active .c58f0daec {
  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;
}

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

.c28791dee {
  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;
}

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

.c28791dee.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;
}

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

.ccc82be60 {
  margin-top: 2rem;
}

.c33ffc1c0 {
  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);
}

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

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

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

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

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

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

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

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

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

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

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

.c906a4dc0 {
  list-style: none;
}

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

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

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

.c255d3ef0 {
  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;
}

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

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

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

.c3be2c913 span {
  margin: 0 0.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.c7d260763 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;
}

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

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

.c08e9b0fe {
  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);
}

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

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

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

.c39436d03 {
  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页面 --- */
.c2a589644 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

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

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

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

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

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

.cdcfe701a::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;
}

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

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

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

  .c867c482d {
    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);
  }

  .c867c482d.active {
    right: 0;
  }

  .c57d4b74c {
    display: flex;
  }

  .c501de9a6 {
    font-size: 1.8rem;
  }

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

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

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

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

  .c82b9fd50 {
    gap: 1rem;
  }

  .cd6b71ccd {
    font-size: 2rem;
  }

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

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

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

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

  .ce92c2d65 {
    font-size: 1.4rem;
  }

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

/* --- 打印样式 --- */
@media print {
  .cae1a7852, .ce30792cd, .c57d4b74c, .c137f30af {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
