* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    padding-top: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #0066cc;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.top-nav-right {
    display: flex;
    gap: 20px;
}

.top-nav-right a {
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.top-nav-right a:hover {
    color: #ffcc00;
}

/* 英雄区 */
.hero {
    background-color: #0066cc;
    color: #ffffff;
    padding: 60px 0;
}

.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;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-text .subtitle {
    font-size: 24px;
    color: #ffcc00;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 14px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #ffffff;
    color: #0066cc;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #0066cc;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 数据统计区 */
.stats {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.stats-content {
    text-align: center;
    margin-bottom: 40px;
}

.stats-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats-content p {
    font-size: 14px;
    color: #666666;
}

.stats-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin: 10px 0;
}

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

.stat-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666666;
}

/* 功能区 */
.features {
    padding: 60px 0;
}

.features-content h2 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
}

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

.feature-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #eaeaea;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #0066cc;
}

.feature-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.feature-icon {
    width: 32px;
    height: 32px;
    background-color: #0066cc;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 10px;
}

.feature-card h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

.feature-card p {
    font-size: 12px;
    color: #666666;
    line-height: 1.4;
}

/* 常见问题区 */
.faq {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq-content h2 {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333333;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px;
}

.faq-answer p {
    font-size: 14px;
    color: #666666;
    line-height: 1.5;
}

.faq-toggle {
    font-size: 20px;
    color: #666666;
    transition: transform 0.3s;
}

.faq-toggle.active {
    transform: rotate(180deg);
}

/* 下载按钮区 */
.download-section {
    text-align: center;
    margin: 40px 0;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, #9c27b0, #673ab7);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(156, 39, 176, 0.3);
    transition: transform 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(156, 39, 176, 0.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;
}

.related-link-url {
    font-size: 12px;
    color: #999999;
    margin-top: 5px;
    font-family: monospace;
}

/* 页脚 */
footer {
    background-color: #333333;
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content p {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        text-align: center;
    }
    
    .top-nav-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .top-nav-right {
        justify-content: center;
    }
    
    .related-links-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 24px;
    }
    
    .hero-text .subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 友情链接 ===== */
.flink-section {
    position: relative;
    z-index: 2;
    isolation: isolate;
    padding: 2.5rem 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #f5f7fa;
}
.flink-section .container,
.flink-section .inner,
.flink-section .wrap {
    max-width: 1200px;
    margin: 0 auto;
}
.flink-section .container > *:not(h2):not(.flinks-grid),
.flink-section .inner > *:not(h2):not(.flinks-grid),
.flink-section .wrap > *:not(h2):not(.flinks-grid) {
    display: none !important;
}
.flink-section h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333333;
}
.flinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 0.75rem;
    position: relative;
    z-index: 1;
}
.flinks-grid > *:not(.flink-item) {
    display: none !important;
}
.flink-item {
    font-size: 0.8125rem;
    text-decoration: none;
    color: #0066cc;
    background: #ffffff;
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.flink-item:hover {
    color: #004499;
    border-color: rgba(0, 102, 204, 0.45);
    background: rgba(0, 102, 204, 0.06);
}
@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;
  }
}
