/* ===== 新疆兴科安全职业培训有限公司 官网样式 ===== */
:root {
    --blue: #004E9F;
    --blue-dark: #0035A7;
    --blue-deep: #013A78;
    --orange: #F7803C;
    --red: #ED1F1F;
    --text: #333;
    --text-2: #666;
    --text-3: #999;
    --line: #E6E9EE;
    --bg: #F6F7F9;
    --radius: 6px;
    --shadow: 0 6px 22px rgba(0, 40, 90, .10);
    --shadow-sm: 0 2px 10px rgba(0, 40, 90, .06);
    --w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", "微软雅黑", Tahoma, Simsun, sans-serif;
    color: var(--text);
    background: #fff;
    font-size: 14px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button, input { font-family: inherit; }

.wrap { width: var(--w); margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 顶部条 ---------- */
.topbar {
    height: 36px;
    line-height: 36px;
    background: #F5F6F8;
    border-bottom: 1px solid #EDEFF3;
    font-size: 12px;
    color: var(--text-2);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; }
.topbar .welcome b { color: var(--blue); font-weight: 600; }
.topbar .links a { position: relative; padding: 0 12px; }
.topbar .links a + a::before {
    content: "";
    position: absolute; left: 0; top: 12px;
    width: 1px; height: 12px; background: #D8DDE5;
}

/* ---------- 头部 ---------- */
.header {
    padding: 22px 0;
    background: #fff;
}
.header .wrap { display: flex; align-items: center; }

.logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.logo-mark {
    width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
    background: #fff; border: 1px solid #F0ECE6;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 40, 90, .14);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text h1 {
    font-size: 24px; font-weight: 700; letter-spacing: 1px;
    color: var(--blue); line-height: 1.25;
}
.logo-text p {
    font-size: 12px; color: var(--text-3); letter-spacing: 2px; margin-top: 2px;
}

.header-right { margin-left: auto; display: flex; align-items: center; gap: 28px; }

.search {
    display: flex; width: 320px; height: 42px;
    border: 1px solid #D9DEE7; border-radius: 4px; overflow: hidden;
    background: #fff;
}
.search input {
    flex: 1; border: 0; outline: none; padding: 0 14px; font-size: 13px; color: var(--text);
}
.search input::placeholder { color: #A7AFBD; }
.search button {
    width: 58px; border: 0; background: var(--blue); color: #fff;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.search button:hover { background: var(--blue-dark); }

.header-apps { display: flex; gap: 22px; }
.header-apps a { text-align: center; font-size: 12px; color: var(--text-2); }
.header-apps a:hover { color: var(--blue); }
.header-apps .ico {
    width: 34px; height: 34px; margin: 0 auto 4px;
    border-radius: 50%; background: #EEF4FC;
    display: flex; align-items: center; justify-content: center;
    transition: transform .5s, background .3s;
}
.header-apps a:hover .ico { transform: rotateY(360deg); background: #E2EDFB; }
.header-apps svg { width: 18px; height: 18px; fill: var(--blue); }

/* 手机学习：悬停显示站点二维码 */
.header-apps a.has-qr { position: relative; }
.qr-pop {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    z-index: 90;
}
.header-apps a.has-qr:hover .qr-pop { display: block; }
.qr-pop .qr-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 12px 12px 9px;
    width: 158px;
    position: relative;
}
.qr-pop .qr-card::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}
.qr-pop img { width: 132px; height: 132px; margin: 0 auto 6px; }
.qr-pop em {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: var(--text-2);
    white-space: nowrap;
}

/* ---------- 主导航 ---------- */
.nav { background: var(--blue); box-shadow: 0 2px 8px rgba(0, 60, 130, .18); }
.nav .wrap { display: flex; align-items: center; }
.nav a {
    display: block; height: 48px; line-height: 48px;
    padding: 0 26px; color: #fff; font-size: 15px; letter-spacing: 1px;
    position: relative;
}
.nav a:hover, .nav a.active { background: var(--blue-deep); color: #fff; }
.nav a.active::after {
    content: ""; position: absolute; left: 26px; right: 26px; bottom: 0;
    height: 3px; background: #FFC15E;
}
.nav .nav-right { margin-left: auto; }

/* ---------- Banner ---------- */
.banner { position: relative; height: 400px; background: #0B2B52; overflow: hidden; }
.banner .wrap { position: relative; height: 100%; }
.banner-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .92;
}
.banner::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 32, 70, .88) 0%, rgba(0, 45, 95, .55) 45%, rgba(0, 60, 120, .15) 100%);
}
.banner-inner {
    position: relative; z-index: 3; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding-left: 280px; color: #fff;
}
.banner-inner .tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; letter-spacing: 3px; color: #FFD79B; margin-bottom: 16px;
}
.banner-inner .tag::before { content: ""; width: 26px; height: 2px; background: #FFD79B; }
.banner-inner h2 {
    font-size: 46px; line-height: 1.25; font-weight: 700; letter-spacing: 3px;
    text-shadow: 0 2px 16px rgba(0, 20, 45, .35);
}
.banner-inner h2 em { font-style: normal; color: #FFC15E; }
.banner-inner p {
    margin-top: 16px; font-size: 16px; letter-spacing: 2px; color: rgba(255, 255, 255, .88);
}
.banner-inner .banner-btns { margin-top: 28px; display: flex; gap: 14px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 30px; border-radius: 4px;
    font-size: 15px; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent;
    transition: all .2s;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(247, 128, 60, .35); }
.btn-primary:hover { background: #E96F2B; color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* 左侧课程导航面板 */
.course-panel {
    position: absolute; left: 0; top: 0; width: 250px; height: 400px;
    background: #fff; z-index: 6; box-shadow: 6px 0 20px rgba(0, 30, 70, .16);
    display: flex; flex-direction: column;
}
.course-panel .panel-hd {
    height: 52px; line-height: 52px; padding: 0 20px;
    background: var(--blue-dark); color: #fff; font-size: 16px; letter-spacing: 2px;
    display: flex; align-items: center; gap: 10px;
}
.course-panel .panel-hd svg { width: 18px; height: 18px; fill: #fff; }
.course-panel ul { flex: 1; padding: 8px 0; overflow: hidden; }
.course-panel li > a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 20px; font-size: 14px; color: #2B3444;
}
.course-panel li > a::after {
    content: ""; width: 6px; height: 6px;
    border-top: 1.5px solid #AEB8C8; border-right: 1.5px solid #AEB8C8;
    transform: rotate(45deg);
}
.course-panel li > a:hover { background: #F2F7FE; color: var(--blue); }
.course-panel li > a:hover::after { border-color: var(--blue); }

/* 公告条 */
.notice-bar {
    position: absolute; left: 250px; right: 0; bottom: 0; z-index: 5;
    height: 40px; background: rgba(0, 0, 0, .42);
    display: flex; align-items: center; padding: 0 18px; gap: 12px;
    color: #fff; font-size: 13px; backdrop-filter: blur(2px);
}
.notice-bar .label {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    color: #FFD79B; letter-spacing: 1px;
}
.notice-bar .label svg { width: 16px; height: 16px; fill: #FFD79B; }
.notice-list { flex: 1; overflow: hidden; height: 40px; position: relative; }
.notice-list li {
    position: absolute; inset: 0; display: flex; align-items: center;
    opacity: 0; transform: translateY(100%); transition: all .5s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-list li.on { opacity: 1; transform: translateY(0); }
.notice-list a { color: #fff; }
.notice-list a:hover { color: #FFD79B; }

/* ---------- 快捷入口 ---------- */
.quick { padding: 26px 0 6px; background: #fff; }
.quick .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.quick-item {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; transition: all .25s;
}
.quick-item:hover { border-color: #C9DCF5; box-shadow: var(--shadow); transform: translateY(-3px); }
.quick-item .q-ico {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.quick-item .q-ico svg { width: 22px; height: 22px; fill: #fff; }
.q1 .q-ico { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.q2 .q-ico { background: linear-gradient(135deg, #F59E0B, #EA8C1B); }
.q3 .q-ico { background: linear-gradient(135deg, #10B981, #059669); }
.q4 .q-ico { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.q5 .q-ico { background: linear-gradient(135deg, #EF4444, #DC2626); }
.quick-item h4 { font-size: 15px; color: #1F2937; font-weight: 600; }
.quick-item p { font-size: 12px; color: var(--text-3); margin-top: 1px; }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; }
.section.gray { background: var(--bg); }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.sec-hd h3 { font-size: 26px; font-weight: 600; color: #1B2536; letter-spacing: 1px; position: relative; padding-left: 14px; }
.sec-hd h3::before {
    content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
    width: 4px; border-radius: 2px; background: var(--blue);
}
.sec-hd .sub { font-size: 13px; color: var(--text-3); margin-left: 12px; letter-spacing: 1px; }
.sec-hd .more { font-size: 13px; color: var(--text-2); }
.sec-hd .more:hover { color: var(--blue); }
.sec-hd.center { flex-direction: column; align-items: center; gap: 8px; }
.sec-hd.center h3 { padding-left: 0; }
.sec-hd.center h3::before { display: none; }
.sec-hd.center .sub { margin-left: 0; }

/* ---------- 资讯 + 开课 ---------- */
.news-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px;
}
.panel-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #EEF1F5; }
.panel-hd h4 { font-size: 18px; font-weight: 600; color: #1B2536; display: flex; align-items: center; gap: 8px; }
.panel-hd h4::before { content: ""; width: 4px; height: 16px; background: var(--orange); border-radius: 2px; }
.panel-hd .more { font-size: 12px; color: var(--text-3); }

.news-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #EFF2F6; }
.news-list li:last-child { border-bottom: 0; }
.news-list .dot { width: 5px; height: 5px; border-radius: 50%; background: #B9C4D4; flex-shrink: 0; }
.news-list .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #3A4353; }
.news-list li:hover .t { color: var(--blue); }
.news-list .d { font-size: 12px; color: #A6B0BF; flex-shrink: 0; }

.course-list li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed #EFF2F6; }
.course-list li:last-child { border-bottom: 0; }
.course-list .thumb {
    width: 96px; height: 64px; border-radius: 4px; overflow: hidden; flex-shrink: 0;
    background: #E9EFF7;
}
.course-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-list .info { flex: 1; min-width: 0; }
.course-list h5 { font-size: 14px; font-weight: 600; color: #2B3444; margin-bottom: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.course-list h5:hover { color: var(--blue); }
.course-list .meta { font-size: 12px; color: #9AA5B6; display: flex; gap: 14px; }
.course-list .price { color: var(--orange); font-weight: 600; }

/* ---------- 开班卡片 ---------- */
.class-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.class-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: all .25s;
}
.class-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #CFE0F5; }
.class-card .cover { height: 158px; position: relative; background: #E9EFF7; overflow: hidden; }
.class-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.class-card:hover .cover img { transform: scale(1.06); }
.class-card .cover .badge {
    position: absolute; left: 12px; top: 12px;
    background: rgba(0, 53, 167, .9); color: #fff; font-size: 12px;
    padding: 3px 10px; border-radius: 3px;
}
.class-card .body { padding: 16px 16px 18px; }
.class-card h4 {
    font-size: 15px; font-weight: 600; color: #1F2937; line-height: 1.5; height: 45px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.class-card .line { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #98A2B3; }
.class-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.class-card .price { color: var(--orange); font-weight: 700; font-size: 18px; }
.class-card .price small { font-size: 12px; font-weight: 400; color: #A6B0BF; margin-left: 2px; }
.class-card .join {
    height: 32px; padding: 0 16px; border: 1px solid var(--blue); color: var(--blue);
    border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center;
    transition: all .2s;
}
.class-card .join:hover { background: var(--blue); color: #fff; }

/* ---------- 培训工种 ---------- */
.trade-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.trade-tabs button {
    height: 40px; padding: 0 22px; border: 1px solid #DCE3ED; background: #fff;
    border-radius: 20px; font-size: 14px; color: #4A5568; cursor: pointer;
    transition: all .2s;
}
.trade-tabs button:hover { border-color: var(--blue); color: var(--blue); }
.trade-tabs button.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(0, 78, 159, .25); }

.trade-body {
    display: grid; grid-template-columns: 420px 1fr; gap: 30px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.trade-body .pic { height: 250px; border-radius: 4px; overflow: hidden; background: #E9EFF7; }
.trade-body .pic img { width: 100%; height: 100%; object-fit: cover; }
.trade-body h4 { font-size: 20px; font-weight: 600; color: #1B2536; margin-bottom: 10px; }
.trade-body .desc { color: var(--text-2); margin-bottom: 16px; }
.trade-body .points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.trade-body .points li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #4A5568; }
.trade-body .points li::before {
    content: ""; width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px;
    background: #E8F1FE; border-radius: 50%;
    border: 3px solid #C9DDF8;
}
.trade-body .actions { margin-top: 20px; display: flex; gap: 12px; }

/* ---------- 学习流程 ---------- */
.process { display: flex; align-items: flex-start; justify-content: space-between; position: relative; margin-top: 34px; }
.process::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 34px; height: 2px;
    background: linear-gradient(90deg, #CFE0F5, #9CC2EE, #CFE0F5);
}
.step { position: relative; z-index: 2; text-align: center; width: 18%; }
.step .num {
    width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
    background: #fff; border: 2px solid #CFE0F5; color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 60, 130, .10);
}
.step:hover .num { background: var(--blue); color: #fff; border-color: var(--blue); }
.step h4 { font-size: 16px; font-weight: 600; color: #1B2536; margin-bottom: 4px; }
.step p { font-size: 12px; color: #94A0B2; line-height: 1.6; }

/* ---------- 资质 ---------- */
.qual-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.qual-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; text-align: center; transition: all .25s;
}
.qual-card:hover { box-shadow: var(--shadow); }
.qual-card .imgbox {
    height: 380px; background: #F7F9FC; border: 1px solid #EDF1F7; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in;
}
.qual-card .imgbox img { max-height: 100%; width: auto; object-fit: contain; }
.qual-card h4 { margin-top: 14px; font-size: 16px; font-weight: 600; color: #1B2536; }
.qual-card p { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.qual-info {
    margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 30px;
}
.qual-info h4 { font-size: 18px; font-weight: 600; color: #1B2536; margin-bottom: 14px; }
.qual-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qual-table th, .qual-table td { border: 1px solid #E9EDF3; padding: 10px 14px; text-align: left; vertical-align: top; }
.qual-table th { background: #F6F9FD; color: #41506A; font-weight: 600; width: 130px; white-space: nowrap; }

/* ---------- 优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 24px; text-align: center; transition: all .25s;
}
.adv-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.adv-card .ico {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 16px;
    background: #EEF5FE; display: flex; align-items: center; justify-content: center;
}
.adv-card .ico svg { width: 30px; height: 30px; fill: var(--blue); }
.adv-card h4 { font-size: 17px; font-weight: 600; color: #1B2536; margin-bottom: 8px; }
.adv-card p { font-size: 13px; color: #8A95A6; line-height: 1.8; }

/* ---------- 联系 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-card h4 { font-size: 20px; font-weight: 600; color: #1B2536; margin-bottom: 18px; }
.contact-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #EEF1F5; }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci {
    width: 40px; height: 40px; border-radius: 10px; background: #EEF5FE; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.contact-item .ci svg { width: 19px; height: 19px; fill: var(--blue); }
.contact-item .ct { font-size: 12px; color: #98A2B3; }
.contact-item .cv { font-size: 15px; color: #2B3444; margin-top: 2px; line-height: 1.6; }
.contact-map {
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    background: linear-gradient(140deg, #E8F1FD, #F7FAFF);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px; text-align: center;
}
.contact-map svg { width: 68px; height: 68px; fill: #9CC2EE; margin-bottom: 16px; }
.contact-map h4 { font-size: 17px; color: #1B2536; margin-bottom: 6px; }
.contact-map p { font-size: 13px; color: #8A95A6; line-height: 1.9; }

/* ---------- 页脚 ---------- */
.footer { background: #444547; color: #C8CDD5; font-size: 13px; }
.footer-top { padding: 34px 0 26px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-top .wrap { display: flex; gap: 30px; }
.footer-nav { flex: 1; display: flex; gap: 60px; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-col a { display: block; line-height: 2.1; color: #B3B9C2; }
.footer-col a:hover { color: #fff; }
.footer-qr { text-align: center; flex-shrink: 0; }
.footer-qr .qr {
    width: 92px; height: 92px; background: #fff; border-radius: 4px;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
}
.footer-qr .qr svg { width: 66px; height: 66px; fill: #444547; }
.footer-qr p { font-size: 12px; color: #A8AEB8; }
.footer-bot { padding: 16px 0 22px; text-align: center; color: #9DA3AE; font-size: 12px; line-height: 2; }
.footer-bot a { color: #9DA3AE; }
.footer-bot a:hover { color: #fff; }

/* ---------- 悬浮工具条 ---------- */
.rf-bar { position: fixed; right: 18px; bottom: 120px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.rf-bar button {
    width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; color: #5A6678; font-size: 11px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    box-shadow: 0 2px 10px rgba(0, 40, 90, .08); transition: all .2s;
}
.rf-bar button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.rf-bar button svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 图片放大 ---------- */
.lightbox {
    position: fixed; inset: 0; background: rgba(8, 15, 28, .88); z-index: 999;
    display: none; align-items: center; justify-content: center; padding: 40px;
    cursor: zoom-out;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }

/* ---------- 响应式 ---------- */
@media (max-width: 1240px) {
    :root { --w: 100%; }
    .wrap { width: 100%; padding: 0 82px 0 20px; }
    .banner-inner { padding-left: 300px; }
}
@media (max-width: 980px) {
    .header .wrap { flex-wrap: wrap; gap: 16px; }
    .header-right { margin-left: 0; width: 100%; justify-content: space-between; }
    .search { flex: 1; max-width: 420px; }
    .nav .wrap { overflow-x: auto; }
    .nav a { padding: 0 16px; white-space: nowrap; }
    .course-panel { display: none; }
    .banner-inner { padding: 0 30px; }
    .banner-inner h2 { font-size: 32px; }
    .notice-bar { left: 0; }
    .quick .wrap { grid-template-columns: repeat(2, 1fr); }
    .news-row, .qual-wrap, .contact-wrap { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: repeat(2, 1fr); }
    .trade-body { grid-template-columns: 1fr; }
    .trade-body .pic { height: 220px; }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .process { flex-wrap: wrap; gap: 24px; }
    .process::before { display: none; }
    .step { width: 30%; }
    .footer-top .wrap { flex-direction: column; }
    .footer-nav { flex-wrap: wrap; gap: 30px; }
}
@media (max-width: 560px) {
    .header-apps { display: none; }
    .banner { height: 420px; }
    .banner-inner h2 { font-size: 26px; letter-spacing: 1px; }
    .banner-inner p { font-size: 13px; }
    .banner-inner .banner-btns { flex-direction: column; align-items: flex-start; }
    .quick .wrap { grid-template-columns: 1fr; }
    .class-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .step { width: 46%; }
    .trade-tabs button { padding: 0 14px; font-size: 13px; }
    .qual-card .imgbox { height: 240px; }
    .rf-bar { display: none; }
}

/* ================= 内页通用 ================= */
.page-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(120deg, #04254C 0%, #0A4A8C 55%, #0B67C4 100%);
    padding: 44px 0 42px;
}
.page-hero::after {
    content: ""; position: absolute; right: -120px; top: -160px;
    width: 460px; height: 460px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .04);
}
.page-hero .breadcrumb {
    font-size: 13px; color: rgba(255, 255, 255, .62); margin-bottom: 12px;
}
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .62); }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { margin: 0 8px; }
.page-hero h2 { font-size: 32px; font-weight: 600; letter-spacing: 3px; }
.page-hero p { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .72); letter-spacing: 1px; }

.page-main { padding: 46px 0 60px; background: var(--bg); }
.page-main .qual-card { background: #fff; }
.page-main .qual-card .imgbox { height: 470px; }

.section-title-sm {
    font-size: 20px; font-weight: 600; color: #1B2536;
    margin: 34px 0 16px; padding-left: 12px; position: relative;
}
.section-title-sm::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 4px; border-radius: 2px; background: var(--blue);
}
.section-title-sm:first-child { margin-top: 0; }

.notice-card {
    background: #FFF9EF; border: 1px solid #FBE3BE; border-radius: 6px;
    padding: 16px 20px; color: #8A5A12; font-size: 13px; line-height: 1.9;
}
.notice-card b { color: #B45309; }

.qual-actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span {
    padding: 7px 18px; border: 1px solid #DCE3ED; background: #fff;
    border-radius: 16px; font-size: 13px; color: #4A5568;
}
.chips span.hl { background: #EEF5FE; border-color: #C9DCF5; color: var(--blue); font-weight: 600; }

/* ================= 登录 / 注册 ================= */
.auth-section { padding: 56px 0 70px; background: var(--bg); }
.auth-wrap {
    display: grid; grid-template-columns: 430px 1fr;
    max-width: 1000px; margin: 0 auto; background: #fff;
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 40, 90, .10);
}
.auth-side {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(150deg, #04305F 0%, #0A4A8C 55%, #0B67C4 100%);
    padding: 50px 42px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side::after {
    content: ""; position: absolute; right: -110px; bottom: -140px;
    width: 320px; height: 320px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .05);
}
.auth-side .badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 3px; color: #FFD79B; margin-bottom: 16px;
}
.auth-side h3 { font-size: 26px; line-height: 1.5; letter-spacing: 2px; margin-bottom: 14px; }
.auth-side p { font-size: 13px; line-height: 1.9; color: rgba(255, 255, 255, .72); }
.auth-side ul { margin-top: 26px; }
.auth-side li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: rgba(255, 255, 255, .82); padding: 7px 0;
}
.auth-side li::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: #FFC15E; flex-shrink: 0; margin-top: 8px;
}
.auth-side .side-foot {
    margin-top: 34px; padding-top: 18px; font-size: 12px;
    color: rgba(255, 255, 255, .5); border-top: 1px solid rgba(255, 255, 255, .14);
}

.auth-main { padding: 48px 56px; }
.auth-main h2 { font-size: 24px; color: #1B2536; font-weight: 600; letter-spacing: 1px; }
.auth-main .sub { font-size: 13px; color: #98A2B3; margin: 6px 0 26px; }

.auth-tabs {
    display: flex; gap: 34px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.auth-tabs button {
    position: relative; border: 0; background: none; cursor: pointer;
    font-size: 15px; color: #7A8699; padding: 0 2px 12px;
}
.auth-tabs button.active { color: var(--blue); font-weight: 600; }
.auth-tabs button.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
    height: 2px; background: var(--blue);
}

.auth-panel { display: none; }
.auth-panel.on { display: block; }

.form-item { margin-bottom: 16px; }
.form-item > label {
    display: block; font-size: 13px; color: #4A5568; margin-bottom: 7px;
}
.form-item > label em { color: var(--red); font-style: normal; margin-left: 2px; }
.input-wrap {
    display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px; background: #fff;
    border: 1px solid #DCE3ED; border-radius: 4px;
    transition: border-color .2s, box-shadow .2s;
}
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 78, 159, .08); }
.input-wrap svg { width: 17px; height: 17px; fill: #9AA5B6; flex-shrink: 0; }
.input-wrap input {
    flex: 1; min-width: 0; border: 0; outline: none; background: none;
    font-size: 14px; color: var(--text); height: 100%;
}
.input-wrap input::placeholder { color: #B3BCC9; }
.input-wrap select {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none;
    background: none; font-size: 14px; color: var(--text);
    appearance: none; -webkit-appearance: none; cursor: pointer;
}
.input-wrap .code-btn {
    border: 0; background: none; color: var(--blue); font-size: 13px;
    cursor: pointer; white-space: nowrap; padding-left: 12px;
    border-left: 1px solid #E6EAF1;
}
.input-wrap .code-btn:disabled { color: #A9B3C2; cursor: default; }

.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: #6B7688; margin: 4px 0 20px;
}
.checkbox { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.checkbox input { width: 14px; height: 14px; accent-color: var(--blue); }
.auth-row a { color: var(--blue); }

.btn-block { width: 100%; height: 48px; font-size: 16px; letter-spacing: 2px; }
.form-error {
    display: none; margin: 0 0 14px; padding: 9px 12px; border-radius: 4px;
    background: #FEF1F1; border: 1px solid #FAD4D4; color: #C62828; font-size: 13px;
}
.form-error.on { display: block; }
.form-ok {
    display: none; margin: 0 0 14px; padding: 9px 12px; border-radius: 4px;
    background: #ECFDF3; border: 1px solid #BBF7D0; color: #15803D; font-size: 13px;
}
.form-ok.on { display: block; }

.agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #8A95A6; line-height: 1.7; margin: 2px 0 18px; }
.agree input { margin-top: 3px; accent-color: var(--blue); }
.agree a { color: var(--blue); }

.auth-switch { margin-top: 22px; text-align: center; font-size: 13px; color: #7A8699; }
.auth-switch a { color: var(--blue); font-weight: 600; }

.other-login { margin-top: 26px; text-align: center; }
.other-login .line {
    position: relative; color: #B3BCC9; font-size: 12px; margin-bottom: 16px;
}
.other-login .line::before,
.other-login .line::after {
    content: ""; position: absolute; top: 50%; width: 36%; height: 1px; background: #EDF0F5;
}
.other-login .line::before { left: 0; }
.other-login .line::after { right: 0; }
.other-login .icons { display: flex; justify-content: center; gap: 16px; }
.other-login .icons a {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.other-login .icons a:hover { border-color: var(--blue); background: #F2F7FE; }
.other-login .icons svg { width: 20px; height: 20px; fill: #7A8699; }

/* 注册页表单两列 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; max-width: 560px; }
    .auth-side { padding: 34px 30px; }
    .auth-side ul { display: none; }
    .auth-main { padding: 34px 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .page-main .qual-card .imgbox { height: 340px; }
}

/* ================= 常见问题（可展开） ================= */
.faq-item { border-bottom: 1px dashed #EEF1F5; }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 0; cursor: pointer; font-size: 14px; color: #2B3444;
}
.faq-q .no { color: var(--blue); font-weight: 600; flex-shrink: 0; margin-right: 8px; }
.faq-q .txt { flex: 1; }
.faq-q .arrow { width: 16px; height: 16px; fill: #A6B0BF; flex-shrink: 0; transition: transform .2s; }
.faq-q:hover { color: var(--blue); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--blue); font-weight: 600; }
.faq-a { display: none; padding: 0 0 15px 30px; font-size: 13px; color: #7A8699; line-height: 1.95; }
.faq-item.open .faq-a { display: block; }

/* ================= 培训项目（商品） ================= */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #CFE0F5; }
.product-card .cover { height: 168px; background: #E9EFF7; overflow: hidden; position: relative; }
.product-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .cover img { transform: scale(1.05); }
.product-card .cat {
    position: absolute; left: 12px; top: 12px; background: rgba(0, 53, 167, .88);
    color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 3px;
}
.product-card .body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.product-card h4 { font-size: 16px; color: #1B2536; font-weight: 600; line-height: 1.5; }
.product-card .sum { font-size: 12px; color: #98A2B3; margin-top: 6px; flex: 1; }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.product-card .price { color: var(--orange); font-size: 20px; font-weight: 700; }
.product-card .old { color: #A6B0BF; font-size: 12px; text-decoration: line-through; }
.product-card .stock { margin-left: auto; font-size: 12px; color: #98A2B3; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.product-card .foot .btn { height: 34px; padding: 0 18px; font-size: 13px; }

.product-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.product-filter button {
    height: 38px; padding: 0 20px; border: 1px solid #DCE3ED; background: #fff;
    border-radius: 19px; font-size: 13px; color: #4A5568; cursor: pointer; transition: all .2s;
}
.product-filter button:hover { border-color: var(--blue); color: var(--blue); }
.product-filter button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ================= 移动端适配 ================= */
@media (max-width: 980px) {
    .nav .wrap {
        overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .nav .wrap::-webkit-scrollbar { display: none; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .topbar { height: auto; line-height: 1.6; padding: 6px 0; }
    .topbar .wrap { flex-direction: column; gap: 4px; align-items: flex-start; }
    .topbar .links { display: flex; flex-wrap: wrap; }
    .topbar .links a { padding: 0 8px; }
    .topbar .links a + a::before { display: none; }

    .header { padding: 14px 0; }
    .header .wrap { gap: 12px; }
    .logo { gap: 10px; }
    .logo-mark { width: 46px; height: 46px; }
    .logo-text h1 { font-size: 16px; line-height: 1.35; letter-spacing: 0; }
    .logo-text p { font-size: 10px; letter-spacing: 1px; }
    .header-right { gap: 12px; }
    .search { width: 100%; height: 38px; }
    .header-apps { display: none; }

    .nav a { height: 44px; line-height: 44px; padding: 0 15px; font-size: 14px; }
    .nav a.active::after { left: 15px; right: 15px; }
    .nav .nav-right { margin-left: 0; }

    .banner { height: 360px; }
    .banner-inner { padding: 0 18px; }
    .banner-inner .tag { font-size: 11px; letter-spacing: 2px; margin-bottom: 10px; }
    .banner-inner h2 { font-size: 25px; letter-spacing: 1px; }
    .banner-inner p { font-size: 12px; letter-spacing: 1px; margin-top: 10px; }
    .banner-inner .banner-btns { margin-top: 18px; gap: 10px; }
    .banner-inner .btn { height: 40px; padding: 0 20px; font-size: 14px; }
    .notice-bar { left: 0; height: 34px; font-size: 12px; padding: 0 12px; }
    .notice-list { height: 34px; }
    .notice-bar .label { display: none; }

    .section { padding: 30px 0; }
    .sec-hd { flex-wrap: wrap; gap: 6px; }
    .sec-hd h3 { font-size: 20px; }
    .sec-hd .sub { width: 100%; margin-left: 0; font-size: 12px; }
    .quick .wrap { gap: 10px; }
    .quick-item { padding: 14px; }
    .quick-item .q-ico { width: 40px; height: 40px; }

    .panel { padding: 16px 14px; }
    .news-row { gap: 14px; }
    .class-grid { gap: 14px; }
    .class-card .cover { height: 150px; }
    .trade-tabs { gap: 8px; }
    .trade-tabs button { height: 34px; padding: 0 13px; font-size: 12px; }
    .trade-body { padding: 16px; gap: 18px; }
    .trade-body .pic { height: 190px; }
    .trade-body h4 { font-size: 17px; }
    .trade-body .points { grid-template-columns: 1fr; }

    .process { gap: 18px 0; }
    .step { width: 33%; }
    .step .num { width: 52px; height: 52px; font-size: 18px; margin-bottom: 8px; }
    .step h4 { font-size: 14px; }
    .step p { font-size: 11px; }

    .qual-card { padding: 12px; }
    .qual-card .imgbox { height: 300px; }
    .qual-info { padding: 16px 14px; }
    .qual-table th, .qual-table td { padding: 8px 10px; font-size: 12px; }

    .adv-grid { gap: 12px; }
    .adv-card { padding: 22px 16px; }
    .contact-card { padding: 20px 16px; }
    .contact-item .cv { font-size: 13px; }

    .product-grid { grid-template-columns: 1fr; }
    .product-filter { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .product-filter button { flex-shrink: 0; }

    .footer-nav { gap: 26px; }
    .footer-col h5 { font-size: 13px; }
    .footer-col a { font-size: 12px; }
    .footer-bot { font-size: 11px; }

    .auth-section { padding: 26px 0 40px; }
    .uc-section { padding: 24px 0 40px; }
    .uc-card { padding: 18px 14px; }
    .enroll-item { flex-wrap: wrap; gap: 12px; }
    .enroll-item .right { width: 100%; text-align: left; display: flex; align-items: center; gap: 12px; }
    .class-row { flex-wrap: wrap; }
    .class-row .right { width: 100%; text-align: left; }
    .page-hero { padding: 26px 0 24px; }
    .page-hero h2 { font-size: 24px; letter-spacing: 1px; }
    .page-hero p { font-size: 12px; }
}

/* 窄屏溢出修正：1fr 轨道允许收缩，避免 nowrap 标题撑破版心 */
@media (max-width: 980px) {
    .news-row { grid-template-columns: minmax(0, 1fr); }
    .uc-grid, .contact-wrap, .qual-wrap { grid-template-columns: minmax(0, 1fr); }
    .panel { min-width: 0; }
    .news-list .t { min-width: 0; }
    .course-list .info, .class-row .info, .enroll-item .info { min-width: 0; }
    /* 资质表格改为容器内横向滚动，避免撑破整页 */
    .qual-info { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .qual-table { min-width: 720px; }
    /* 登录/注册表单列宽可收缩 */
    .auth-wrap { grid-template-columns: minmax(0, 1fr); }
    .auth-main, .auth-side { min-width: 0; }
    /* 导航右侧渐隐，提示可横向滑动 */
    .nav { position: relative; }
    .nav::after {
        content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 38px;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .30));
        pointer-events: none;
    }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .news-row { grid-template-columns: minmax(0, 1fr); }
    .course-list .t, .news-list .t { white-space: normal; }
    .qual-table { min-width: 640px; }
}

/* ================= 资讯列表 ================= */
.news-item { padding: 18px 0; border-bottom: 1px dashed #EEF1F5; }
.news-item:last-child { border-bottom: 0; }
.ni-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ni-cat {
    display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
    border-radius: 3px; background: #EEF5FE; color: var(--blue); font-size: 12px;
}
.ni-date { font-size: 12px; color: #A6B0BF; }
.ni-title { font-size: 16px; color: #1B2536; font-weight: 600; line-height: 1.6; display: block; }
.ni-title:hover { color: var(--blue); }
.ni-sum { margin-top: 6px; font-size: 13px; color: #7A8699; line-height: 1.9; }
.ni-meta {
    margin-top: 8px; display: flex; gap: 16px; font-size: 12px; color: #98A2B3;
}
.ni-link { color: var(--blue); }
@media (max-width: 640px) {
    .ni-title { font-size: 15px; }
    .ni-sum { font-size: 12px; }
}
