/* ===== 全局样式 ===== */
:root {
    --theme-color: #0062c0;
    --theme-color-dark: #004e96;
    --theme-color-light: #008cd6;
    --text-color: #333;
    --text-gray: #666;
    --bg-gray: #f5f7fa;
    --bg-white: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background: var(--bg-gray);
    font-size: 14px;
    line-height: 1.6;
}

a { color: var(--text-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--theme-color); }

/* 2026-10-09 用户反馈页面宽窄不统一：
   .container 原为 1750px，比全站基准 1550px 宽 200px，是「同一页里页脚/正文
   左右不对齐」的元凶之一（页脚已在 share/footer.blade.php 一并统一）。
   现统一到 1550px + 40px 内边距，与 nav.css 的 .ub-container 严格一致。 */
.container { max-width: 1550px; margin: 0 auto; padding: 0 40px; }
@media (max-width:1400px){ .container { padding-left:28px; padding-right:28px; } }
@media (max-width:1200px){ .container { padding-left:22px; padding-right:22px; max-width:100%; } }
@media (max-width:1040px){ .container { padding-left:16px; padding-right:16px; } }
@media (max-width:767px){ .container { padding-left:20px; padding-right:20px; } }

/* ===== 导航间距 ===== */
.ub-header-b .nav a{padding:0 60px;font-size:18px;font-weight:bold}

/* ===== 顶部工具栏 ===== */
.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
    font-size: 12px;
    color: var(--text-gray);
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: var(--text-gray); margin: 0 8px; }
.top-bar a:hover { color: var(--theme-color); }
.top-bar .region-dropdown { position: relative; display: inline-block; }
.top-bar .region-list { display: inline-flex; flex-wrap: wrap; gap: 2px; }

/* ===== 主导航 ===== */
.main-header {
    background: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-header .container {
    display: flex;
    align-items: center;
    height: 70px;
}
.main-header .logo { flex-shrink: 0; }
.main-header .logo img { height: 50px; }
.main-header .nav-list {
    display: flex;
    list-style: none;
    margin-left: 40px;
    flex: 1;
}
.main-header .nav-list > li { position: relative; }
.main-header .nav-list > li > a {
    display: block;
    padding: 0 18px;
    height: 70px;
    line-height: 70px;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}
.main-header .nav-list > li > a:hover,
.main-nav .nav-list > li > a.active { color: var(--theme-color); }

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.header-right .hotline {
    color: var(--theme-color);
    font-size: 18px;
    font-weight: bold;
}
.header-right .hotline i { margin-right: 5px; }
.header-right .btn-consult {
    background: var(--theme-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
}
.header-right .btn-consult:hover { background: var(--theme-color-dark); color: #fff; }

/* ===== 轮播/Hero区 ===== */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    overflow: hidden;
}
.hero-section .container {
    display: flex;
    align-items: center;
    min-height: 400px;
}
.hero-content { flex: 1; color: #fff; }
.hero-content h1 { font-size: 42px; font-weight: 700; margin-bottom: 15px; }
.hero-content p { font-size: 16px; line-height: 1.8; margin-bottom: 25px; opacity: 0.9; }
.hero-content .btn-hero {
    display: inline-block;
    background: #fff;
    color: var(--theme-color);
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}
.hero-content .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.hero-image { flex: 0 0 400px; }

/* ===== 通用区块标题 ===== */
.section-title {
    text-align: center;
    padding: 50px 0 30px;
}
.section-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
}
.section-title p {
    font-size: 14px;
    color: var(--text-gray);
}
.section-title .more-link {
    float: right;
    margin-top: -30px;
    color: var(--theme-color);
    font-size: 14px;
}

/* ===== 课程卡片区 ===== */
.courses-section { background: var(--bg-white); padding: 0 0 50px; }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card {
    background: var(--bg-gray);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.course-card .icon { font-size: 48px; margin-bottom: 15px; }
.course-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.course-card p { font-size: 13px; color: var(--text-gray); margin-bottom: 15px; }
.course-card .btn-trial {
    display: inline-block;
    border: 1px solid var(--theme-color);
    color: var(--theme-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s;
}
.course-card .btn-trial:hover { background: var(--theme-color); color: #fff; }

/* ===== 为什么选择我们 ===== */
.features-section {
    background: var(--bg-gray);
    padding: 0 0 50px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.feature-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}
.feature-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.feature-item .icon { font-size: 40px; margin-bottom: 15px; }
.feature-item h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--text-gray); }
.consult-btn-wrap { text-align: center; margin-top: 30px; }
.consult-btn-wrap .btn-consult-lg {
    display: inline-block;
    background: var(--theme-color);
    color: #fff;
    padding: 14px 45px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
}
.consult-btn-wrap .btn-consult-lg:hover { background: var(--theme-color-dark); }

/* ===== 资讯动态 ===== */
.news-section { background: var(--bg-white); padding: 0 0 50px; }
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
}
.news-tabs a {
    display: inline-block;
    padding: 8px 25px;
    border-radius: 20px;
    background: var(--bg-gray);
    font-size: 14px;
    cursor: pointer;
}
.news-tabs a:hover,
.news-tabs a.active { background: var(--theme-color); color: #fff; }
.news-list { display: grid; gap: 10px; }
.news-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.news-item:hover { background: var(--bg-gray); }
.news-item .title { flex: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item .date { color: var(--text-gray); font-size: 12px; flex-shrink: 0; margin-left: 15px; }
.news-more { text-align: center; margin-top: 20px; }
.news-more a {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 8px 35px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===== Footer — vango 风格 ===== */
#foot .m {
  max-width: 1660px;
  width: 100%;
  padding: 0 70px;
  margin: 0 auto;
}

#foot {
  background: #0062c0;
  padding-top: 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
#foot .m {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* 三栏标题 */
.foot_tt { margin-bottom: 1.5rem; }
.foot_tt h3 { font-size: 1.375rem; color: #fff; margin-bottom: 0.3rem; font-weight: bold; }
.foot_tt span { font-size: 1rem; text-transform: capitalize; display: inline-block; margin-left: 0.5rem; opacity: 0.7; font-weight: normal; }
.foot_tt i { display: block; width: 20px; height: 3px; background: #f9d100; margin-top: 0.5rem; }

/* 网站导航 */
.foot_nav .box { font-size: 0.875rem; line-height: 2rem; margin: 0 -0.5rem; }
.foot_nav .box a { padding: 0 0.5rem; color: rgba(255,255,255,0.9); text-decoration: none; transition: color 0.3s; }
.foot_nav .box a:hover { color: #f9d100; }

/* 联系我们 */
.foot_contact { width: 550px; max-width: 45%; overflow: hidden; position: relative; margin-right: 2.5rem; }
.foot_contact ul { padding-bottom: 1.5rem; margin: 0; list-style: none; }
.foot_contact ul li { padding: 0 2rem; }
.foot_contact ul li p { font-size: 0.875rem; line-height: 1.875rem; }
.foot_contact .swiper-scrollbar { height: 1px !important; background: #3585ce; }
.foot_contact .swiper-scrollbar-drag { background: #f9d100; height: 5px; top: -2px; left: -6px; }

/* 关注我们 */
.foot_follow { position: relative; flex-shrink: 0; }
.foot_follow .ewmbox { display: flex; gap: 1rem; }
.foot_follow .ewm { text-align: center; }
.foot_follow .ewm img { display: block; margin: 0 auto; width: 85px; height: 85px; border-radius: 5px; border: 2px solid rgba(255,255,255,0.3); background: #fff; }
.foot_follow .ewm p { font-size: 0.8125rem; margin-top: 0.5rem; color: rgba(255,255,255,0.8); }

/* 版权区 */
.copyright { background: #106ec5; padding: 8px 0; margin-top: 2.5rem; position: relative; z-index: 2; }
.copyright .m { line-height: 1.75rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: #fff; }

/* 友情链接下拉 */
.foot_link { position: relative; width: 197px; }
.foot_link .dt { height: 2.5rem; line-height: 2.5rem; position: relative; z-index: 2; cursor: pointer; font-size: 0.8125rem; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.foot_link .dt i { width: 1.25rem; display: flex; align-items: center; transition: transform 0.3s; }
.foot_link .dt.on i { transform: rotate(180deg); }
.foot_link .dd { padding: 15px 20px; color: #fff; font-size: 0.875rem; line-height: 2rem; background: #217cd1; position: absolute; left: 0; bottom: 100%; width: 100%; display: none; border-radius: 0 0.75rem 0 0; z-index: 1; }
.foot_link .dd.show { display: block; }
.foot_link .dd a { display: block; font-size: 0.8125rem; color: #fff; transition: color 0.3s; text-decoration: none; }
.foot_link .dd a:hover { color: #f9d100; }

/* 波浪动画 */
#foot .waveWrapper { top: -7rem; }
.waveWrapper { overflow: hidden; position: absolute; left: 0; right: 0; top: 0; margin: auto; height: 7.5rem; z-index: 1; pointer-events: none; }
.waveWrapperInner { position: absolute; width: 100%; overflow: hidden; height: 100%; bottom: -1px; }
.bgTop    { z-index: 15; opacity: 0.5; }
.bgMiddle { z-index: 10; opacity: 0.7; }
.bgBottom { z-index: 5; }
.wave { position: absolute; left: 0; width: 200%; height: 100%; background-repeat: repeat no-repeat; background-position: 0 bottom; transform-origin: center bottom; }
.waveTop    { background-size: 50% 80px;  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z' fill='%23ffffff' opacity='0.15'/%3E%3C/svg%3E"); }
.waveMiddle { background-size: 50% 100px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C300,100 600,0 900,50 C1050,75 1150,20 1200,40 L1200,120 L0,120 Z' fill='%23ffffff' opacity='0.25'/%3E%3C/svg%3E"); }
.waveBottom { background-size: 50% 120px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,30 C200,90 500,10 700,60 C900,110 1100,20 1200,50 L1200,120 L0,120 Z' fill='%23ffffff' opacity='0.2'/%3E%3C/svg%3E"); }

@keyframes move_wave {
  0%   { transform: translateX(0) translateZ(0) scaleY(1); }
  50%  { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}
.waveAnimation .waveTop    { animation: move_wave 6s linear infinite; }
.waveAnimation .waveMiddle { animation: move_wave 10s linear infinite; }
.waveAnimation .waveBottom { animation: move_wave 15s linear infinite; }

/* ===== 内页Banner ===== */
.page-banner {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dark) 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}
.page-banner h1 { font-size: 30px; font-weight: 700; margin-bottom: 8px; }
.page-banner p { font-size: 14px; opacity: 0.85; }

/* ===== 面包屑 ===== */
.breadcrumb { padding: 12px 0; font-size: 13px; color: var(--text-gray); background: transparent; }
.breadcrumb a { color: var(--text-gray); margin: 0 5px; }
.breadcrumb a:hover { color: var(--theme-color); }
.breadcrumb .sep { color: #ccc; margin: 0 5px; }
.breadcrumb .current { color: var(--theme-color); }

/* ===== 内容区域 ===== */
.main-content { padding: 30px 0; }
.main-content .container { display: flex; gap: 30px; }
.content-left { flex: 1; min-width: 0; }
.content-right { width: 320px; flex-shrink: 0; }

.content-panel {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

/* ===== 侧边栏FAQ ===== */
.sidebar-box {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-box .head {
    background: var(--theme-color);
    color: #fff;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
}
.sidebar-box .body { padding: 12px 0; }
.sidebar-box .body a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--text-color);
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s;
}
.sidebar-box .body a:last-child { border-bottom: none; }
.sidebar-box .body a:hover { background: var(--bg-gray); color: var(--theme-color); padding-left: 22px; }

/* ===== 列表页样式 ===== */
.article-list { padding: 20px; }
.article-item {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}
.article-item:hover { background: var(--bg-gray); margin: 0 -20px; padding: 18px 20px; }
.article-item:last-child { border-bottom: none; }
.article-item .thumb { width: 180px; height: 120px; border-radius: 6px; overflow: hidden; flex-shrink: 0; margin-right: 20px; }
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-item .info { flex: 1; }
.article-item .info .title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.article-item .info .summary { font-size: 13px; color: var(--text-gray); margin-top: 8px; }
.article-item .info .meta { margin-top: 8px; font-size: 12px; color: #999; }

/* ===== 详情页样式 ===== */
.detail-content { padding: 30px; }
.detail-content h1 { font-size: 22px; font-weight: 700; }
.detail-content .detail-meta { font-size: 12px; color: #999; padding: 12px 0; border-bottom: 1px solid #f0f0f0; margin-bottom: 20px; }
.detail-content .detail-body { font-size: 15px; line-height: 1.8; }

/* ===== 教师卡片 ===== */
.teacher-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 0 50px; }
.teacher-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.teacher-card .avatar { width: 100%; height: 200px; object-fit: cover; }
.teacher-card .info { padding: 15px; }
.teacher-card .info .name { font-size: 16px; font-weight: 600; }
.teacher-card .info .title-tag { font-size: 12px; color: var(--theme-color); margin-top: 3px; }
.teacher-card .info .desc { font-size: 12px; color: var(--text-gray); margin-top: 8px; }

/* ===== 分页 ===== */
.pagination { padding: 20px; text-align: center; }
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 14px;
    margin: 0 3px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
}
.pagination a:hover { border-color: var(--theme-color); color: var(--theme-color); }
.pagination .active { background: var(--theme-color); color: #fff; border-color: var(--theme-color); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .teacher-grid { grid-template-columns: repeat(2, 1fr); }
    #foot .m { padding: 0 30px; flex-flow: wrap; }
    .foot_nav { display: block; width: 50%; }
    .foot_contact { width: 100%; max-width: 100%; margin-right: 0; margin-bottom: 2rem; order: 3; }
    .foot_follow { width: 50%; order: 2; }
    .foot_follow .ewmbox { flex-direction: column; align-items: center; }
    .copyright .m { flex-direction: column; text-align: center; gap: 10px; }
    .copyright .m > div:first-child { line-height: 1.5; }
    .foot_link { width: auto; }
    .foot_link .dt { justify-content: center; gap: 5px; }
    .main-content .container { flex-direction: column; }
    .content-right { width: 100%; }
    .article-item { flex-direction: column; }
    .article-item .thumb { width: 100%; height: 180px; margin-right: 0; margin-bottom: 10px; }
    .main-header .nav-list { display: none; }
}

@media (max-width: 1200px) {
  #foot .m { padding: 0 30px; }
}
@media (max-width: 1100px) {
  .foot_nav { display: none; }
}
@media (max-width: 480px) {
  #foot .m { padding: 0 15px; }
  .foot_nav, .foot_follow { width: 100%; margin-bottom: 2rem; }
  .foot_follow .ewmbox { flex-direction: row; justify-content: center; }
  .foot_tt h3 { font-size: 1.2rem; }
  .foot_contact ul li { padding: 0 1rem; }
}
