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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.ce076464f:hover .c7c4b8e07 {
  transform: translateY(0);
}

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

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

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

.ce076464f:hover .cded70215 {
  opacity: 0.9;
}

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

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

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

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

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

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

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

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

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

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

.cb466e7a3 {
  padding: 1.2rem;
}

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

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

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

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

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

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

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

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

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

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

.cf85f0d1f.active .cedd1672d {
  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;
}

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

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

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

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

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

.c4d10ff0b {
  margin-top: 2rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.c94ecb2fd {
  list-style: none;
}

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

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

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

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

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

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

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

.cc1997b05 span {
  margin: 0 0.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .cfbe30f2b.active {
    right: 0;
  }

  .ca1f89067 {
    display: flex;
  }

  .c9f18e901 {
    font-size: 1.8rem;
  }

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

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

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

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

  .cef1c4e9f {
    gap: 1rem;
  }

  .cf8a4a62b {
    font-size: 2rem;
  }

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

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

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

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

  .c83d748bf {
    font-size: 1.4rem;
  }

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

/* --- 打印样式 --- */
@media print {
  .cc70a8e7a, .c8fed25a5, .ca1f89067, .c83cc1479 {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
