    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    :root {
      --bg-primary: #1a1a2e;
      --bg-secondary: #16213e;
      --bg-card: #0f3460;
      --accent: #e94560;
      --accent-hover: #ff6b6b;
      --text-primary: #f1f1f1;
      --text-secondary: #b8b8b8;
      --text-muted: #888;
      --border: #2a2a4a;
      --success: #4ecdc4;
      --shadow: 0 4px 20px rgba(0,0,0,0.3);
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background: var(--bg-primary);
      color: var(--text-primary);
      line-height: 1.6;
      min-height: 100vh;
    }

    
    /* 主容器 - 上下分栏 */
    .main-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px 40px;
    }
    
    /* ========== 上面：功能区 ========== */
    .tool-section {
      background: var(--bg-secondary);
      border-radius: 16px;
      padding: 30px;
      margin-bottom: 40px;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }
    
    .tool-header {
      text-align: center;
      margin-bottom: 24px;
      margin-top: 24px;
    }
    .tool-header h1 {
      font-size: 28px;
      font-weight: 700;
      margin-bottom: 8px;
      background: linear-gradient(135deg, #fff 0%, #e94560 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .tool-header p {
      color: var(--text-secondary);
      font-size: 15px;
    }
    
    /* 木鱼展示区 */
    .muyu-display {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      position: relative;
      min-height: 380px;
    }
    
    /* 功德计数 */
    .merit-counter {
      text-align: center;
      margin-bottom: 10px;
    }
    .merit-counter .label {
      font-size: 14px;
      color: var(--text-muted);
      margin-bottom: 4px;
    }
    .merit-counter .number {
      font-weight: 800;
      color: var(--success);
      font-variant-numeric: tabular-nums;
      text-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
      transition: transform 0.1s;
    }
    .merit-counter .number.bump {
      transform: scale(1.2);
    }
    .merit-counter .today {
      font-size: 13px;
      color: var(--text-muted);
      margin-top: 4px;
    }
    
    /* 悬浮文字动画 */
    .float-text {
      position: absolute;
      font-size: 20px;
      font-weight: 700;
      color: var(--success);
      pointer-events: none;
      animation: floatUp 1s ease-out forwards;
      text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
      z-index: 10;
    }
    @keyframes floatUp {
      0% { opacity: 1; transform: translateY(0) scale(1); }
      100% { opacity: 0; transform: translateY(-80px) scale(1.3); }
    }
    
    /* 涟漪效果 */
    .ripple {
      position: absolute;
      border: 2px solid rgba(78, 205, 196, 0.4);
      border-radius: 50%;
      animation: rippleEffect 0.6s ease-out forwards;
      pointer-events: none;
    }
    @keyframes rippleEffect {
      0% { width: 0; height: 0; opacity: 1; }
      100% { width: 200px; height: 200px; opacity: 0; }
    }
    
    /* 控制面板 */
    .controls {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 16px;
      margin-top: 24px;
      padding-bottom: 24px;
      padding-top: 24px;
      border-top: 1px solid var(--border);
    }
    
    .control-group {
      background: var(--bg-card);
      padding: 16px;
      border-radius: 12px;
      border: 1px solid var(--border);
    }
    .control-group label {
      display: block;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
      font-weight: 500;
    }
    
    /* 按钮样式 */
    .btn-group {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .btn {
      padding: 8px 16px;
      border: 1px solid var(--border);
      background: var(--bg-secondary);
      color: var(--text-secondary);
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
      font-family: inherit;
    }
    .btn:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .btn.active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .btn.active:hover {
      background: var(--accent-hover);
    }
    
    /* 输入框 */
    .text-input {
      width: 100%;
      padding: 10px 14px;
      background: var(--bg-primary);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 14px;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s;
    }
    .text-input:focus {
      border-color: var(--accent);
    }
    
    /* 快捷操作栏 */
    .quick-actions {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .action-btn {
      padding: 10px 24px;
      border: none;
      border-radius: 10px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .action-btn.primary {
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
      color: #fff;
      box-shadow: 0 4px 15px rgba(233, 69, 96, 0.3);
    }
    .action-btn.primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
    }
    .action-btn.secondary {
      background: var(--bg-card);
      color: var(--text-secondary);
      border: 1px solid var(--border);
    }
    .action-btn.secondary:hover {
      background: var(--border);
      color: var(--text-primary);
    }
    
    /* 提示文字 */
    .hint {
      text-align: center;
      margin-top: 16px;
      font-size: 13px;
      color: var(--text-muted);
    }
    .hint kbd {
      background: var(--bg-card);
      padding: 2px 8px;
      border-radius: 4px;
      border: 1px solid var(--border);
      font-family: monospace;
      font-size: 12px;
    }
    
    /* ========== 下面：内容区 ========== */
    .content-section {
      display: grid;
      gap: 30px;
    }
    
    .content-card {
      background: var(--bg-secondary);
      border-radius: 16px;
      padding: 30px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .content-card h2 {
      font-size: 22px;
      margin-bottom: 16px;
      color: var(--text-primary);
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .content-card h2::before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 22px;
      background: var(--accent);
      border-radius: 2px;
    }
    .content-card h3 {
      font-size: 18px;
      margin: 20px 0 12px;
      color: var(--text-primary);
    }
    .content-card p {
      color: var(--text-secondary);
      margin-bottom: 12px;
      line-height: 1.8;
    }
    .content-card ul, .content-card ol {
      color: var(--text-secondary);
      padding-left: 24px;
      margin-bottom: 16px;
    }
    .content-card li {
      margin-bottom: 8px;
      line-height: 1.7;
    }
    .content-card strong {
      color: var(--text-primary);
    }
    
    /* FAQ 样式 */
    .faq-item {
      border-bottom: 1px solid var(--border);
      padding: 16px 0;
    }
    .faq-item:last-child {
      border-bottom: none;
    }
    .faq-question {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      margin-bottom: 8px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .faq-question::after {
      content: '+';
      font-size: 20px;
      color: var(--accent);
      transition: transform 0.2s;
    }
    .faq-item.active .faq-question::after {
      transform: rotate(45deg);
    }
    .faq-answer {
      color: var(--text-secondary);
      line-height: 1.7;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease-out;
    }
    .faq-item.active .faq-answer {
      max-height: 500px;
    }
    
    /* 页脚 */
    .page-footer {
      text-align: center;
      padding: 30px 20px;
      color: var(--text-muted);
      font-size: 13px;
      border-top: 1px solid var(--border);
      margin-top: 40px;
    }
    .page-footer a {
      color: var(--text-secondary);
      text-decoration: none;
    }
    
    /* 沉浸模式 */
    body.immersive {
      background: #000;
    }
    body.immersive .content-section,
    body.immersive .page-footer,
    body.immersive .controls,
    body.immersive .tool-header p,
    body.immersive .hint,
    body.immersive .quick-actions {
      display: none;
    }
    body.immersive .tool-section {
      background: transparent;
      border: none;
      box-shadow: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      margin: 0;
      border-radius: 0;
      max-width: 100%;
    }
    body.immersive .tool-header h1 {
      font-size: 20px;
    }
    body.immersive .merit-counter {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      margin-bottom: 30px;
    }
    body.immersive .exit-immersive {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      padding: 10px 24px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      border-radius: 8px;
      cursor: pointer;
      font-size: 14px;
      backdrop-filter: blur(10px);
      z-index: 100;
    }
    
    /* 响应式 */
    @media (max-width: 768px) {
      .tool-header h1 { font-size: 22px; }
      .merit-counter .number { font-size: 36px; }
  .muyu-container { width: 220px; height: 180px; }
  .muyu-body { width: 200px; }
  .mallet { width: 95px; top: -25px; right: -5px; }
  
  .settings-bar { padding: 20px; }
      .controls { grid-template-columns: 1fr; }
      .content-card { padding: 20px; }
      .quick-actions { flex-direction: column; }
      .action-btn { width: 100%; justify-content: center; }
    }
    
    /* 减少动画 */
    @media (prefers-reduced-motion: reduce) {
      * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    }

/* 木鱼容器 */
.muyu-container {
  position: relative;
  width: 280px;
  height: 230px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* 木鱼图片 */
.muyu-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: auto;
  display: block;
  transition: transform 0.1s;
}

/* 敲击时木鱼缩小回弹 */
.muyu-container:active .muyu-body,
.muyu-container.hit .muyu-body {
  transform: translateX(-50%) scale(0.92);
}

/* 木槌图片 */
.mallet {
  position: absolute;
  top: -35px;
  right: -10px;
  width: 120px;
  height: auto;
  display: block;
  transform-origin: 85% 85%;
  transition: transform 0.15s;
  pointer-events: none;
  z-index: 2;
}

/* 敲击时木槌挥下 */
.mallet.strike {
  transform: rotate(-50deg);
}

/* 设置控制区 */
.settings-bar {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.settings-bar .controls {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.settings-bar .hint {
  margin-top: 16px;
  margin-bottom: 20px;
}

.settings-bar .quick-actions {
  margin-top: 0;
  margin-bottom: 20px;
}