/* ==========================================
       1. 设计系统 & 全局变量 (纸质笔记本风格)
       ========================================== */
    :root {
      --outer-bg: #1a1816;
      --paper-bg: #f3ead4;
      --text-main: #2b271f;
      --text-muted: #8a7f68;
      --text-muted-light: #a89a82;
      --dark-green: #22302a;
      --dark-card-bg: #221f1a;
      --accent-red: #c23b22;
      --accent-gold: #b8923f;
      --accent-green: #3b5a4a;
      
      --transition-smooth: all 0.25s ease;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
    }

    body {
      font-family: Georgia, "Songti SC", serif;
      background-color: var(--outer-bg);
      color: var(--text-main);
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      overflow: hidden;
    }

    /* ==========================================
       2. PC 端外壳 & 响应式适配
       ========================================== */
    #pc-layout {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 60px;
      width: 100%;
      max-width: 1200px;
      padding: 20px;
    }

    /* 产品介绍看板 (PC端独有) */
    .pc-info-panel {
      flex: 1;
      max-width: 480px;
      color: var(--paper-bg);
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .pc-info-panel h1 {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--accent-red);
      letter-spacing: 1px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .pc-info-panel h1 span {
      font-size: 1.0rem;
      background: var(--dark-card-bg);
      color: var(--accent-gold);
      padding: 4px 10px;
      border-radius: 8px;
      font-weight: 500;
      border: 0.5px solid var(--text-muted);
    }

    .pc-info-panel p {
      font-size: 0.95rem;
      line-height: 1.6;
      color: var(--text-muted-light);
    }

    .pc-features {
      list-style: none;
      margin-top: 10px;
    }

    .pc-features li {
      position: relative;
      padding-left: 28px;
      margin-bottom: 16px;
      font-size: 0.95rem;
      color: var(--text-muted-light);
      line-height: 1.5;
    }

    .pc-features li::before {
      content: "";
      position: absolute;
      left: 0;
      top: 4px;
      width: 18px;
      height: 18px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c23b22' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
      background-size: contain;
      background-repeat: no-repeat;
    }

    .pc-qrcode-card {
      background: var(--dark-card-bg);
      border: 0.5px solid var(--text-muted);
      padding: 20px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 20px;
      margin-top: 10px;
    }

    .qrcode-placeholder {
      width: 80px;
      height: 80px;
      background: var(--paper-bg);
      border-radius: 8px;
      border: 0.5px solid var(--text-muted);
      padding: 6px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .qrcode-text h4 {
      color: var(--paper-bg);
      font-size: 0.95rem;
      margin-bottom: 4px;
    }

    .qrcode-text p {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* 手机模型边壳 (PC端) */
    .phone-mockup {
      width: 390px;
      height: 844px;
      background: var(--outer-bg);
      border-radius: 40px;
      padding: 12px;
      border: 0.5px solid var(--text-muted);
      position: relative;
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
    }

    /* 物理按键 */
    .phone-btn {
      position: absolute;
      background: var(--dark-card-bg);
      border-radius: 4px;
      border: 0.5px solid var(--text-muted);
    }
    .phone-btn-power {
      right: -3px;
      top: 180px;
      width: 4px;
      height: 80px;
    }
    .phone-btn-volup {
      left: -3px;
      top: 160px;
      width: 4px;
      height: 50px;
    }
    .phone-btn-voldown {
      left: -3px;
      top: 225px;
      width: 4px;
      height: 50px;
    }

    /* 灵动岛 */
    .phone-island {
      position: absolute;
      top: 22px;
      left: 50%;
      transform: translateX(-50%);
      width: 110px;
      height: 28px;
      background: black;
      border-radius: 20px;
      z-index: 1000;
    }

    /* 手机屏幕容器 */
    .phone-screen {
      width: 100%;
      height: 100%;
      background-color: var(--paper-bg);
      border-radius: 30px;
      overflow: hidden;
      position: relative;
      display: flex;
      flex-direction: column;
      border: 0.5px solid var(--text-muted);
    }

    /* ==========================================
       3. 手机状态栏 & Home条
       ========================================== */
    .status-bar {
      height: 44px;
      padding: 14px 24px 0 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-main);
      z-index: 999;
      pointer-events: none;
      transition: var(--transition-smooth);
    }
    
    .status-bar.camera-mode {
      color: var(--paper-bg);
      background-color: var(--dark-green);
    }

    .status-bar-icons {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .status-icon {
      width: 14px;
      height: 14px;
      fill: currentColor;
    }

    /* Home 指示器 */
    .home-indicator {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      width: 120px;
      height: 5px;
      background-color: var(--text-main);
      border-radius: 3px;
      z-index: 999;
      pointer-events: none;
      opacity: 0.2;
      transition: var(--transition-smooth);
    }
    
    .home-indicator.camera-mode {
      background-color: var(--paper-bg);
      opacity: 0.6;
    }

    /* ==========================================
       4. SPA 页面控制器 & 动画
       ========================================== */
    #app-views {
      flex: 1;
      position: relative;
      width: 100%;
      height: calc(100% - 44px);
    }

    .page {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      padding: 10px 20px 28px 20px;
      overflow-y: auto;
      scrollbar-width: none;
    }

    .page::-webkit-scrollbar {
      display: none;
    }

    .page.active {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
      z-index: 10;
    }

    /* ==========================================
       5. 首页 (Welcome Screen)
       ========================================== */
    #page-welcome {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      text-align: center;
      padding-top: 20px;
    }

    /* 纸质视频呼叫线框缩略图 */
    .logo-container {
      position: relative;
      margin-top: 10px;
      width: 150px;
      height: 150px;
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--paper-bg);
      border: 0.5px solid var(--text-muted);
      border-radius: 8px;
    }

    .logo-svg {
      width: 100px;
      height: 100px;
      z-index: 2;
    }

    .welcome-text {
      margin-top: 10px;
    }

    .welcome-title {
      font-size: 2rem;
      font-weight: 800;
      color: var(--text-main);
      letter-spacing: 1.5px;
      margin-bottom: 8px;
    }

    .welcome-subtitle {
      font-size: 0.85rem;
      line-height: 1.5;
      color: var(--text-muted);
      padding: 0 10px;
    }

    .welcome-footer {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    /* 纸质小卡片 */
    .welcome-quote-card {
      background: var(--paper-bg);
      border-radius: 8px;
      padding: 12px;
      width: 100%;
      border: 0.5px solid var(--text-muted);
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
    }

    .quote-icon {
      color: var(--accent-red);
      flex-shrink: 0;
    }

    .quote-content h5 {
      font-size: 0.7rem;
      color: var(--text-muted);
      letter-spacing: 1px;
      text-transform: uppercase;
      margin-bottom: 2px;
    }

    .quote-content p {
      font-size: 0.8rem;
      color: var(--text-main);
      line-height: 1.4;
      font-weight: 600;
    }

    /* 核心主按钮 */
    .btn-primary {
      width: 100%;
      background: var(--accent-red);
      color: var(--paper-bg);
      border: 0.5px solid var(--text-main);
      border-radius: 8px;
      padding: 14px 28px;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 1.5px;
      cursor: pointer;
      transition: var(--transition-smooth);
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }

    .btn-primary:active {
      transform: translateY(1px);
      opacity: 0.9;
    }

    /* ==========================================
       6. 选择 AI 搭子页面 (Selection Screen)
       ========================================== */
    #page-selection {
      padding-top: 15px;
    }

    .header-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
      width: 100%;
    }

    .btn-back {
      background: var(--paper-bg);
      border: 0.5px solid var(--text-muted);
      width: 38px;
      height: 38px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      color: var(--text-dark);
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
      transition: var(--transition-smooth);
    }

    .btn-back:active {
      transform: scale(0.9);
    }

    .header-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text-dark);
    }

    .header-placeholder {
      width: 38px;
    }

    .selection-intro {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 16px;
      text-align: center;
    }

    /* 搭子列表卡片 */
    .companions-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding-bottom: 20px;
    }

    .companion-card {
      background: var(--card-bg);
      border-radius: 20px;
      padding: 16px;
      display: flex;
      gap: 14px;
      cursor: pointer;
      position: relative;
      box-shadow: var(--card-shadow);
      border: 1px solid rgba(0, 0, 0, 0.02);
      transition: var(--transition-bounce);
      overflow: hidden;
    }

    .companion-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: transparent;
      transition: var(--transition-smooth);
    }

    .companion-card:hover {
      transform: translateY(-2px);
    }

    .companion-card:active {
      transform: scale(0.98);
    }

    /* 头像区域 */
    .companion-avatar-wrapper {
      position: relative;
      flex-shrink: 0;
    }

    .companion-avatar {
      width: 52px;
      height: 52px;
      border-radius: 8px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--paper-bg);
      border: 0.5px solid var(--text-main);
    }

    .silent .companion-avatar { background: var(--dark-green); }
    .traveler .companion-avatar { background: var(--accent-gold); }
    .coach .companion-avatar { background: var(--accent-green); }
    .courage .companion-avatar { background: var(--accent-red); }

    .companion-avatar svg {
      width: 28px;
      height: 28px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
    }

    /* 卡片详情 */
    .companion-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .companion-name-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
    }

    .companion-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .companion-tag {
      font-size: 0.65rem;
      padding: 2px 6px;
      border-radius: 4px;
      font-weight: 600;
      border: 0.5px solid var(--text-muted);
    }

    .silent .companion-tag { background: var(--paper-bg); color: var(--text-main); }
    .traveler .companion-tag { background: var(--paper-bg); color: var(--accent-gold); }
    .coach .companion-tag { background: var(--paper-bg); color: var(--accent-green); }
    .courage .companion-tag { background: var(--paper-bg); color: var(--accent-red); }

    .companion-desc {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* ==========================================
       7. 新增页面样式 (表达类型/呼叫模拟/准备卡片)
       ========================================== */
    /* 表达类型选择 */
    .expression-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 20px;
    }
    
    .expression-card {
      background: var(--paper-bg);
      border: 0.5px solid var(--text-muted);
      border-radius: 8px;
      padding: 12px 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: var(--transition-smooth);
    }
    
    .expression-card:hover {
      transform: translateY(-2px);
    }
    
    .expression-card.selected {
      background: var(--dark-green);
      color: var(--paper-bg);
      border-color: var(--text-main);
    }
    
    .expression-card.selected .expression-title {
      color: var(--paper-bg);
    }

    .expression-card.selected .expression-desc {
      color: var(--text-muted-light);
    }

    .expression-title {
      font-weight: 700;
      font-size: 0.95rem;
      color: var(--text-main);
      margin-bottom: 2px;
    }

    .expression-desc {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* 紧张度选择 */
    .tension-container {
      margin-top: 15px;
      margin-bottom: 20px;
    }

    .tension-label {
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .tension-selector {
      display: flex;
      justify-content: space-between;
      gap: 8px;
    }

    .btn-tension {
      flex: 1;
      aspect-ratio: 1;
      border-radius: 8px;
      border: 0.5px solid var(--text-muted);
      background: var(--paper-bg);
      color: var(--text-main);
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: var(--transition-smooth);
    }

    .btn-tension.selected {
      background: var(--accent-red);
      color: var(--paper-bg);
      border-color: var(--text-main);
    }

    /* 拨号页面 */
    #page-dialing {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-between;
      padding: 60px 24px;
      background: var(--dark-card-bg);
      color: var(--paper-bg);
    }

    .dial-avatar-wrapper {
      margin-top: 40px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .dial-avatar {
      width: 96px;
      height: 96px;
      border-radius: 8px;
      border: 0.5px solid var(--text-muted);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 2.2rem;
      color: var(--paper-bg);
      animation: pulseAvatar 2s infinite ease-in-out;
    }

    .dial-name {
      font-size: 1.3rem;
      font-weight: 700;
      letter-spacing: 1px;
    }

    .dial-status {
      font-size: 0.85rem;
      color: var(--text-muted-light);
      animation: pulseText 1.5s infinite;
    }

    .btn-hangup-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: var(--accent-red);
      border: 0.5px solid var(--text-main);
      color: var(--paper-bg);
      display: flex;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: var(--transition-smooth);
    }

    .btn-hangup-circle:active {
      transform: scale(0.9);
    }

    /* 准备卡片页面 */
    #page-prep {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 40px 24px 28px 24px;
      background: var(--paper-bg);
    }

    .prep-card {
      width: 100%;
      background: var(--paper-bg);
      border: 0.5px solid var(--text-muted);
      border-radius: 8px;
      padding: 20px;
      text-align: left;
      margin-top: 20px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .prep-card h4 {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--text-main);
      border-bottom: 0.5px solid var(--text-muted);
      padding-bottom: 8px;
    }

    .prep-strategy-title {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--accent-red);
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .prep-strategy-desc {
      font-size: 0.85rem;
      line-height: 1.5;
      color: var(--text-main);
    }

    .prep-badge {
      display: inline-block;
      padding: 4px 8px;
      background: var(--dark-green);
      color: var(--paper-bg);
      border-radius: 4px;
      font-size: 0.7rem;
      font-weight: 700;
      align-self: flex-start;
    }

    .prep-disclaimer {
      font-size: 0.75rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    /* ==========================================
       8. 视频通话界面 (Simulated Call Screen)
       ========================================== */
    #page-calling {
      padding: 0;
      background-color: var(--dark-card-bg);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
    }

    /* 通话人像 Canvas */
    #call-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      background: var(--dark-card-bg);
    }

    /* 自拍预览悬浮窗口 */
    .selfie-preview-box {
      position: absolute;
      top: 60px;
      right: 16px;
      width: 90px;
      height: 135px;
      border-radius: 8px;
      border: 0.5px solid var(--text-muted);
      background: var(--paper-bg);
      z-index: 10;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease, height 0.25s ease;
      cursor: pointer;
    }

    .selfie-preview-box.minimized {
      transform: scale(0.6);
      transform-origin: top right;
      opacity: 0.8;
    }

    .selfie-preview-box.hidden {
      opacity: 0;
      pointer-events: none;
    }

    #selfie-canvas {
      width: 100%;
      height: calc(100% - 20px);
      background: var(--paper-bg);
    }

    .selfie-label {
      height: 20px;
      background: var(--text-main);
      color: var(--paper-bg);
      font-size: 0.65rem;
      text-align: center;
      line-height: 20px;
      font-weight: 700;
    }

    /* 顶部通话控制层 */
    .calling-header {
      padding: 56px 20px 20px 20px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 15;
      background: linear-gradient(to bottom, rgba(26,24,22,0.9) 0%, rgba(26,24,22,0) 100%);
      color: var(--paper-bg);
    }

    .calling-avatar {
      width: 40px;
      height: 40px;
      border-radius: 8px;
      border: 0.5px solid var(--text-muted);
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--paper-bg);
      font-size: 0.9rem;
      flex-shrink: 0;
    }

    .calling-info {
      flex: 1;
    }

    .calling-name {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .calling-status {
      font-size: 0.72rem;
      color: var(--text-muted-light);
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .dot-active {
      width: 6px;
      height: 6px;
      background-color: var(--accent-green);
      border-radius: 50%;
      animation: dotPulse 1.5s infinite;
    }

    .calling-visualizer {
      display: flex;
      align-items: center;
      gap: 3px;
      height: 14px;
    }

    .visualizer-bar {
      width: 2px;
      height: 4px;
      background: var(--accent-gold);
      border-radius: 1px;
      animation: bounceBar 1.2s infinite ease-in-out;
    }
    .visualizer-bar:nth-child(2) { animation-delay: 0.15s; height: 10px; }
    .visualizer-bar:nth-child(3) { animation-delay: 0.3s; height: 14px; }
    .visualizer-bar:nth-child(4) { animation-delay: 0.45s; height: 8px; }
    .visualizer-bar:nth-child(5) { animation-delay: 0.6s; height: 6px; }

    /* 录像指示器 */
    .rec-indicator {
      position: absolute;
      top: 115px;
      left: 20px;
      z-index: 15;
      background: rgba(26, 24, 22, 0.8);
      padding: 4px 10px;
      border-radius: 4px;
      color: var(--accent-red);
      font-size: 0.7rem;
      font-weight: 700;
      display: none;
      align-items: center;
      gap: 6px;
      border: 0.5px solid var(--text-muted);
    }
    
    .rec-indicator.active {
      display: flex;
    }

    .rec-dot {
      width: 8px;
      height: 8px;
      background: var(--accent-red);
      border-radius: 50%;
      animation: dotPulse 1s infinite;
    }

    .rec-paused-text {
      color: var(--accent-gold);
    }

    /* AI 气泡对话框 (悬浮在画面中下部) */
    .ai-bubble-container {
      position: absolute;
      bottom: 130px;
      left: 20px;
      right: 20px;
      z-index: 5;
      display: flex;
      justify-content: center;
      pointer-events: none;
    }

    .ai-bubble {
      background: var(--paper-bg);
      border-radius: 8px;
      padding: 10px 16px;
      max-width: 90%;
      border: 0.5px solid var(--text-main);
      pointer-events: auto;
    }

    .ai-bubble-text {
      font-size: 0.85rem;
      line-height: 1.4;
      color: var(--text-main);
      font-weight: 500;
      text-align: center;
    }

    /* 底部视频通话控制条 */
    .calling-footer {
      padding: 15px 20px 30px 20px;
      background: linear-gradient(to top, rgba(26,24,22,0.95) 0%, rgba(26,24,22,0) 100%);
      display: flex;
      justify-content: space-between;
      align-items: center;
      z-index: 15;
    }

    .btn-side-action {
      background: rgba(243, 234, 212, 0.15);
      border: 0.5px solid var(--text-muted-light);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--paper-bg);
      cursor: pointer;
      transition: var(--transition-smooth);
    }

    .btn-side-action:active {
      transform: scale(0.9);
      background: rgba(243, 234, 212, 0.25);
    }

    .shutter-btn-wrapper {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    /* 快门录制按钮 */
    .shutter-btn {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: var(--paper-bg);
      padding: 4px;
      cursor: pointer;
      border: 0.5px solid var(--text-main);
      transition: var(--transition-smooth);
    }

    .shutter-btn-inner {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      background: var(--accent-red);
      border: 1px solid var(--paper-bg);
      transition: var(--transition-smooth);
    }

    .shutter-btn.paused .shutter-btn-inner {
      background: var(--accent-gold);
    }

    .shutter-btn:active {
      transform: scale(0.92);
    }

    .shutter-label {
      color: var(--text-muted-light);
      font-size: 0.7rem;
      letter-spacing: 0.5px;
      pointer-events: none;
    }

    /* ==========================================
       9. 倒计时 & 弹层 (Countdown & Modals)
       ========================================== */
    #countdown-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(26, 24, 22, 0.7);
      z-index: 20;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s ease;
    }

    #countdown-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .countdown-circle {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 2px solid var(--accent-red);
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      margin-bottom: 20px;
      background: var(--paper-bg);
    }

    .countdown-wave {
      position: absolute;
      width: 100%;
      height: 100%;
      border: 1px solid var(--accent-gold);
      border-radius: 50%;
      opacity: 0.5;
    }
    
    .countdown-wave.animate {
      animation: wavePing 0.8s infinite ease-out;
    }

    #countdown-num {
      font-size: 3.5rem;
      font-weight: 800;
      color: var(--text-main);
      z-index: 2;
    }

    #countdown-tip {
      font-size: 0.95rem;
      color: var(--paper-bg);
      font-weight: 600;
      text-align: center;
      padding: 0 30px;
      min-height: 1.6em;
      letter-spacing: 0.5px;
    }

    /* 闪白 */
    .shutter-flash {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--paper-bg);
      opacity: 0;
      z-index: 30;
      pointer-events: none;
    }

    .shutter-flash.flash-active {
      animation: flashEffect 0.25s forwards;
    }

    /* 挑战成功卡片 */
    .challenge-success-card {
      position: absolute;
      width: 86%;
      background: var(--paper-bg);
      border-radius: 8px;
      padding: 20px;
      border: 0.5px solid var(--text-main);
      display: none;
      flex-direction: column;
      align-items: center;
      text-align: center;
      z-index: 25;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.9);
      animation: popupOpen 0.25s ease forwards;
    }

    .challenge-success-card.active {
      display: flex;
    }

    .success-badge {
      width: 48px;
      height: 48px;
      background: var(--dark-green);
      color: var(--paper-bg);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 12px;
    }

    .success-badge svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.5;
    }

    .challenge-success-card h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 6px;
    }

    .challenge-success-card p {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 16px;
    }

    /* 全局弹层遮罩 */
    .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(26, 24, 22, 0.5);
      z-index: 1000;
      display: none;
      justify-content: center;
      align-items: center;
      padding: 24px;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .modal-overlay.active {
      display: flex;
      opacity: 1;
    }

    .privacy-card, .creator-card, .final-tension-card {
      background: var(--paper-bg);
      border-radius: 8px;
      padding: 20px;
      width: 100%;
      max-width: 340px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transform: scale(0.95);
      transition: transform 0.25s ease;
      border: 0.5px solid var(--text-main);
    }

    .modal-overlay.active .privacy-card,
    .modal-overlay.active .creator-card,
    .modal-overlay.active .final-tension-card {
      transform: scale(1);
    }

    .privacy-icon {
      width: 48px;
      height: 48px;
      background: var(--dark-green);
      color: var(--paper-bg);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 12px;
    }

    .privacy-icon svg {
      width: 24px;
      height: 24px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
    }

    .privacy-card h3, .creator-card h3, .final-tension-card h3 {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 8px;
    }

    .privacy-card p, .creator-card p {
      font-size: 0.8rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 16px;
      text-align: left;
    }

    /* 表单输入元素 */
    .form-group {
      width: 100%;
      text-align: left;
      margin-bottom: 12px;
    }

    .form-group label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-main);
      display: block;
      margin-bottom: 4px;
      text-transform: uppercase;
    }

    .form-group input, .form-group select {
      width: 100%;
      padding: 8px 12px;
      border-radius: 6px;
      border: 0.5px solid var(--text-muted);
      background: var(--paper-bg);
      color: var(--text-main);
      font-family: inherit;
      font-size: 0.85rem;
    }

    .form-group input:focus, .form-group select:focus {
      outline: none;
      border-color: var(--accent-red);
    }

    .file-input-wrapper {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .file-input-btn {
      padding: 6px 12px;
      background: var(--dark-green);
      color: var(--paper-bg);
      border-radius: 6px;
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      border: 0.5px solid var(--text-main);
    }

    .file-input-name {
      font-size: 0.75rem;
      color: var(--text-muted);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      max-width: 150px;
    }

    /* ==========================================
       10. 结果页 (Result Screen)
       ========================================== */
    #page-result {
      padding-top: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
    }

    .card-perspective-container {
      width: 100%;
      display: flex;
      justify-content: center;
      margin: 10px 0;
    }

    .courage-card {
      background: var(--paper-bg);
      border-radius: 8px;
      width: 100%;
      max-width: 320px;
      padding: 14px;
      border: 0.5px solid var(--text-main);
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .card-photo-wrapper {
      width: 100%;
      height: 140px;
      border-radius: 6px;
      overflow: hidden;
      position: relative;
      margin-bottom: 12px;
      background: var(--dark-card-bg);
      border: 0.5px solid var(--text-muted);
    }

    .card-photo-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .card-photo-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(26,24,22,0.2);
      display: flex;
      align-items: flex-end;
      padding: 6px 12px;
    }

    .card-photo-badge {
      background: var(--paper-bg);
      border: 0.5px solid var(--text-main);
      padding: 2px 6px;
      border-radius: 4px;
      color: var(--accent-red);
      font-size: 0.65rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .card-courage-title {
      font-size: 1.05rem;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 4px;
      letter-spacing: 0.5px;
    }

    .card-courage-subtitle {
      font-size: 0.78rem;
      color: var(--text-muted);
      line-height: 1.4;
      margin-bottom: 10px;
    }

    .card-divider {
      height: 0.5px;
      background: var(--text-muted-light);
      margin-bottom: 10px;
    }

    /* 勇气卡统计 */
    .card-metrics-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      font-size: 0.75rem;
      color: var(--text-main);
      margin-bottom: 10px;
      background: var(--paper-bg);
      border: 0.5px dashed var(--text-muted);
      padding: 8px;
      border-radius: 6px;
    }

    .metric-item {
      display: flex;
      justify-content: space-between;
    }

    .metric-label {
      color: var(--text-muted);
    }

    .metric-value {
      font-weight: 700;
    }

    .card-signature-area {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .companion-sign {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .companion-sign-avatar {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: var(--paper-bg);
      font-size: 0.65rem;
      font-weight: 700;
    }

    .companion-sign-text {
      text-align: left;
    }

    .companion-sign-name {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .companion-sign-word {
      font-size: 0.6rem;
      color: var(--text-muted);
    }

    .card-date {
      font-size: 0.65rem;
      color: var(--text-muted-light);
      font-family: monospace;
    }

    /* 历史勇气阶梯 */
    .courage-ladder-box {
      width: 100%;
      background: var(--paper-bg);
      border: 0.5px solid var(--text-muted);
      border-radius: 8px;
      padding: 10px 14px;
      margin-bottom: 12px;
      text-align: left;
    }

    .courage-ladder-title {
      font-size: 0.8rem;
      font-weight: 800;
      color: var(--text-main);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .ladder-step {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.75rem;
      margin-bottom: 4px;
      color: var(--text-muted);
    }

    .ladder-step.active {
      color: var(--text-main);
      font-weight: 700;
    }

    .ladder-checkbox {
      width: 12px;
      height: 12px;
      border: 0.5px solid var(--text-main);
      border-radius: 2px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .ladder-step.active .ladder-checkbox::after {
      content: "✓";
      font-size: 8px;
      color: var(--accent-red);
      font-weight: bold;
    }

    .result-actions {
      width: 100%;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .btn-secondary {
      width: 100%;
      background: var(--paper-bg);
      color: var(--text-main);
      border: 0.5px solid var(--text-muted);
      border-radius: 8px;
      padding: 12px 24px;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      transition: var(--transition-smooth);
    }

    .btn-secondary:active {
      transform: translateY(1px);
    }

    /* ==========================================
       11. 通知提醒 Toast (纸质拟真样式)
       ========================================== */
    .toast-notification {
      position: absolute;
      top: -100px;
      left: 50%;
      transform: translateX(-50%);
      width: 88%;
      background: var(--paper-bg);
      border: 0.5px solid var(--text-main);
      border-radius: 8px;
      padding: 10px 16px;
      z-index: 2000;
      display: flex;
      align-items: center;
      gap: 10px;
      transition: top 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .toast-notification.active {
      top: 54px;
    }

    .toast-icon {
      color: var(--accent-red);
      flex-shrink: 0;
    }

    .toast-content {
      flex: 1;
    }

    .toast-title {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 2px;
    }

    .toast-desc {
      font-size: 0.7rem;
      color: var(--text-muted);
    }

    /* ==========================================
       12. 动效 Keyframes
       ========================================== */
    @keyframes pulseAvatar {
      0% { border-color: var(--text-muted); }
      50% { border-color: var(--accent-red); }
      100% { border-color: var(--text-muted); }
    }

    @keyframes pulseText {
      0%, 100% { opacity: 0.6; }
      50% { opacity: 1; }
    }

    @keyframes dotPulse {
      0% { transform: scale(0.9); opacity: 0.5; }
      50% { transform: scale(1.2); opacity: 1; }
      100% { transform: scale(0.9); opacity: 0.5; }
    }

    @keyframes bounceBar {
      0%, 100% { transform: scaleY(0.4); }
      50% { transform: scaleY(1.3); }
    }

    @keyframes flashEffect {
      0% { opacity: 0; }
      20% { opacity: 1; }
      100% { opacity: 0; }
    }

    @keyframes popupOpen {
      0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    }

    /* ==========================================
       13. 移动端铺满适配
       ========================================== */
    @media (max-width: 768px) {
      body {
        background-color: var(--paper-bg);
      }

      #pc-layout {
        padding: 0;
        gap: 0;
      }

      .pc-info-panel {
        display: none;
      }

      .phone-mockup {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: none;
      }

      .phone-btn, .phone-island {
        display: none;
      }

      .phone-screen {
        border-radius: 0;
        border: none;
      }

      .status-bar {
        padding-top: 20px;
      }
      
      .calling-header {
        padding-top: 56px;
      }

      .home-indicator {
        bottom: 12px;
      }
    }