/*
Theme Name: Alpharabin Child
Theme URI: https://alpharabin.com
Description: Alpharabin — Premium Underwear OEM/ODM. Minimal luxury child theme based on Astra. Black / ivory / champagne gold design language.
Author: Alpharabin
Author URI: https://alpharabin.com
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alpharabin-child
*/

/* ============================================================
   ALPHARABIN DESIGN TOKENS
   黑白灰基调 + 香槟金点缀 · 极简奢华
   ============================================================
   --ar-ink:        #1A1A1A  墨黑（标题/深色区块）
   --ar-charcoal:   #2D2D2D  炭灰（正文深）
   --ar-ivory:      #FAFAFA  象牙白（页面底色）
   --ar-warm-white: #F5F5F3  暖白（卡片底色）
   --ar-gold:       #C9A96E  香槟金（按钮/强调/hover）
   --ar-gold-light: #E0C896  浅金（hover）
   --ar-rose:       #B76E79  玫瑰金（女性系列点缀）
   --ar-silver:     #A0A0A0  银灰（辅助文字）
   ============================================================ */

:root {
  --ar-ink: #1A1A1A;
  --ar-charcoal: #2D2D2D;
  --ar-ivory: #FAFAFA;
  --ar-warm-white: #F5F5F3;
  --ar-gold: #C9A96E;
  --ar-gold-light: #E0C896;
  --ar-rose: #B76E79;
  --ar-silver: #A0A0A0;
  --ar-text-primary: #333333;
  --ar-text-secondary: #666666;
  --ar-transition: all 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- 全局基础 ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ar-text-secondary);
  background-color: var(--ar-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  font-weight: 400;
  color: var(--ar-ink);
  letter-spacing: 0.01em;
}

::selection {
  background: var(--ar-gold);
  color: #FFFFFF;
}

/* ---------- 链接（克制风格：无边框下划线，hover 变金）---------- */

a {
  color: var(--ar-ink);
  text-decoration: none;
  transition: var(--ar-transition);
}

a:hover,
a:focus {
  color: var(--ar-gold);
}

/* ---------- 滚动条（细节奢华）---------- */

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--ar-ivory);
}

::-webkit-scrollbar-thumb {
  background: #CFCFCF;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ar-gold);
}

/* ============================================================
   HEADER / 导航
   ============================================================ */

.main-header .site-branding img {
  max-height: 44px;
  width: auto;
}

/* 主导航：大写小字号 + 字距（奢侈品牌惯例）*/
.main-navigation a,
.ast-header-navigation .menu-link {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ar-ink);
  padding: 18px 22px;
  transition: var(--ar-transition);
}

.main-navigation a:hover,
.ast-header-navigation .menu-item:hover > .menu-link,
.main-navigation .current-menu-item > a {
  color: var(--ar-gold);
}

/* 导航下划线动效（细金线从中间展开）*/
.main-navigation li a::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--ar-gold);
  margin: 6px auto 0;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-navigation li a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

/* 透明页头模式（Elementor Canvas 页面配合）*/
.ar-transparent-header .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 99;
}

/* ============================================================
   按钮（直角 · 细节奢华）
   ============================================================ */

button,
input[type='submit'],
input[type='button'],
.elementor-button,
.wpforms-submit {
  font-family: 'Inter', 'Noto Sans SC', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  transition: var(--ar-transition) !important;
  cursor: pointer;
}

.elementor-button {
  box-shadow: none !important;
}

.elementor-button:hover {
  transform: translateY(-1px);
}

/* ============================================================
   表单（询价表单 · 极简线框）
   ============================================================ */

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='password'],
textarea,
select,
.wpforms-field input,
.wpforms-field textarea,
.wpforms-field select {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 15px;
  color: var(--ar-charcoal);
  background: #FFFFFF;
  border: 1px solid #E3E3E0 !important;
  border-radius: 0 !important;
  padding: 14px 18px;
  transition: var(--ar-transition);
  box-shadow: none;
}

input:focus,
textarea:focus,
select:focus,
.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--ar-gold) !important;
  outline: none;
  box-shadow: 0 1px 0 0 var(--ar-gold);
}

::placeholder {
  color: #B5B5B0;
  font-weight: 300;
}

/* ============================================================
   移动端菜单按钮
   ============================================================ */

.menu-toggle {
  border: none;
  background: transparent;
}

/* ============================================================
   产品/图片悬停（细腻缩放 + 金色遮罩）
   ============================================================ */

.elementor-widget-image-box img,
.ar-zoom img {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.8s ease;
}

.elementor-widget-image-box:hover img,
.ar-zoom:hover img {
  transform: scale(1.045);
}

/* ============================================================
   淡入动画（滚动显现 · 克制优雅）
   ============================================================ */

@keyframes ar-fade-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.elementor-section {
  animation: ar-fade-up 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* 尊重用户偏好：减少动效 */
@media (prefers-reduced-motion: reduce) {
  .elementor-section {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   页脚
   ============================================================ */

.site-footer,
#colophon {
  background: #141414 !important;
  color: #8A8A8A;
}

.site-footer a,
#colophon a {
  color: #C8C8C8;
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--ar-gold);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title,
#colophon .widget-title {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 22px;
}

/* ============================================================
   WhatsApp 悬浮按钮（Joinchat 插件样式微调）
   ============================================================ */

.joinchat {
  --joinchat-color: #1A1A1A !important;  /* 克制风格用黑色，官方绿色可用 #25D366 */
  --joinchat-wo: no-repeat;
}

/* ============================================================
   响应式微调
   ============================================================ */

@media (max-width: 1024px) {
  .elementor-section {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  h1, .elementor-heading-title h1 {
    font-size: 34px !important;
  }
  h2, .elementor-heading-title h2 {
    font-size: 27px !important;
  }
  .main-header .site-branding img {
    max-height: 34px;
  }
}
