/* 张学教育学历提升中心 - 教育绿风格 */

/* ========== 变量定义 ========== */
:root {
    --primary: #2D8B4E;
    --primary-light: #E8F5EC;
    --primary-dark: #1E6B38;
    --secondary: #5BA87A;
    --accent: #F5A623;
    --accent-light: #FFF8EC;

    --bg-page: #F8FAF8;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;

    --text-primary: #1A2E1A;
    --text-secondary: #4A6B4A;
    --text-muted: #8BA88B;
    --text-white: #FFFFFF;

    --border: #D4E8D6;
    --border-light: #E8F5EC;

    --shadow-sm: 0 1px 3px rgba(45, 139, 78, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 139, 78, 0.1);
    --shadow-lg: 0 8px 24px rgba(45, 139, 78, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --font-main: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
    --max-width: 1200px;
}

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-dark);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* ========== 布局工具 ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .section-title {
    font-size: 28px;
}

.section-header .section-subtitle {
    margin-bottom: 0;
}

/* ========== 顶部导航 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
}

.logo-tag {
    font-size: 11px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--text-secondary);
    transition: all 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 500;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 500;
}

.header-phone svg {
    flex-shrink: 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    color: var(--text-primary);
    font-size: 24px;
    padding: 4px;
}

/* ========== 首页 Banner ========== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero.has-banner {
    background-image: none;
}

.hero.has-banner::before,
.hero.has-banner::after {
    display: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.hero-desc {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn-green {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-green:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.hero-visual {
    display: none;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 2px;
}

/* ========== 业务入口卡片 ========== */
.business-section {
    background: white;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.business-card {
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.business-card:hover::before,
.business-card.active::before {
    transform: scaleX(1);
}

.business-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.business-card[data-type="zikao"]::before { background: var(--primary); }
.business-card[data-type="chengkao"]::before { background: #3B82C4; }
.business-card[data-type="kaifang"]::before { background: #8B5CF6; }

.business-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}

.business-card[data-type="zikao"] .business-icon { background: var(--primary-light); }
.business-card[data-type="chengkao"] .business-icon { background: #EBF3FC; }
.business-card[data-type="kaifang"] .business-icon { background: #F3EEFF; }

.business-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.business-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.business-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.business-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.business-card[data-type="zikao"] .feature-dot { background: var(--primary); }
.business-card[data-type="chengkao"] .feature-dot { background: #3B82C4; }
.business-card[data-type="kaifang"] .feature-dot { background: #8B5CF6; }

/* ========== 关于我们 ========== */
.about-section {
    background: var(--bg-page);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.about-highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.about-highlight-text strong {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.about-highlight-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.about-image-area {
    background: linear-gradient(135deg, var(--primary-light), #D0EBD4);
    border-radius: var(--radius-lg);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.about-image-area .big-number {
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.about-image-area .big-label {
    font-size: 16px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ========== 课程资源 ========== */
.courses-section {
    background: white;
}

.courses-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.course-tab {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-secondary);
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.course-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.course-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.course-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

.course-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.course-thumb {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-light), #C8E6CC);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.course-body {
    padding: 16px;
}

.course-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    border-radius: 10px;
    margin-bottom: 8px;
}

.course-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.course-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.course-video-wrap {
    width: 100%;
    background: #111;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.course-video {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== 新闻资讯 ========== */
.news-section {
    background: var(--bg-page);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.news-main-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.2s;
    cursor: pointer;
}

.news-main-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.news-main-img {
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), #C8E6CC);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-main-img span {
    font-size: 60px;
}

.news-main-body {
    padding: 20px;
}

.news-main-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-main-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-main-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.news-category-tag {
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.news-category-tag.zikao { background: var(--primary-light); color: var(--primary); }
.news-category-tag.chengkao { background: #EBF3FC; color: #3B82C4; }
.news-category-tag.kaifang { background: #F3EEFF; color: #8B5CF6; }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    background: white;
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.2s;
}

.news-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}

.news-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
}

.news-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== 联系我们 ========== */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px;
}

.form-success.show {
    display: block;
}

.form-success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.form-success h4 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========== 业务详情页 ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    min-height: 420px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero.has-banner {
    background-image: none;
}

.page-hero.has-banner::before,
.page-hero.has-banner::after {
    display: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero > .container {
    width: 100%;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}

.page-hero-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-hero-tags {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-hero-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    padding: 5px 12px;
    border-radius: 20px;
}

.page-hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    flex-shrink: 0;
}

.page-hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-section {
    background: white;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-intro {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    padding: 24px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.detail-block {
    margin-bottom: 36px;
}

.detail-block h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-block h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.detail-block ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-block li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.detail-block li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.flow-step {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.flow-step::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

.flow-step:last-child::after {
    display: none;
}

.flow-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin: 0 auto 10px;
}

.flow-step-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.flow-step-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.detail-cta {
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-top: 40px;
}

.detail-cta h3 {
    font-size: 20px;
    margin-bottom: 8px;
    justify-content: center;
}

.detail-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ========== 新闻详情页 ========== */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 32px;
}

.news-detail-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-detail-body {
    font-size: 16px;
    line-height: 2;
    color: var(--text-primary);
}

.news-detail-body p {
    margin-bottom: 20px;
}

.news-detail-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px;
}

.news-detail-body ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.news-detail-body li {
    list-style: disc;
    margin-bottom: 8px;
}

.news-detail-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    background: var(--primary-light);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.news-detail-footer p {
    color: var(--primary-dark);
    font-size: 15px;
}

.news-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    cursor: pointer;
}

.news-back:hover {
    color: var(--primary);
}

/* ========== 底部 Footer ========== */
.footer {
    background: #1A2E1A;
    color: rgba(255,255,255,0.7);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-name {
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
}

.footer h4 {
    font-size: 14px;
    color: white;
    margin-bottom: 16px;
    font-weight: 500;
}

.footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer ul li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
}

.footer ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
}

/* ========== 页面切换 ========== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* ========== 加载状态 ========== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1A2E1A;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    z-index: 1000;
    transition: transform 0.3s;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: #DC2626;
}

/* ========== 浮动咨询窗口 ========== */
.float-consult {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 999;
}

.float-consult-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(45,139,78,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
}

.float-consult-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(45,139,78,0.45);
}

.float-consult-btn svg {
    width: 26px;
    height: 26px;
}

.float-consult-btn .pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.float-consult-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.float-consult-panel.show {
    display: block;
}

.float-panel-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.float-panel-header h4 {
    font-size: 16px;
    font-weight: 500;
}

.float-panel-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.float-panel-close:hover {
    color: white;
}

.float-panel-body {
    padding: 20px;
}

.float-panel-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.float-panel-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}

.float-panel-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.float-panel-content {
    display: none;
}

.float-panel-content.active {
    display: block;
}

.float-form-group {
    margin-bottom: 12px;
}

.float-form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.float-form-group input,
.float-form-group textarea,
.float-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.float-form-group input:focus,
.float-form-group textarea:focus {
    border-color: var(--primary);
}

.float-form-group textarea {
    height: 60px;
    resize: vertical;
}

.float-form-submit {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.float-form-submit:hover {
    background: var(--primary-dark);
}

.float-qr-section {
    text-align: center;
    padding: 8px 0;
}

.float-qr-section p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.float-qr-img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

.float-qr-tip {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ========== Footer 微信二维码 ========== */
.footer-qr {
    text-align: center;
    margin-top: 12px;
}

.footer-qr-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    border: 2px solid rgba(255,255,255,0.15);
    display: block;
    margin: 0 auto;
    object-fit: contain;
    background: white;
}

.footer-qr-tip {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

/* ========== Banner 遮罩层 ========== */
.hero.has-banner .hero-inner,
.page-hero.has-banner .container {
    position: relative;
    z-index: 2;
}

.hero.has-banner::before,
.page-hero.has-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 107, 56, 0.55);
    z-index: 1;
    display: block;
}

.hero.has-banner::after,
.page-hero.has-banner::after {
    display: none;
}

/* ========== 新闻配图 ========== */
.news-detail-image {
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.news-detail-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .business-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image-area {
        height: 260px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .logo-name {
        font-size: 16px;
    }

    .logo-tag {
        font-size: 10px;
    }

    .header-phone {
        order: 3;
        width: 100%;
        justify-content: center;
        background: var(--primary-light);
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        margin-top: 4px;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 0 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
        margin-top: 28px;
    }

    .stat-number {
        font-size: 22px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header .section-title {
        font-size: 22px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .container {
        padding: 0 16px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .courses-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .course-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-info-item {
        padding: 14px;
        gap: 12px;
    }

    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .contact-form {
        padding: 20px;
    }

    .flow-steps {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .flow-step::after {
        display: none;
    }

    .flow-step {
        padding: 14px 10px;
    }

    .flow-step-title {
        font-size: 13px;
    }

    .flow-step-desc {
        font-size: 11px;
    }

    .footer {
        padding: 24px 0 16px;
    }

    .footer-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-bottom: 20px;
    }

    /* 手机端隐藏学历提升、帮助支持两列 */
    .footer-grid > div:nth-child(2),
    .footer-grid > div:nth-child(3) {
        display: none;
    }

    .footer-grid > div:first-child {
        flex: 1.2;
        min-width: 160px;
    }

    .footer-grid > div:last-child {
        flex: 1;
        min-width: 140px;
    }

    .footer-brand .logo-name {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .footer-brand p {
        font-size: 12px;
        line-height: 1.5;
    }

    .footer-qr {
        margin-top: 8px;
    }

    .footer-qr-img {
        width: 72px;
        height: 72px;
    }

    .footer h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer ul {
        gap: 5px;
    }

    .footer ul li,
    .footer ul li a {
        font-size: 12px;
    }

    .footer-bottom {
        padding-top: 12px;
        font-size: 11px;
    }

    .about-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .about-highlight {
        padding: 12px;
    }

    .about-highlight-text strong {
        font-size: 18px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .float-consult {
        right: 12px;
        bottom: 24px;
    }

    .float-consult-btn {
        width: 50px;
        height: 50px;
    }

    .float-consult-panel {
        right: -12px;
        width: 300px;
    }

    .page-hero {
        min-height: 240px;
        padding: 40px 0;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .page-hero-desc {
        font-size: 14px;
    }

    .page-hero-tags {
        gap: 8px;
    }

    .page-hero-tag {
        font-size: 12px;
        padding: 4px 10px;
    }

    .detail-intro {
        padding: 16px;
        font-size: 14px;
    }

    .detail-cta {
        padding: 24px 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .news-detail-title {
        font-size: 22px;
    }

    .news-detail-body {
        font-size: 15px;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 22px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 20px;
    }

    .page-hero-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .business-card {
        padding: 24px 20px;
    }

    .business-card h3 {
        font-size: 18px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .float-consult-panel {
        width: 280px;
    }

    .hero-badge, .page-hero-badge {
        font-size: 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 12px;
    }

    .footer-brand .logo-name {
        font-size: 17px;
    }
}

/* ========== 移动端导航菜单 ========== */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: 200;
}

.nav.mobile-open .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-light);
}

.nav.mobile-open .nav-link:last-child {
    border-bottom: none;
}

/* ========== 电话链接样式 ========== */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

a[href^="tel:"]:hover {
    color: var(--primary-dark);
}

.contact-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-weight: 500;
}

.contact-phone-link:hover {
    color: var(--primary-dark);
}

.header-phone a {
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone a:hover {
    color: var(--primary-dark);
}
