﻿/* ============================================
   广州顶正职业技能培训学校 - 样式表
   ============================================ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: #1a1a1a; line-height: 1.3; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .25s;
    white-space: nowrap;
}
.btn-lg { padding: 13px 32px; font-size: 16px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: #c8232c; color: #fff; border-color: #c8232c; }
.btn-primary:hover { background: #a81d25; border-color: #a81d25; }
.btn-outline { background: transparent; color: #c8232c; border-color: #c8232c; }
.btn-outline:hover { background: #c8232c; color: #fff; }
.btn-light { background: #fff; color: #c8232c; }
.btn-light:hover { background: #f5f5f5; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: #c8232c; }

/* ========== Top Bar ========== */
.topbar {
    background: #1a3a6b;
    color: #c5d4e8;
    font-size: 13px;
    padding: 7px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #ffd97a; }
.topbar a:hover { color: #fff; }
.topbar .sep { margin: 0 10px; opacity: .5; }

/* ========== Header ========== */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #c8232c, #e84048);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}
.logo-text strong { display: block; font-size: 20px; color: #1a3a6b; }
.logo-text em { display: block; font-size: 10px; color: #888; font-style: normal; letter-spacing: .5px; }

.nav { display: flex; gap: 4px; }
.nav a {
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    position: relative;
}
.nav a:hover, .nav a.active { color: #c8232c; }
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: #c8232c;
    border-radius: 2px;
}
.header-cta { padding: 10px 22px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: .3s;
}

/* ========== Hero ========== */
.hero {
    background: linear-gradient(135deg, #0f2a52 0%, #1a3a6b 50%, #234d8a 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(200,35,44,.2) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-text h1 { color: #fff; font-size: 38px; margin-bottom: 12px; }
.hero-sub { font-size: 20px; color: #ffd97a; margin-bottom: 16px; font-weight: 500; }
.hero-desc { font-size: 15px; color: #c5d4e8; margin-bottom: 28px; max-width: 600px; }
.hero-desc strong { color: #fff; }
.hero-btns { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 30px; color: #ffd97a; font-weight: 700; }
.hero-stats span { font-size: 13px; color: #c5d4e8; }

.hero-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    color: #333;
    box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.hero-card h3 { font-size: 20px; margin-bottom: 18px; text-align: center; color: #1a3a6b; }
.hero-form { display: flex; flex-direction: column; gap: 12px; }
.hero-form input, .hero-form select,
.side-form input, .contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.hero-form input:focus, .hero-form select:focus,
.side-form input:focus, .contact-form input:focus,
.contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: #c8232c;
}
.hero-form-tip { text-align: center; font-size: 12px; color: #999; margin-top: 10px; }

/* ========== Sections ========== */
.section { padding: 56px 0; }
.section-bg { background: #f6f8fb; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 {
    font-size: 30px;
    color: #1a3a6b;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
}
.section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 3px;
    background: #c8232c;
    border-radius: 2px;
}
.section-head p { color: #666; margin-top: 12px; font-size: 15px; }
.section-more { text-align: center; margin-top: 36px; }

/* ========== Category Grid ========== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.cat-card {
    background: #fff;
    border: 1px solid #e8ecf2;
    border-radius: 10px;
    padding: 28px 22px;
    transition: all .3s;
}
.cat-card:hover {
    box-shadow: 0 10px 30px rgba(26,58,107,.12);
    border-color: #c8232c;
    transform: translateY(-4px);
}
.cat-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #1a3a6b, #234d8a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 16px;
}
.cat-card h3 { font-size: 18px; margin-bottom: 14px; color: #1a3a6b; }
.cat-card ul { margin-bottom: 14px; }
.cat-card li { padding: 5px 0; font-size: 14px; color: #555; }
.cat-card li a:hover { color: #c8232c; }
.cat-more { color: #c8232c; font-size: 14px; font-weight: 500; }
.cat-more:hover { color: #a81d25; }

/* ========== Course Cards ========== */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.course-grid-4 { grid-template-columns: repeat(4, 1fr); }
.course-card {
    background: #fff;
    border-radius: 10px;
    padding: 26px 20px;
    text-align: center;
    position: relative;
    border: 1px solid #eef1f5;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    box-shadow: 0 10px 28px rgba(26,58,107,.12);
    transform: translateY(-4px);
    border-color: #c8232c;
}
.course-tag {
    position: absolute;
    top: 12px; right: 12px;
    background: #c8232c;
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 20px;
}
.course-icon {
    width: 64px; height: 64px;
    margin: 0 auto 14px;
    background: #fef0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.course-card h3 { font-size: 17px; margin-bottom: 10px; }
.course-card h3 a:hover { color: #c8232c; }
.course-summary {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}
.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px dashed #eee;
    margin-bottom: 14px;
    font-size: 13px;
    color: #888;
}
.course-price { color: #c8232c; font-weight: 600; font-size: 15px; }

/* ========== Advantages ========== */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.adv-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eef1f5;
    transition: all .3s;
}
.adv-card:hover {
    box-shadow: 0 8px 24px rgba(26,58,107,.1);
    transform: translateY(-3px);
}
.adv-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    background: #fef0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}
.adv-card h3 { font-size: 18px; margin-bottom: 8px; color: #1a3a6b; }
.adv-card p { color: #666; font-size: 14px; }

/* ========== About Section ========== */
.section-about { background: #f6f8fb; }
.about-inner {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: center;
}
.about-text h2 { font-size: 28px; color: #1a3a6b; margin-bottom: 18px; }
.about-text p { color: #555; margin-bottom: 14px; }
.about-text strong { color: #c8232c; }
.about-list { margin: 20px 0 28px; }
.about-list li { padding: 6px 0; color: #444; }
.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-badge {
    width: 260px; height: 260px;
    background: linear-gradient(135deg, #c8232c, #e84048);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 16px 48px rgba(200,35,44,.3);
}
.badge-num { font-size: 64px; font-weight: 700; line-height: 1; }
.badge-label { font-size: 18px; margin-top: 8px; }

/* ========== FAQ ========== */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #eef1f5;
}
.faq-q {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #1a3a6b;
}
.faq-q-icon {
    width: 26px; height: 26px;
    background: #c8232c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.faq-q > span:nth-child(2) { flex: 1; }
.faq-toggle {
    font-size: 22px;
    color: #999;
    transition: transform .3s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); color: #c8232c; }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 18px; }
.faq-a { display: flex; gap: 12px; }
.faq-a-icon {
    width: 26px; height: 26px;
    background: #1a3a6b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
}
.faq-a p { color: #555; font-size: 14px; }

/* ========== CTA ========== */
.cta {
    background: linear-gradient(135deg, #c8232c, #a81d25);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.cta h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.9); margin-bottom: 26px; font-size: 16px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ========== Footer ========== */
.footer { background: #0f2038; color: #a8b5c8; padding-top: 48px; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo strong { color: #fff; font-size: 16px; }
.footer-desc { font-size: 13px; line-height: 1.8; color: #8a9bb3; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 28px; height: 2px;
    background: #c8232c;
}
.footer-col ul li { padding: 5px 0; font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-contact li { color: #8a9bb3; }
.footer-bottom {
    border-top: 1px solid #1c2f4d;
    padding: 16px 0;
    font-size: 13px;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ========== Float Bar ========== */
.float-bar {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.float-item {
    background: #c8232c;
    color: #fff;
    border-radius: 8px;
    padding: 10px 14px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(200,35,44,.35);
    transition: all .25s;
    min-width: 76px;
}
.float-item:hover { background: #a81d25; transform: translateX(-3px); }
.float-icon { display: block; font-size: 20px; }
.float-label { display: block; font-size: 12px; margin-top: 2px; }

/* ========== Page Banner ========== */
.page-banner {
    background: linear-gradient(135deg, #0f2a52, #1a3a6b);
    color: #fff;
    padding: 44px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.page-banner p { color: #c5d4e8; font-size: 14px; }
.page-banner a { color: #ffd97a; }

/* ========== Filter Bar ========== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a {
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
    background: #f0f2f5;
}
.filter-tabs a:hover, .filter-tabs a.active {
    background: #c8232c;
    color: #fff;
}
.filter-search { display: flex; gap: 8px; }
.filter-search input {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    width: 200px;
}
.filter-search input:focus { outline: none; border-color: #c8232c; }
.filter-search .btn { padding: 8px 20px; border-radius: 20px; }

.empty { text-align: center; padding: 60px 20px; color: #888; }
.empty .btn { margin-top: 16px; }

/* ========== Course Detail ========== */
.course-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    margin-bottom: 48px;
}
.detail-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #eef1f5;
}
.detail-head { display: flex; gap: 20px; align-items: flex-start; }
.detail-icon {
    width: 80px; height: 80px;
    background: #fef0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    flex-shrink: 0;
}
.detail-head h1 { font-size: 26px; color: #1a3a6b; margin-bottom: 10px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: 13px; color: #666; }
.tag-cat { background: #e8f0fe; color: #1a3a6b; padding: 3px 12px; border-radius: 4px; }
.tag-hot { background: #fef0f0; color: #c8232c; padding: 3px 12px; border-radius: 4px; }
.detail-summary { color: #555; font-size: 15px; }
.detail-title {
    font-size: 20px;
    color: #1a3a6b;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #c8232c;
    display: inline-block;
}
.detail-content li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #444;
    border-bottom: 1px dashed #f0f0f0;
}
.detail-content li:last-child { border-bottom: none; }
.detail-card p { margin-bottom: 12px; color: #444; }
.detail-card strong { color: #c8232c; }

.course-side { position: sticky; top: 96px; align-self: start; }
.side-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 18px;
    border: 1px solid #eef1f5;
}
.side-card h3 {
    font-size: 17px;
    color: #1a3a6b;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.side-cta { text-align: center; background: linear-gradient(135deg, #fafbfd, #f0f4fa); }
.side-price { font-size: 14px; color: #666; margin-bottom: 6px; }
.side-price strong { color: #c8232c; font-size: 26px; }
.side-cta p { font-size: 13px; color: #666; margin-bottom: 14px; }
.side-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.side-list li { padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.side-list li:last-child { border-bottom: none; }
.side-list a { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.side-list a:hover { color: #c8232c; }
.side-icon { font-size: 18px; }
.side-contact p { padding: 4px 0; font-size: 14px; color: #555; }

/* ========== About Page ========== */
.about-page-text h2 { font-size: 26px; color: #1a3a6b; margin-bottom: 18px; }
.about-page-text h3 { font-size: 20px; color: #1a3a6b; margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid #c8232c; }
.about-page-text p { color: #444; margin-bottom: 14px; }
.about-page-text strong { color: #c8232c; }
.about-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}
.about-cat {
    background: #f6f8fb;
    border-radius: 8px;
    padding: 18px 22px;
}
.about-cat h4 { color: #c8232c; margin-bottom: 8px; font-size: 16px; }
.about-cat li { padding: 4px 0; font-size: 14px; }
.about-cat li a:hover { color: #c8232c; }

/* ========== Contact Page ========== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}
.contact-info h2, .contact-form-wrap h2 {
    font-size: 24px;
    color: #1a3a6b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #c8232c;
    display: inline-block;
}
.contact-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}
.contact-icon {
    width: 48px; height: 48px;
    background: #fef0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.contact-item h3 { font-size: 16px; color: #1a3a6b; margin-bottom: 4px; }
.contact-item p { color: #555; font-size: 14px; }
.contact-form-wrap {
    background: #f6f8fb;
    border-radius: 10px;
    padding: 32px;
}
.form-row { margin-bottom: 16px; }
.form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.form-row label span { color: #c8232c; }
.form-row textarea { resize: vertical; }
.form-tip { text-align: center; font-size: 12px; color: #999; margin-top: 10px; }

.alert { padding: 14px 18px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.alert-success { background: #e8f7ee; color: #1a7f37; border: 1px solid #b7e4c7; }
.alert-error { background: #fef0f0; color: #c8232c; border: 1px solid #f5c6cb; }

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-card { max-width: 420px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .course-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .about-inner { grid-template-columns: 1fr; }
    .about-visual { display: none; }
    .course-detail { grid-template-columns: 1fr; }
    .course-side { position: static; }
    .contact-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 78px; left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px;
        box-shadow: 0 6px 16px rgba(0,0,0,.1);
        gap: 0;
    }
    .nav.open { display: flex; }
    .nav a { padding: 14px 18px; border-bottom: 1px solid #f0f0f0; border-radius: 0; }
    .nav a.active::after { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: flex; }

    .topbar-right .sep { display: none; }
    .hero { padding: 40px 0; }
    .hero-text h1 { font-size: 26px; }
    .hero-sub { font-size: 16px; }
    .hero-stats { gap: 20px; }
    .hero-stats strong { font-size: 24px; }

    .section { padding: 40px 0; }
    .section-head h2 { font-size: 24px; }

    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .adv-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }

    .detail-head { flex-direction: column; }
    .about-cats { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 22px 18px; }

    .float-bar { right: 10px; bottom: 16px; }
    .float-item { padding: 8px 10px; min-width: 62px; }
    .float-label { font-size: 11px; }

    .filter-search input { width: 140px; }
}

@media (max-width: 480px) {
    .course-grid { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr; }
    .hero-btns .btn { flex: 1; }
    .hero-stats { gap: 16px; }
    .hero-stats strong { font-size: 22px; }
}
