/*
Theme Name: Aika Life Responsive Theme
Theme URI: https://www.aikalife.com/
Author: Antigravity AI
Description: Aika Life Official Website WordPress Responsive Theme (爱尚家科技官网自适应极简主题)
Version: 1.0.0
Text Domain: aikalife
*/

/* ==========================================================================
   1. 全局 CSS Reset & 变量定义
   ========================================================================== */
:root {
  --primary-color: #000dff;
  --primary-hover: #000ab8;
  --text-dark: #333333;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --border-color: #e5e5e5;
  --max-width: 1290px;
  --header-height: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: var(--header-height, 80px);
  font-family: 'SourceHanSansCN-Normal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. 响应式 Header 布局与移动端汉堡包菜单
   ========================================================================== */
.new-header {
  background-color: #ffffff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.new-header .header-content {
  width: 1250px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

.new-header .logo {
  display: flex;
  align-items: center;
  height: 50px;
  z-index: 1010;
  flex-shrink: 0;
}

.new-header .logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.new-header .nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.new-header .nav-item {
  position: relative;
  margin-left: 0;
  margin-right: 40px;
  white-space: nowrap;
}

.new-header .nav-item:last-child {
  margin-right: 0;
}

.new-header .nav-item a {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-dark);
  padding: 28px 10px;
  position: relative;
  transition: color 0.3s ease;
}

.new-header .nav-item a:hover,
.new-header .nav-item.current-menu-item a,
.new-header .nav-item.active a {
  color: var(--primary-color);
}

.new-header .nav-item a::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.new-header .nav-item a:hover::after,
.new-header .nav-item.current-menu-item a::after,
.new-header .nav-item.active a::after {
  width: 100%;
}

/* 移动端汉堡包按钮 */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1010;
  flex-direction: column;
  justify-content: space-between; /* 均分两端 */
  width: 36px;
  height: 36px;
  box-sizing: border-box; /* 确保 padding 包含在 width/height 中 */
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center; /* 绕中心旋转 */
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================================================
   3. 响应式 Media Queries 适配 (平板 & 手机)
   ========================================================================== */
@media (max-width: 1024px) {
  .new-header .nav-item {
    margin-left: 18px;
  }
  
  .new-header .nav-item a {
    font-size: 14px;
    padding: 28px 4px;
  }
}

@media (max-width: 900px) {
  .mobile-nav-toggle {
    display: flex;
    margin-left: auto; /* 推到最右侧 */
  }

  .new-header .nav-menu {
    position: fixed;
    top: var(--header-height); /* 或直接写 80px */
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    box-shadow: none; /* 去掉阴影，看起来像一整块 */
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    overflow-y: auto;
    z-index: 999;
  }

  .new-header .nav-menu.active {
    transform: translateY(0);
  }

  .new-header .nav-item {
    margin: 5px 0;
    width: 100%;
    text-align: center;
  }

  .new-header .nav-item a {
    font-size: 18px;
    padding: 8px 0;
    display: inline-block;
  }

  .new-header .nav-item a::after {
    display: none;
  }
}

/* 页面通用容器自适应 */
.container, .uc-content, .news-content-box {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 768px) {
  .container, .uc-content, .news-content-box {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* ==========================================================================
   商务合作留资弹窗 (Figma 2026 设计图 1:1 视觉还原)
   ========================================================================== */
/* ==========================================================================
   商务合作留资弹窗 (Figma 2026 设计图 1:1 视觉还原)
   ========================================================================== */
.coop-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* 依设计图：靠右侧对齐还原 */
  padding: 24px;
  padding-right: clamp(32px, 5.7vw, 100px); /* 设计图右侧 5.7% 边距 */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.coop-modal-overlay.is-active {
  opacity: 1;
}

.coop-modal-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: clamp(670px, 80.5vh, 760px); /* 还原设计图 80.5% 视口纵向修长比例 */
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 24px 18px 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
  display: flex;
  gap: 32px;
  box-sizing: border-box;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.coop-modal-overlay.is-active .coop-modal-container {
  transform: translateY(0) scale(1);
}

/* 弹窗右上角关闭按钮 */
.coop-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  z-index: 20;
  padding: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.coop-modal-close:hover {
  color: #475569;
  transform: scale(1.1);
}

/* 左侧蓝色形象大卡片 (宽高比 1:2.16，完整呈现人物身形与落地窗天际线) */
.coop-modal-card-left {
  width: 310px;
  min-width: 310px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px 28px 30px 28px;
  box-sizing: border-box;
  box-shadow: 0 10px 25px rgba(0, 40, 180, 0.2);
}

.coop-card-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 48, 235, 0.35) 0%, rgba(0, 20, 100, 0.65) 100%);
  pointer-events: none;
  z-index: 1;
}

.coop-card-left-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coop-card-title-group {
  margin-top: 4px;
}

.coop-card-en-title {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.coop-card-zh-title {
  font-family: 'Alibaba PuHuiTi', 'SourceHanSansCN-Medium', sans-serif;
  font-size: 21px;
  font-weight: 500;
  color: #ffffff;
  margin-top: 16px;
  letter-spacing: 2px;
  opacity: 0.95;
}

/* 左侧卡片底部联系电话与客服热线 */
.coop-card-bottom-info {
  margin-top: auto;
  padding-top: 30px;
}

.coop-card-info-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 14px;
}

.coop-card-info-row {
  display: flex;
  align-items: center;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.85;
}

.coop-info-label {
  width: 58px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.coop-info-value {
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* 右侧表单区域 */
.coop-modal-card-right {
  flex: 1;
  padding: 14px 16px 8px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.coop-lead-form {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.coop-form-field-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ebecef;
  padding: 15px 0 11px 0;
  transition: border-bottom-color 0.2s ease;
}

.coop-form-field-row:focus-within {
  border-bottom-color: #0040f5;
}

.coop-field-label {
  width: 78px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}

.coop-field-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
  outline: none;
  padding: 0 4px;
  font-family: inherit;
}

.coop-field-input::placeholder {
  color: #cbd5e1;
  font-size: 14px;
}

/* 备注文本域 (还原设计图宽敞高度) */
.coop-form-message-group {
  margin-top: 18px;
  margin-bottom: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.coop-message-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 10px;
}

.coop-message-textarea {
  width: 100%;
  flex: 1;
  min-height: 160px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #111827;
  outline: none;
  resize: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.coop-message-textarea:focus {
  border-color: #0040f5;
}

.coop-message-textarea::placeholder {
  color: #cbd5e1;
}

/* 底部提交按钮 (蓝底胶囊 pill 按钮) */
.coop-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 4px;
}

.coop-btn-submit {
  background: #0040f5;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 10px 40px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 64, 245, 0.32);
}

.coop-btn-submit:hover {
  background: #0030cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 64, 245, 0.42);
}

.coop-btn-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* 响应式适配 */
@media (max-width: 1100px) {
  .coop-modal-overlay {
    justify-content: center;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .coop-modal-container {
    flex-direction: column;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    padding: 14px;
    gap: 16px;
  }

  .coop-modal-card-left {
    width: 100%;
    min-width: 100%;
    height: 190px;
    padding: 20px;
  }

  .coop-card-en-title {
    font-size: 28px;
  }

  .coop-card-bottom-info {
    padding-top: 10px;
  }

  .coop-modal-card-right {
    padding: 6px 8px;
  }
}
