/* home.css - 主页特定样式 */

/* 下拉菜单 */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "";
  display: inline-block;
  margin-left: 0.4em;
  vertical-align: middle;
  width: 0.5em;
  height: 0.5em;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-135deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 800px;
  padding: 1.5rem;
  margin-top: 0.5rem;
  background: var(--bg-light);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.dropdown-menu.show {
  display: block;
  animation: fadeIn 0.2s ease;
}

.dropdown-container {
  display: flex;
  justify-content: space-between;
}

.dropdown-column {
  width: 32%;
  padding: 0 1rem;
}

.dropdown-column h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 0;
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition-base);
}

.dropdown-item:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* 英雄区域 */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/pattern.svg');
  background-size: cover;
  opacity: 0.1;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  width: 50%;
  padding-right: 3rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  width: 50%;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-lg);
}

/* 按钮大尺寸 */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
  border-radius: var(--rounded-md);
}

/* 分隔线 */
.divider {
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  margin: 2rem auto;
  border-radius: 2px;
}

/* 特性部分 */
.section {
  padding: 5rem 0;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1rem auto 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-light);
  border-radius: var(--rounded-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA部分 */
.cta {
  background: var(--bg-light-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* 页脚 */
.footer {
  background: var(--neutral-900);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: auto;
}

.footer-brand p {
  opacity: 0.7;
}

.footer h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a,
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  opacity: 0.7;
  margin: 0;
}

.footer-links {
  display: flex;
}

.footer-links a {
  margin-left: 1.5rem;
}

/* 动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) translateX(-50%);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .dropdown-menu {
    min-width: 600px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-image {
    width: 100%;
    padding-right: 0;
    text-align: center;
  }
  
  .hero-image {
    margin-top: 3rem;
    justify-content: center;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .dropdown-menu {
    min-width: 300px;
  }
  
  .dropdown-container {
    flex-direction: column;
  }
  
  .dropdown-column {
    width: 100%;
    padding: 0;
    margin-bottom: 1.5rem;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
  }
  
  .feature-icon {
    background: rgba(37, 99, 235, 0.2);
  }
  
  .cta {
    background: var(--bg-dark-secondary);
    border-color: var(--neutral-700);
  }
}

/* 业务板块部分 */
.business-section {
  padding: 4rem 0;
}

.business-card {
  display: flex;
  align-items: center;
  margin-bottom: 5rem;
  background-color: var(--bg-light);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.business-card.reverse {
  flex-direction: row-reverse;
}

.business-content {
  flex: 1;
  padding: 3rem;
}

.business-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.business-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.business-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.business-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rounded-md);
}

@media (max-width: 768px) {
  .business-card,
  .business-card.reverse {
    flex-direction: column;
  }
  
  .business-content {
    padding: 2rem;
  }
  
  .business-image {
    width: 100%;
    padding: 1rem 2rem 2rem;
  }
}

@media (prefers-color-scheme: dark) {
  .business-card {
    background-color: var(--bg-dark-secondary);
  }
}

/* 概览部分样式 */
.overview {
  padding: 6rem 0 3rem;
  background-color: var(--bg-light-secondary);
}

.overview-header {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.overview-card {
  background: var(--bg-light);
  border-radius: var(--rounded-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition-base);
  height: 100%;
}

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

.overview-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
}

.overview-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overview-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.overview-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.overview-list {
  list-style: none;
  padding: 0;
}

.overview-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.overview-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* 数据统计部分 */
.overview-stats-section {
  padding: 0 0 6rem;
  background-color: var(--bg-light-secondary);
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: var(--rounded-lg);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
}

.stat-item {
  padding: 1.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 40%;
  background: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .overview-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem;
  }
  
  .stat-item:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .overview {
    padding: 4rem 0 2rem;
  }
  
  .overview-stats-section {
    padding: 0 0 4rem;
  }
  
  .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .overview-stats {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 1rem;
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .overview {
    background-color: var(--bg-dark-secondary);
  }
  
  .overview-stats-section {
    background-color: var(--bg-dark-secondary);
  }
  
  .overview-card {
    background-color: var(--bg-dark);
  }
  
  .overview-list li {
    color: var(--text-light);
  }
} 