/*
 Theme Name:   Xingliao Luxury
 Theme URI:    https://xingliaoshop.com
 Description:  星廖智能奢侈主题 - Apple极简 + 科技感
 Author:       星廖智能
 Author URI:   https://xingliaotech.com
 Template:     storefront
 Version:      1.0.0
*/

/* ==========================================
   颜色变量
   ========================================== */
:root {
  --primary-dark: #1a1a2e;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-gold: #f4c430;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --bg-dark: #0f0f1e;
  --bg-card: #16213e;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   全局样式
   ========================================== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================
   导航栏 - 毛玻璃效果
   ========================================== */
.site-header {
  background: rgba(26, 26, 46, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  position: fixed !important;
  width: 100% !important;
  z-index: 9999 !important;
  transition: all 0.3s ease !important;
}

.site-header .site-branding .site-title a {
  color: var(--text-light) !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  letter-spacing: -0.5px !important;
}

.site-header .main-navigation ul li a {
  color: var(--text-light) !important;
  font-weight: 500 !important;
  transition: color 0.3s ease !important;
}

.site-header .main-navigation ul li a:hover {
  color: var(--accent-gold) !important;
}

/* ==========================================
   Hero 区域 - 渐变背景 + 大留白
   ========================================== */
.home .content-area {
  margin-top: 80px !important;
}

.hero-section {
  background: var(--primary-gradient) !important;
  min-height: 80vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 80px 20px !important;
  position: relative !important;
  overflow: hidden !important;
}

.hero-section::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') !important;
  background-size: cover !important;
  opacity: 0.5 !important;
}

.hero-content {
  position: relative !important;
  z-index: 2 !important;
  text-align: center !important;
  max-width: 900px !important;
}

.hero-title {
  font-size: 64px !important;
  font-weight: 800 !important;
  color: var(--text-light) !important;
  margin-bottom: 24px !important;
  letter-spacing: -1px !important;
  line-height: 1.1 !important;
  animation: fadeInUp 1s ease !important;
}

.hero-subtitle {
  font-size: 24px !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 48px !important;
  font-weight: 400 !important;
  animation: fadeInUp 1s ease 0.2s !important;
  animation-fill-mode: both !important;
}

.hero-cta {
  display: inline-block !important;
  padding: 18px 48px !important;
  background: var(--accent-gold) !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  animation: fadeInUp 1s ease 0.4s !important;
  animation-fill-mode: both !important;
  box-shadow: 0 10px 40px rgba(244, 196, 48, 0.3) !important;
}

.hero-cta:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 50px rgba(244, 196, 48, 0.5) !important;
  color: var(--primary-dark) !important;
}

/* ==========================================
   产品卡片 - 悬停动画
   ========================================== */
.products .product {
  background: var(--bg-card) !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  transition: all 0.4s ease !important;
  border: 1px solid var(--border-subtle) !important;
  position: relative !important;
}

.products .product:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
}

.products .product .woocommerce-LoopProduct-link {
  display: block !important;
  padding: 20px !important;
}

.products .product img {
  border-radius: 12px !important;
  transition: transform 0.4s ease !important;
}

.products .product:hover img {
  transform: scale(1.05) !important;
}

.products .product .woocommerce-loop-product__title {
  color: var(--text-light) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin-top: 16px !important;
  line-height: 1.4 !important;
}

.products .product .price {
  color: var(--accent-gold) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-top: 12px !important;
}

.products .product .button {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  margin-top: 16px !important;
}

.products .product .button:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
}

/* ==========================================
   产品详情页
   ========================================== */
.single-product .site-main {
  padding: 80px 20px !important;
}

.single-product .product_title {
  font-size: 48px !important;
  font-weight: 800 !important;
  color: var(--text-light) !important;
  letter-spacing: -1px !important;
  line-height: 1.2 !important;
}

.single-product .price {
  color: var(--accent-gold) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  margin: 24px 0 !important;
}

.single-product .cart .button {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  padding: 18px 48px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 50px !important;
  border: none !important;
  transition: all 0.3s ease !important;
}

.single-product .cart .button:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4) !important;
}

/* ==========================================
   页脚 - 深色 + 金色点缀
   ========================================== */
.site-footer {
  background: var(--primary-dark) !important;
  border-top: 1px solid var(--border-subtle) !important;
  padding: 80px 0 40px !important;
}

.site-footer .widget-title {
  color: var(--accent-gold) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin-bottom: 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.site-footer a {
  color: var(--text-gray) !important;
  transition: color 0.3s ease !important;
}

.site-footer a:hover {
  color: var(--accent-gold) !important;
}

.site-footer .site-info {
  text-align: center !important;
  color: var(--text-gray) !important;
  margin-top: 60px !important;
  padding-top: 40px !important;
  border-top: 1px solid var(--border-subtle) !important;
}

/* ==========================================
   按钮全局样式
   ========================================== */
.button,
.btn,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  border: none !important;
  padding: 14px 32px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  display: inline-block !important;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4) !important;
  color: var(--text-light) !important;
}

/* ==========================================
   动画关键帧
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ==========================================
   滚动动画（需要 JS 配合）
   ========================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   响应式设计
   ========================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px !important;
  }
  
  .hero-subtitle {
    font-size: 18px !important;
  }
  
  .single-product .product_title {
    font-size: 32px !important;
  }
  
  .products .product {
    margin-bottom: 20px !important;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px !important;
  }
  
  .hero-cta {
    padding: 14px 32px !important;
    font-size: 16px !important;
  }
}
