* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f9fafb;
  color: #1f2937;
}

/* 主色工具类 */
.bg-primary { background-color: #2e74e9; }
.bg-primary-dark { background-color: #1e4fa3; }
.text-primary { color: #2e74e9; }
.border-primary { border-color: #2e74e9; }
.hover\:bg-primary:hover { background-color: #2e74e9; }
.hover\:text-primary:hover { color: #2e74e9; }
.from-primary { --tw-gradient-from: #2e74e9; }
.to-primary-dark { --tw-gradient-to: #1e4fa3; }

/* 苹果风格面板 */
.apple-panel {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 2px 2px rgba(0,0,0,0.06), 0 0 2px rgba(0,0,0,0.07);
  padding: 16px;
  margin-bottom: 24px;
}

.apple-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.apple-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2e74e9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.apple-stat-number {
  font-size: 24px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.apple-stat-label {
  font-size: 12px;
  color: #6e6e73;
}

/* 动画 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.slide-down {
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { max-height: 0; opacity: 0; }
  to { max-height: 200px; opacity: 1; }
}

/* 回到顶部按钮 */
#backToTop {
  transition: all 0.3s ease;
}

/* 移动端悬浮开户按钮 */
.mobile-floating-apply {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  display: none;
  background: linear-gradient(135deg, #2e74e9 0%, #1e4fa3 100%);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(46, 116, 233, 0.4);
  animation: pulse-mobile 2s infinite;
  text-decoration: none;
}
@media (max-width: 768px) {
  .mobile-floating-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@keyframes pulse-mobile {
  0%, 100% { box-shadow: 0 6px 20px rgba(46, 116, 233, 0.4); transform: translateX(-50%) scale(1); }
  50% { box-shadow: 0 6px 30px rgba(46, 116, 233, 0.6); transform: translateX(-50%) scale(1.05); }
}

/* 文章卡片 */
.article-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Banner 背景图 */
.hero-banner {
  background-image: url('../images/banner_index.png');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-banner > * {
  position: relative;
  z-index: 2;
}

/* FAQ 优化 */
.faq-toggle {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.faq-content p {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
@media (max-width: 640px) {
  .faq-toggle, .faq-content p {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* 分页样式 */
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  transition: all 0.2s;
}
.page-numbers.current {
  background: #2e74e9;
  border-color: #2e74e9;
  color: white;
}

/* 底部深色区域 */
.bottom-footer.style-dark {
  background: linear-gradient(135deg, #1a2634 0%, #0f1a24 100%);
  color: #e0e4e9;
  padding: 40px 0 20px;
  font-family: 'Inter', sans-serif;
}
.bottom-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-bottom {
  width: 100%;
}
.auto-container {
  width: 100%;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 导航栏基础样式 */
#navbar {
  background-color: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  color: white;
}
#navbar nav button,
#navbar nav a {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.2s;
}
#navbar nav button:hover,
#navbar nav a:hover {
  color: #2e74e9;
}

/* 移动端菜单 */
#mobileMenu {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}
#mobileMenu button,
#mobileMenu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 0;
  color: white;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
  transition: color 0.2s;
}
#mobileMenu button:hover,
#mobileMenu a:hover {
  color: #2e74e9;
}
#mobileMenu a:last-child,
#mobileMenu button:last-child {
  border-bottom: none;
}

/* 滚动后导航 */
#navbar.scrolled {
  background-color: rgba(0,0,0,0.9) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* 友情链接区域 */
.linkss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 30px;
}
.linkss .box1 {
  list-style: none;
  padding: 0 15px;
  margin: 0;
  min-width: 160px;
  flex: 1 1 auto;
}
.linkss .box1 p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
  position: relative;
  display: inline-block;
}
.linkss .box1 p::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #2e74e9;
  border-radius: 2px;
}
.linkss .box1 li {
  margin-bottom: 10px;
}
.linkss .box1 a {
  color: #b0c0d0 !important;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  font-size: 0.95rem;
}
.linkss .box1 a:hover {
  color: #fff !important;
  transform: translateX(5px);
}

/* 免责声明 */
.dibu {
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px !important;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9aa9b9;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  margin-top: 20px;
}

/* ===== 底部悬浮行动按钮（PC 加大版）===== */
.common_bottomFloat {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9900;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}
.common_bottomFloat .companyLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #549cf9;
  border-radius: 12px;
  margin: 6px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
  min-width: 280px;
}
.common_bottomFloat .companyLink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  background-color: #3a7fd9;
}
.common_bottomFloat .bottomFloat_link_bib {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
}
.common_bottomFloat .link_right {
  color: #000;
  background-color: #fff;
  border-radius: 10px;
  padding: 14px 32px;
  margin: 8px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: 0.5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}
@media (min-width: 1280px) {
  .common_bottomFloat .companyLink {
    min-width: 320px;
    margin: 8px 30px;
  }
  .common_bottomFloat .link_right {
    font-size: 22px;
    padding: 16px 40px;
  }
}
@media (max-width: 768px) {
  .common_bottomFloat {
    padding: 8px 10px;
  }
  .common_bottomFloat .companyLink {
    min-width: 0;
    width: auto;
    margin: 4px 8px;
    flex: 1 1 auto;
  }
  .common_bottomFloat .link_right {
    padding: 10px 18px;
    font-size: 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

/* ===== 全局背景与装饰（丰富色彩层）===== */
body {
  background: #f8fafc; /* 基础底色 */
}

section {
  position: relative;
  z-index: 1;
}
section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.03;
  z-index: -1;
}

#贵金属开户科普::before {
  background-image: radial-gradient(circle at 10% 30%, #2e74e9 1px, transparent 1px);
  background-size: 30px 30px;
}
#平台优势::before {
  background-image: linear-gradient(45deg, #2e74e9 1px, transparent 1px);
  background-size: 20px 20px;
}
#交易品种::before {
  background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 5 L55 30 L30 55 L5 30 Z" fill="none" stroke="%232e74e9" stroke-width="0.5"/></svg>');
  background-size: 60px 60px;
}
#开户流程::before {
  background: linear-gradient(135deg, rgba(46,116,233,0.02) 25%, transparent 25%);
  background-size: 40px 40px;
}
#监管资质::before {
  background: repeating-linear-gradient(45deg, rgba(46,116,233,0.02) 0px, rgba(46,116,233,0.02) 10px, transparent 10px, transparent 20px);
}
#常见问题::before {
  background-image: radial-gradient(circle at 70% 80%, #2e74e9 2px, transparent 2px);
  background-size: 40px 40px;
}
#公司简介::before {
  background: linear-gradient(to right, rgba(46,116,233,0.02) 0%, transparent 20%);
}
#最新文章::before {
  background-image: repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(46,116,233,0.02) 20px, rgba(46,116,233,0.02) 21px);
}

/* ===== 标题增强 ===== */
section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
  margin-bottom: 20px;
}
section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2e74e9, #f5b041);
  border-radius: 2px;
}
.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, #2e74e9, #1e4fa3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== 卡片立体化 ===== */
.article-card,
.bg-white.rounded-xl.shadow-md {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
}
.article-card:hover,
.bg-white.rounded-xl.shadow-md:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(46,116,233,0.25);
}

/* 平台优势卡片 */
#平台优势 .bg-white {
  border: 1px solid rgba(46,116,233,0.1);
  background: linear-gradient(145deg, #ffffff, #f9fcff);
}

/* 交易品种卡片 */
#交易品种 .bg-white.rounded-xl.shadow-lg {
  border: 1px solid #eef2f6;
  background: white;
  position: relative;
  overflow: hidden;
}
#交易品种 .bg-white.rounded-xl.shadow-lg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(46,116,233,0.05) 50%);
  pointer-events: none;
}

/* 监管资质卡片 */
#监管资质 .bg-gray-50 {
  background: linear-gradient(135deg, #f9f9fc, #ffffff);
  border-left: 4px solid #2e74e9;
  transition: all 0.2s;
}
#监管资质 .bg-gray-50:hover {
  border-left-width: 8px;
  background: white;
}

/* 按钮升级 */
.bg-primary,
.bg-primary-dark {
  background: linear-gradient(135deg, #2e74e9, #1e4fa3);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.bg-primary::before,
.bg-primary-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
  z-index: -1;
}
.bg-primary:hover::before,
.bg-primary-dark:hover::before {
  left: 100%;
}

/* 圆角按钮阴影 */
.rounded-full {
  box-shadow: 0 4px 15px rgba(46,116,233,0.3);
}
.rounded-full:hover {
  box-shadow: 0 8px 25px rgba(46,116,233,0.5);
}

/* 数据面板强化 */
.apple-panel {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(46,116,233,0.2);
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2) !important;
}
.apple-stat-icon {
  background: linear-gradient(145deg, #2e74e9, #1e4fa3) !important;
  box-shadow: 0 10px 15px -5px rgba(46,116,233,0.3);
}

/* 开户流程时间线图标光晕 */
#开户流程 .bg-primary {
  box-shadow: 0 0 0 5px rgba(46,116,233,0.1);
  transition: box-shadow 0.3s;
}
#开户流程 .flex-col:hover .bg-primary {
  box-shadow: 0 0 0 8px rgba(46,116,233,0.2);
}

/* 底部悬浮按钮颜色强化 */
.common_bottomFloat .companyLink {
  background: linear-gradient(135deg, #2e74e9, #1e4fa3) !important;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.common_bottomFloat .link_right {
  background: white !important;
  color: #2e74e9 !important;
  font-weight: 600;
}