/* ============================================
   聚界聚合平台 - 共用设计系统
   主题色：深墨绿色
   风格：东方雅致 × 现代科技
   ============================================ */

/* ===== CSS 变量 ===== */
:root {
  /* 深墨绿主色系 */
  --ink-green-darkest: #0a1f14;
  --ink-green-darker: #0d2818;
  --ink-green-dark: #1a3a2e;
  --ink-green: #2d5a42;
  --ink-green-light: #3d7a5c;
  --ink-green-lighter: #5a9a7a;
  --ink-green-glow: rgba(90, 154, 122, 0.15);

  /* 金色点缀 */
  --gold: #c9a96e;
  --gold-light: #e0c896;
  --gold-dark: #a08550;

  /* 辅助模块色 */
  --module-green: #2d8659;
  --module-red: #d65a5a;
  --module-blue: #4a8db8;
  --module-purple: #7a5a9e;

  /* 中性色 */
  --white: #ffffff;
  --cream: #f5f2ec;
  --gray-100: #e8e6e1;
  --gray-300: #c4c0b8;
  --gray-500: #8a857c;
  --gray-700: #4a4742;
  --gray-900: #1a1815;

  /* 字体 */
  --font-display: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 40px rgba(90, 154, 122, 0.2);

  /* 过渡 */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--ink-green-darkest);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== 背景纹理 ===== */
.bg-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(45, 90, 66, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(201, 169, 110, 0.06) 0%, transparent 50%);
}

.bg-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.5;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 31, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  transition: var(--transition);
}

.navbar-scrolled {
  padding: 0.8rem 3rem;
  background: rgba(10, 31, 20, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ink-green-light), var(--ink-green));
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold-light);
  box-shadow: var(--shadow-glow);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.nav-logo-text span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--gray-300);
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.3rem 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--gold-light);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.8rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink-green-darkest);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 169, 110, 0.3);
}

/* ===== 通用按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink-green-darkest);
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.08);
  color: var(--gold-light);
}

/* ===== 页面通用结构 ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  min-height: 100vh;
}

.section {
  padding: 6rem 3rem;
  position: relative;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

/* ===== 标题样式 ===== */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.8rem;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.section-title span {
  color: var(--gold);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-300);
  max-width: 600px;
  line-height: 1.8;
}

/* ===== 卡片样式 ===== */
.feature-card {
  background: rgba(26, 58, 46, 0.4);
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.6s ease;
}

.feature-card:hover {
  background: rgba(45, 90, 66, 0.3);
  border-color: rgba(201, 169, 110, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  height: 100%;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-300);
  line-height: 1.8;
}

/* ===== 页脚 ===== */
.footer {
  background: var(--ink-green-darkest);
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  padding: 4rem 3rem 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  color: var(--cream);
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray-500);
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 30px rgba(90, 154, 122, 0.2); }
  50% { box-shadow: 0 0 50px rgba(90, 154, 122, 0.4); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* 动画类 */
.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* 延迟工具类 */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* 滚动出现 */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .nav-menu {
    display: none;
  }

  .section {
    padding: 3rem 1rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink-green-darkest);
}

::-webkit-scrollbar-thumb {
  background: var(--ink-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-green-light);
}

/* ===== 选中文本 ===== */
::selection {
  background: var(--gold);
  color: var(--ink-green-darkest);
}
