/* ============================================================
   燃音声工坊 · 子页面样式（暖橙色调）
   ============================================================ */

/* 页面 Hero（子页面用，带顶部间距） */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(247,99,12,0.22), transparent 60%);
}
/* 子页面 Hero 录音元素装饰点缀 */
.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='28' r='8' fill='none' stroke='%23ffb347' stroke-width='1' opacity='0.08'/%3E%3Cellipse cx='40' cy='28' rx='13' ry='17' fill='none' stroke='%23ffb347' stroke-width='0.8' opacity='0.06'/%3E%3Cline x1='40' y1='45' x2='40' y2='58' stroke='%23ffb347' stroke-width='1' opacity='0.06'/%3E%3Cpath d='M30 55 Q40 64 50 55' fill='none' stroke='%23ffb347' stroke-width='0.8' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding-top: 140px;
}
.page-hero-content .section-tag {
  margin-bottom: 0 !important;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  margin: 12px 0;
}
.page-hero-desc {
  font-size: 16px;
  color: rgba(255,220,170,0.7);
  font-weight: 300;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* 筛选栏 */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid rgba(200,75,17,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(200,75,17,0.07);
}
.filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  gap: 16px;
}
.filter-tabs {
  display: flex;
  gap: 4px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  padding: 7px 18px;
  border: none;
  background: none;
  border-radius: 25px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all var(--transition);
}
.filter-tab:hover { background: rgba(247,99,12,0.08); color: var(--orange-mid); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--orange-mid), var(--warm-red));
  color: var(--white);
  box-shadow: 0 3px 12px rgba(247,99,12,0.35);
}
.search-bar-inline {
  position: relative;
  flex-shrink: 0;
}
.search-bar-inline input {
  border: 1.5px solid rgba(200,75,17,0.15);
  border-radius: 25px;
  padding: 8px 16px 8px 36px;
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: all var(--transition);
  font-family: var(--font-sans);
}
.search-bar-inline input:focus {
  border-color: var(--orange-mid);
  box-shadow: 0 0 0 3px rgba(247,99,12,0.1);
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

/* 列表区域 */
.list-section { padding: 60px 0 100px; }

.events-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.events-grid-full .event-card {
  background: var(--white);
  border: 1px solid rgba(200,75,17,0.1);
  box-shadow: 0 4px 24px rgba(200,75,17,0.07);
  color: var(--text-primary);
}
.events-grid-full .event-card:hover {
  background: var(--white);
  border-color: rgba(247,99,12,0.3);
  box-shadow: 0 12px 40px rgba(247,99,12,0.14);
}
.events-grid-full .event-title { color: var(--text-primary); }
.events-grid-full .event-meta-item { color: var(--text-light); }

/* 亮色列表页活动卡片价格/按钮 */
.events-grid-full .event-price { color: #ff4d4f; }
.events-grid-full .event-price.free { color: #2a9d50; }
.events-grid-full .event-btn {
  background: linear-gradient(135deg, var(--orange-mid), var(--warm-red));
}

.articles-grid-full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.articles-grid-full .article-card.featured {
  grid-column: span 2;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  color: var(--text-light);
  gap: 16px;
}
.empty-icon { font-size: 56px; }
.empty-state p { font-size: 16px; }

/* 响应式 */
@media (max-width: 900px) {
  .events-grid-full { grid-template-columns: repeat(2, 1fr); }
  .articles-grid-full { grid-template-columns: 1fr; }
  .articles-grid-full .article-card.featured { grid-column: span 1; flex-direction: column; }
  .articles-grid-full .article-card.featured .article-cover { width: 100%; min-height: 200px; }
  .search-bar-inline input { width: 160px; }
}
@media (max-width: 600px) {
  .events-grid-full { grid-template-columns: 1fr; }
  .filter-bar .container { flex-direction: column; align-items: flex-start; padding: 0 16px; }
  .search-bar-inline { width: 100%; padding: 0 0 12px; }
  .search-bar-inline input { width: 100%; }
}

/* ============================================================
   移动端优化补丁 (2026-03-30)
   ============================================================ */

/* ── 全局表单元素 touch 友好 ── */
@media (max-width: 768px) {
  input, select, textarea, button {
    font-size: 16px !important; /* 防止 iOS Safari 自动缩放 */
  }
  input, select, textarea {
    min-height: 44px;
    box-sizing: border-box;
  }
  button, .btn, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── page-hero 移动端高度修复 ── */
@media (max-width: 768px) {
  .page-hero { height: 280px; }
  .page-hero-content { padding-top: 80px; }
  .page-hero-title { font-size: clamp(24px, 7vw, 40px); }
}

/* ── 票种选择区 touch 优化 ── */
@media (max-width: 768px) {
  .event-ticket-box { padding: 20px 16px; }
  .ticket-option {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
  }
  .ticket-option-price {
    font-size: 18px;
    margin-left: 0 !important;
    width: 100%;
    text-align: right;
  }
  .btn-register {
    padding: 16px;
    font-size: 17px;
    min-height: 52px;
    border-radius: 14px;
  }
}

/* ── 报名表单弹窗移动端 ── */
@media (max-width: 768px) {
  .reg-modal {
    padding: 24px 16px;
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 12px;
    box-sizing: border-box;
  }
  .reg-field input {
    padding: 14px;
    min-height: 48px;
    font-size: 16px !important;
    border-radius: 10px;
  }
  .reg-btns { gap: 8px; }
  .reg-btns button {
    padding: 14px;
    font-size: 15px;
    min-height: 50px;
  }
}

/* ── 活动封面图高度限制 ── */
@media (max-width: 768px) {
  .event-cover, .event-cover img {
    max-height: 220px;
    object-fit: cover;
  }
}

/* ── 课程卡片移动端 ── */
@media (max-width: 768px) {
  .course-card, .product-card {
    display: flex;
    flex-direction: column;
  }
  .course-cover, .product-cover {
    height: auto;
    max-height: 200px;
    overflow: hidden;
  }
  .course-cover img, .product-cover img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
  }
}

/* ── 商品详情页底部购买按钮 sticky ── */
@media (max-width: 768px) {
  .product-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(26,14,5,0.97);
    backdrop-filter: blur(12px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    z-index: 200;
    border-top: 1px solid rgba(255,179,71,0.15);
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .product-sticky-bar .btn-buy {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    min-height: 50px;
    border-radius: 12px;
  }
}

/* ── 会员中心移动端 ── */
@media (max-width: 768px) {
  .member-card { padding: 20px 16px; margin: 0 -4px; }
  .member-order-item {
    flex-direction: column;
    gap: 8px;
  }
  .member-order-item .order-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .member-order-item .order-actions button {
    flex: 1;
    min-height: 44px;
  }
  /* 充值按钮 touch 区域 */
  .coin-recharge-btn, .coin-btn {
    min-height: 48px;
    padding: 12px 20px;
    font-size: 15px;
  }
  /* 登录注册表单 */
  .login-form input, .register-form input {
    min-height: 50px;
    padding: 14px 16px;
    font-size: 16px !important;
    border-radius: 10px;
  }
  .login-form .btn-submit, .register-form .btn-submit {
    min-height: 52px;
    font-size: 17px;
  }
}

/* ── 订单卡片溢出保护 ── */
@media (max-width: 768px) {
  .order-card, .order-item {
    overflow: hidden;
    word-break: break-all;
  }
  .order-card * {
    max-width: 100%;
  }
}

/* ── 商品卡片标题截断 ── */
.product-card .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── 安全区域底部留白（iOS 刘海屏）── */
@media (max-width: 768px) {
  .page-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
