@import "./emptyData.css";
@import "./OctSettleResultDisplay.css";
@import "./WifiConfigForm.css";
@import "./TransactionList.css";
@import "./OctOrderEnquiryResult.css";
@import "./virtualKeyboard.css";
@import "./KioskAbout.css";
/* ========== 清机弹窗样式 ========== */
.octSettleLayer {
  width: 90% !important;
  max-width: 10rem !important;
  height: 15.5rem !important;
  max-height: 15.5rem !important;
  border: none !important;
  border-radius: 0.3rem !important;
  box-shadow:
    0 0.275rem 0.375rem -0.175rem rgba(0, 0, 0, 0.2),
    0 0.6rem 0.95rem 0.075rem rgba(0, 0, 0, 0.14),
    0 0.225rem 1.15rem 0.2rem rgba(0, 0, 0, 0.12) !important;
  /* 强制垂直居中 */
  top: 50% !important;
  transform: translateY(-50%) !important;
}

/* 自适应高度 - 密码登录界面 */
.octSettleLayer:has(.oct-settle-pwd-section) {
  height: auto !important;
}

.octSettleLayer:has(.oct-settle-pwd-section) .layui-layer-content {
  height: auto !important;
}

.octSettleLayer:has(.oct-settle-pwd-section) .oct-settle-dia {
  height: auto !important;
}

.octSettleLayer .layui-layer-content {
  padding: 0 !important;
  overflow: visible !important;
  height: 100% !important;
}

.oct-settle-dia {
  background: #fff;
  border-radius: 0.3rem;
  min-width: 8rem;
  max-width: 10rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 大屏幕增加弹窗高度 */
@media (min-height: 1000px) {
  .octSettleLayer {
    height: 17.8rem !important;
    max-height: 17.8rem !important;
  }
}
.oct-settle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0.4rem;
  background: var(--styleColor);
  color: white;
  border-radius: 0.3rem 0.3rem 0 0;
  position: relative;
}

/* 头部返回按钮 */
.oct-header-back-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 0.4rem;
  cursor: pointer;
  padding: 0.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  transition: background 0.2s;
}

.oct-header-back-icon {
  font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
}

.oct-settle-title {
  font-size: 0.45rem;
  font-weight: 600;
  color: white;
  flex: 1;
  text-align: center;
}

.oct-settle-close {
  font-size: 0.6rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
}

.oct-settle-body {
  padding: 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 4rem;
  position: relative;
}

.oct-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 9999;
  cursor: wait;
}

.oct-settle-action-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oct-settle-pwd-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.oct-settle-ready-section {
  text-align: center;
  padding: 0.75rem 0;
}

.oct-settle-ready-icon {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.4rem;
  background: #2196f3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #fff;
}

.oct-settle-success-icon {
  background: #4caf50;
}

.oct-settle-ready-text {
  font-size: 0.4rem;
  color: #666;
}

/* ========== 操作选择区域样式 ========== */

.oct-action-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.3rem 0.2rem;
  flex: 1;
  overflow-y: auto;
  animation: octFadeIn 0.25s ease-out;
}

@keyframes octFadeIn {
  from {
    opacity: 0;
    transform: translateY(-0.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.oct-action-option {
  display: flex;
  align-items: center;
  padding: 0.3rem 0.4rem;
  border: 0.05rem solid #ddd;
  border-radius: 0.2rem;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
  background: #fff;
  gap: 0.3rem;
}

.oct-action-option.active {
  border-color: var(--styleColor);
  background: rgba(237, 98, 17, 0.08);
  box-shadow: 0 0 0 0.05rem var(--styleColor);
}

.oct-action-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 1.3rem;
  text-align: center;
}

.oct-action-label {
  font-size: 0.38rem;
  color: #333;
  font-weight: 500;
  flex: 1;
}

.oct-action-option.active .oct-action-label {
  color: var(--styleColor);
}

/* ========== 清机结果区域样式 ========== */
.oct-settle-result-section {
  text-align: center;
  /* padding: 0.5rem 0; */
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.oct-settle-result-section.enquiry-mode {
  padding: 0;
}

.oct-settle-data {
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: #f5f5f5;
  border-radius: 0.2rem;
}

.oct-settle-data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
  border-bottom: 0.025rem dashed #ddd;
}

.oct-settle-data-item:last-child {
  border-bottom: none;
}

.oct-settle-data-label {
  font-size: 0.38rem;
  color: #666;
}

.oct-settle-data-value {
  font-size: 0.42rem;
  color: #333;
  font-weight: 600;
}

.oct-settle-error {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #f44336;
  font-size: 0.35rem;
  text-align: center;
  padding: 0.2rem 0.3rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1));
  margin: 0;
  animation: octErrorFadeIn 0.3s ease-out;
  z-index: 10;
}

@keyframes octErrorFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* loading-tip 样式已移至统一提示 .oct-unified-tip.tip-loading */

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.oct-settle-footer {
  padding: 0.4rem 0.5rem;
  border-top: 0.025rem solid #eee;
}

.oct-settle-btn {
  width: 100%;
  height: 1.2rem;
  background: var(--styleColor);
  border: none;
  border-radius: 0.2rem;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  transition:
    background 0.2s,
    opacity 0.2s;
}

.oct-settle-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.oct-settle-btn.loading {
  opacity: 0.8;
}

.oct-settle-spinner {
  width: 0.5rem;
  height: 0.5rem;
  border: 0.05rem solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: octSpinnerSpin 0.8s linear infinite;
}

@keyframes octSpinnerSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== KPay 成功弹窗额外样式 ========== */
.kpay-highlight-yellow {
  color: #f9a825 !important;
  font-weight: 600;
}

.kpay-total-amount-box {
  margin-top: 0.4rem;
  padding: 0.4rem;
  background: #4caf50;
  border-radius: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpay-total-label {
  font-size: 0.5rem;
  color: #fff;
  font-weight: 500;
}

.kpay-total-value {
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}

.kpay-interrupt-btn-confirm {
  background: #4caf50 !important;
  color: #fff !important;
}

/* 紧凑布局 */
.kpay-octopus-transaction-info {
  padding: 0.3rem 0.4rem;
}

.kpay-octopus-transaction-info .kpay-transaction-item {
  padding: 0.15rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.025rem dashed #eee;
}

.kpay-octopus-transaction-info .kpay-transaction-item:last-child {
  border-bottom: none;
}

.kpay-transaction-label {
  font-size: 0.35rem;
  color: #666;
}

.kpay-transaction-value {
  font-size: 0.35rem;
  color: #333;
  font-weight: 500;
}

/* ========== 交易查询结果样式 ========== */
.oct-enquiry-success {
  text-align: left;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oct-enquiry-info {
  margin-bottom: 0.4rem;
  padding-bottom: 0.3rem;
  border-bottom: 0.025rem solid #eee;
}

.oct-enquiry-info-row {
  margin: 0 0 0.2rem;
  font-size: 0.38rem;
  color: #333;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.oct-enquiry-info-row:last-child {
  margin-bottom: 0;
}

.oct-enquiry-info-label {
  color: #666;
}

.oct-enquiry-info-value {
  font-weight: 600;
  color: #333;
}

/* 交易记录列表 */
.oct-transaction-list {
  max-height: 6rem;
  overflow-y: auto;
}

.oct-transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.3rem 0;
  border-bottom: 0.025rem solid #f0f0f0;
}

.oct-transaction-item:last-child {
  border-bottom: none;
}

.oct-transaction-left {
  flex: 1;
}

.oct-transaction-datetime {
  font-size: 0.36rem;
  color: #333;
  font-weight: 500;
  margin: 0 0 0.1rem;
}

.oct-transaction-detail {
  font-size: 0.32rem;
  color: #888;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem;
}

.oct-transaction-device {
  color: #999;
}

.oct-transaction-shop {
  color: #666;
}

.oct-transaction-right {
  flex-shrink: 0;
  text-align: right;
}

.oct-transaction-amount {
  font-size: 0.42rem;
  font-weight: 600;
  color: #333;
}

/* ========== 订单查询表单样式 ========== */

.oct-order-enquiry-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.oct-order-enquiry-form .layui-form {
  margin: 0;
}

/* 带重置图标的输入框容器 */
.oct-input-with-reset {
  position: relative;
}

.oct-input-with-reset .layui-input {
  padding-right: 0.8rem;
}

/* 重置图标样式 */
.oct-reset-icon {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  cursor: pointer;
  z-index: 10;
  font-family: Arial, sans-serif;
}

.oct-order-enquiry-form .layui-form-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.1rem;
  flex-direction: column;
}

.oct-order-enquiry-form .layui-form-label {
  width: 100%;
  flex-shrink: 0;
  padding: 0;
  line-height: 0.8rem;
  font-size: 0.38rem;
  color: #666;
  text-align: left;
  border: none;
  background: transparent;
}

.oct-order-enquiry-form .layui-input-block {
  margin-left: 0;
  min-height: 0.8rem;
  width: 100%;
}

.oct-order-enquiry-form .layui-input {
  height: 0.8rem;
  line-height: 0.8rem;
  font-size: 0.38rem;
  border: 0.05rem solid #ddd;
  border-radius: 0.15rem;
  padding: 0 0.2rem;
}
.oct-order-enquiry-form .layui-form-select dl {
  font-size: 0.35rem;
}

.oct-order-enquiry-form .layui-form-select dl dd.layui-this {
  background-color: var(--styleColor);
}

/* laydate 日期选择器字体放大 */
.laydate-theme-oct-custom.layui-laydate {
  font-size: 0.35rem !important;
}
.laydate-theme-oct-custom .layui-laydate-main {
  width: unset !important;
}
.laydate-theme-oct-custom.layui-laydate .layui-laydate-header * {
  font-size: 0.38rem !important;
}
.laydate-theme-oct-custom.layui-laydate .layui-laydate-content td,
.laydate-theme-oct-custom.layui-laydate .layui-laydate-content th {
  font-size: 0.35rem !important;
}
.laydate-theme-oct-custom.layui-laydate .layui-laydate-footer span {
  font-size: 0.32rem !important;
}
.laydate-theme-oct-custom .layui-laydate-content td,
.laydate-theme-oct-custom .layui-laydate-content th {
  padding: 0.2rem !important;
}
.oct-order-enquiry-form .layui-input:focus {
  border-color: var(--styleColor);
  box-shadow: 0 0 0 0.05rem rgba(237, 98, 17, 0.1);
}

/* 交易记录详情按钮 */
.oct-transaction-datetime {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.36rem;
  color: #333;
  margin: 0 0 0.1rem 0;
}

.oct-transaction-detail-btn {
  background: var(--styleColor);
  color: #fff;
  border: none;
  border-radius: 0.1rem;
  padding: 0.05rem 0.15rem;
  font-size: 0.28rem;
  cursor: pointer;
  transition: transform 0.2s;
}

/* 空状态样式 */
.oct-transaction-empty {
  text-align: center;
  padding: 1rem 0;
  color: #999;
}

.oct-transaction-empty p {
  font-size: 0.36rem;
  margin: 0;
}

/* ========== 优惠查询样式 ========== */
.oct-scheme-enquiry-result {
  padding: 0.2rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oct-scheme-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.oct-scheme-item {
  padding: 0.25rem 0.3rem;
  border: 0.025rem solid #e0e0e0;
  border-radius: 0.15rem;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.oct-scheme-id {
  font-size: 0.4rem;
  font-weight: 600;
  color: var(--styleColor);
  min-width: 0.8rem;
  text-align: center;
  padding: 0.05rem 0.1rem;
  background: rgba(var(--styleColorRgb, 33, 150, 243), 0.1);
  border-radius: 0.1rem;
}

.oct-scheme-desc {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.oct-scheme-desc-en {
  font-size: 0.35rem;
  color: #333;
  line-height: 1.3;
}

.oct-scheme-desc-cn {
  font-size: 0.3rem;
  color: #666;
  line-height: 1.3;
}

/* ========== 清机选项详情样式 ========== */
.oct-settlement-options-detail {
  margin-top: 0.2rem;
  padding: 0.3rem;
  background: #f8f9fa;
  border-radius: 0.2rem;
  border: 0.05rem solid #e9ecef;
}

.oct-settlement-option-group {
  margin-bottom: 0.2rem;
}

.oct-settlement-option-group:last-child {
  margin-bottom: 0;
}

.oct-settlement-option-title {
  font-size: 0.38rem;
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

/* 单选组样式 */
.oct-settlement-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.oct-settlement-radio-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5rem;
  padding: 0 0.25rem;
  background: #fff;
  border: 0.05rem solid #dee2e6;
  border-radius: 0.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.15rem;
  position: relative;
}

/* 隐藏原生radio按钮 */
.oct-settlement-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

/* 选中状态样式 */
.oct-settlement-radio-item:has(input:checked) {
  border-color: var(--styleColor);
  background: rgba(237, 98, 17, 0.08);
  box-shadow: 0 0 0 0.05rem var(--styleColor);
}

/* 兼容不支持 :has() 的浏览器 */
.oct-settlement-radio-item input:checked ~ .oct-settlement-radio-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 0.1rem rgba(237, 98, 17, 0.3));
}

.oct-settlement-radio-item input:checked ~ .oct-settlement-radio-label .radio-main {
  color: var(--styleColor);
}

.oct-settlement-radio-icon {
  font-size: 0.7rem;
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
  text-align: center;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 图片图标样式 */
.oct-settlement-radio-img {
  height: 0.7rem !important;
  width: unset !important;
  object-fit: contain;
}

.oct-settlement-radio-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.radio-main {
  font-size: 0.34rem;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* 清机类型列表 */
.oct-settlement-type-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.oct-settlement-type-item {
  display: flex;
  align-items: center;
  padding: 0.25rem 0.3rem;
  background: #fff;
  border: 0.05rem solid #dee2e6;
  border-radius: 0.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.2rem;
}

.oct-settlement-type-item.active {
  border-color: var(--styleColor);
  background: rgba(237, 98, 17, 0.08);
  box-shadow: 0 0 0 0.05rem var(--styleColor);
}

.oct-settlement-type-icon {
  font-size: 0.8rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.oct-settlement-type-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.type-main {
  font-size: 0.36rem;
  color: #333;
  font-weight: 500;
}

.type-desc {
  font-size: 0.3rem;
  color: #6c757d;
}

.oct-settlement-type-item.active .type-main {
  color: var(--styleColor);
}

/* 指定收款设备选项 */
.oct-specified-payment-options {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  border-top: 0.05rem dashed #dee2e6;
}

.oct-payment-type-list {
  display: flex;
  gap: 0.2rem;
  margin-top: 0.15rem;
}

.oct-payment-type-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.2rem;
  background: #fff;
  border: 0.05rem solid #dee2e6;
  border-radius: 0.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.1rem;
}

.oct-payment-type-item.active {
  border-color: var(--styleColor);
  background: rgba(237, 98, 17, 0.08);
  box-shadow: 0 0 0 0.05rem var(--styleColor);
}

.oct-payment-type-icon {
  font-size: 0.6rem;
}

.oct-payment-type-label {
  font-size: 0.32rem;
  color: #495057;
  font-weight: 500;
}

.oct-payment-type-item.active .oct-payment-type-label {
  color: var(--styleColor);
}


/* ==================== 通用成功状态样式 ==================== */
.oct-success-header {
  text-align: center;
  margin-bottom: 0.3rem;
  padding-bottom: 0.2rem;
  /* border-bottom: 0.03rem solid #e9ecef; */
}

.oct-success-icon {
  width: 0.8rem;
  height: 0.8rem;
  background: #28a745;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: bold;
  margin-bottom: 0.15rem;
}

.oct-success-text {
  font-size: 0.4rem;
  font-weight: 600;
  color: #28a745;
  margin: 0;
}

/* 警告状态样式 */
.oct-success-header.header-warning .oct-success-icon {
  background: #ffc107;
  color: #856404;
}

.oct-success-header.header-warning .oct-success-text {
  color: #856404;
}

/* 错误状态样式 */
.oct-success-header.header-error .oct-success-icon {
  background: #dc3545;
  color: white;
}

.oct-success-header.header-error .oct-success-text {
  color: #dc3545;
}

/* ========== 统一提示样式（供子组件使用） ========== */
.oct-unified-tip {
  position: absolute;
  bottom: 0.2rem;
  left: 0.2rem;
  right: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border-radius: 0.1rem;
  font-size: 0.3rem;
  line-height: 1.4;
  animation: octTipFadeIn 0.3s ease-out;
  z-index: 10;
  pointer-events: none;
}

.oct-unified-tip-icon {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.3rem;
  font-weight: bold;
  color: white;
}

/* 成功提示样式 */
.oct-unified-tip.tip-success {
  background: linear-gradient(to bottom, rgba(246, 255, 237, 0.95), rgba(246, 255, 237, 1));
  border: 0.01rem solid #b7eb8f;
  color: #52c41a;
}

.oct-unified-tip.tip-success .oct-unified-tip-icon {
  background: #52c41a;
}

/* 警告提示样式 */
.oct-unified-tip.tip-warning {
  background: linear-gradient(to bottom, rgba(255, 251, 230, 0.95), rgba(255, 251, 230, 1));
  border: 0.01rem solid #ffe58f;
  color: #d48806;
}

.oct-unified-tip.tip-warning .oct-unified-tip-icon {
  background: #faad14;
}

/* 错误提示样式 */
.oct-unified-tip.tip-error {
  background: linear-gradient(to bottom, rgba(255, 241, 240, 0.95), rgba(255, 241, 240, 1));
  border: 0.01rem solid #ffa39e;
  color: #cf1322;
}

.oct-unified-tip.tip-error .oct-unified-tip-icon {
  background: #ff4d4f;
}

/* 加载提示样式 */
.oct-unified-tip.tip-loading {
  background: linear-gradient(to bottom, rgba(230, 247, 255, 0.95), rgba(230, 247, 255, 1));
  border: 0.01rem solid #91d5ff;
  color: #096dd9;
}

.oct-unified-tip-spinner {
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border: 0.05rem solid #91d5ff;
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: octTipSpin 0.8s linear infinite;
}

@keyframes octTipSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes octTipFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
