/* ========================================
   项目2 - 现代渐变蓝紫风格 + 玻璃拟态设计
   ======================================== */

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  height: 100%;
}

html { font-size: 16px; }

body { 
  margin: 0; 
  padding: 0; 
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; 
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff;
  min-height: 100vh;
}

/* 背景装饰 - 动态光斑 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(99, 179, 237, 0.15) 0%, transparent 40%);
  animation: floatBg 20s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes floatBg {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, 2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* 主内容区 */
.main-content {
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}

/* ========================================
   顶部区域
   ======================================== */
.header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 12, 41, 0.8) 0%, transparent 100%);
}

.header-left {
  display: flex;
  flex-direction: column;
}

.company-name {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(90deg, #a78bfa, #f472b6, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.company-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.3rem;
  letter-spacing: 1px;
}

.header-right {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.header-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.header-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* ========================================
   轮播图 - 圆角卡片带光晕
   ======================================== */
.banner {
  margin: 0 1rem 1.5rem;
  height: 11rem;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 8px 32px rgba(167, 139, 250, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), rgba(244, 114, 182, 0.5), rgba(56, 189, 248, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 10;
}

.banner-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
/* 文字类型的轮播图slide */
.banner-slide-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 橙色渐变背景 */
.banner-slide-gradient-green {
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b6b 100%);
}

/* 棕橙渐变背景 */
.banner-slide-gradient-brown {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}


.banner-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* 轮播图图片 - 根目录使用 */
.banner-slide-img-1 {
  background-image: url('./images/商品1/轮播大图/lpslz1015.jpg');
}
.banner-slide-img-2 {
  background-image: url('./images/商品1/轮播大图/lpslz1029.jpg');
}
.banner-slide-img-3 {
  background-image: url('./images/商品1/轮播大图/lpspz1210.jpg');
}
.banner-slide-img-4 {
  background-image: url('./images/商品1/轮播大图/lpszs1025.jpg');
}

/* 轮播图图片 - cg子目录使用（CSS路径相对于CSS文件位置） */
.banner-slide-img-1-cg {
  background-image: url('./images/商品1/轮播大图/lpslz1015.jpg');
}
.banner-slide-img-2-cg {
  background-image: url('./images/商品1/轮播大图/lpslz1029.jpg');
}
.banner-slide-img-3-cg {
  background-image: url('./images/商品1/轮播大图/lpspz1210.jpg');
}
.banner-slide-img-4-cg {
  background-image: url('./images/商品1/轮播大图/lpszs1025.jpg');
}

.banner-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.banner-dot.active {
  background: linear-gradient(90deg, #a78bfa, #f472b6);
  width: 28px;
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
}

/* ========================================
   功能区 - 玻璃拟态卡片
   ======================================== */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  padding: 1rem 0.5rem;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.feature-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.6rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  overflow: hidden;
}

.feature-icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 功能图标样式 */
.icon1 { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.icon1::before { content: '🚗'; }

.icon2 { 
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}
.icon2::before { content: '🛒'; }

.icon3 { 
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}
.icon3::before { content: '👑'; }

.icon4 { 
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
}
.icon4::before { content: '📦'; }

.feature-label { 
  font-size: 12px; 
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ========================================
   商品区 - 现代卡片设计
   ======================================== */
.products {
  padding: 0 1rem;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, #a78bfa, #f472b6);
  border-radius: 2px;
}

.section-more {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.section-more::after {
  content: '›';
  font-size: 16px;
}

.product-list2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  padding: 1rem;
  transition: all 0.3s ease;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.product-title2 {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.product-desc3 {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.8rem;
}

.product-box-list {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.product-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

img.product-img2 {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.8rem;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

div.product-img2 {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.8rem;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-price2 {
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(90deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   资讯区 - 瀑布流双列布局
   ======================================== */
.news-section {
  padding: 0 1rem;
}

.news-section .section-header {
  margin-bottom: 1rem;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.news-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.news-card:nth-child(odd) {
  margin-top: 0;
}

.news-card:nth-child(even) {
  margin-top: 1.5rem;
}

.news-img {
  width: 100%;
  height: 8rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.news-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.news-title {
  font-size: 13px;
  color: #fff;
  padding: 0.8rem;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-author {
  display: flex;
  align-items: center;
  padding: 0 0.8rem 0.8rem;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.news-avatar {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  margin-right: 0.5rem;
  object-fit: cover;
  border: 2px solid rgba(167, 139, 250, 0.5);
}

/* ========================================
   底部导航 - 毛玻璃悬浮胶囊
   ======================================== */
.footer-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.2rem;
  width: 85%;
  max-width: 320px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
}

.nav-item.active { 
  color: #fff;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(244, 114, 182, 0.3));
}

.nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item.active a { 
  color: #fff;
}

.nav-icon { 
  width: 1.5rem; 
  height: 1.5rem; 
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* 导航图标 */
.nav-home::before { content: '🏠'; }
.nav-pipe::before { content: '💬'; }
.nav-card::before { content: '👤'; }

.nav-label {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ========================================
   弹窗样式 - 毛玻璃效果
   ======================================== */
.popup-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 12, 41, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.popup-mask img { 
  max-width: 88vw; 
  max-height: 75vh; 
  border-radius: 1.5rem;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { 
    opacity: 0;
    transform: scale(0.8);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   通用样式
   ======================================== */
a { 
  text-decoration: none; 
  color: inherit; 
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 139, 250, 0.5);
}

/* 选中文字颜色 */
::selection {
  background: rgba(167, 139, 250, 0.4);
  color: #fff;
}
