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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.c25a315b4:hover .c2e9ac1ac {
  transform: translateY(0);
}

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

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

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

.c25a315b4:hover .c0a01040d {
  opacity: 0.9;
}

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

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

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

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

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

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

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

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

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

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

.c7a16b4f1 {
  padding: 1.2rem;
}

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

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

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

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

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

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

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

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

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

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

.c9472faeb.active .cb7ea5f17 {
  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;
}

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

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

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

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

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

.c3b283f03 {
  margin-top: 2rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.cd33f6782 {
  list-style: none;
}

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

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

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

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

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

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

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

.c3061ab35 span {
  margin: 0 0.5rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .c39962533.active {
    right: 0;
  }

  .c76f422c6 {
    display: flex;
  }

  .cfbfe5b8e {
    font-size: 1.8rem;
  }

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

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

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

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

  .c52a41c0f {
    gap: 1rem;
  }

  .c5dbdf9e3 {
    font-size: 2rem;
  }

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

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

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

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

  .c35fb88d8 {
    font-size: 1.4rem;
  }

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

/* --- 打印样式 --- */
@media print {
  .cbf9fba10, .c5c51f0e8, .c76f422c6, .c86626e53 {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
