/* 明亮珠宝主题CSS变量 */
:root {
  /* 主色调 - 明亮珠宝主题 */
  --primary-white: #ffffff;
  --primary-cream: #fefefe;
  --primary-pearl: #f8f9fa;
  
  /* 金色调 - 温暖奢华 */
  --gold-light: #fdf6e3;
  --gold-medium: #f5e6ca;
  --gold-dark: #d4af37;
  --gold-accent: #ffd700;
  
  /* 钻石色调 - 清澈明亮 */
  --diamond-white: #ffffff;
  --diamond-blue: #e6f7ff;
  --diamond-sparkle: #b9f2ff;
  --diamond-light: #f0f8ff;
  
  /* 玫瑰金色调 - 浪漫温馨 */
  --rose-gold: #e0bfb8;
  --rose-gold-light: #f9f0eb;
  --rose-gold-dark: #b76e79;
  
  /* 铂金/银色调 - 现代优雅 */
  --platinum: #e5e4e2;
  --platinum-light: #f8f8f8;
  --platinum-dark: #c0c0c0;
  
  /* 宝石色调 - 点缀色彩 */
  --sapphire: #0f52ba;
  --ruby: #e0115f;
  --emerald: #50c878;
  --amethyst: #9966cc;
  
  /* 中性色 */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  
  /* 渐变 */
  --gradient-diamond: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #e6f7ff 100%);
  --gradient-gold: linear-gradient(135deg, #fdf6e3 0%, #f5e6ca 50%, #ffecb3 100%);
  --gradient-rose: linear-gradient(135deg, #f9f0eb 0%, #f5e6e6 50%, #f0d9d9 100%);
  --gradient-pearl: linear-gradient(135deg, #fefefe 0%, #f8f9fa 50%, #f1f3f4 100%);
  --gradient-sparkle: linear-gradient(135deg, transparent 0%, rgba(185, 242, 255, 0.3) 50%, transparent 100%);
  
  /* 阴影 - 轻微阴影保持明亮感 */
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-card: 0 8px 25px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 30px rgba(0,0,0,0.15);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-round: 50%;
  
  /* 间距 */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
}

/* 基础重置和排版 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--primary-cream);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* 头部导航 - 明亮优雅 */
.main-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold-dark);
}

.logo-icon {
  color: var(--gold-dark);
  font-size: 2.8rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.slogan {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-weight: 300;
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--gold-dark);
  background: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* 英雄横幅 - 钻石璀璨效果 */
.hero-banner {
  background: var(--gradient-diamond);
  color: var(--gray-800);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(185, 242, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.4) 0%, transparent 50%);
  animation: sparkleBackground 8s ease-in-out infinite;
}

@keyframes sparkleBackground {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(240, 248, 255, 0.8) 50%, 
    rgba(230, 247, 255, 0.7) 100%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  text-align: center;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  color: var(--gold-dark);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  color: var(--gray-700);
}

.hero-description {
  font-size: 1.4rem;
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

.stat-item {
  text-align: center;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 1.2rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diamond-showcase {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-diamond {
  font-size: 8rem;
  color: var(--diamond-white);
  filter: 
    drop-shadow(0 0 20px rgba(185, 242, 255, 0.8))
    drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  animation: diamondFloat 6s ease-in-out infinite;
  z-index: 2;
}

@keyframes diamondFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1);
    filter: 
      drop-shadow(0 0 20px rgba(185, 242, 255, 0.8))
      drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  }
  50% { 
    transform: translateY(-10px) rotate(5deg) scale(1.05);
    filter: 
      drop-shadow(0 0 30px rgba(185, 242, 255, 1))
      drop-shadow(0 0 60px rgba(255, 255, 255, 0.8));
  }
}

.diamond-shine {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  border-radius: var(--radius-round);
  animation: shineRotate 8s linear infinite;
  opacity: 0.6;
}

@keyframes shineRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: var(--radius-round);
  filter: blur(1px);
  animation: sparkleTwinkle 3s ease-in-out infinite;
}

.sparkle-1 {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 60%;
  right: 25%;
  animation-delay: 1s;
}

.sparkle-3 {
  bottom: 30%;
  left: 40%;
  animation-delay: 2s;
}

@keyframes sparkleTwinkle {
  0%, 100% { 
    opacity: 0; 
    transform: scale(0.5);
  }
  50% { 
    opacity: 1; 
    transform: scale(1.2);
  }
}

/* 工具卡片网格 - 明亮卡片设计 */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.tool-card {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.4s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-sparkle);
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.diamond-card::before {
  background: linear-gradient(90deg, var(--diamond-sparkle), var(--diamond-blue));
}

.certificate-card::before {
  background: linear-gradient(90deg, var(--gold-accent), var(--gold-dark));
}

.inventory-card::before {
  background: linear-gradient(90deg, var(--sapphire), var(--amethyst));
}

.learning-card::before {
  background: linear-gradient(90deg, var(--rose-gold), var(--rose-gold-dark));
}

.card-icon {
  font-size: 3.2rem;
  margin-bottom: var(--space-md);
  color: var(--gold-dark);
  text-align: center;
}

.card-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--gray-800);
  text-align: center;
}

.card-description {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  font-size: 1.4rem;
  text-align: center;
}

.card-actions {
  margin-top: auto;
  text-align: center;
}

.card-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
}

.primary-button {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-accent));
  color: var(--gray-800);
  box-shadow: var(--shadow-soft);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(135deg, var(--gold-accent), var(--gold-dark));
}

.secondary-button {
  background: var(--gray-100);
  color: var(--gray-700);
  box-shadow: var(--shadow-soft);
}

.secondary-button:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* 库存查询卡片特殊样式 */
.inventory-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.3rem;
  color: var(--gray-600);
}

.feature-item i {
  color: var(--emerald);
  font-size: 1.2rem;
}

/* 库存查询卡片悬停效果增强 */
.inventory-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 12px 30px rgba(0,0,0,0.15),
    0 0 20px rgba(79, 70, 229, 0.1);
}

/* 证书查询紧凑样式 */
.certificate-search-compact {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.modern-select, .modern-input {
  /* padding: var(--space-sm);*/
  padding: 5px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  background: var(--primary-white);
}

.modern-select {
  flex: 1;
}

.modern-input {
  flex: 2;
}

.modern-select:focus, .modern-input:focus {
  outline: none;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.modern-button {
  padding: var(--space-sm);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-accent));
  color: var(--gray-800);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  box-shadow: var(--shadow-soft);
}

.modern-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* 优化后的库存查询横幅样式 */
.inventory-banner {
  background: linear-gradient(135deg, var(--sapphire) 0%, var(--amethyst) 100%);
  color: var(--primary-white);
  padding: var(--space-2xl) 0;
  margin: var(--space-2xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.inventory-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.banner-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.banner-title i {
  color: var(--gold-accent);
}

.banner-description {
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
  opacity: 0.95;
  font-weight: 500;
}

.banner-features {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.banner-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.banner-feature i {
  color: var(--gold-accent);
  font-size: 1.8rem;
}

/* 新增优势列表样式 */
.banner-advantages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-accent);
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
}

.advantage-item i {
  color: var(--emerald);
  font-size: 1.2rem;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  background: var(--gold-accent);
  color: var(--gray-800);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  border: 2px solid transparent;
}

.banner-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  background: var(--primary-white);
  border-color: var(--gold-accent);
}

.banner-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.diamond-world {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-gem {
  font-size: 10rem;
  color: var(--gold-accent);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  animation: gemPulse 3s ease-in-out infinite;
}

@keyframes gemPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
  }
  50% { 
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
  }
}

.money-savings {
  position: absolute;
  top: 20%;
  right: 10%;
  background: var(--emerald);
  color: var(--primary-white);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  animation: bounce 2s ease-in-out infinite;
  box-shadow: var(--shadow-medium);
}

.money-symbol {
  font-size: 2.4rem;
  text-align: center;
}

.savings-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.floating-diamonds {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-diamond {
  position: absolute;
  font-size: 2.4rem;
  animation: floatDiamond 6s ease-in-out infinite;
  opacity: 0.8;
}

.diamond-1 {
  top: 15%;
  left: 20%;
  animation-delay: 0s;
}

.diamond-2 {
  top: 65%;
  right: 15%;
  animation-delay: 2s;
}

.diamond-3 {
  bottom: 25%;
  left: 35%;
  animation-delay: 4s;
}

@keyframes floatDiamond {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-15px) rotate(8deg);
    opacity: 1;
  }
}

/* 仪表板样式 - 明亮数据展示 */
.dashboard-section {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--gray-100);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title i {
  color: var(--gold-dark);
}

.refresh-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.4rem;
  color: var(--gray-600);
}

.indicator-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.7; 
    transform: scale(1.2);
  }
}

.market-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.market-card {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.gold-card {
  border-left-color: var(--gold-dark);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--primary-white) 100%);
}

.forex-card {
  border-left-color: var(--sapphire);
  background: linear-gradient(135deg, var(--diamond-blue) 0%, var(--primary-white) 100%);
}

.stock-card {
  border-left-color: var(--emerald);
  background: linear-gradient(135deg, var(--diamond-light) 0%, var(--primary-white) 100%);
}

.market-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
  color: var(--gray-600);
}

.market-header i {
  font-size: 2rem;
}

.gold-card .market-header i { color: var(--gold-dark); }
.forex-card .market-header i { color: var(--sapphire); }
.stock-card .market-header i { color: var(--emerald); }

.market-price {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 1.2rem;
  color: var(--gray-500);
  margin-bottom: var(--space-xs);
}

.price-range {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin: var(--space-sm) 0;
}

.price-high, .price-low {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.4rem;
  font-weight: 600;
}

.price-high { color: var(--ruby); }
.price-low { color: var(--emerald); }

.forex-rate {
  margin: var(--space-sm) 0;
}

.rate-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sapphire);
}

.stock-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-sm) 0;
}

.index-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-800);
}

.index-change {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-white);
}

.price-unit, .update-time {
  font-size: 1.2rem;
  color: var(--gray-500);
}

/* 图表区域 */
.chart-section {
  margin-top: var(--space-lg);
}

.chart-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--gray-100);
  color: var(--gray-700);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.chart-toggle-btn:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.chart-container {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-medium);
  height: 400px;
  display: none;
  border: 1px solid var(--gray-200);
}

/* 新闻区域 */
.news-section {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}

.section-actions {
  display: flex;
  align-items: center;
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gold-dark);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--gold-accent);
  gap: var(--space-sm);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.news-card {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  background: var(--primary-white);
}

.featured-news {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--primary-white) 100%);
  border: 1px solid var(--gold-medium);
}

.news-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--ruby);
  color: var(--primary-white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.news-title {
  margin-bottom: var(--space-sm);
}

.news-title a {
  text-decoration: none;
  color: var(--gray-800);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-title a:hover {
  color: var(--gold-dark);
}

.news-excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  font-size: 1.4rem;
}

.news-meta {
  display: flex;
  gap: var(--space-md);
  font-size: 1.2rem;
  color: var(--gray-500);
}

.news-meta i {
  margin-right: 4px;
}

.news-date, .news-category {
  display: flex;
  align-items: center;
}

.news-category {
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}

/* 图库区域 */
.gallery-section {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-200);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  background: var(--primary-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  background: var(--primary-white);
}

.gallery-image {
  font-size: 4rem;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gallery-info h4 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--gray-800);
}

.gallery-info p {
  color: var(--gray-600);
  font-size: 1.2rem;
}

/* 底部样式 - 明亮优雅 */
.main-footer {
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--primary-white) 100%);
  color: var(--gray-700);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--gray-200);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-sm);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-section h4 {
  color: var(--gray-800);
  margin-bottom: var(--space-md);
  font-size: 1.6rem;
  font-weight: 600;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.footer-description {
  line-height: 1.6;
  margin-bottom: var(--space-md);
  color: var(--gray-600);
  font-size: 1.4rem;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-white);
  color: var(--gold-dark);
  border-radius: var(--radius-round);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.social-link:hover {
  background: var(--gold-dark);
  color: var(--primary-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.4rem;
  display: block;
  padding: var(--space-xs) 0;
}

.footer-links a:hover {
  color: var(--gold-dark);
  transform: translateX(5px);
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 1.4rem;
  color: var(--gray-600);
}

.contact-info i {
  width: 16px;
  color: var(--gold-dark);
}

.footer-bottom {
  border-top: 1px solid var(--gray-300);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--gray-500);
  font-size: 1.2rem;
}

.footer-bottom a {
  color: var(--gray-600);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--gold-dark);
}

/* 模态框现代化 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  width: 90%;
  height: 80%;
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--primary-white) 100%);
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
  font-size: 2rem;
  font-weight: 600;
}

.close {
  font-size: 2.8rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-600);
}

.close:hover {
  transform: scale(1.1);
  color: var(--gold-dark);
}

.modal-body {
  height: calc(100% - 80px);
  padding: var(--space-lg);
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* 价格变化颜色 */
.index-change.positive {
  background-color: var(--ruby);
}

.index-change.negative {
  background-color: var(--emerald);
}

.index-change.neutral {
  background-color: var(--gray-500);
}

/* 证书查询引导模态框样式 */
.certificate-guide-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: var(--space-md);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guide-content {
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 450px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--gold-medium);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--gray-200);
}

.guide-header h3 {
  font-size: 2rem;
  color: var(--gray-800);
  margin: 0;
}

.guide-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.guide-close:hover {
  color: var(--gold-dark);
}

.guide-body {
  text-align: center;
}

.guide-icon {
  font-size: 4rem;
  color: var(--gold-dark);
  margin-bottom: var(--space-md);
}

.guide-body p {
  font-size: 1.6rem;
  color: var(--gray-700);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.cert-number {
  font-size: 1.4rem !important;
  color: var(--gray-600) !important;
  background: var(--gray-100);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0 !important;
  border: 1px solid var(--gray-200);
}

/* 微信专用步骤 */
.guide-steps {
  margin: var(--space-xl) 0;
  text-align: left;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-sm);
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-dark);
}

.step-number {
  background: var(--gold-dark);
  color: var(--primary-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.step-text {
  font-size: 1.4rem;
  color: var(--gray-700);
  line-height: 1.4;
}

/* 通用提示 */
.guide-tips {
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  background: var(--diamond-blue);
  border-radius: var(--radius-md);
  border: 1px solid var(--sapphire);
}

.guide-tips p {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 !important;
  font-size: 1.4rem !important;
  color: var(--sapphire) !important;
}

.guide-tips i {
  color: var(--gold-dark);
  flex-shrink: 0;
}

.guide-actions {
  display: flex;
  gap: var(--space-md);
}

.guide-btn {
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  flex: 1;
}

.guide-btn.primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-accent));
  color: var(--gray-800);
  box-shadow: var(--shadow-medium);
}

.guide-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.guide-btn.secondary {
  background: var(--gray-200);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.guide-btn.secondary:hover {
  background: var(--gray-300);
}

/* 证书查询消息样式 */
.certificate-message {
  position: relative;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  animation: slideInUp 0.3s ease;
}

.message-info {
  background: var(--diamond-blue);
  border: 1px solid var(--sapphire);
  color: var(--sapphire);
}

.message-warning {
  background: var(--gold-light);
  border: 1px solid var(--gold-dark);
  color: var(--gray-800);
}

.message-error {
  background: var(--rose-gold-light);
  border: 1px solid var(--rose-gold-dark);
  color: var(--gray-800);
}

.message-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.4rem;
}

.message-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--space-xs);
  margin-left: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.message-close:hover {
  opacity: 1;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================= */
/* 比价模态框样式 */
/* ============================================= */

/* 简洁比价模态框样式 */
.compare-modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.compare-modal-content {
  position: relative;
  margin: 2% auto;
  width: 95%;
  height: 96%;
  background: var(--primary-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  overflow: hidden;
  border: 2px solid var(--gold-medium);
  animation: slideUp 0.3s ease;
}

.compare-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--primary-white) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.compare-modal-header h3 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.compare-close {
  font-size: 2.4rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--gray-600);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
}

.compare-close:hover {
  transform: scale(1.1);
  color: var(--gold-dark);
  background: var(--gold-light);
}

.compare-modal-body {
  height: calc(100% - 80px);
  padding: 0;
  position: relative;
}

.compare-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 加载指示器样式 */
.compare-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  flex-direction: column;
}

.loading-spinner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.loading-spinner i {
  font-size: 4rem;
  color: var(--gold-dark);
  animation: spin 2s linear infinite;
}

.loading-spinner p {
  color: var(--gray-600);
  font-size: 1.6rem;
  margin: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 错误状态样式 */
.loading-spinner .fa-exclamation-triangle {
  animation: none;
  color: var(--ruby);
}

.loading-spinner .guide-btn {
  margin-top: var(--space-md);
}

/* 模态框动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 防止滚动穿透 */
body.modal-open {
  overflow: hidden;
}