/* ======================
   HERO 首页横幅
====================== */
.hero {
    margin-top: 70px;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)),
                url('https://picsum.photos/id/119/1920/1080') center/cover scroll;
    color: var(--text-light);
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    justify-content: space-around;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cover {
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cover img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
}

.cover-info {
    text-align: center;
}

.cover-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cover-rating {
    color: #fbbf24;
}
/* ======================
   移动端自适应 (响应式) - 最终完美版
====================== */
@media (max-width: 992px) {
    /* 导航栏汉堡菜单 */
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }

    /* Hero区垂直排列，解决遮挡 */
    .hero {
        gap: 2rem;
        padding: 4rem 1.5rem;
        text-align: left;
    }
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        width: 100%;
    }

    /* 标题字体适配 */
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .hero p {
        font-size: 1.1rem;
    }

    /* 按钮垂直排列，全屏宽度 */
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-buttons a {
        text-align: center;
        padding: 12px 0;
        width: 100%;
    }

    /* ✅ 核心修复：强制统计数据一行横向排列 */
    .hero-stats {
        display: flex !important; /* 强制覆盖，避免被其他样式影响 */
        flex-direction: row !important; /* 绝对横向，不竖排 */
        justify-content: space-between; /* 三个数据均匀分布 */
        align-items: center;
        gap: 0.5rem; /* 缩小间距，适配手机 */
        margin-top: 2rem;
        width: 100%; /* 占满容器宽度 */
        flex-wrap: nowrap; /* 绝对不换行，强制一行 */
    }
    .stat-item {
        flex: 1; /* 三个区块平分整行宽度 */
        text-align: center; /* 数字+标签居中 */
    }
    .stat-number {
        font-size: 1.7rem;
        line-height: 1.2;
    }
    .stat-label {
        font-size: 0.8rem;
        white-space: nowrap; /* 标签文字绝对不换行 */
        overflow: hidden;
        text-overflow: ellipsis; /* 极端情况防溢出 */
    }

    /* 封面图片全屏宽度 */
    .hero-cover {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
    }
    .hero-cover img {
        height: auto;
        max-height: 400px;
    }
}

/* 小屏手机 (≤576px) 极致优化，保证一行不挤 */
@media (max-width: 576px) {
    .nav-container {
        padding: 1rem;
    }
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }

    /* 小屏进一步缩小字体，保证一行 */
    .hero-stats {
        gap: 0.3rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
}
/* ======================
   平台介绍
====================== */
.about-section {
    background-color: white;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ======================================
   最新更新功能 - 优化样式（清爽高级版）
   ====================================== */
.features-section {
    padding: 80px 0;
    background-color: #f9fafb; /* 增加浅灰色背景，区分上半部分 */
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 50px;
    position: relative;
}

/* 底部下划线装饰 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #8b5cf6); /* 主色调 */
    border-radius: 2px;
}

/* 网格布局 - 3列在桌面，2列在平板，1列在手机 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 功能卡片样式 - 去边框、加阴影、浅底 */
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* 柔和阴影 */
    border: none; /* 去掉原来的边框 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1); /* 悬停时主色调阴影 */
}

/* 图标样式 */
.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
}

/* 标题样式 - 改为主色调 */
.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #4f46e5; /* 蓝色标题 */
    margin-bottom: 20px;
}

/* 列表样式 */
.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card li {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

/* 优化前面的对号符号 */
.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4f46e5;
    font-weight: bold;
}

/* 响应式适配 */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card {
        padding: 25px 20px;
    }
}
/* ======================
   最新更新
====================== */
.updates-section {
    background-color: white;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.update-card {
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

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

.update-card ul {
    list-style: none;
}

.update-card li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.update-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ======================
   即将推出
====================== */
.coming-soon-section {
    background-color: var(--light-bg);
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.coming-soon-card {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.coming-soon-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.coming-soon-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ======================
   精选文章
====================== */
.articles-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* 板块标题 */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4054ff, #722ed1);
    border-radius: 0; /* 严格直角，符合你要求 */
}

/* 网格布局（4列自适应） */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* 卡片容器（直角、无圆角，严格符合要求） */
.article-card {
    background: #fff;
    border: 1px solid #f0f0f5;
    overflow: hidden;
    transition: all 0.3s ease;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(64, 84, 255, 0.12);
    border-color: #722ed1;
}

/* 卡片链接（整卡可点击） */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 封面图容器 */
.article-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3; /* 统一封面比例，避免变形 */
    overflow: hidden;
}
.article-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .article-thumbnail {
    transform: scale(1.05);
}

/* 悬浮遮罩（科技感渐变） */
.card-hover-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(64, 84, 255, 0) 0%, rgba(114, 46, 209, 0.25) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.article-card:hover .card-hover-mask {
    opacity: 1;
}

/* 卡片内容区 */
.article-content {
    padding: 20px;
}

/* 标题 */
.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 12px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.article-card:hover .article-title {
    color: #722ed1;
}

/* 简介 */
.article-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 16px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 元信息（日期+阅读更多） */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}
.meta-date {
    color: #999;
}
.read-more {
    color: #4054ff;
    font-weight: 500;
    transition: all 0.3s ease;
}
.article-card:hover .read-more {
    color: #722ed1;
    transform: translateX(4px);
}

/* 查看更多按钮 */
.view-more-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 32px;
    background: linear-gradient(90deg, #4054ff, #722ed1);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0; /* 直角 */
    transition: all 0.3s ease;
}
.view-more-btn:hover {
    background: linear-gradient(90deg, #722ed1, #4054ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 46, 209, 0.3);
}

/* ===================== 移动端自适应 ===================== */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .section-title {
        font-size: 24px;
    }
    .article-content {
        padding: 16px;
    }
    .article-title {
        font-size: 16px;
    }
}
/* ======================
   CTA 行动板块
====================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ======================
   响应式适配
====================== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .articles-grid {
		grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* 资讯模块 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}
.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  font-size: 15px;
}
.news-item em {
  color: #999;
  font-style: normal;
  font-size: 13px;
}

/* 用户评价 */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.review-card span {
  display: block;
  text-align: right;
  margin-top: 10px;
  color: #666;
  font-size: 14px;
}

/* 手风琴FAQ */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}
.accordion-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}
.accordion-header {
  padding: 18px 24px;
  background: #f9fafb;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  font-size: 16px;
}
.accordion-header::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #7c3aed;
  transition: 0.3s;
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 24px;
  color: #555;
  font-size: 15px;
}
.accordion-item.active .accordion-content {
  max-height: 200px;
  padding-bottom: 20px;
}
.accordion-item.active .accordion-header::after {
  transform: translateY(-50%) rotate(45deg);
}

/* 激励方案 */
.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.reward-card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.reward-card h3 {
  color: #7c3aed;
  margin-bottom: 12px;
  font-size: 18px;
}
.reward-card p {
  color: #555;
  line-height: 1.7;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 30px;
  background: #fff;
  color: #888;
  font-size: 14px;
  border-top: 1px solid #eee;
}

/* 响应式 */
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 22px;
  }
  .page-header h1 {
    font-size: 26px;
  }
}