/* ============================================
   马来西亚留学官网样式表
   兼容性约束：无 Grid / Flex / gap / CSS 变量
   布局仅使用 float + inline-block
   ============================================ */

/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 16px;
    color: #333;
    background: #f7f8fa;
    line-height: 1.7;
}
a { text-decoration: none; color: #1a5c9e; }
img { border: 0; max-width: 100%; }
ul, li { list-style: none; }
.clearfix { zoom: 1; }
.clearfix:after { content: ""; display: block; clear: both; }

.container {
    width: 1100px;
    max-width: 96%;
    margin: 0 auto;
}

/* ========== 顶部导航（吸顶） ========== */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-space { height: 66px; }
.header .logo {
    float: left;
    font-size: 22px;
    font-weight: bold;
    color: #1a5c9e;
    line-height: 64px;
}
.header .logo span { color: #e67e22; }
.nav {
    float: right;
}
.nav li { float: left; }
.nav a {
    display: block;
    line-height: 64px;
    padding: 0 18px;
    color: #333;
    font-size: 16px;
}
.nav a:hover { color: #1a5c9e; }

/* ========== Banner ========== */
.banner {
    background: #1a5c9e;
    color: #fff;
    text-align: center;
    padding: 70px 0 80px;
}
.banner h1 {
    font-size: 40px;
    margin-bottom: 14px;
}
.banner p {
    font-size: 18px;
    margin-bottom: 32px;
    color: #d7e6f5;
}
.banner .btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 18px;
    border-radius: 4px;
    margin: 0 8px;
}
.btn-primary { background: #e67e22; color: #fff; }
.btn-ghost { border: 1px solid #fff; color: #fff; }
.btn-primary:hover { background: #cf6d15; color: #fff; }

/* ========== 通用板块 ========== */
.section { padding: 55px 0; }
.section-title {
    text-align: center;
    font-size: 28px;
    color: #1a5c9e;
    margin-bottom: 10px;
}
.section-sub {
    text-align: center;
    color: #999;
    margin-bottom: 40px;
}

/* ========== 优势 ========== */
/* 注意：float 卡片每行总宽（宽+边距-负边距）必须 ≤97%，防止取整换行 */
.adv-list { margin-left: -2%; }
.adv-item {
    float: left;
    width: 23%;
    min-height: 190px;
    margin-left: 2%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 26px 18px;
    text-align: center;
}
.adv-item:hover { border-color: #1a5c9e; }
.adv-item .num {
    display: block;
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #eef4fb;
    color: #1a5c9e;
    font-size: 24px;
    font-weight: bold;
}
.adv-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}
.adv-item p { font-size: 14px; color: #777; }

/* ========== 服务流程 ========== */
.flow-bg { background: #fff; }
.flow-list { margin-left: -2%; }
.flow-item {
    float: left;
    width: 14.4%;
    margin-left: 2%;
    text-align: center;
}
.flow-item .step {
    display: block;
    width: 46px;
    height: 46px;
    line-height: 46px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #e67e22;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}
.flow-item h4 { font-size: 16px; margin-bottom: 6px; }
.flow-item p { font-size: 13px; color: #777; }

/* ========== 热门院校 ========== */
.school-list { margin-left: -2%; }
.school-item {
    float: left;
    width: 31%;
    margin-left: 2%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 22px;
}
.school-item h3 {
    font-size: 18px;
    color: #1a5c9e;
    margin-bottom: 8px;
}
.school-item .tag {
    display: inline-block;
    font-size: 12px;
    color: #e67e22;
    border: 1px solid #e67e22;
    border-radius: 3px;
    padding: 1px 8px;
    margin-bottom: 10px;
}
.school-item p { font-size: 14px; color: #777; }
.school-item { min-height: 150px; }

/* ========== 新闻动态 ========== */
.news-list { margin-left: -2%; }
.news-item {
    float: left;
    width: 31%;
    margin-left: 2%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 22px;
}
.news-item:hover { border-color: #1a5c9e; }
.news-item .date {
    display: block;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}
.news-item h3 {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 8px;
}
.news-item h3 a { color: #333; }
.news-item h3 a:hover { color: #1a5c9e; }
.news-item p { font-size: 14px; color: #777; }
.news-item { min-height: 175px; }
.news-more { text-align: center; margin-top: 26px; }

/* ========== 常见问题 ========== */
.faq-bg { background: #fff; }
.faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #fdfdfd;
}
.faq-q {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    position: relative;
}
.faq-q em {
    position: absolute;
    right: 18px;
    top: 50%;
    margin-top: -9px;
    font-style: normal;
    color: #1a5c9e;
    font-size: 22px;
}
.faq-a {
    display: none;
    padding: 0 18px 14px;
    font-size: 14px;
    color: #777;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q em { color: #e67e22; }

/* ========== 联系我们 ========== */
.contact {
    background: #1a5c9e;
    color: #fff;
    text-align: center;
    padding: 50px 0;
}
.contact h2 { font-size: 26px; margin-bottom: 10px; }
.contact p { font-size: 16px; color: #d7e6f5; margin-bottom: 24px; }
.contact .phone {
    font-size: 26px;
    font-weight: bold;
    color: #fff;
    display: block;
    margin-bottom: 6px;
}

/* ========== 页脚 ========== */
.footer {
    background: #123f6d;
    color: #b8c9dc;
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
}
.footer a { color: #b8c9dc; }

/* ========== 返回顶部 ========== */
.back-top {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 60px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #1a5c9e;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    z-index: 99;
}

/* ========== 数据亮点 ========== */
.stats { background: #123f6d; padding: 34px 0; }
.stats-list { margin-left: -2%; }
.stats-item { float: left; width: 22%; margin-left: 2%; text-align: center; }
.stats-item strong {
    display: block;
    font-size: 32px;
    color: #f5a623;
    line-height: 1.4;
}
.stats-item span { font-size: 14px; color: #b8c9dc; }

/* ========== 申请条件 ========== */
.req-item {
    float: left;
    width: 31%;
    margin-left: 2%;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 24px;
}
.req-item h3 {
    font-size: 18px;
    color: #1a5c9e;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #d8d8d8;
}
.req-item ul { margin-left: 20px; }
.req-item li {
    list-style: disc;
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
}

/* ========== 费用参考 ========== */
.fee-bg { background: #fff; }
.fee-wrap { overflow-x: auto; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
    border: 1px solid #dfe6ee;
    padding: 12px 10px;
    font-size: 14px;
    text-align: center;
}
.fee-table th { background: #1a5c9e; color: #fff; font-weight: normal; }
.fee-table tr.alt td { background: #f5f9fd; }
.fee-note { font-size: 13px; color: #999; margin-top: 12px; }

/* ========== 留学知识 ========== */
.knowledge-item {
    float: left;
    width: 31%;
    margin-left: 2%;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 22px;
    min-height: 180px;
}
.knowledge-item:hover { border-color: #1a5c9e; }
.knowledge-item .idx { color: #e67e22; font-weight: bold; margin-right: 6px; }
.knowledge-item h3 { font-size: 17px; color: #333; margin-bottom: 8px; }
.knowledge-item p { font-size: 14px; color: #666; }

/* ========== 复制微信号 ========== */
.copy-wx {
    display: inline-block;
    margin-left: 8px;
    padding: 0 10px;
    height: 24px;
    line-height: 24px;
    font-size: 13px;
    color: #1a5c9e;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: 1px;
    -webkit-tap-highlight-color: transparent;
}
.copy-wx:hover { background: #e8f1fa; }
.copy-tip {
    display: none;
    margin-left: 8px;
    padding: 0 8px;
    height: 24px;
    line-height: 24px;
    font-size: 13px;
    color: #fff;
    background: #2e8b57;
    border-radius: 3px;
    vertical-align: 1px;
}

/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
    .header .logo { float: none; display: block; line-height: 48px; text-align: center; }
    .nav { float: none; text-align: center; border-top: 1px solid #eee; }
    .nav li { float: none; display: inline-block; }
    .nav a { line-height: 40px; padding: 0 10px; font-size: 14px; }
    .banner { padding: 40px 0; }
    .banner h1 { font-size: 26px; }
    .banner p { font-size: 15px; }
    .banner .btn { padding: 10px 24px; font-size: 15px; margin: 4px; }
    .section { padding: 36px 0; }
    .section-title { font-size: 22px; }
    .adv-item, .school-item, .news-item, .req-item, .knowledge-item { float: none; width: 100%; margin-left: 0; }
    .adv-item, .news-item, .req-item, .knowledge-item { margin-bottom: 14px; }
    .adv-item, .school-item, .news-item, .knowledge-item { min-height: 0; }
    .flow-item { width: 30%; margin-bottom: 18px; }
    .header-space { height: 90px; }
    .stats-item { width: 46%; margin-bottom: 16px; }
    .fee-table th, .fee-table td { padding: 8px 6px; font-size: 13px; }
}
