/* ========================================
   index.css - 首页样式
   注意：登录弹窗样式已移至 auth-dialog.css
======================================== */

body {
  width: 100vw;
  height: 100vh;
  background: #F1F4F6;
  display: flex;
  flex-direction: column;
}

/* 当前选项卡按钮动效 */
.photo[data-index="3"] .btn {
  animation: btnPulse 2s ease-in-out infinite;
  position: relative;
}

/* 按钮放大缩小动画 */
@keyframes btnPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 138, 101, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 138, 101, 0.6);
  }
}

/* 箭头提示动画 - 更宽大 */
.photo[data-index="3"] .btn::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 24px solid #e7e410;
  animation: arrowBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 3px 6px rgba(219, 41, 41, 0.5));
}

@keyframes arrowBounce {
  0%, 100% {
    bottom: -100px;
    opacity: 1;
  }
  50% {
    bottom: -50px;
    opacity: 0.8;
  }
}

/* 按钮内箭头图标也加动画 */
.photo[data-index="3"] .btn img {
  animation: arrowShake 1.5s ease-in-out infinite;
}

@keyframes arrowShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-2px);
  }
}

/* 光晕效果 */
.photo[data-index="3"] .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}


/* 非当前选项卡的按钮不显示动画 */
.photo:not([data-index="3"]) .btn {
  animation: none;
}

.photo:not([data-index="3"]) .btn::before,
.photo:not([data-index="3"]) .btn::after {
  display: none;
}

.box {
  width: 100%;
  flex: 1;
  padding: 0 4rem;
}
.content_container {
  max-width: 1500px;
  margin: 0 auto;
  height: 100%;
}

.home_container,
.order_container {
  height: 100%;
  width: 100%;
  display: none;
}

.show {
  display: block;
}

.order_container {
  padding: 20px 0 50px 0;
}

.table_container {
  width: 100%;
  height: calc(100vh - 226px);
}

.cost_templet {
  display: flex;
  flex-direction: column;   /* 垂直排列 */
  align-items: center;      /* 水平居中 */
  justify-content: center;  /* 整体居中 */
  gap: 4px;                 /* 行间距 */
}

.cost_templet span {
  font-size: 14px;
}

.order_container .unpaid {
  width: fit-content;
  line-height: 2.8rem;
  background: #FFF3F3;
  border-radius: 0.2rem;
  border: 0.1rem solid #EA1D1D;
  font-family: "Poppins","Montserrat","Alibaba PuHuiTi","SourceHanSansCN",sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #EA1D1D;
  cursor: pointer;
  padding: 0 1rem;
}

.order_container .status_templet {
  display: flex;
  align-items: center;
}

.order_container .status_templet div {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 0.4rem;
  margin-right: 0.3rem;
}

.order_container .status_templet .circle1 {
  background: #EA1D1D;
}

.order_container .status_templet .circle2 {
  background: #298CFF;
}

.order_container .status_templet .circle3 {
  background: #7F2AE0;
}

.order_container .status_templet .circle4 {
  background: #00C500;
}

.order_container .status_templet .circle5 {
  background: orange;
}


.order_container .status_templet span {
  font-family: SourceHanSansCN, SourceHanSansCN;
  font-weight: 400;
  font-size: 13px;
  color: #666666;
}

.status_templet {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.status_templet_item {
  display: flex;
  align-items: center;
}

.cor1 {
  background-color: #7F2AE0;
}
.cor2 {
  background-color: #EA1D1D;
}
.cor3 {
  background-color: #00C500;
}
.cor4 {
  background-color: #f8f8f8;
}

.order_container .btns {
  display: flex;
  align-items: center;
}

.order_container .btns .btn {
  height: 3.8rem;
  background: #FFFFFF;
  border-radius: 0.2rem;
  border: 0.1rem solid #BEBEBE;
  font-family: "Poppins","Montserrat","Alibaba PuHuiTi","SourceHanSansCN",sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #5A6771;
  text-align: center;
  line-height: 3.8rem;
  padding: 0 1rem;
  margin: 0 1rem;
  cursor: pointer;
}

.order_container .btns .unfold_btn {
  width: 3.8rem;
  height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.2rem;
  border: 0.1rem solid #BEBEBE;
  cursor: pointer;
}

.order_container .btns .unfold_btn img {
  width: 1rem;
  height: 1rem;
}

.order_container .btns .unfold_btn .arrow_active {
  transform: rotate(180deg);
  transition: 0.3s ease-out;
}

.order_container .btns .unfold_btn .arrow_inactive {
  transform: rotate(0deg);
  transition: 0.3s ease-out;
}

.product {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.product .product_img {
  width: 7rem;
  height: 7rem;
  margin-right: 2rem;
}

.product .product_right {
  width: calc(100% - 9rem);
  display: flex;
  flex-direction: column;
}

.product .product_right .span1 {
  width: 100%;
  font-family: SourceHanSansCN, SourceHanSansCN;
  font-weight: 400;
  font-size: 14px;
  color: #111111;
}

.product .product_right .span2 {
  width: 100%;
  font-family: SourceHanSansCN, SourceHanSansCN;
  font-weight: 400;
  font-size: 13px;
  color: #999999;
}

.price_templet {
  font-size: 14px;
}

.home_container {
  padding: 0rem 4rem 0 4rem;
  position: relative;
}

.carousel_left_arrow,
.carousel_right_arrow {
  width: 2.4rem;
  height: 9.8rem;
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  cursor: pointer;
}

.carousel_left_arrow {
  left: 1rem;
}

.carousel_right_arrow {
  right: 1rem;
}

.carousel {
  width: 60rem;
  height: 90rem;
  position: relative;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
}

.photo {
  position: absolute;
  width: 65rem;
  height: 70rem;
  transition: transform 0.2s, z-index 0.2s;
  box-shadow: 0px 4px 67px 0px rgba(0, 0, 0, 0.2);
  border-radius: 3rem;
}

.photo .img {
  width: 100%;
  height: 62rem;
  border-top-left-radius: 3rem;
  border-top-right-radius: 3rem;
}

.photo .content {
  width: 100%;
  height: 20rem;
  background: #fff;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.photo .content .title {
  font-family: "Poppins","Montserrat","Alibaba PuHuiTi","SourceHanSansCN",sans-serif;
  font-weight: bold;
  font-size: 4.2rem;
  color: #222222;
  padding-top: 3.5rem;
}


.photo .content .price {
  font-family: "Poppins","Montserrat","Alibaba PuHuiTi","SourceHanSansCN",sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: #0ec9b9;
  margin-top: 1.5rem;
  letter-spacing: -0.5px;
}

.photo .content .btn {
  width: 26rem;
  height: 6.7rem;
  background: #FFFFFF;
  border-radius: 2.2rem;
  border: 1px solid #4A4A4A;
  margin-top: 5rem;
  font-family: "Poppins","Montserrat","Alibaba PuHuiTi","SourceHanSansCN",sans-serif;
  font-weight: 600;
  font-size: 3.4rem;
  letter-spacing: -0.5px;
  color: #111;
  text-align: center;
  line-height: 6.7rem;
  cursor: pointer;
}

.photo .content .btn img {
  width: 1.5rem;
  height: 3rem;
  margin-left: 0.5rem;
}

/* ========================================
   以下登录弹窗基础样式保留，详细样式在 auth-dialog.css
======================================== */

.layui-table-tree-flexIcon {
  display: none !important;
}

.mobile_input {
  display: none;
}

.input_wrp {
  margin-top: 15px;
  margin-left: 15px;
}


.mobile_input_btns {
  display: flex;
  justify-content: right;
  margin-top: 20px;
  margin-right: 15px;
}

.mobile_btn {
  background: #298CFF !important;
}

.after_sale_module,
.invoice_module {
  display: none;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
}

.after_sale_module .upload_btn {
  background: #298CFF !important;
}

.after_from_item {
  display: flex;
  flex-direction: column;
}

.after_from_item span {
  font-size: 16px;
  color: #222;
  margin-bottom: 10px;
}

.after_from_item textarea {
  resize: none;
  padding: 10px;
  height: 100px;
  font-size: 16px;
  color: #222;
}
.footer {
  background-color: #F0F0F0;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-text {
  font-size: 14px;
  color: #666;
}


.photo .content .btn {
  transition: all 0.2s ease;
  box-shadow: 0 5px 0 #ccc;
  position: relative;
  background: linear-gradient(135deg, #FF7E5F, #FEB47B);
  color: #fff;
  border: none;
}

.photo .content .btn:hover {
  transform: scale(1.05) translateY(0);
  background: linear-gradient(135deg, #FEB47B, #FF7E5F);
}

.photo .content .btn:active {
  transform: scale(1) translateY(3px);
  box-shadow: 0 2px 0 #C66B4D;
  background: linear-gradient(135deg, #C66B4D, #A35A3B);
}

.carousel .btn {
  position: relative;
  overflow: visible;
}

/* 左右箭头动效 */
.carousel_left_arrow,
.carousel_right_arrow {
  transition: all 0.3s ease;
  opacity: 0.6;
}

.carousel_left_arrow:hover,
.carousel_right_arrow:hover {
  opacity: 1;
  transform: translate(0, -50%) scale(1.2);
}

/* 左箭头悬停时向左移动 */
.carousel_left_arrow:hover {
  transform: translate(-5px, -50%) scale(1.2);
}

/* 右箭头悬停时向右移动 */
.carousel_right_arrow:hover {
  transform: translate(5px, -50%) scale(1.2);
}

/* 箭头持续呼吸动画 */
.carousel_left_arrow {
  animation: arrowPulseLeft 2s ease-in-out infinite;
}

.carousel_right_arrow {
  animation: arrowPulseRight 2s ease-in-out infinite;
}

@keyframes arrowPulseLeft {
  0%, 100% {
    transform: translate(0, -50%);
    opacity: 0.5;
  }
  50% {
    transform: translate(-8px, -50%);
    opacity: 1;
  }
}

@keyframes arrowPulseRight {
  0%, 100% {
    transform: translate(0, -50%);
    opacity: 0.5;
  }
  50% {
    transform: translate(8px, -50%);
    opacity: 1;
  }
}

/* 鼠标悬停时停止呼吸动画 */
.carousel_left_arrow:hover {
  animation: none;
  opacity: 1;
  transform: translate(-5px, -50%) scale(1.15);
}

.carousel_right_arrow:hover {
  animation: none;
  opacity: 1;
  transform: translate(5px, -50%) scale(1.15);
}

/* 订单页面全宽显示 */
.order_container.show {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

.order_container .table_container {
  max-width: 100%;
}

/* 大屏幕订单页面高度自适应 */
.order_container.show {
  min-height: calc(100vh - 150px);
  display: flex;
  flex-direction: column;
}

.order_container .table_container {
  flex: 1;
  height: auto;
  min-height: calc(100vh - 200px);
}

/* 减少订单页面底部空隙 */
.order_container.show {
  padding-bottom: 20px;
}

.table_container {
  margin-bottom: 0;
}

/* 页脚紧贴内容 */
.footer {
  margin-top: auto;
}

/* 表格字体加大 */
.layui-table th,
.layui-table td,
.layui-table-cell {
  font-size: 14px !important;
}

.layui-table thead .layui-table-cell {
  font-size: 15px !important;
  font-weight: 600 !important;

  /* ↓↓↓ 真正控制首行高度的 ↓↓↓ */
  padding: 2px 6px !important;
  line-height: 28px !important;
  height: auto !important;
}

/* 列宽调整提示线 */
.layui-table th {
  border-right: 1px dashed #ddd !important;
}

.layui-table th:last-child {
  border-right: 1px solid #eee !important;
}

.layui-table th:last-child::after {
  display: none;
}

/* 缩小页码区域与备案信息之间的空间 */
.order_container .layui-table-page {
  padding-bottom: 10px;
}

.order_container.show {
  padding-bottom: 10px;
}

/* 表格列虚线边框延伸到整列 */
.layui-table td {
  border-right: 1px dashed #e6e6e6;
}

.layui-table td:last-child {
  border-right: none;
}

/* 列宽调整手柄样式 */
.layui-table-resize {
  height: 100% !important;
}

/* 强制缩小页码与备案信息之间的空间 */
.order_container .table_container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.order_container .layui-table-view {
  margin-bottom: 0 !important;
}

.order_container .layui-table-page {
  margin-bottom: 0 !important;
  padding: 10px 0 !important;
}

.order_container.show {
  padding-bottom: 5px !important;
  margin-bottom: 0 !important;
}

.box {
  min-height: calc(100vh - 120px);
}

/* 让整个表头边框区域都可以触发调整 */
.layui-table th {
  position: relative;
}

/* 修复底部空间问题 */
.order_container .table_container {
  min-height: auto !important;
  height: auto !important;
}

.table_container {
  min-height: auto !important;
  height: auto !important;
}

.order_container.show {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

.box {
  min-height: auto !important;
  padding-bottom: 0 !important;
}

/* 隐藏layui表格滚动条预留空间 */
.layui-table-header .layui-table-patch {
  display: none !important;
}

/* 隐藏layui treeTable单元格右侧的展开箭头 */
.layui-table-tree-flexIcon {
  display: none !important;
}



/* 子订单行：隐藏中间列的竖线 */
.layui-table-body tr[data-level="1"] td {
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  position: relative;
}
/* 子订单行：保留最左边框 */
.layui-table-body tr[data-level="1"] td:first-child {
  border-left-color: #e6e6e6 !important;
}
/* 子订单行：保留最右边框 */
.layui-table-body tr[data-level="1"] td:last-child {
  border-right-color: #e6e6e6 !important;
}
/* 子订单单元格内容置于上层 */
.layui-table-body tr[data-level="1"] td .layui-table-cell {
  position: relative;
  z-index: 2;
  background: #fff;
}
/* 子订单第一列：竖向虚线从中间开始向上 */
.layui-table-body tr[data-level="1"] td:first-child::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 50%;
  border-left: 1px dashed #ccc;
  z-index: 1;
}
/* 子订单第一列：横向虚线从中间向右 */
.layui-table-body tr[data-level="1"] td:first-child::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50%;
  height: 0;
  border-top: 1px dashed #ccc;
  z-index: 1;
}
/* 子订单其他列（非首尾）：横向虚线穿过 */
.layui-table-body tr[data-level="1"] td:not(:first-child):not(:last-child)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 0;
  border-top: 1px dashed #ccc;
  z-index: 1;
}

/* 产品链接 - 悬停显示下划线 */
.product a {
  text-decoration: none !important;
  color: #333 !important;
  transition: all 0.2s;
}
.product a:hover {
  text-decoration: underline !important;
  color: #1890ff !important;
}

/* 子订单行高亮 - 整体外框 */
tr.child-row-highlight {
  outline: 2px solid #e6f7ff !important;
  outline-offset: -2px;
  background-color: #fafafa !important;
}

/* 产品链接 - 悬停显示下划线 */
.product a {
  text-decoration: none !important;
  color: #333 !important;
}
.product a:hover {
  text-decoration: underline !important;
  color: #1890ff !important;
}

/* 子订单行 - 左边框标识 */
tr[data-index*="-"] td:first-child {
  border-left: 3px solid #1890ff !important;
}

/* 子订单行点击高亮 - 仅外框 */
tr[data-index*="-"].child-active {
  outline: 2px solid #1890ff !important;
  outline-offset: -1px;
}

/* 子订单行点击时 - 完整边框 */
tr[data-index*="-"].child-active td {
  border-top: 2px solid #1890ff !important;
  border-bottom: 2px solid #1890ff !important;
}
tr[data-index*="-"].child-active td:first-child {
  border-left: 2px solid #1890ff !important;
}
tr[data-index*="-"].child-active td:last-child {
  border-right: 2px solid #1890ff !important;
}

/* CODE/ASIN 默认样式 - 普通文字 */
.copy-code-btn, .copy-asin-btn {
  color: #333 !important;
  text-decoration: none !important;
  cursor: pointer;
}

/* CODE/ASIN 悬停样式 - 显示可复制 */
.copy-code-btn:hover, .copy-asin-btn:hover {
  color: #1890ff !important;
  text-decoration: underline !important;
}


/* 隐藏表格单元格内的下拉箭头（查看更多） */
.layui-table-grid-down {
  display: none !important;
}

/* 订单操作按钮悬停高亮 */
.order_container .btns .btn:hover {
  background: #f0f7ff !important;
  border-color: #1890ff !important;
  color: #1890ff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
  transition: all 0.2s ease;
}

.order_container .btns .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.2);
}
