/* 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(28, 30, 33, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

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

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e4e6eb;
}

.modal-header {
  padding: 16px 18px;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f7f8fa;
  color: #1c1e21;
  border-radius: 12px 12px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #1c1e21;
}

.close {
  color: #6c757d;
  font-size: 22px;
  font-weight: normal;
  cursor: pointer;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.close:hover {
  color: #1c1e21;
  background-color: #eef0f3;
}

.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: 10px;
  color: #1c1e21;
  font-size: 14px;
  font-weight: 600;
}

.qr-code-container {
  text-align: center;
  margin: 8px 0 0;
  padding: 16px;
  background: #f7f8fa;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
  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-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: #f4f6f8;
  color: #1c1e21;
  border: 1px solid #e4e6eb;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
  font-size: 13px;
  min-width: 60px;
}

.btn-copy:hover {
  background: #eef1f4;
}

.countdown {
  font-size: 24px;
  font-weight: 600;
  color: #1c1e21;
  text-align: center;
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
  border: 1px solid #e4e6eb;
}

.status-indicator {
  padding: 12px;
  background: #f7f8fa;
  border-radius: 8px;
  text-align: center;
  color: #1c1e21;
  font-weight: 500;
  border: 1px solid #e4e6eb;
}

.status-indicator.success {
  background: #f3faf4;
  color: #1e7e34;
  border-color: #d7eadb;
}

.status-indicator.error {
  background: #fdf6f6;
  color: #c0392b;
  border-color: #f0d6d6;
}

.status-indicator.expired {
  background: #fdfaf3;
  color: #8a6d1d;
  border-color: #efe4c4;
}

/* 移动端优化 */
@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;
  }
}

