/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 英雄区样式 */
.hero {
    padding: 80px 0;
    background-color: #ffffff;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

.hero-text .subtitle {
    font-size: 14px;
    color: #666666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #333333;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #555555;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-tertiary {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn-tertiary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品介绍区样式 */
.product-info {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
}

.product-info h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.product-info p {
    color: #666666;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 数据统计区样式 */
.stats {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #333333;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
}

/* 功能介绍区样式 */
.features {
    padding: 60px 0;
    background-color: #ffffff;
}

.features h2 {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

/* 相关链接 */
.related-links {
    padding: 100px 0;
    background: rgba(245, 245, 245, 0.8);
}

.related-links-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    color: #00bfff;
    margin-bottom: 60px;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.related-link-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333333;
    display: block;
}

.related-link-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 10px 25px rgba(0, 191, 255, 0.3);
}

.related-link-desc {
    font-size: 14px;
    line-height: 1.4;
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-link-card:hover .related-link-desc {
    color: #0066cc;
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #333333;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.copyright {
    font-size: 12px;
    color: #999999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .stat-item {
        min-width: 200px;
    }
    
    .related-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* ===== 友情链接 ===== */
.flink-section {
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.2);
}
.flink-section .container,
.flink-section .inner,
.flink-section .wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.flink-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.flinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
}
.flink-item {
    font-size: 0.8125rem;
    text-decoration: none;
    opacity: 0.85;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.flink-item:hover {
    opacity: 1;
}
@media (max-width: 640px) {
    .flinks-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 全局组件（悬浮条 / 回顶 / 友链等）===== */
.float-dl-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9000;
  width: min(420px, calc(100% - 32px));
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.float-dl-banner.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.float-dl-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}
.float-dl-close:hover {
  color: #fff;
}
.float-dl-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 40px 14px 16px;
  color: #fff;
  text-decoration: none;
}
.float-dl-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.float-dl-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.float-dl-text small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9100;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.45);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
}
@media (max-width: 640px) {
  .float-dl-banner {
    width: calc(100% - 24px);
    bottom: 12px;
  }
  .back-to-top {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}
