:root {
/* ===== 详情页核心布局 (宽屏铺满) ===== */
  .detail-layout { display: flex; flex-direction: column; gap: 32px; width: 100%; }
  .detail-main { display: flex; flex-direction: column; gap: 32px; }

  /* 顶部信息区 (无封面) */
  .detail-top {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px;
    padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 24px;
  }
  .detail-info { display: flex; flex-direction: column; gap: 20px; }
  .detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
  .detail-title-actions { display: flex; gap: 12px; flex-shrink: 0; }
  .action-btn {
    display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px;
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.2s;
  }
  .action-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: var(--accent-glow); }
  .action-btn.active { background: var(--accent-gradient); color: #fff; border-color: transparent; }
  .action-btn.report-btn:hover { border-color: var(--ruby); color: var(--ruby); background: var(--ruby-bg); }
  .detail-title { font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1.3; flex: 1; }

  /* ===== 项目进度条 (支持横向滑动) ===== */
  .progress-wrapper {
    background: var(--bg-tertiary); border-radius: 12px; padding: 20px;
    border: 1px solid var(--border-color);
  }
  .progress-title { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
  .progress-title i { color: var(--accent-primary); }
  .progress-bar {
    display: flex; align-items: center; width: 100%; 
    overflow-x: auto; padding: 8px 0; scrollbar-width: none;
  }
  .progress-bar::-webkit-scrollbar { display: none; }
  .progress-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; min-width: 80px; flex-shrink: 0;}
  .progress-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: var(--text-muted); transition: all 0.3s;
  }
  .progress-step.completed .progress-dot, .progress-step.active .progress-dot {
    background: var(--accent-gradient); border-color: var(--accent-primary); color: #fff;
  }
  .progress-step.active .progress-dot { box-shadow: 0 0 0 4px var(--accent-glow); transform: scale(1.1); }
  .progress-label { margin-top: 10px; font-size: 12px; color: var(--text-muted); white-space: nowrap; text-align: center;}
  .progress-step.completed .progress-label, .progress-step.active .progress-label { color: var(--accent-primary); font-weight: 600; }
  .progress-line { flex: 1; height: 2px; background: var(--border-color); margin: 0 4px; margin-bottom: 30px; min-width: 30px; flex-shrink: 0;}
  .progress-line.completed { background: var(--accent-primary); }

  /* ===== 项目信息网格 ===== */
  .project-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .meta-card { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
  .meta-card-label { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px;}
  .meta-card-label i { font-size: 10px; color: var(--accent-secondary); }
  .meta-card-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }
  .meta-tag { padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; display: inline-block;}
  .tag-mode { background: var(--sapphire-bg); color: var(--sapphire); }
  .tag-level { background: var(--gold-bg); color: var(--gold); }

  /* ===== 合作模式详情 ===== */
  .coop-details-wrapper { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
  .coop-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 8px;}
  .coop-title i { color: var(--gold); }
  .coop-details-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
  .coop-detail-item { display: flex; flex-direction: column; gap: 6px; }
  .coop-detail-label { font-size: 13px; color: var(--text-muted); }
  .coop-detail-value { font-size: 16px; font-weight: 700; color: var(--accent-secondary); }

  /* ===== 操作按钮 ===== */
  .detail-actions { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap;}
  .btn-main-action { padding: 12px 28px; border-radius: 12px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; }
  .btn-participate { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 20px var(--accent-glow); }
  .btn-participate:hover { transform: translateY(-2px); filter: brightness(1.1); }
  .btn-participate:disabled { 
    background: var(--bg-hover); 
    color: var(--text-muted); 
    box-shadow: none; 
    cursor: not-allowed; 
    transform: none; 
    filter: none;
  }
  .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-color); }
  .btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

  /* TAB 切换区 */
  .detail-tabs-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
  .tabs-header { display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
  .tabs-header::-webkit-scrollbar { display: none; }
  .tab-btn { padding: 12px 20px; font-size: 15px; font-weight: 600; color: var(--text-muted); cursor: pointer; white-space: nowrap; position: relative; transition: color 0.3s; background: transparent; border: none; }
  .tab-btn:hover { color: var(--text-primary); }
  .tab-btn.active { color: var(--accent-primary); }
  .tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 40px; height: 3px; background: var(--accent-gradient); border-radius: 3px 3px 0 0; }
  .tab-content { display: none; animation: fadeIn 0.3s ease; }
  .tab-content.active { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
  .text-block { font-size: 14px; color: var(--text-secondary); line-height: 1.8; white-space: pre-wrap; }

  /* 团队卡片 (无图标) */
  .team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
  .team-card {
    background: var(--bg-tertiary); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 20px; transition: all 0.3s;
    border-left: 4px solid var(--accent-primary);
  }
  .team-card:hover { border-color: var(--accent-primary); border-left-color: var(--accent-secondary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
  .team-info h4 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px;}
  .team-info p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

  /* 推荐列表 (无封面) */
  .recommend-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); }
  .section-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; display: flex; align-items: center; gap: 10px;}
  .section-title i { color: var(--accent-primary); }
  .recommend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
  .rec-card {
    background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: 12px; 
    padding: 24px; cursor: pointer; transition: all 0.3s; display: block;
  }
  .rec-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); box-shadow: var(--shadow-md); }
  .rec-body h4 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
  .rec-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
  .rec-genre-row { margin-bottom: 16px; }
  .rec-tag { font-size: 12px; padding: 5px 12px; border-radius: 6px; background: var(--bg-hover); color: var(--text-secondary); font-weight: 500; }
  .rec-tag.mode { background: var(--sapphire-bg); color: var(--sapphire); }
  .rec-tag.way { background: var(--gold-bg); color: var(--gold); }
  .rec-tag.genre { background: var(--emerald-bg); color: var(--emerald); }
  .rec-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); border-top: 1px dashed var(--border-color); padding-top: 16px; margin-top: 8px;}
  .rec-footer strong { color: var(--ruby); font-size: 16px; }

  /* ===== 弹窗样式 ===== */
  .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; padding: 20px; }
  .modal-overlay.active { opacity: 1; visibility: visible; }
  .modal-box {
    background: var(--modal-bg); border: 1px solid var(--border-light); border-radius: 24px;
    width: 100%; max-width: 520px; padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; overflow: hidden; max-height: 90vh; display: flex; flex-direction: column;
  }
  .modal-box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent-gradient); }
  .modal-overlay.active .modal-box { transform: translateY(0) scale(1); }
  
  /* 宽屏弹窗 (剧本、报名) - 增加宽高 */
  .modal-box.wide-modal { max-width: 1200px; width: 92%; max-height: 92vh; }
  @media (min-width: 1400px) {
    .modal-box.wide-modal { max-width: 1300px; }
  }

  .modal-title { font-size: 22px; font-weight: 800; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; color: var(--text-primary); flex-shrink: 0; }
  .modal-close { width: 36px; height: 36px; background: var(--bg-tertiary); border-radius: 50%; border: none; color: var(--text-muted); font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
  .modal-close:hover { background: var(--ruby-bg); color: var(--ruby); transform: rotate(90deg); }
  
  .modal-body { flex: 1; overflow-y: auto; padding-right: 10px; }
  .modal-body::-webkit-scrollbar { width: 4px; }
  .modal-body::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }

  .form-group { margin-bottom: 20px; position: relative; }
  .form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
  .form-input, .form-textarea, .form-select {
    width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--border-color);
    background: var(--bg-tertiary); color: var(--text-primary); font-size: 14px; outline: none;
    transition: all 0.3s ease; font-family: inherit;
  }
  .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
  .form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--accent-primary); background: var(--bg-card); box-shadow: 0 0 0 4px var(--accent-glow); }
  .form-input[readonly] { color: var(--text-muted); cursor: not-allowed; background: var(--bg-hover); }
  .form-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  
  .modal-actions { display: flex; gap: 16px; justify-content: flex-end; margin-top: 24px; flex-shrink: 0; }
  .btn-cancel { padding: 12px 28px; border-radius: 12px; background: transparent; color: var(--text-secondary); font-size: 15px; font-weight: 600; border: 2px solid var(--border-color); cursor: pointer; transition: all 0.2s; }
  .btn-cancel:hover { border-color: var(--text-muted); color: var(--text-primary); background: var(--bg-hover); }
  .btn-submit { padding: 12px 32px; border-radius: 12px; background: var(--accent-gradient); color: #fff; font-size: 15px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 8px 20px var(--accent-glow); transition: all 0.3s; }
  .btn-submit:hover { transform: translateY(-2px); filter: brightness(1.1); }

  .script-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
  .script-chapter { margin-bottom: 32px; }
  .script-chapter h3 { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
  .script-chapter p { margin-bottom: 12px; text-indent: 2em; }

  .site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); margin-top: 60px; padding: 24px 40px; text-align: center; }
  .site-footer p { font-size: 13px; color: var(--text-secondary); }

  .mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 0 10px; padding-bottom: env(safe-area-inset-bottom); height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .mobile-bottom-nav ul { display: flex; justify-content: space-around; align-items: center; height: var(--mobile-nav-height); }
  .mobile-bottom-nav li { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; height: 100%; color: var(--text-muted); font-size: 10px; gap: 4px; cursor: pointer; }
  .mobile-bottom-nav li i { font-size: 20px; }
  .mobile-bottom-nav li.active { color: var(--accent-primary); }

  /* ===== 响应式 ===== */
  @media (max-width: 992px) {
    .header-inner, .horn-bar-inner, .main-content, .site-footer { padding-left: 24px; padding-right: 24px; }
  }
  @media (max-width: 768px) {
    .header-nav, .auth-buttons { display: none; }
    /* 新增：手机端隐藏搜索框和VIP */
    .search-box, .vip-badge { display: none; }
    
    .hamburger-menu { display: flex; }
    .mobile-bottom-nav { display: block; }
    .main-content { padding: 20px 16px; padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 20px); margin-top: calc(var(--header-height) + 40px); }
    .site-footer { display: none; }
    
    .detail-top { padding: 20px; }
    .detail-title-row { flex-direction: column; align-items: flex-start; }
    .detail-title { font-size: 22px; }
    .detail-actions { flex-direction: column; }
    .btn-main-action { width: 100%; justify-content: center; }
    .project-meta-grid { grid-template-columns: repeat(2, 1fr); }
    .coop-details-grid { grid-template-columns: repeat(2, 1fr); }
    .recommend-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .modal-box { padding: 24px; max-height: 95vh; }
    .modal-box.wide-modal { max-width: 95%; }
  }

  /* ===== 修复：登录/注册弹窗专用样式 ===== */
  .auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
  }
  .auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
  }
  .auth-tab:hover {
    color: var(--text-primary);
  }
  .auth-tab.active {
    color: var(--accent-primary);
  }
  .auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px 3px 0 0;
  }
  .auth-form-container {
    display: none;
    animation: fadeIn 0.3s ease;
  }
  .auth-form-container.active {
    display: block;
  }
  .auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
  }
  .remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
  }
  .remember-me input {
    accent-color: var(--accent-primary);
  }
  .forgot-password {
    color: var(--text-muted);
    transition: color 0.2s;
  }
  .forgot-password:hover 
   }