/* 数字森林科技官网 - 组件样式 */
/* 各个板块和组件的具体样式实现 */

/* ===== 导航栏组件 ===== */
.navbar-logo {
  height: 32px;
  width: auto;
  margin-right: var(--space-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  color: var(--primary-green);
}

.navbar-nav {
  display: flex;
  gap: var(--space-lg);
}

.wechat-contact {
  background: var(--accent-green);
  color: var(--white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  transition: all var(--transition-fast);
}

.wechat-contact:hover {
  background: var(--hover-green);
  transform: translateY(-1px);
}

/* ===== Hero区域组件 ===== */
.hero-section {
  position: relative;
  background: var(--gradient-forest);
  color: var(--dark-green);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--navbar-height));
  min-height: calc(100vh - var(--navbar-height));
}

/* 数字森林粒子效果 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 40% 70%, rgba(102, 187, 106, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 90% 80%, rgba(76, 175, 80, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 10% 90%, rgba(46, 125, 50, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px, 180px 180px;
  animation: floatingParticles 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatingParticles {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(-5px) rotate(-1deg); }
  75% { transform: translateY(-15px) rotate(0.5deg); }
}
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(241, 248, 233, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 3;
}

.hero-title {
  font-size: var(--font-xl);
  font-weight: var(--font-medium);
  color: var(--dark-green);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-3xl);
  color: var(--accent-green);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-2xl);
  font-weight: var(--font-bold);
  text-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.hero-description {
  font-size: var(--font-base);
  color: var(--text-dark);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-lg);
}

.hero-description p {
  margin-bottom: var(--space-sm);
}

/* ===== 按钮组件 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-green);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-green);
  border: none;
  position: relative;
  backdrop-filter: blur(10px);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: var(--white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}

/* ===== 卡片组件 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green);
  border-color: rgba(76, 175, 80, 0.2);
}

.feature-card,
.tech-card,
.value-card {
  background: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  text-align: center;
  border: 1px solid var(--gray-medium);
}

.feature-card:hover,
.tech-card:hover,
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.feature-icon,
.tech-icon,
.value-icon {
  font-size: 2.5rem;
  margin-right: var(--space-sm);
  display: inline-block;
  vertical-align: middle;
}

.tech-icon {
  color: var(--primary-green);
  font-size: 2.2rem;
}

.feature-title,
.tech-title,
.value-title {
  font-size: var(--font-lg);
  font-weight: var(--font-semibold);
  color: var(--dark-green);
  margin-bottom: var(--space-sm);
  display: inline-block;
  vertical-align: middle;
}

.feature-card .feature-icon + .feature-title,
.tech-card .tech-icon + .tech-title,
.value-card .value-icon + .value-title {
  margin-left: 0;
}

/* 卡片标题行布局 */
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.card-title-row .feature-icon,
.card-title-row .tech-icon,
.card-title-row .value-icon {
  margin-right: 2px;
  margin-bottom: 0;
}

.card-title-row .feature-title,
.card-title-row .tech-title,
.card-title-row .value-title {
  margin-bottom: 0;
}

.feature-description,
.tech-description,
.value-description {
  font-size: var(--font-sm);
  color: var(--text-medium);
  line-height: var(--line-height-normal);
  margin-top: var(--space-xs);
}

/* ===== 产品区域组件 ===== */
.product-section {
  background: var(--white);
}

.product-description {
  font-size: var(--font-base);
  color: var(--text-medium);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-sm);
}

.product-description p {
  margin-bottom: var(--space-sm);
}

.product-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== 贾维斯区域组件 ===== */
.jarvis-section {
  background: var(--gradient-light);
  color: var(--text-dark);
  position: relative;
}

/* AI科技装饰元素 */
.jarvis-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: var(--forest-texture);
  opacity: 0.3;
  z-index: 1;
}

.jarvis-section::after {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-xs);
  color: var(--medium-green);
  background: rgba(46, 125, 50, 0.1);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76, 175, 80, 0.3);
  z-index: 2;
}

.jarvis-intro {
  font-size: var(--font-lg);
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
}

.jarvis-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.jarvis-features {
  margin: var(--space-lg) 0;
}

/* 贾维斯标签导航 */
.jarvis-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.jarvis-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--white);
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-size: var(--font-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.jarvis-tab:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateY(-2px);
}

.jarvis-tab.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.jarvis-tab i {
  font-size: var(--font-lg);
}

/* 贾维斯内容区域 */
.jarvis-content {
  position: relative;
}

.jarvis-feature-content {
  display: none;
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.jarvis-feature-content.active {
  display: block;
}

.feature-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-header .feature-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: var(--light-green);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-green);
}

.feature-info {
  flex: 1;
}

.feature-header .feature-title {
  font-size: var(--font-2xl);
  font-weight: var(--font-bold);
  color: var(--dark-green);
  margin-bottom: var(--space-sm);
}

.feature-header .feature-description {
  font-size: var(--font-lg);
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
}

.feature-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.service-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--light-green);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.service-item:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-2px);
}

.service-icon {
  font-size: var(--font-xl);
  color: var(--primary-green);
  width: 24px;
  text-align: center;
}

.service-item:hover .service-icon {
  color: var(--white);
}

.service-text {
  font-size: var(--font-base);
  font-weight: var(--font-medium);
}

/* ===== 团队区域组件 ===== */
.team-section {
  background: var(--white);
}

.founder-card {
  background: var(--light-green);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.founder-info {
  margin-bottom: var(--space-lg);
}

.founder-name {
  font-size: var(--font-2xl);
  font-weight: var(--font-bold);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.founder-title {
  font-size: var(--font-base);
  font-weight: var(--font-normal);
  color: var(--primary-green);
  background: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.founder-bio {
  color: var(--text-dark);
}

.bio-section {
  margin-bottom: var(--space-lg);
}

.bio-section:last-child {
  margin-bottom: 0;
}

.bio-section p {
  font-size: var(--font-lg);
  font-weight: var(--font-medium);
  margin-bottom: var(--space-sm);
  color: var(--dark-green);
}

.founder-info-list {
  list-style: none;
  padding-left: 0;
}

.founder-info-list li {
  font-size: var(--font-base);
  color: var(--text-medium);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
}

.founder-info-list li::before {
  content: '•';
  color: var(--primary-green);
  position: absolute;
  left: 0;
  font-weight: var(--font-bold);
}

.team-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== 关于我们区域组件 ===== */
.about-section {
  background: var(--light-green);
  position: relative;
}

/* 代码装饰元素 */
.about-section::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Courier New', monospace;
  font-size: var(--font-xs);
  color: rgba(76, 175, 80, 0.3);
  white-space: pre;
  line-height: 1.4;
  z-index: 1;
  pointer-events: none;
}

.about-section .section-content {
  position: relative;
  z-index: 2;
}

/* ===== 数据统计组件 ===== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-lg);
  background: var(--gradient-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--leaf-pattern);
  opacity: 0.1;
  z-index: 1;
}

.stat-item > * {
  position: relative;
  z-index: 2;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-green);
  border-color: var(--primary-green);
}

.stat-number {
  display: inline-block;
  font-size: var(--font-2xl);
  font-weight: var(--font-bold);
  color: var(--primary-green);
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.stat-unit {
  display: inline;
  font-size: var(--font-lg);
  color: var(--medium-green);
  margin-left: 2px;
}

.stat-label {
  display: block;
  font-size: var(--font-base);
  color: var(--text-medium);
}

.company-intro-list {
  list-style: none;
  padding-left: 0;
}

.company-intro-list li {
  font-size: var(--font-lg);
  color: var(--text-dark);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
  padding-left: var(--space-md);
  position: relative;
}

.company-intro-list li::before {
  content: '✓';
  color: var(--primary-green);
  position: absolute;
  left: 0;
  font-weight: var(--font-bold);
}

.highlight-text {
  color: var(--primary-green);
  font-weight: var(--font-semibold);
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===== 联系我们区域组件 ===== */
.contact-section {
  background: var(--white);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-image-container {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.contact-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  object-fit: cover;
  margin: 0 auto;
}

.contact-bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.contact-info-card {
  background: var(--light-green);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-info-title {
  color: var(--dark-green);
  margin-bottom: var(--space-lg);
  text-align: center;
  font-size: var(--font-xl);
  font-weight: var(--font-semibold);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.contact-method:hover {
  background: rgba(76, 175, 80, 0.1);
}

.contact-icon {
  color: var(--primary-green);
  font-size: var(--font-lg);
  width: 20px;
  text-align: center;
}

.contact-text {
  font-size: var(--font-base);
  color: var(--text-dark);
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  padding: var(--space-sm);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.qr-code {
  max-width: 250px;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.qr-description {
  font-size: var(--font-base);
  color: var(--text-medium);
  line-height: var(--line-height-normal);
}

/* ===== 页脚组件 ===== */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg) 0;
}

.footer-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-content {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.footer-text {
  font-size: var(--font-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
}

.footer-slogan {
  font-size: var(--font-lg);
  color: var(--accent-green);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--white);
  font-size: var(--font-base);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--font-sm);
  color: rgba(255, 255, 255, 0.8);
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-count-up {
  animation: countUp 0.8s ease-out;
}

/* ===== 工具类 ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-header .section-title {
  margin-bottom: var(--space-sm);
}

.section-header .section-subtitle {
  margin-bottom: 0;
}