/* OTA页面专用样式 */
body {
    background-color: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    padding-top: 40px;
}

.title-container {
    max-width: 95%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 30px;
}


.subtitle {
    color: #65676b;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* 按钮样式 */
#submitBtn {
    background: linear-gradient(45deg, #007AFF, #5856d6);
    border: none;
    padding: 14px 32px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
    max-width: 600px;
    width: 90%;
    margin: 0 auto 20px;
    display: block;
}

#submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

#submitBtn:active {
    transform: translateY(1px);
}

#ipaSubmitBtn {
    background: linear-gradient(45deg, #007AFF, #5856d6);
    border: none;
    padding: 14px 32px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.2);
    max-width: 600px;
    width: 90%;
    margin: 0 auto 20px;
    display: block;
}

#ipaSubmitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.3);
}

#ipaSubmitBtn:active {
    transform: translateY(1px);
}

/* 容器样式 */
.container {
    max-width: 600px;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* 图片圆角和阴影效果 */
.small-text img {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.small-text img:hover {
    transform: translateY(-2px);
}

/* 文字样式 */
.guide-section h5 {
    color: #1c1e21;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 20px;
}

.guide-section h5 i {
    color: #007AFF;
    margin-right: 8px;
}

.small-text {
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
}

.bold-text {
    color: #007AFF;
    font-weight: 600;
}

/* 操作按钮组样式 */
.action-buttons-container {
    padding: 15px !important;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.action-btn {
    flex: 1;
    display: inline-block;
    text-align: center;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    color: #1c1e21;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.action-btn:hover {
    background: #f5f6f7;
    color: #007AFF;
    border-color: #007AFF;
    text-decoration: none;
}

.action-btn i {
    margin-right: 6px;
    font-size: 14px;
}

/* 响应式适配 */
@media (max-width: 576px) {
    .container {
        max-width: 95%;
        padding: 15px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.2rem;
    }
    
    .small-text img {
        border-radius: 8px;
    }
} 

/* 保留按钮样式 */

.float-nav-btn {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
  position: relative; /* 相对定位，方便弹窗依附于此 */
}

/* 弹出的语言框样式 */
.lang-popup {
  position: absolute;
  top: -70px; /* 与按钮顶部对齐 */
  left: -140px; /* 在按钮左侧显示，调整为适当位置 */
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
  width: 120px;
  z-index: 9999;
  display: none;
}

/* 每个语言选项的样式 */
.lang-option {
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* 选项悬停效果 */
.lang-option:hover {
  background-color: #007bff;
  color: #5d9cff;
}

/* 待客获取弹窗样式 */
.modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal[style*="display: block"] {
  display: flex !important;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 25px 25px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-radius: 20px 20px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.close {
  color: rgba(255, 255, 255, 0.8);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

.qr-section, .link-section, .timer-section, .status-section {
  margin-bottom: 25px;
}

.qr-section h4, .link-section h4, .timer-section h4, .status-section h4 {
  margin-bottom: 15px;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qr-section h4::before {
  content: "📱";
  font-size: 18px;
}

.link-section h4::before {
  content: "🔗";
  font-size: 18px;
}

.timer-section h4::before {
  content: "⏰";
  font-size: 18px;
}

.status-section h4::before {
  content: "📊";
  font-size: 18px;
}

.qr-code-container {
  text-align: center;
  margin: 20px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border: 2px dashed #dee2e6;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-code-container canvas,
.qr-code-container img {
  margin: 0 auto;
  display: block;
}

.qr-code-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(0, 123, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.qr-tip {
  margin-top: 15px;
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.input-group {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-group input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s ease;
  background: white;
  min-width: 0;
}

.input-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.btn-copy {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
  font-size: 13px;
  min-width: 60px;
}

.btn-copy:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-copy:active {
  transform: translateY(0);
}

.countdown {
  font-size: 28px;
  font-weight: bold;
  color: #dc3545;
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-radius: 15px;
  border: 2px solid #f5c6cb;
  position: relative;
  overflow: hidden;
}

.countdown::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: countdownShine 2s infinite;
}

@keyframes countdownShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.status-indicator {
  padding: 15px;
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-radius: 12px;
  text-align: center;
  color: #0c5460;
  font-weight: 500;
  border: 2px solid #bee5eb;
  transition: all 0.3s ease;
}

.status-indicator.success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-color: #c3e6cb;
}

.status-indicator.error {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-color: #f5c6cb;
}

.status-indicator.expired {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-color: #ffeaa7;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .modal {
    padding: 15px;
  }
  
  .modal-content {
    max-width: 100%;
    border-radius: 15px;
  }
  
  .modal-header {
    padding: 20px 20px 15px;
    border-radius: 15px 15px 0 0;
  }
  
  .modal-header h3 {
    font-size: 18px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .qr-code-container {
    padding: 20px;
  }
  
  .input-group {
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
  }
  
  .input-group input {
    flex: 1;
    padding: 12px 10px;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn-copy {
    padding: 12px 14px;
    font-size: 12px;
    min-width: 50px;
    flex-shrink: 0;
  }
  
  .countdown {
    font-size: 24px;
    padding: 15px;
  }
  
  .qr-section h4, .link-section h4, .timer-section h4, .status-section h4 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 15px 15px 10px;
    border-radius: 12px 12px 0 0;
  }
  
  .modal-header h3 {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 15px;
  }
  
  .qr-code-container {
    padding: 15px;
  }
  
  .input-group {
    gap: 6px;
  }
  
  .input-group input {
    padding: 10px 8px;
    font-size: 11px;
  }
  
  .btn-copy {
    padding: 10px 12px;
    font-size: 11px;
    min-width: 45px;
  }
  
  .countdown {
    font-size: 20px;
    padding: 12px;
  }
}

