* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
      padding: 0;
      background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
      color: #ffffff;
      min-height: 100vh;
      overflow-x: hidden;
    }

    #header {
      background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
      color: white;
      text-align: center;
      padding: 15px 0;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    #header h1 {
      margin: 0;
      font-size: 24px;
      font-weight: 300;
      letter-spacing: 2px;
    }

    /* 應試者資訊橫幅樣式 */
    .candidate-info-banner {
      background: rgba(0, 0, 0, 0.4);
      color: #e0e0e0;
      padding: 10px 20px;
      border-radius: 8px;
      margin-top: 10px;
      display: none; /* 初始隱藏，面試開始時顯示 */
      justify-content: center;
      gap: 30px;
      font-size: 14px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }
    
    .info-item {
      display: flex;
      align-items: center;
      gap: 5px;
      font-weight: 500;
    }

    /* 設定表單 */
    #setupForm {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.98));
      backdrop-filter: blur(20px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
    }
    
    .settings-container {
      background: linear-gradient(145deg, rgba(30, 30, 30, 0.95), rgba(40, 40, 40, 0.9));
      backdrop-filter: blur(25px);
      border-radius: 20px;
      padding: 30px 40px;
      max-width: 1600px;
      width: 98%;
      border: 2px solid rgba(255, 255, 255, 0.15);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
      position: relative;
      overflow: hidden;
      max-height: 92vh;
      overflow-y: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px 35px;
      grid-auto-flow: dense;
    }
    
    .settings-container h2 {
      grid-column: 1 / -1;
      text-align: center;
      margin-bottom: 0;
      font-size: 26px;
      font-weight: 300;
      color: #ffffff;
      letter-spacing: 1px;
    }
    
    /* 表單分組容器 */
    .form-section {
      display: flex;
      flex-direction: column;
      background: rgba(255, 255, 255, 0.02);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid rgba(255, 255, 255, 0.06);
    }
    
    /* 占据两列的区块 */
    .form-section.full-width {
      grid-column: 1 / -1;
    }
    
    .form-section-title {
      font-size: 15px;
      font-weight: 600;
      color: #4CAF50;
      margin-bottom: 15px;
      padding-bottom: 12px;
      border-bottom: 2px solid rgba(76, 175, 80, 0.3);
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    /* 基本信息区域 - 三栏布局 */
    .basic-info-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    
    /* 文本区域 */
    .full-width-group {
      width: 100%;
    }
    
    .settings-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800, #FF6B6B);
      border-radius: 20px 20px 0 0;
    }
    
    .settings-title {
      text-align: center;
      margin-bottom: 20px;
      font-size: 26px;
      font-weight: 300;
      color: #ffffff;
      letter-spacing: 1px;
      position: relative;
    }
    
    .settings-title::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%);
      width: 50px;
      height: 2px;
      background: linear-gradient(90deg, #4CAF50, #2196F3);
      border-radius: 2px;
    }
    
    .form-group {
      margin-bottom: 0;
      position: relative;
      display: flex;
      flex-direction: column;
    }
    
    /* 標籤與上傳按鈕並排 */
    .label-with-upload {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .label-with-upload label {
      margin-bottom: 0 !important;
      flex-shrink: 0;
      font-size: 15px;
      font-weight: 600;
    }
    
    .upload-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .inline-upload-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 14px;
      background: linear-gradient(145deg, #4CAF50, #45a049);
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
      white-space: nowrap;
      flex-shrink: 0;
    }
    
    .inline-upload-btn:hover {
      background: linear-gradient(145deg, #45a049, #4CAF50);
      box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
      transform: translateY(-1px);
    }
    
    .inline-upload-btn .material-icons {
      font-size: 14px;
    }
    
    /* 模板選擇器樣式 */
    .template-selector {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
      padding: 10px 12px;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .template-selector select {
      flex: 1;
      min-width: 200px;
      padding: 9px 12px;
      border: 1px solid #333 !important;
      border-radius: 6px;
      background: #1a1a1a !important;
      color: #e0e0e0 !important;
      font-size: 13px;
    }
    
    .load-template-btn {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 8px 16px;
      background: linear-gradient(145deg, #4CAF50, #45a049);
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 12px;
      font-weight: 600;
      transition: all 0.3s ease;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
      white-space: nowrap;
    }
    
    .load-template-btn:hover {
      background: linear-gradient(145deg, #45a049, #3d8b40);
      box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
      transform: translateY(-1px);
    }
    
    .load-template-btn .material-icons {
      font-size: 14px;
    }
    
    .template-status {
      font-size: 11px;
      color: #4CAF50;
      white-space: nowrap;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: 500;
      color: #e8e8e8;
      letter-spacing: 0.3px;
      position: relative;
    }
    
    input[type="text"],
    input[type="number"],
    textarea,
    select {
      background: #1a1a1a !important;
      color: #e0e0e0 !important;
      border: 1px solid #333 !important;
      border-radius: 8px;
      padding: 12px 16px;
      width: 100%;
      font-size: 15px;
      transition: all 0.3s ease;
      box-sizing: border-box;
    }
    
    input[type="text"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
      outline: none !important;
      background: #242424 !important;
      border-color: #4CAF50 !important;
      box-shadow: 0 0 15px rgba(76, 175, 80, 0.3);
    }
    
    input::placeholder,
    textarea::placeholder {
      color: #666 !important;
    }
    
    .form-group input, .form-group textarea, .form-group select {
      background: #1a1a1a !important;
      color: #e0e0e0 !important;
      border: 1px solid #333 !important;
    }
    
    .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
      background: #242424 !important;
      border-color: #4CAF50 !important;
    }
    
    textarea {
      min-height: 180px;
      height: 180px;
      resize: vertical;
      font-family: inherit;
      line-height: 1.6;
    }
    
    /* 職能評估文字框 */
    #competencyEvaluation {
      min-height: 300px;
      height: 300px;
    }
    
    /* 短文字框 */
    .form-group.compact textarea {
      min-height: 120px;
      height: 120px;
    }
    
    /* 上傳狀態 */
    .upload-status {
      font-size: 11px;
      color: #4CAF50;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }
    
    .upload-status.error {
      color: #f44336;
    }
    
    .upload-status.loading {
      color: #2196F3;
    }
    
    .upload-status.loading::before {
      content: '⟳';
      animation: spin 1s linear infinite;
      font-size: 12px;
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    #startButton {
      width: 100%;
      padding: 14px 18px;
      background: linear-gradient(145deg, #4CAF50, #45a049);
      color: #ffffff;
      border: none;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      margin-top: 20px;
      box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
      letter-spacing: 1px;
      text-transform: uppercase;
      position: relative;
      overflow: hidden;
    }

    #startButton::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    #startButton:hover::before {
      left: 100%;
    }

    #startButton:hover {
      background: linear-gradient(145deg, #45a049, #4CAF50);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
    }

    #startButton:active {
      transform: translateY(-1px);
      box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    }

    /* 權重配置区域样式 */
    .weight-config-section {
      padding: 0;
      background: transparent;
    }
    
    /* 按鈕區域 */
    .button-section {
      grid-column: 1 / -1;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 25px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      align-items: stretch;
    }
    
    .button-section button {
      width: 100% !important;
      height: 60px !important;
      min-height: 60px !important;
      max-height: 60px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 20px !important;
      margin: 0 !important;
      box-sizing: border-box !important;
    }
    
    /* 管理員入口 */
    .admin-link-section {
      grid-column: 1 / -1;
      text-align: center;
      padding-top: 15px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      margin-top: 0;
    }
    
    /* 響應式優化 */
    @media (max-width: 1400px) {
      .settings-container {
        max-width: 1200px;
        gap: 20px 30px;
      }
    }
    
    @media (max-width: 1200px) {
      .settings-container {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 20px;
      }
      
      .form-section.full-width,
      .button-section,
      .admin-link-section {
        grid-column: 1;
      }
      
      .button-section {
        grid-template-columns: 1fr;
        gap: 15px;
      }
      
      .basic-info-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    
    @media (max-width: 768px) {
      .settings-container {
        padding: 20px;
        margin: 15px;
        width: calc(100% - 30px);
        max-height: 90vh;
        gap: 18px;
      }
      
      .basic-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
      }
      
      .settings-container h2 {
        font-size: 22px;
      }
      
      .form-section {
        padding: 15px;
      }
      
      .form-group input, .form-group textarea, .form-group select {
        padding: 10px 14px;
        font-size: 14px;
      }
      
      .form-group textarea {
        min-height: 120px;
        height: 120px;
      }
      
      #competencyEvaluation {
        min-height: 180px;
        height: 180px;
      }
      
      .button-section button {
        height: auto !important;
        padding: 14px !important;
      }
      
      .label-with-upload {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      
      .upload-controls {
        width: 100%;
        justify-content: space-between;
      }
      
      .template-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
      }
      
      .template-selector select {
        width: 100%;
      }
      
      .load-template-btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* 簡約滑桿样式 - 黑灰白配色 */
    input[type="range"] {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: #2a2a2a;
      outline: none;
      margin: 0;
      border: 1px solid #1a1a1a;
    }
    
    input[type="range"]::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 14px;
      height: 14px;
      border-radius: 3px;
      background: #ffffff;
      cursor: pointer;
      border: 2px solid #999;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      transition: all 0.2s ease;
      margin-top: -5px;
    }
    
    input[type="range"]::-webkit-slider-thumb:hover {
      background: #4CAF50;
      border-color: #45a049;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.6);
      transform: scale(1.1);
    }
    
    input[type="range"]::-moz-range-thumb {
      width: 14px;
      height: 14px;
      border-radius: 3px;
      background: #ffffff;
      cursor: pointer;
      border: 2px solid #999;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
      transition: all 0.2s ease;
    }
    
    input[type="range"]::-moz-range-thumb:hover {
      background: #4CAF50;
      border-color: #45a049;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.6);
      transform: scale(1.1);
    }
    
    input[type="range"]::-webkit-slider-runnable-track {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: #2a2a2a;
      border: 1px solid #1a1a1a;
    }
    
    input[type="range"]::-moz-range-track {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: #2a2a2a;
      border: 1px solid #1a1a1a;
    }
    
    .weight-slider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 8px;
      padding: 4px 0;
    }
    
    .weight-slider label {
      display: flex;
      align-items: center;
      font-size: 13px;
      color: #e0e0e0;
      white-space: nowrap;
      min-width: 100px;
      margin: 0;
    }
    
    .weight-slider input[type="range"] {
      flex: 1;
      margin: 0;
    }
    
    .weight-slider .weight-value {
      font-size: 13px;
      color: #e0e0e0;
      font-weight: 500;
      min-width: 50px;
      text-align: right;
    }
    
    /* 語音選擇按鈕組 */
    .voice-options {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    
    .voice-option {
      position: relative;
    }
    
    .voice-option input[type="radio"] {
      display: none;
    }
    
    .voice-option label {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-start;
      padding: 16px 60px 16px 20px;
      background: rgba(40, 40, 40, 0.6);
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      gap: 12px;
    }
    
    .voice-option label:hover {
      background: rgba(50, 50, 50, 0.8);
      border-color: rgba(76, 175, 80, 0.5);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    }
    
    .voice-option input[type="radio"]:checked + label {
      background: linear-gradient(145deg, rgba(76, 175, 80, 0.2), rgba(69, 160, 73, 0.15));
      border-color: #4CAF50;
      box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
    }
    
    .voice-option label .voice-icon {
      font-size: 32px;
      flex-shrink: 0;
    }
    
    .voice-option label .voice-info {
      flex: 1;
      text-align: left;
    }
    
    .voice-option label .voice-name {
      font-size: 14px;
      font-weight: 600;
      color: #e0e0e0;
      margin-bottom: 2px;
    }
    
    .voice-option label .voice-desc {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.5);
    }
    
    .preview-voice-btn {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(76, 175, 80, 0.8);
      border: none;
      border-radius: 6px;
      width: 38px;
      height: 38px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 10;
      flex-shrink: 0;
      margin: 0;
      padding: 0;
    }
    
    .preview-voice-btn:hover {
      background: #4CAF50;
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
      transform: translateY(-50%) scale(1.08);
    }
    
    .preview-voice-btn .material-icons {
      font-size: 20px;
      color: white;
    }
    
    .preview-voice-btn.playing {
      background: #ff9800;
      animation: pulse 1s infinite;
    }
    
    @keyframes pulse {
      0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
      }
      50% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
      }
    }
    
    #container {
      display: none;
      flex-direction: row;
      height: calc(100vh - 80px);
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(10px);
    }

    /* 左側視訊區域 */
    #videoSection {
      width: 70%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 30px;
      background: rgba(0, 0, 0, 0.2);
      border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #interview-progress {
      background: rgba(255, 255, 255, 0.05);
      padding: 8px 15px;
      border-radius: 15px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #cccccc;
      font-size: 14px;
      text-align: center;
      margin-bottom: 15px;
      backdrop-filter: blur(10px);
    }
    
    #video-container {
      position: relative;
      width: 100%;
      max-width: 1000px;
      height: 65vh;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      border: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    #webcam {
      width: 100%;
      height: 100%;
      object-fit: cover;
      background: #000;
    }

    /* 右側控制區域 */
    #controlSection {
      width: 30%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(20px);
      padding: 30px 20px;
      display: flex;
      flex-direction: column;
      border-left: 1px solid rgba(255, 255, 255, 0.1);
      overflow-y: auto;
    }
    
    /* 錄音按鈕容器 */
    .talk-button-container {
      text-align: center;
      margin: 20px 0;
    }
    
    .mic-button {
      width: 500px;
      height: 65px;
      border-radius: 32px;
      background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
      border: 2px solid rgba(255, 255, 255, 0.1);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      margin: 10px auto;
      color: #cccccc;
      font-size: 18px;
      gap: 10px;
    }
    
    .mic-button:hover {
      background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    
    .mic-button.recording {
      background: linear-gradient(145deg, #ff4444, #cc3333);
      border-color: rgba(255, 255, 255, 0.3);
      animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
      0% { box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3); }
      50% { box-shadow: 0 6px 25px rgba(255, 68, 68, 0.6); }
      100% { box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3); }
    }
    
    .mic-button:disabled {
      background: #1a1a1a;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
      border-color: rgba(255, 255, 255, 0.05);
      color: #666666;
    }
    
    .material-icons {
      font-size: 28px;
      color: inherit;
    }
    
    #buttonText {
      display: inline;
      font-weight: 500;
    }
    
    /* 隱藏下方計時器 */
    #timer {
      display: none !important;
    }
    
    /* 文字區域 - 黑灰白配色 */
    #userTranscript, #assistantReply {
      margin: 5px 0;
      padding: 25px;
      background: rgba(30, 30, 30, 0.8);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      font-size: 18px;
      line-height: 1.6;
      border: 1px solid rgba(255, 255, 255, 0.1);
      min-height: 100px;
      color: #e0e0e0;
    }
    
    #userTranscript {
      border-left: 3px solid #666666;
      max-width: 1000px;
      width: 100%;
      min-height: 140px;
      max-height: 350px;
      overflow-y: auto;
      word-wrap: break-word;
      white-space: normal;
      text-align: left;
      text-indent: 0;
      padding-left: 25px;
    }
    
    #assistantReply {
      border-left: 3px solid #888888;
      min-height: 150px;
      max-height: 300px;
      overflow-y: auto;
      word-wrap: break-word;
      white-space: pre-wrap;
    }
    
    /* 按鈕樣式 */
    button {
      padding: 12px 24px;
      background: linear-gradient(45deg, #555, #777);
      color: #fff;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s ease;
      margin: 10px 0;
    }
    
    button:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* 遠端面試按鈕樣式 */
    .interview-mode-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      margin-top: 20px;
    }
    
    #generateRemoteButton {
      background: linear-gradient(45deg, #2196F3, #1976D2);
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      transition: all 0.3s ease;
    }
    
    #generateRemoteButton:hover {
      background: linear-gradient(45deg, #1976D2, #1565C0);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    }
    
    /* 遠端URL顯示區域樣式 */
    .remote-url-section {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(20, 20, 20, 0.98));
      backdrop-filter: blur(20px);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 20px;
    }
    
    .remote-url-content {
      background: rgba(26, 26, 46, 0.95);
      border: 1px solid rgba(33, 150, 243, 0.3);
      border-radius: 15px;
      padding: 40px;
      max-width: 900px;
      width: 90%;
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 20px rgba(33, 150, 243, 0.3);
    }
    
    .remote-url-section h3 {
      color: #2196F3;
      margin: 0 0 15px 0;
      text-align: center;
    }
    
    .url-container {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }
    
    #remoteUrl {
      flex: 1;
      padding: 12px;
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 6px;
      color: #e0e0e0;
      font-size: 14px;
      font-family: monospace;
    }
    
    #copyUrlButton {
      background: #4CAF50;
      color: white;
      border: none;
      padding: 12px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.3s ease;
    }
    
    #copyUrlButton:hover {
      background: #45a049;
      transform: translateY(-1px);
    }
    
    .url-instructions {
      text-align: center;
      color: #e0e0e0;
      font-size: 16px;
      margin: 20px 0;
      line-height: 1.5;
      background: rgba(0, 0, 0, 0.2);
      padding: 15px;
      border-radius: 8px;
      border-left: 4px solid #2196F3;
    }
    
    #candidateNameDisplay {
      color: #2196F3;
      font-weight: 500;
    }
    
    .url-actions {
      display: flex;
      gap: 10px;
      justify-content: center;
      margin-top: 20px;
    }
    
    #createAnotherButton, #backToSetupButton, #monitorInterviewButton {
      background: rgba(255, 255, 255, 0.1);
      color: #e0e0e0;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.3s ease;
    }
    
    #monitorInterviewButton {
      background: linear-gradient(45deg, #FF9800, #F57C00);
      color: white;
      border: 1px solid rgba(255, 152, 0, 0.3);
    }
    
    #createAnotherButton:hover, #backToSetupButton:hover, #monitorInterviewButton:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.3);
      transform: translateY(-1px);
    }
    
    #monitorInterviewButton:hover {
      background: linear-gradient(45deg, #F57C00, #E65100);
    }
    
    /* 監控區域樣式 */
    .monitor-section {
      margin-top: 25px;
      padding: 20px;
      background: rgba(0, 0, 0, 0.3);
      border-radius: 10px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .monitor-section h4 {
      color: #FF9800;
      margin: 0 0 15px 0;
      text-align: center;
    }
    
    .monitor-content {
      color: #e0e0e0;
      font-size: 14px;
    }
    
    .status-indicator {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-right: 8px;
    }
    
    .status-online { background: #4CAF50; }
    .status-offline { background: #f44336; }
    .status-completed { background: #2196F3; }
    
    #mbtiButton, #fullReportButton {
      width: 100%;
      padding: 15px 20px;
      background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
      color: #e0e0e0;
      border: 2px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      margin-top: 10px;
    }
    
    #mbtiButton:hover, #fullReportButton:hover {
      background: linear-gradient(145deg, #404040, #2a2a2a);
      border-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    
    #mbtiButton {
      background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
      color: #e0e0e0;
    }
    
    #mbtiButton:hover {
      background: linear-gradient(145deg, #404040, #2a2a2a);
    }
    
    /* 音頻控制區域 - 與黑色背景完美融合 */
    #audioSection {
      margin: 20px 0;
      padding: 15px;
      background: rgba(15, 15, 15, 0.95);
      border-radius: 12px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    
    #assistantAudio {
      width: 100%;
      height: 40px;
      border-radius: 8px;
      outline: none;
      background: rgba(10, 10, 10, 0.98);
      border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    /* 自定義音頻控制器樣式 - 深色主題完美融合 */
    #assistantAudio::-webkit-media-controls-panel {
      background: rgba(8, 8, 8, 0.98);
      border-radius: 8px;
      border: none;
    }
    
    #assistantAudio::-webkit-media-controls-play-button,
    #assistantAudio::-webkit-media-controls-pause-button {
      background-color: rgba(60, 60, 60, 0.9);
      border-radius: 50%;
      filter: invert(0.85) brightness(1.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #assistantAudio::-webkit-media-controls-volume-slider,
    #assistantAudio::-webkit-media-controls-timeline {
      background: rgba(40, 40, 40, 0.9);
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    #assistantAudio::-webkit-media-controls-volume-slider-container,
    #assistantAudio::-webkit-media-controls-timeline-container {
      background: rgba(20, 20, 20, 0.9);
      border-radius: 4px;
    }
    
    #assistantAudio::-webkit-media-controls-current-time-display,
    #assistantAudio::-webkit-media-controls-time-remaining-display {
      color: #cccccc;
      font-size: 12px;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    #assistantAudio::-webkit-media-controls-mute-button {
      background-color: rgba(60, 60, 60, 0.9);
      border-radius: 4px;
      filter: invert(0.85) brightness(1.2);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .material-icons {
      font-size: 24px;
      color: inherit;
    }
    
    #buttonText {
      display: inline;
      font-weight: 500;
    }
    
    /* 隱藏下方計時器 */
    #timer {
      display: none !important;
    }
    
    /* 最終報告 */
    #final-report {
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      height: calc(100vh - 60px);
      background: rgba(0, 0, 0, 0.95);
      backdrop-filter: blur(20px);
      padding: 40px;
      overflow-y: auto;
      z-index: 1500;
      display: none;
    }
    
    #final-report h2 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 28px;
      color: #ffffff;  /* 改為白色 */
    }
    
    /* 報告生成進度條 */
    #report-progress {
      max-width: 900px;
      margin: 40px auto;
      padding: 30px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 15px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      text-align: center;
    }
    
    #progress-title {
      font-size: 20px;
      color: #ffffff;
      margin-bottom: 20px;
      font-weight: 500;
    }
    
    #progress-bar-container {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      overflow: hidden;
      margin: 20px 0;
      position: relative;
    }
    
    #progress-bar {
      height: 100%;
      background: linear-gradient(90deg, #4CAF50, #2196F3, #FF9800);
      border-radius: 4px;
      width: 0%;
      transition: width 0.5s ease;
      position: relative;
    }
    
    #progress-bar::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      animation: shimmer 2s infinite;
    }
    
    @keyframes shimmer {
      0% { transform: translateX(-100%); }
      100% { transform: translateX(100%); }
    }
    
    #progress-text {
      color: #cccccc;
      font-size: 14px;
      margin-top: 15px;
      min-height: 20px;
    }
    
    #progress-percentage {
      color: #4CAF50;
      font-size: 18px;
      font-weight: 600;
      margin: 10px 0;
    }
    
    #report-content {
      max-width: 900px;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      padding: 30px;
      border-radius: 15px;
      line-height: 1.8;
      font-size: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      display: none;
    }
    
    /* 導出按鈕容器 */
    .export-buttons {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 12px;
      margin: 30px auto;
      flex-wrap: nowrap;
      width: 100%;
      max-width: 800px;
      padding: 0 20px;
    }
    
    .export-buttons button {
      padding: 10px 14px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      width: 135px;
      height: 46px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
    }
    
    /* 報告操作容器 - 統一樣式 */
    .report-actions-container {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 30px;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }
    
    .report-action-row {
      display: flex;
      align-items: center;
      background: rgba(40, 40, 40, 0.6);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 16px 20px;
      transition: all 0.3s ease;
    }
    
    .report-action-row:hover {
      background: rgba(50, 50, 50, 0.8);
      border-color: rgba(255, 255, 255, 0.15);
    }
    
    .report-action-label {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: #e0e0e0;
      min-width: 180px;
    }
    
    .report-action-buttons {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .btn-divider {
      color: rgba(255, 255, 255, 0.3);
      font-size: 14px;
      user-select: none;
    }
    
    .action-btn {
      padding: 8px 20px;
      font-size: 14px;
      font-weight: 600;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 70px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .action-btn.view-btn {
      background: linear-gradient(145deg, #4CAF50, #45a049);
      color: white;
      box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    }
    
    .action-btn.view-btn:hover {
      background: linear-gradient(145deg, #45a049, #3d8b40);
      box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
      transform: translateY(-1px);
    }
    
    .action-btn.export-btn {
      background: linear-gradient(145deg, #333333, #1a1a1a);
      color: white;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .action-btn.export-btn:hover {
      background: linear-gradient(145deg, #404040, #2a2a2a);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
      transform: translateY(-1px);
    }
    
    .action-btn.export-btn.single {
      min-width: 140px;
    }
    
    .action-btn:active {
      transform: translateY(0);
    }
    
    .action-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none !important;
    }
    

    .cleanup-btn {
      background: linear-gradient(45deg, #f44336, #d32f2f);
      color: white;
      padding: 10px 14px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 500;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      width: 135px;
      height: 46px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
      flex-shrink: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: center;
    }
    
    .cleanup-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    }
    
    /* 按鈕禁用狀態 */
    .export-buttons button:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none !important;
    }
    
    /* 狀態提示樣式 */
    .status-message {
      position: fixed;
      top: 20px;
      right: 20px;
      padding: 12px 20px;
      background: rgba(0, 0, 0, 0.9);
      color: white;
      border-radius: 8px;
      font-size: 14px;
      z-index: 1000;
      border-left: 4px solid #2196F3;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      display: none;
      backdrop-filter: blur(10px);
    }
    
    .status-message.success {
      border-left-color: #4CAF50;
      background: rgba(76, 175, 80, 0.1);
      border: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    .status-message.error {
      border-left-color: #f44336;
      background: rgba(244, 67, 54, 0.1);
      border: 1px solid rgba(244, 67, 54, 0.3);
    }
    
    .status-message.processing {
      border-left-color: #FF9800;
      background: rgba(255, 152, 0, 0.1);
      border: 1px solid rgba(255, 152, 0, 0.3);
    }
    
    /* 響應式設計 */
    @media (max-width: 768px) {
      #container {
        flex-direction: column;
      }
      
      #videoSection {
        width: 100%;
        height: 60%;
      }
      
      #controlSection {
        width: 100%;
        height: 40%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
      }
      
      #video-container {
        height: 50vh;
      }
      
      .export-buttons {
        flex-direction: column;
        gap: 12px;
        max-width: 320px;
        padding: 0 10px;
      }
      
      .export-buttons button {
        width: 100%;
        min-width: auto;
        height: 48px;
      }
      
      .status-message {
        top: 10px;
        right: 10px;
        left: 10px;
        font-size: 12px;
      }
    }

    /* 美觀報告樣式 */
    .report-container {
      color: #e0e0e0;
      font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    }
    
    .report-section {
      margin-bottom: 40px;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 15px;
      padding: 25px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
    }
    
    .report-section h2 {
      color: #4CAF50;
      font-size: 24px;
      margin-bottom: 20px;
      border-bottom: 2px solid rgba(76, 175, 80, 0.3);
      padding-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    /* 五大核心職能樣式 */
    .personality-trait {
      margin-bottom: 20px;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      padding: 20px;
      border-left: 4px solid #4CAF50;
    }
    
    .trait-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .trait-header h3 {
      color: #ffffff;
      margin: 0;
      font-size: 18px;
    }
    
    .score-display {
      background: linear-gradient(135deg, #4CAF50, #45a049);
      color: white;
      padding: 5px 12px;
      border-radius: 20px;
      font-weight: bold;
      font-size: 14px;
    }
    
    .progress-bar {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 4px;
      overflow: hidden;
      margin: 10px 0;
    }
    
    .progress {
      height: 100%;
      background: linear-gradient(90deg, #4CAF50, #81C784);
      border-radius: 4px;
      transition: width 0.3s ease;
    }
    
    .trait-content p {
      margin: 8px 0;
      line-height: 1.6;
    }
    
    .trait-content strong {
      color: #81C784;
    }
    
    /* Mehrabian 溝通分析樣式 */
    .mehrabian-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }
    
    .communication-element {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .element-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }
    
    .element-header h3 {
      color: #ffffff;
      margin: 0;
      font-size: 16px;
    }
    
    .circular-progress {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: conic-gradient(from 0deg, #4CAF50 0deg, #4CAF50 var(--progress-deg, 180deg), rgba(255,255,255,0.1) var(--progress-deg, 180deg));
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    
    .circular-progress::before {
      content: '';
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: rgba(30, 30, 30, 0.9);
      position: absolute;
    }
    
    .circular-progress .score-display {
      position: relative;
      z-index: 1;
      font-size: 10px;
      padding: 2px 6px;
    }
    
    .element-content p {
      margin: 8px 0;
      line-height: 1.5;
      font-size: 14px;
    }
    
    /* 響應式設計 */
    @media (max-width: 768px) {
      .report-container {
        padding: 10px;
      }
      
      .report-section {
        padding: 15px;
        margin-bottom: 20px;
      }
      
      .trait-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
      
      .mehrabian-grid {
        grid-template-columns: 1fr;
      }
    }
    
    /* Gardner 多元智能樣式 */
    .intelligence-grid, .theory-grid, .stress-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 15px;
    }
    
    .intelligence-item, .theory-item, .stress-item, .ability-item {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      padding: 20px;
      border-left: 4px solid #4CAF50;
    }
    
    .intelligence-header, .theory-header, .stress-header, .ability-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
    }
    
    .intelligence-header h3, .theory-header h3, .stress-header h3, .ability-header h3 {
      color: #ffffff;
      margin: 0;
      font-size: 16px;
    }
    
    /* 綜合評估樣式 */
    .summary-content {
      display: grid;
      gap: 25px;
    }
    
    .match-score {
      text-align: center;
      background: linear-gradient(135deg, #4CAF50, #45a049);
      border-radius: 15px;
      padding: 30px;
      color: white;
    }
    
    .big-score {
      font-size: 48px;
      font-weight: bold;
      margin-top: 10px;
    }
    
    .advantages-section, .development-section, .suggestions-section {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      padding: 20px;
    }
    
    .advantages-section h3, .development-section h3, .suggestions-section h3 {
      color: #4CAF50;
      margin-bottom: 15px;
      font-size: 18px;
    }
    
    .advantage-item, .development-item, .suggestion-item {
      display: flex;
      align-items: flex-start;
      gap: 15px;
      margin-bottom: 15px;
    }
    
    .advantage-item .number, .development-item .number, .suggestion-item .number {
      background: #4CAF50;
      color: white;
      width: 25px;
      height: 25px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      flex-shrink: 0;
      font-size: 14px;
    }
    
    /* 最終建議樣式 */
    .final-recommendation {
      display: grid;
      gap: 20px;
    }
    
    .recommendation-level {
      text-align: center;
      padding: 20px;
    }
    
    .level-badge {
      display: inline-block;
      background: linear-gradient(135deg, #4CAF50, #45a049);
      color: white;
      padding: 10px 20px;
      border-radius: 25px;
      font-weight: bold;
      font-size: 18px;
      margin-top: 10px;
    }
    
    .recommendation-details {
      display: grid;
      gap: 15px;
    }
    
    .detail-item {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 10px;
      padding: 20px;
    }
    
    .detail-item h4 {
      color: #4CAF50;
      margin-bottom: 10px;
      font-size: 16px;
    }
    
    /* 核心能力樣式 */
    .core-abilities {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    /* ========== 拍照頁面樣式 ========== */
    #photoPage {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .photo-container {
      background: rgba(30, 30, 30, 0.95);
      border-radius: 20px;
      padding: 40px;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
      border: 2px solid rgba(76, 175, 80, 0.3);
      max-width: 900px;
      width: 90%;
    }

    .photo-container h2 {
      color: #4CAF50;
      margin-bottom: 15px;
      font-size: 28px;
      font-weight: 300;
    }

    .photo-instruction {
      color: #bbb;
      margin-bottom: 30px;
      font-size: 16px;
    }

    .photo-video-section {
      margin-bottom: 30px;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #photoVideo, #photoCanvas {
      width: 350px;
      height: 350px;
      object-fit: cover;
      border-radius: 50%;
      border: 5px solid #4CAF50;
      box-shadow: 0 8px 24px rgba(76, 175, 80, 0.4);
      display: block;
    }

    .photo-preview-section {
      margin-top: 20px;
    }

    .photo-actions {
      display: flex;
      gap: 15px;
      justify-content: center;
    }

    .photo-btn {
      padding: 12px 24px;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      min-width: 120px;
    }

    .photo-btn.primary {
      background: linear-gradient(135deg, #4CAF50, #45a049);
      color: white;
      box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }

    .photo-btn.primary:hover {
      background: linear-gradient(135deg, #45a049, #3d8b40);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    }

    .photo-btn.secondary {
      background: rgba(255, 255, 255, 0.1);
      color: #fff;
      border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .photo-btn.secondary:hover {
      background: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.5);
    }

    .photo-btn.large {
      padding: 18px 40px;
      font-size: 20px;
      min-width: 200px;
    }

    .photo-uploading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .loading-spinner {
      width: 40px;
      height: 40px;
      border: 4px solid rgba(76, 175, 80, 0.3);
      border-top: 4px solid #4CAF50;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .photo-uploading p {
      color: #4CAF50;
      font-size: 16px;
      margin: 0;
    }

    /* 響應式設計：在小螢幕上調整照片大小 */
    @media (max-width: 768px) {
      #photoVideo, #photoCanvas {
        width: 280px;
        height: 280px;
      }
    }

    @media (max-width: 480px) {
      #photoVideo, #photoCanvas {
        width: 240px;
        height: 240px;
        border-width: 4px;
      }
    }