/* 台湾审美风格样式表 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --background-light: #ffeaa7;
    --background-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.2);
    --border-radius: 16px;
    --border-radius-small: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ====== 按钮统一：取消下划线/统一交互 ====== */
.hero-cta,
.main-cta,
.fixed-cta-btn,
button,
.cta-button,
.form-submit-button,
.form-submit-button-simple_yellow,
a.hero-cta,
a.main-cta,
a.fixed-cta-btn {
    text-decoration: none !important;
    outline: none;
    border: none;
}
.hero-cta:hover,
.main-cta:hover,
.fixed-cta-btn:hover,
button:hover,
.cta-button:hover,
.form-submit-button:hover,
.form-submit-button-simple_yellow:hover {
    text-decoration: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-background { position: absolute; inset: 0; z-index: 1; }
.hero-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1; object-fit: cover;
}
.video-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(102,126,234,.7) 0%, rgba(118,75,162,.7) 100%);
    z-index: 2;
}
.floating-books { position: absolute; inset: 0; z-index: 3; }
.book { position: absolute; font-size: 2rem; opacity: .1; animation: float 6s ease-in-out infinite; }
.book-1 { top: 10%; left: 10%; animation-delay: 0s; }
.book-2 { top: 20%; right: 15%; animation-delay: 1s; }
.book-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.book-4 { top: 60%; right: 10%; animation-delay: 3s; }
.book-5 { bottom: 20%; right: 30%; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(5deg); } }

.hero-content { position: relative; z-index: 4; text-align: center; color: #fff; }
.hero-badge {
    display: inline-block; background: rgba(255,255,255,.2); backdrop-filter: blur(10px);
    padding: 12px 24px; border-radius: 50px; margin-bottom: 2rem; border: 1px solid rgba(255,255,255,.1);
}
.badge-text { font-family: 'Noto Serif TC', serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 4px; }
.hero-title { font-size: 4rem; font-weight: 900; margin-bottom: 1.5rem; line-height: 1.1; }
.title-main {
    display: block; font-family: 'Noto Serif TC', serif;
    background: linear-gradient(45deg, #fff, #f39c12);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.title-sub { display: block; font-size: 2.5rem; margin-top: .5rem; opacity: .9; }
.hero-subtitle { font-size: 1.3rem; margin-bottom: 2rem; opacity: .8; line-height: 1.8; }

.countdown-container { margin-bottom: 3rem; }
.countdown-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--gradient-2); padding: 16px 32px; border-radius: 50px; box-shadow: var(--shadow-medium);
}
.countdown-text { font-size: 1rem; opacity: .9; }
.countdown-number { font-size: 1.8rem; font-weight: 700; font-family: 'Noto Serif TC', serif; }

/* 首屏按钮（保留原渐变风格） */
.hero-cta {
    background: var(--gradient-3); color: #fff; padding: 20px 40px;
    font-size: 1.3rem; font-weight: 600; border-radius: 50px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 12px; transition: var(--transition);
    box-shadow: var(--shadow-medium); font-family: 'Noto Sans TC', sans-serif;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-heavy); }
.cta-arrow { font-size: 1.5rem; transition: var(--transition); }
.hero-cta:hover .cta-arrow { transform: translateX(5px); }

/* Activity Introduction */
.activity-intro { padding: 100px 0; background: var(--background-white); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title {
    font-size: 3rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; font-family: 'Noto Serif TC', serif;
}
.section-subtitle { font-size: 1.2rem; color: var(--text-secondary); }

.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.intro-card {
    background: #fff; padding: 3rem 2rem; border-radius: var(--border-radius); text-align: center;
    box-shadow: var(--shadow-light); transition: var(--transition); border: 1px solid #f8f9fa;
}
.intro-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-medium); }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--primary-color); }
.card-icon i { font-size: 3rem; }
.intro-card h3 {
    font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); font-family: 'Noto Serif TC', serif;
}
.intro-card p { color: var(--text-secondary); line-height: 1.7; }

/* Features Section */
.features { padding: 100px 0; background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%); }
.feature-item {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 6rem;
}
.feature-item:last-child { margin-bottom: 0; }
.feature-item.reverse { direction: rtl; }
.feature-item.reverse > * { direction: ltr; }
.feature-image { position: relative; }
.image-placeholder {
    aspect-ratio: 4/3; background: var(--gradient-1); border-radius: var(--border-radius);
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 4rem;
    text-align: center; line-height: 1.2; box-shadow: var(--shadow-medium);
}
.feature-content h3 {
    font-size: 2.2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); font-family: 'Noto Serif TC', serif;
}
.feature-content p { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 2rem; }
.feature-content ul { list-style: none; }
.feature-content li { font-size: 1.1rem; line-height: 2; color: var(--text-secondary); padding-left: 1rem; }

/* Rules Section */
.rules { padding: 100px 0; background: var(--background-white); }
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.rule-card {
    background: #fff; padding: 2.5rem 2rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow-light); transition: var(--transition); border-left: 4px solid var(--primary-color);
}
.rule-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.rule-number { font-size: 2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 1rem; font-family: 'Noto Serif TC', serif; }
.rule-card h4 {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-primary); font-family: 'Noto Serif TC', serif;
}
.rule-card p { color: var(--text-secondary); line-height: 1.7; }

/* Testimonials Section */
.testimonials { padding: 100px 0; background: #f8f9fa; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: #fff; padding: 2.5rem; border-radius: var(--border-radius);
    box-shadow: var(--shadow-light); transition: var(--transition); position: relative; overflow: hidden;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: -10px; left: 20px; font-size: 6rem; color: var(--primary-color);
    opacity: .1; font-family: serif; line-height: 1;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-medium); }
.testimonial-content { position: relative; z-index: 2; }
.stars { display: flex; gap: 3px; margin-bottom: 1.5rem; }
.stars i { color: #ffd700; font-size: 1.2rem; }
.testimonial-content p {
    font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 2rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-info h4 {
    font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: .3rem; font-family: 'Noto Serif TC', serif;
}
.author-info span { color: var(--text-secondary); font-size: .95rem; }

/* CTA Section */
.cta-section { padding: 100px 0; background: var(--gradient-2); text-align: center; }
.cta-content h2 {
    font-size: 3rem; font-weight: 700; color: #fff; margin-bottom: 1rem; font-family: 'Noto Serif TC', serif;
}
.cta-content p { font-size: 1.3rem; color: rgba(255,255,255,.9); margin-bottom: 3rem; }
.main-cta {
    background: #fff; color: var(--primary-color);
    padding: 20px 40px; font-size: 1.3rem; font-weight: 600; border-radius: 50px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 12px; transition: var(--transition);
    box-shadow: var(--shadow-medium); font-family: 'Noto Sans TC', sans-serif;
}
.main-cta:hover { transform: translateY(-3px); box-shadow: var(--shadow-heavy); }

/* Footer */
.footer { background: #2c3e50; color: #fff; padding: 60px 0 30px; }
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem; margin-bottom: 3rem;
}
.footer-section h4 {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 1.5rem; font-family: 'Noto Serif TC', serif;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: .8rem; }
.footer-section a { color: rgba(255,255,255,.8); text-decoration: none; transition: var(--transition); }
.footer-section a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.2); padding-top: 2rem; text-align: center; color: rgba(255,255,255,.6);
}

/* ====== 底部固定按钮（改为红色、永远居中、避免被裁切） ====== */
.fixed-cta {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;   /* 居中关键 */
    align-items: center;
    z-index: 9999;
    pointer-events: none;      /* 避免整条层遮挡页面 */
    padding: 0 12px;
}
.fixed-cta-btn {
    pointer-events: auto;      /* 恢复按钮可点 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e63946;       /* 🔴 红色底色 */
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 24px 30px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(230,57,70,.35);
    white-space: nowrap;       /* 防止换行导致“看不全” */
    max-width: 100%;
}
.fixed-cta-btn:hover {
    background: #d62839;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(230,57,70,.45);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .title-sub { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 2.2rem; }
    .feature-item { grid-template-columns: 1fr; gap: 2rem; }
    .feature-content h3 { font-size: 1.8rem; }
    .cta-content h2 { font-size: 2.2rem; }
    .intro-grid { grid-template-columns: 1fr; }
    .rules-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .container { padding: 0 15px; }

    /* 移动端保证按钮不被裁切，宽度自适应 */
    .fixed-cta-btn { width: 92%; padding: 14px 0; font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .title-sub { font-size: 1.5rem; }
    .hero-cta, .main-cta { padding: 16px 32px; font-size: 1.1rem; }
    .fixed-cta-btn { width: 94%; }
}




/* ====== Fixed CTA 强化覆盖（请放在 CSS 文件最后）====== */

/* 统一取消“按钮式链接”的下划线 */
a.hero-cta, a.main-cta, a.fixed-cta-btn,
.hero-cta, .main-cta, .fixed-cta-btn,
button, .cta-button, .form-submit-button, .form-submit-button-simple_yellow {
  text-decoration: none !important;
  border: none;
  outline: none;
}

/* 给页面底部预留空间，避免被固定按钮遮挡 */
body {
  padding-bottom: 88px; /* 桌面预留 */
}
@media (max-width: 768px) {
  body { padding-bottom: 96px; } /* 手机预留更大空间 */
}

/* 彻底规范 fixed-cta 的定位与层级（覆盖旧样式） */
.fixed-cta {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  bottom: 0 !important; /* 先贴底部，再用安全区+内边距托起按钮 */
  transform: none !important; /* 清掉旧的 translateX(-50%) 冲突 */
  display: flex !important;
  justify-content: center !important;  /* 居中关键 */
  align-items: center !important;
  z-index: 99999 !important;
  pointer-events: none !important;      /* 避免整条层遮挡页面 */
  padding: max(16px, env(safe-area-inset-bottom)) 12px  /* iOS/安卓安全区 */
           max(16px, env(safe-area-inset-bottom));
  background: transparent !important;
  box-sizing: border-box !important;
}

/* 固定按钮本体 —— 红色底色 + 自适应不截断 */
.fixed-cta-btn {
  pointer-events: auto !important;      /* 恢复按钮可点 */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  /* 统一视觉：红色底色 */
  background: #e63946 !important;
  color: #fff !important;

  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  padding: 14px 38px !important;
  border-radius: 50px !important;

  text-decoration: none !important;
  white-space: nowrap !important;       /* 防止换行导致“只显示一半” */
  max-width: 94vw !important;           /* 按钮永不超出视口 */
  box-shadow: 0 6px 18px rgba(230,57,70,0.42) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.fixed-cta-btn:hover {
  background: #d62839 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(230,57,70,0.5) !important;
}

/* 移动端尺寸优化（确保完整显示） */
@media (max-width: 768px) {
  .fixed-cta-btn {
    width: 92vw !important;     /* 移动端按钮宽度自适应 */
    padding: 14px 0 !important;
    font-size: 1rem !important;
  }
}

/* 兼容旧版 iOS 的安全区常量（Safari 旧版使用 constant()） */
@supports (padding: constant(safe-area-inset-bottom)) {
  .fixed-cta {
    padding-bottom: max(16px, constant(safe-area-inset-bottom)) !important;
  }
}





/* ======= 底部固定按钮最终微调优化 ======= */
.fixed-cta {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  bottom: 40px !important; /* ✅ 向上移动一点点（原20px→40px） */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 99999 !important;
  pointer-events: none !important;
  padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.fixed-cta-btn {
  pointer-events: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #e63946 !important; /* 🔴 红色底色 */
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;

  padding: 18px 60px !important; /* ✅ 高度略增（原14px→18px），宽略减（原38px→34px） */
  border-radius: 50px !important;
  white-space: nowrap !important;
  text-decoration: none !important;

  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.42) !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
  max-width: 100vw !important; /* ✅ 稍缩短整体宽度 */
}

.fixed-cta-btn:hover {
  background: #d62839 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(230,57,70,0.5) !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .fixed-cta {
    bottom: 30px !important; /* ✅ 手机端再上移一点 */
  }

  .fixed-cta-btn {
    width: 100vw !important;  /* ✅ 缩短宽度 */
    padding: 18px 0 !important; /* ✅ 高度略增 */
    font-size: 1rem !important;
  }
}
