/* ==================== 首页样式 ==================== */ .header-nav-bar { background-color: #2d6cde; } .header-nav-inner { display: flex; gap: 40px; } .nav-item { position: relative; color: #fff; font-weight: bold; padding: 0; } .nav-item.active { color: #fff; } .nav-item.active::before { content: ''; position: absolute; bottom: -7px; left: 50%; width: 10px; height: 2px; background-color: #fff; transform: translatex(-50%); } /* banner区域 */ .banner-section { background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 50%, #e6f3ff 100%); padding: 48px 0; } .banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; gap: 20px; align-items: stretch; } /* 考试入口卡片 */ .exam-entry-card { flex: 1; min-width: 0; background-color: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; } .exam-entry-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } .exam-entry-title { font-size: 20px; font-weight: 600; color: #101010; margin: 0; } .exam-entry-subtitle { font-size: 13px; color: #999; text-decoration: none; } .exam-entry-subtitle:hover { color: #2a7de1; } /* 滚动区域 */ .exam-entry-scroll { flex: 1; min-height: 0; max-height: 320px; overflow-y: auto; padding-right: 8px; } .exam-entry-scroll::-webkit-scrollbar { width: 6px; } .exam-entry-scroll::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; } .exam-entry-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; } .exam-entry-scroll::-webkit-scrollbar-thumb:hover { background: #ccc; } /* 考试分类 */ .exam-category { margin-bottom: 20px; } .exam-category:last-child { margin-bottom: 0; } .exam-category-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .category-icon { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; } .category-name { font-size: 16px; font-weight: 600; color: #0e0e0e; } /* 考试标签网格 */ .exam-tag-grid { display: flex; flex-wrap: wrap; gap: 10px; } .exam-tag { position: relative; display: inline-flex; align-items: center; padding: 8px 12px; background-color: #f3f4f5; border-radius: 6px; font-size: 13px; color: #555; text-decoration: none; transition: all 0.2s; white-space: nowrap; } .exam-tag:hover { background-color: #1a82ff; color: #fff; } /* .exam-tag.active { background-color: #1a82ff; color: #fff; } */ .exam-tag.disabled { color: #ccc; background-color: #fafafa; cursor: not-allowed; } .exam-tag.disabled:hover { background-color: #fafafa; color: #ccc; } /* hot角标 */ .hot-badge { position: absolute; top: 0; right: 0; background: linear-gradient(135deg, #ff6b6b, #e4393c); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 0 6px 0 6px; line-height: 1; } /* 考试日历卡片 */ .exam-calendar-card { width: 330px; flex-shrink: 0; background-color: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; } .calendar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; } .study-tools-card .card-title { margin: 0 0 32px; } .card-title { font-size: 18px; font-weight: 600; color: #222; margin: 0; } .calendar-subtitle { font-size: 13px; color: #999; } /* 滚动区域 */ .calendar-scroll { flex: 1; min-height: 0; max-height: 320px; overflow-y: auto; padding-right: 8px; } .calendar-scroll::-webkit-scrollbar { width: 6px; } .calendar-scroll::-webkit-scrollbar-track { background: #f5f5f5; border-radius: 3px; } .calendar-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; } .calendar-scroll::-webkit-scrollbar-thumb:hover { background: #ccc; } /* 时间轴列表 */ .timeline-list { position: relative; padding-left: 8px; } .timeline-list::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 1px; border-left: 1px dashed #d0d0d0; } .timeline-item { position: relative; padding-left: 18px; margin-bottom: 20px; } .timeline-item:last-child { margin-bottom: 0; } .timeline-dot { position: absolute; left: 0; top: 6px; width: 10px; height: 10px; background-color: #2a7de1; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px #2a7de1; z-index: 1; } .timeline-content { min-width: 0; } .timeline-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; } .exam-name-tag { flex: 1; display: inline-block; padding: 6px 12px; background-color: #dce7ff; border-radius: 4px; font-size: 14px; font-weight: 500; color: #005acf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 状态标签 */ .status-tag { flex-shrink: 0; font-size: 12px; font-weight: 500; padding: 2px 0; } .status-soon { color: #e4393c; } .status-signing { color: #f59e0b; } .status-wait { color: #10b981; } /* 时间信息 */ .timeline-info { padding-left: 4px; } .info-row { display: flex; font-size: 13px; line-height: 1.8; } .info-label { color: #2a303a; flex-shrink: 0; } .info-value { color: #2a303a; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* 常用工具 */ .study-tools-card { width: 330px; flex-shrink: 0; background-color: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); display: flex; flex-direction: column; } .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; } .tool-item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #393f4a; font-size: 15px; padding: 8px 4px; border-radius: 6px; transition: all 0.2s; cursor: pointer; } .tool-item:hover { background-color: #f5f8ff; color: #2a7de1; } .tool-icon { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; } .tool-name { text-align: center; } .app-download { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background-color: #f5f5f5; border-radius: 4px; font-size: 12px; color: #666; text-decoration: none; } .app-download:hover { background-color: #e8f0fe; color: #2a7de1; } .app-icon { font-size: 14px; } /* ==================== 主体内容区 ==================== */ .home-main-wrapper { padding: 40px 0; background-color: #f5f5f5; } .home-main-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; } /* 每一行 */ .main-row { display: flex; gap: 60px; align-items: flex-start; background-color: #fff; } /* 左侧考试板块 */ .main-exam-section { flex: 1; min-width: 0; border-radius: 8px; padding: 20px 20px 10px; } .main-exam-section:last-child { margin-bottom: 0; } .main-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .main-section-left { display: flex; align-items: center; gap: 24px; } .main-section-title { font-size: 18px; font-weight: 600; color: #0e0e0e; margin: 0; } .main-section-links { display: flex; align-items: center; font-size: 13px; } .section-link { color: #666; text-decoration: none; transition: color 0.2s; } .section-link:hover { color: #2a7de1; } .link-divider { color: #e0e0e0; margin: 0 8px; } .main-section-more { font-size: 16px; color: #666; text-decoration: none; } .main-section-more:hover { color: #1a6bc9; } /* 板块标签 */ .main-section-tabs { display: flex; gap: 8px; margin-bottom: 44px; flex-wrap: wrap; } .main-tab { padding: 6px 14px; background-color: #f5f5f5; border-radius: 4px; font-size: 13px; color: #666; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .main-tab:hover { background-color: #e8f0fe; color: #2a7de1; } .main-tab.active { background:linear-gradient( 90deg, #33a6ff 0%, #1a82ff 100%); color: #fff; } /* 板块tab内容面板 */ .main-tab-pane { display: none; } .main-tab-pane.active { display: block; } /* 两列新闻 */ .news-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; } .news-col-item { min-width: 0; } .news-list-simple { list-style: none; padding: 0; margin: 0; } .news-list-simple li { /* padding: 5px 0; */ font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; } .news-list-simple a { color: #393f4a; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; } .news-list-simple a:hover { color: #2a7de1; } .news-list-simple a.hot-link { color: #2a7de1; } .news-list-simple .news-date { color: #949698; font-size: 16px; flex-shrink: 0; } /* 右侧边栏卡片 */ .sidebar-card { width: 300px; flex-shrink: 0; background-color: #fff; border-radius: 8px; padding: 20px; } .sidebar-tab-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; } .sidebar-tabs { display: flex; gap: 0; } .sidebar-tab { margin-right: 20px; font-size: 16px; color: #393f4a; cursor: pointer; transition: all 0.2s; position: relative; } .sidebar-tab:hover { color: #666; } .sidebar-tab.active { color: #005acf; font-weight: 600; } /* .sidebar-tab.active::after { content: ""; position: absolute; bottom: -11px; left: 0; right: 0; height: 2px; background-color: #005acf; } */ .sidebar-more { font-size: 15px; color: #666; text-decoration: none; } .sidebar-more:hover { color: #005acf; } /* tab切换面板 */ .tab-pane { display: none; } .tab-pane.active { display: block; } /* 资料下载列表 */ .download-list { list-style: none; padding: 0; margin: 0; } .download-item { display: flex; align-items: center; gap: 8px; margin-bottom: 28px; } .download-item:last-child { border-bottom: none; margin-bottom: 0; } .download-icon { flex-shrink: 0; width: 18px; height: 18px; object-fit: contain; } .download-name { flex: 1; min-width: 0; font-size: 15px; color: #393f4a; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; } .download-name:hover { color: #2a7de1; } .download-action { flex-shrink: 0; color: #999; font-size: 14px; } /* 大家都在问列表 */ .qa-list { list-style: none; padding: 0; margin: 0; } .qa-item { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; } .qa-item:last-child { border-bottom: none; } .qa-num { flex-shrink: 0; width: 22px; height: 22px; line-height: 22px; text-align: center; font-size: 12px; font-weight: 600; color: #999; background-color: #f5f5f5; border-radius: 4px; } .qa-num.num-red { color: #e4393c; background-color: #fef0f0; } .qa-question { flex: 1; min-width: 0; font-size: 15px; color: #393f4a; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qa-question:hover { color: #2a7de1; } /* 课程卡片 */ .course-card { padding: 12px 12px 16px; border-radius: 8px; overflow: hidden; margin-bottom: 16px; background-color: #f4f5f8; } .course-img-link { display: block; } .course-img { display: block; width: 100%; height: auto; } .course-info { margin-top: 16px; } .course-title { font-size: 16px; color: #393f4a; margin-bottom: 18px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .course-card:hover .course-title { color: #2a7de1; } .course-tag { display: inline-block; padding: 2px 8px; color: #c57412; border-radius: 4px; font-size: 12px; margin-bottom: 12px; line-height: 1.4; background-color: #f9ede1; } .course-bottom { display: flex; align-items: center; justify-content: space-between; } .course-subtitle { flex: 1; min-width: 0; font-size: 13px; color: #949698; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .course-hot { flex-shrink: 0; font-size: 13px; color: #fb7b6d; margin-left: 10px; } /* ==================== 精品课程推荐 ==================== */ .course-banner-section { padding: 30px 0; background-color: #fff; margin-top: 24px; } .course-banner-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; } .course-banner-title { font-size: 26px; font-weight: 600; color: #0e0e0e; margin-bottom: 20px; } .course-banner-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; } .course-banner-item { background-color: #fff; border-radius: 8px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); transition: all 0.3s; display: block; } .course-banner-item:hover { transform: translatey(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); } .course-banner-img { position: relative; width: 100%; padding-top: 56%; overflow: hidden; background-color: #e8f0fe; } .course-banner-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; } .course-banner-tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; background-color: #e4393c; color: #fff; font-size: 11px; border-radius: 3px; } .course-banner-info { padding: 12px; } .course-banner-name { font-size: 15px; font-weight: 600; color: #222; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .course-banner-desc { font-size: 12px; color: #999; margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .course-banner-price { font-size: 16px; font-weight: 600; color: #e4393c; } /* ==================== 移动端样式 ==================== */ @media (max-width: 900px) { /* banner区域 */ .banner-section { padding: 12px 0; padding-top: 100px; } .banner-inner { flex-direction: column; gap: 12px; padding: 0 12px; } /* 移动端考试入口 */ .exam-entry-card { width: 100%; padding: 16px; } .exam-entry-title { font-size: 16px; } .exam-entry-scroll { max-height: 280px; } .exam-tag-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .exam-tag { padding: 8px 10px; font-size: 12px; } .exam-category { margin-bottom: 16px; } /* 移动端考试日历和工具卡片 */ .exam-calendar-card, .study-tools-card { width: 100%; padding: 16px; } .card-title { font-size: 16px; } .calendar-scroll { max-height: 280px; } /* 主体内容区 */ .home-main-wrapper { padding: 12px 0; } .home-main-inner { flex-direction: column; padding: 0 12px; gap: 12px; } .main-row { flex-direction: column; gap: 12px; } .sidebar-card { width: 100%; display: none; } .main-exam-section { padding: 12px 16px; } .main-section-header { flex-wrap: wrap; gap: 8px; } .main-section-title { font-size: 15px; } .main-section-links { display: none; } .main-section-more { font-size: 12px; } .main-section-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; } .main-section-tabs::-webkit-scrollbar { display: none; } .main-tab { flex-shrink: 0; padding: 5px 12px; font-size: 12px; } .news-two-col { grid-template-columns: 1fr; gap: 10px; } .news-list-simple li { padding: 5px 0; font-size: 13px; } /* 精品课程 */ .course-banner-section { padding: 20px 0; display: none; } .course-banner-inner { padding: 0 12px; } .course-banner-title { font-size: 16px; margin-bottom: 12px; } .course-banner-list { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 10px; padding-bottom: 4px; } .course-banner-list::-webkit-scrollbar { display: none; } .course-banner-item { width: 60%; flex-shrink: 0; } .course-banner-name { font-size: 14px; } .course-banner-desc { font-size: 11px; } .course-banner-price { font-size: 14px; } }