/* ===== 基础样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; min-height: 100vh; overflow-x: hidden; position: relative; }

/* ===== 动画定义 ===== */
@keyframes float { 0%, 100% { transform: translateY(0px) rotate(0deg); } 50% { transform: translateY(-20px) rotate(3deg); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0px) translateX(0px); } 33% { transform: translateY(-15px) translateX(10px); } 66% { transform: translateY(-8px) translateX(-5px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.9; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes cloudMove { from { transform: translateX(-100px); } to { transform: translateX(calc(100vw + 100px)); } }
@keyframes starTwinkle { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ===== 通用容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; position: relative; z-index: 1; }

/* ===== 卡片样式 ===== */
.card { background: rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 30px; margin: 15px 0; box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 3px solid transparent; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent); transform: rotate(45deg); transition: all 0.6s; opacity: 0; }
.card:hover::before { opacity: 1; animation: shimmer 1.5s ease-in-out; }
.card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 60px rgba(0,0,0,0.15); border-color: rgba(255,255,255,0.5); }

/* ===== 选项卡片 ===== */
.option-card { background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%); border-radius: 24px; padding: 40px 30px; text-align: center; cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 4px solid transparent; position: relative; overflow: hidden; text-decoration: none; color: inherit; display: block; }
.option-card .emoji { font-size: 4rem; display: block; margin-bottom: 15px; animation: bounce 2s ease-in-out infinite; }
.option-card:hover .emoji { animation: wiggle 0.5s ease-in-out infinite; }
.option-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #333; }
.option-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }
.option-card:hover { transform: translateY(-12px) scale(1.03); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }

/* 颜色主题 */
.theme-red { border-color: #ff6b6b; background: linear-gradient(135deg, #fff 0%, #fff0f0 100%); }
.theme-red:hover { border-color: #ff4757; box-shadow: 0 25px 50px rgba(255,71,87,0.2); }
.theme-orange { border-color: #ffa502; background: linear-gradient(135deg, #fff 0%, #fff8f0 100%); }
.theme-orange:hover { border-color: #ff9500; box-shadow: 0 25px 50px rgba(255,149,0,0.2); }
.theme-yellow { border-color: #ffd700; background: linear-gradient(135deg, #fff 0%, #fffdf0 100%); }
.theme-yellow:hover { border-color: #ffc107; box-shadow: 0 25px 50px rgba(255,193,7,0.2); }
.theme-blue { border-color: #74b9ff; background: linear-gradient(135deg, #fff 0%, #f0f8ff 100%); }
.theme-blue:hover { border-color: #0984e3; box-shadow: 0 25px 50px rgba(9,132,227,0.2); }
.theme-green { border-color: #55efc4; background: linear-gradient(135deg, #fff 0%, #f0fff8 100%); }
.theme-green:hover { border-color: #00b894; box-shadow: 0 25px 50px rgba(0,184,148,0.2); }
.theme-purple { border-color: #a29bfe; background: linear-gradient(135deg, #fff 0%, #f5f3ff 100%); }
.theme-purple:hover { border-color: #6c5ce7; box-shadow: 0 25px 50px rgba(108,92,231,0.2); }

/* ===== 按钮样式 ===== */
.btn { display: inline-block; padding: 16px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: bold; text-decoration: none; color: white; border: none; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn::after { content: ''; position: absolute; top: 50%; left: 50%; width: 0; height: 0; background: rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%, -50%); transition: width 0.6s, height 0.6s; }
.btn:hover::after { width: 300px; height: 300px; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.btn-red { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%); }
.btn-orange { background: linear-gradient(135deg, #ffa502 0%, #ff9500 100%); }
.btn-yellow { background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%); color: #333; }
.btn-blue { background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%); }
.btn-green { background: linear-gradient(135deg, #55efc4 0%, #00b894 100%); color: #333; }
.btn-purple { background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%); }

/* ===== 标题样式 ===== */
.page-title { font-size: 2.5rem; font-weight: bold; text-align: center; margin-bottom: 10px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: fadeInUp 0.8s ease-out; }
.page-subtitle { text-align: center; color: #666; font-size: 1.1rem; margin-bottom: 40px; animation: fadeInUp 0.8s ease-out 0.2s both; }

/* ===== 步骤/流程样式 ===== */
.step-box { background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%); border-radius: 20px; padding: 25px; margin: 15px 0; border-left: 5px solid #667eea; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out; }
.step-box:hover { transform: translateX(10px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.step-box .step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-radius: 50%; font-weight: bold; margin-right: 15px; font-size: 1.2rem; }
.step-box h4 { display: inline; font-size: 1.2rem; color: #333; }
.step-box .content { margin-top: 15px; padding-left: 55px; color: #555; line-height: 1.8; }

/* ===== 材料清单样式 ===== */
.material-list { background: #f8f9ff; border-radius: 16px; padding: 20px; margin: 15px 0; }
.material-list h5 { color: #667eea; margin-bottom: 12px; font-size: 1.1rem; }
.material-list ul { list-style: none; padding: 0; }
.material-list li { padding: 8px 0; padding-left: 30px; position: relative; color: #555; line-height: 1.6; }
.material-list li::before { content: '✅'; position: absolute; left: 0; top: 8px; }

/* ===== 提示框样式 ===== */
.tip-box { background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%); border: 2px solid #ffd700; border-radius: 16px; padding: 20px; margin: 20px 0; position: relative; }
.tip-box::before { content: '💡'; font-size: 1.5rem; margin-right: 10px; }
.tip-box strong { color: #856404; }
.tip-box p { color: #856404; margin-top: 8px; line-height: 1.6; }

.warning-box { background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%); border: 2px solid #ff6b6b; border-radius: 16px; padding: 20px; margin: 20px 0; }
.warning-box::before { content: '⚠️'; font-size: 1.5rem; margin-right: 10px; }
.warning-box strong { color: #c0392b; }
.warning-box p { color: #c0392b; margin-top: 8px; line-height: 1.6; }

.info-box { background: linear-gradient(135deg, #e6f3ff 0%, #cce5ff 100%); border: 2px solid #74b9ff; border-radius: 16px; padding: 20px; margin: 20px 0; }
.info-box::before { content: 'ℹ️'; font-size: 1.5rem; margin-right: 10px; }
.info-box strong { color: #0984e3; }
.info-box p { color: #0984e3; margin-top: 8px; line-height: 1.6; }

/* ===== 导航栏 ===== */
.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); padding: 15px 30px; border-radius: 50px; margin: 20px auto; max-width: 600px; display: flex; justify-content: center; align-items: center; gap: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); position: sticky; top: 20px; z-index: 100; animation: fadeInDown 0.5s ease-out; }
.navbar a { text-decoration: none; color: #666; font-weight: 500; padding: 8px 16px; border-radius: 20px; transition: all 0.3s ease; }
.navbar a:hover { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }

/* ===== 网格布局 ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin: 30px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin: 30px 0; }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 30px; color: rgba(255,255,255,0.7); font-size: 0.9rem; }

/* ===== 响应式 ===== */
@media (max-width: 768px) { .hero-title { font-size: 2rem; } .page-title { font-size: 1.8rem; } .grid-3, .grid-2 { grid-template-columns: 1fr; } .navbar { flex-wrap: wrap; gap: 10px; padding: 10px 15px; } .option-card { padding: 30px 20px; } .option-card .emoji { font-size: 3rem; } }

/* ===== 分支路径指示器 ===== */
.path-indicator { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 20px 0; flex-wrap: wrap; }
.path-indicator .path-item { background: rgba(255,255,255,0.9); padding: 10px 20px; border-radius: 20px; font-size: 0.9rem; color: #666; }
.path-indicator .path-arrow { color: #667eea; font-size: 1.2rem; animation: bounce 1s ease-in-out infinite; }
.path-indicator .path-item.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; font-weight: bold; }

/* ===== 标签样式 ===== */
.tag { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 500; margin: 5px; }
.tag-red { background: #ffe6e6; color: #c0392b; }
.tag-orange { background: #fff3e6; color: #d35400; }
.tag-yellow { background: #fff9e6; color: #b7950b; }
.tag-blue { background: #e6f3ff; color: #0984e3; }
.tag-green { background: #e6fff0; color: #00b894; }
.tag-purple { background: #f0e6ff; color: #6c5ce7; }

/* ===== 手风琴/可展开内容 ===== */
.accordion-item { background: white; border-radius: 16px; margin: 10px 0; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.accordion-header { padding: 20px 25px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; font-weight: 600; color: #333; }
.accordion-header:hover { background: #f8f9ff; }
.accordion-header .arrow { transition: transform 0.3s ease; font-size: 1.2rem; }
.accordion-item.active .accordion-header .arrow { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; padding: 0 25px; }
.accordion-item.active .accordion-body { max-height: 2000px; padding: 0 25px 20px; }

/* ===== 移动端优化覆盖层 ===== */
@media (max-width: 640px) {
  html { font-size: 15px; }
  body { line-height: 1.55; }

  .container {
    width: 100%;
    max-width: none;
    padding: 12px;
  }

  .navbar {
    width: calc(100vw - 24px);
    max-width: none;
    margin: 8px auto 18px !important;
    padding: 6px;
    border-radius: 18px;
    gap: 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    position: sticky;
    top: 8px;
  }

  .navbar a {
    min-height: 40px;
    padding: 8px 4px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.86rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .page-title,
  .select-title,
  .hero-title {
    font-size: 1.75rem !important;
    line-height: 1.18 !important;
    margin: 12px 0 8px !important;
    padding: 0 4px;
    overflow-wrap: anywhere;
  }

  .page-subtitle,
  .select-subtitle,
  .hero-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
    white-space: normal !important;
    padding: 0 10px;
  }

  .path-indicator {
    gap: 6px;
    margin: 6px 0 14px !important;
  }

  .path-indicator .path-item {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .path-indicator .path-arrow {
    font-size: 0.9rem;
    animation: none;
  }

  .back-btn {
    padding: 9px 16px !important;
    border-radius: 16px !important;
    font-size: 0.92rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0 !important;
  }

  .card,
  .channel-card,
  .option-card,
  .option-card-large,
  .video-section,
  .material-list,
  .tip-box,
  .warning-box,
  .info-box {
    border-radius: 16px !important;
    padding: 18px !important;
    margin: 12px 0 !important;
  }

  .channel-card h2,
  .channel-card h3,
  .option-card h3,
  .option-card-large h3 {
    font-size: 1.16rem !important;
    line-height: 1.3;
  }

  .option-card-large .emoji,
  .option-card .emoji,
  .mascot {
    font-size: 3rem !important;
    margin-bottom: 10px !important;
  }

  .option-card-large p,
  .option-card p,
  .channel-card p,
  .material-list li,
  .tip-box p,
  .warning-box p,
  .info-box p {
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
  }

  .tag {
    margin: 3px;
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  .btn,
  .start-btn,
  .video-link {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    padding: 12px 18px !important;
    border-radius: 16px !important;
    font-size: 1rem !important;
  }

  .step-box {
    padding: 16px !important;
    border-radius: 14px !important;
    margin: 10px 0 !important;
  }

  .step-box .step-num {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    font-size: 0.95rem;
  }

  .step-box h4 {
    display: inline;
    font-size: 1rem;
    line-height: 1.35;
  }

  .step-box .content {
    margin-top: 10px;
    padding-left: 0;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .video-header {
    gap: 10px !important;
    margin-bottom: 14px !important;
  }

  .video-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    font-size: 1.35rem !important;
  }

  .video-title {
    font-size: 1.08rem !important;
    line-height: 1.35;
  }

  .video-desc {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .video-player {
    margin: 12px 0 !important;
  }

  video {
    max-width: 100% !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22) !important;
  }

  .step-list {
    margin: 12px 0 0 !important;
  }

  .step-item {
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .step-num-small {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 0.8rem !important;
  }

  .step-text {
    padding-top: 2px !important;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
  }

  .feature-card {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .hero-section {
    padding-top: 0 !important;
    text-align: center;
  }

  .typing-text {
    width: auto !important;
    max-width: 100% !important;
    animation: none !important;
    border-right: 0 !important;
  }

  .select-title,
  .select-subtitle,
  .page-title,
  .page-subtitle,
  .option-card-large,
  .option-card,
  .channel-card,
  .step-box,
  .feature-card,
  .video-section,
  div[style*="animation:fadeInUp"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .floating-emoji,
  .particle {
    display: none !important;
  }

  div[style*="font-size:5rem"] {
    font-size: 2rem !important;
    line-height: 1.8 !important;
  }

  div[style*="margin:60px 0"] {
    margin: 28px 0 !important;
  }

  div[style*="margin:50px 0"] {
    margin: 28px 0 !important;
  }

  div[style*="padding:25px"] {
    padding: 16px !important;
  }

  div[style*="padding:20px"] {
    padding: 16px !important;
  }

  .footer {
    padding: 22px 8px;
    font-size: 0.82rem;
  }
}

@media (max-width: 380px) {
  .navbar a {
    font-size: 0.78rem;
    padding-left: 2px;
    padding-right: 2px;
  }

  .page-title,
  .select-title,
  .hero-title {
    font-size: 1.55rem !important;
  }

  .card,
  .channel-card,
  .option-card,
  .option-card-large,
  .video-section {
    padding: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
