/* Beach Point Capital 设计风格 - 主样式文件 */
:root {
  /* Beach Point 色彩方案 */
  --primary-blue: #2C3E50;
  --secondary-blue: #34495E;
  --accent-gold: #F39C12;
  --accent-gold-light: #F7DC6F;
  --text-white: #FFFFFF;
  --text-dark: #2C3E50;
  --text-gray: #7F8C8D;
  --background-light: #F8F9FA;
  --background-dark: #1B2631;
  
  /* 渐变 */
  --gradient-blue: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --gradient-overlay: linear-gradient(rgba(44, 62, 80, 0.7), rgba(52, 73, 94, 0.7));
  --gradient-gold: linear-gradient(135deg, #F39C12 0%, #F7DC6F 100%);
  
  /* 字体系统 - 更换为思源宋体和微软雅黑 */
  --font-primary: 'Noto Sans SC', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-secondary: 'Noto Serif SC', 'SimSun', 'STSong', serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* 间距系统 */
  --section-padding: 33px 0;
  --container-max-width: 1400px;
  --border-radius: 15px;
  --border-radius-small: 8px;
  --box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
  --box-shadow-hover: 0 20px 40px rgba(44, 62, 80, 0.15);
  
  /* 动画 */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--background-light);
}

/* 容器 */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* 通用工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 1rem; }

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: var(--border-radius-small);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--text-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-secondary:hover {
  background: var(--text-white);
  color: var(--text-dark);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* 标题样式 - 使用思源宋体 */
.section-title {
  font-family: var(--font-secondary);
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-white);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
}

/* 分割线 */
.gold-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 2rem auto;
  border-radius: 2px;
}

/* 卡片样式 */
.card {
  background: var(--text-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

/* 网格系统 */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Section背景图片样式 - PC端使用fixed，移动端使用scroll */
.section-with-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* PC端默认使用fixed */
  color: var(--text-white);
}

.section-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
}

.section-with-bg .container {
  position: relative;
  z-index: 2;
}

/* 确保section中的文字清晰可读 */
.section-with-bg .section-header h2,
.section-with-bg .section-header p {
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.3);
}

.section-with-bg .business-card h3,
.section-with-bg .business-card p {
  color: var(--text-dark);
  text-shadow: none;
}

.section-with-bg .project-card h3,
.section-with-bg .project-card p {
  color: var(--text-dark);
  text-shadow: none;
}

.section-with-bg .fund-card h3,
.section-with-bg .fund-card p,
.section-with-bg .fund-card .label,
.section-with-bg .fund-card .value {
  color: var(--text-dark);
  text-shadow: none;
}

/* 触摸设备优化 - 使用hover和pointer媒体特性检测 */
@media (hover: none) and (pointer: coarse) {
  /* 移动端和平板设备：禁用fixed背景 */
  .section-with-bg,
  .hero-background,
  .hero-business,
  .hero-funds,
  .hero-properties,
  .hero-construction {
    background-attachment: scroll !important;
  }
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.5rem;
  }

  /* 移动端背景图优化 - 作为触摸设备检测的备用方案 */
  .section-with-bg {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
    /* 确保移动端背景图不会过度放大 */
    background-repeat: no-repeat;
  }

  /* 移动端Hero区域优化 */
  .hero {
    min-height: 100vh;
    height: auto;
  }

  .hero-background {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  /* 移动端特定Hero背景优化 */
  .hero-business,
  .hero-funds,
  .hero-properties,
  .hero-construction {
    background-attachment: scroll !important;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2rem;
  }

  /* 小屏幕设备背景图进一步优化 */
  .section-with-bg,
  .hero-background,
  .hero-business,
  .hero-funds,
  .hero-properties,
  .hero-construction {
    background-attachment: scroll !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* 防止背景图在小屏幕上过度拉伸 */
    min-height: 50vh;
  }

  .hero {
    min-height: 80vh;
  }
}

/* 高DPI设备优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .section-with-bg,
  .hero-background,
  .hero-business,
  .hero-funds,
  .hero-properties,
  .hero-construction {
    /* 确保高DPI设备上背景图清晰 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* 避免使用transform等可能导致模糊的属性 */
    will-change: auto;
  }
}

/* ================================
   页脚样式
   ================================ */
.footer {
  background: var(--text-dark);
  color: var(--text-white);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-weight: var(--font-weight-bold);
}

.footer-section p {
  color: var(--text-white);
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer .footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 页脚快速链接特殊样式 */
.footer .footer-section ul.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0;
}

.footer .footer-section ul.footer-links li {
  margin-bottom: 0.25rem;
  flex: 0 0 auto;
}

.footer .footer-section ul li a {
  color: var(--text-white);
  text-decoration: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  opacity: 0.9;
}

.footer .footer-section ul li a:hover {
  color: var(--accent-gold);
  opacity: 1;
}

/* 页脚联系方式样式 */
.footer .contact-info p {
  display: block;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text-white);
  opacity: 0.9;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* 页脚响应式设计 */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer .footer-section ul.footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .footer .footer-section ul.footer-links li {
    margin-bottom: 0.5rem;
  }
} 