/* 关于我们页面专用样式 */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    width: 80%;
    margin: auto;
}

.about-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 20px;
    text-align: center;
}

.about-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.about-content {
    padding: 30px;
}

.intro-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.intro-highlight {
    background: linear-gradient(120deg, #a8e6cf 0%, #dcedc1 100%);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #4ecdc4;
}

.intro-quote {
    font-style: italic;
    color: #7f8c8d;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e9ecef;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #6e8efb;
}

.contact-card h3 {
    margin: 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.contact-card p {
    color: #7f8c8d;
    margin: 5px 0;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(110, 142, 251, 0.3);
}

/* 初始状态：隐藏二维码容器 */
.contact-link .qrcode-container {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: white;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15); /* 可选：添加阴影 */
}

/* 悬停状态：显示二维码容器 */
.contact-link:hover .qrcode-container {
  display: block;
}

/* 可选：调整二维码图片大小 */
.contact-link .qrcode-container img {
  width: 150px; /* 根据需求调整 */
  height: 150px;
  object-fit: cover; /* 保持图片比例 */
}
/*添加过渡动画（使显示更平滑）*/
.contact-link .qrcode-container {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-link:hover .qrcode-container {
  opacity: 1;
  visibility: visible;
}
/*控制显示位置*/
.contact-link .qrcode-container {
  top: -181px;
  transform: translateX(-50%);
}
/*限制二维码大小（避免过大影响布局）*/
.contact-link .qrcode-container img {
  max-width: 200px;
  max-height: 200px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #6e8efb, #a777e3);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: 50%;
    padding: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 40px;
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 3px solid #6e8efb;
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 3px solid #a777e3;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-year {
    font-weight: 600;
    color: #6e8efb;
    margin-bottom: 5px;
}

.timeline-company {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #6e8efb;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding: 20px 0 20px 40px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        right: auto;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 3px solid #6e8efb;
        border-right: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .contact-card {
        padding: 15px;
    }
}