
/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --dark: #1d3557;
    --light: #f1faee;
    --gray: #6c757d;
    --border: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 全站公告栏 */
.site-notice-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 14px;
    position: relative;
    z-index: 1000;
}
.site-notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-notice-icon {
    flex-shrink: 0;
}
.site-notice-text {
    flex: 1;
    line-height: 1.5;
    word-break: break-word;
}
.site-notice-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-notice-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

a {
    text-decoration: none;
    color: inherit;
}

/* 移动端底部导航 */
.mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 2px;
    font-size: 11px;
    color: var(--gray);
    white-space: nowrap;
}

.mobile-nav a:active,
.mobile-nav a.active {
    color: #e63946;
}

.mobile-nav a::before {
    content: '';
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}

/* PC端顶部导航 */
.pc-header {
    display: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.pc-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.pc-header .logo {
    font-size: 20px;
    font-weight: bold;
    color: #e63946;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-header .logo img {
    height: 40px;
    width: auto;
    margin-top: 0;
    margin-left: -5px;
}

/* 导航菜单 - 宽度均分 */
.pc-header .pc-menu {
    display: flex;
    gap: 0;
    flex: 1;
    justify-content: space-evenly;
    margin: 0 15px;
}

.pc-header .pc-menu a {
    font-size: 15px;
    color: var(--dark);
    white-space: nowrap;
    text-align: center;
    padding: 0 8px;
    transition: color 0.3s;
}

.pc-header .pc-menu a:hover,
.pc-header .pc-menu a.active {
    color: #e63946;
    font-weight: 500;
}

.pc-header .phone-btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
}

/* Banner区 */
.banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 80px 15px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 装饰性艺术圆形 */
.banner::before,
.banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    border: 2px solid rgba(255,255,255,0.6);
}
.banner::before {
    width: 300px; height: 300px;
    top: -100px; right: -80px;
}
.banner::after {
    width: 200px; height: 200px;
    bottom: -60px; left: -60px;
}

/* 装饰性斜线 */
.banner .banner-deco {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.015) 40px,
            rgba(255,255,255,0.015) 80px
        );
}

.banner h1 {
    font-size: 32px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.banner .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.banner-btns {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 报名倒计时卡片 */
.countdown-card {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 18px 20px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.countdown-status {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.countdown-status.open {
    background: #2ecc71;
    color: #fff;
}
.countdown-status.closed {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.countdown-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 10px;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.countdown-unit {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
    padding: 10px 6px;
    min-width: 64px;
}
.countdown-num {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.countdown-txt {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 5px;
}
.countdown-end-text {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 0;
}
@media (max-width: 480px) {
    .countdown-num { font-size: 22px; }
    .countdown-unit { min-width: 56px; }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

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

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

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark);
}

/* 数据展示 */
.data-section {
    background: #fff;
    padding: 30px 15px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.data-item {
    text-align: center;
    padding: 15px 10px;
}

.data-num {
    font-size: 2rem;
    font-weight: 800;
    color: #c41e2a;
    line-height: 1.2;
    margin-bottom: 4px;
}

.data-label {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
}



/* 快捷入口 */
.quick-entry {
    padding: 40px 15px;
}

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

.entry-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.entry-card:hover {
    transform: translateY(-3px);
}

.entry-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.entry-title {
    font-size: 14px;
    color: var(--dark);
}

/* 通用区块 */
.section-title {
    text-align: center;
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* 标题下划线装饰 */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: var(--gray);
    margin-bottom: 30px;
}

.section-more {
    text-align: center;
    margin-top: 30px;
}

.link-btn {
    color: #e63946;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

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



/* 教学成果 */
.section-chengguo {
    padding: 50px 15px;
    background: #fff;
}

.chengguo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.chengguo-card {
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.chengguo-school {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.chengguo-count {
    font-size: 28px;
    font-weight: bold;
    color: #e63946;
    margin-bottom: 5px;
}

.chengguo-desc {
    font-size: 12px;
    color: var(--gray);
}

/* 师资团队 */
.section-shizi {
    padding: 50px 15px;
}

.teacher-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.teacher-card {
    background: #fff;
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.teacher-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 15px;
}

.teacher-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.teacher-title {
    font-size: 13px;
    color: #e63946;
    margin-bottom: 10px;
}

.teacher-info {
    font-size: 12px;
    color: var(--gray);
}

/* 校园环境 */
.section-xiaoyuan {
    padding: 50px 15px;
    background: #fff;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.campus-item {
    background: var(--light);
    padding: 25px 15px;
    border-radius: 10px;
    text-align: center;
}

.campus-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.campus-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
}

.campus-desc {
    font-size: 12px;
    color: var(--gray);
}

/* 招生动态 */
.section-zhaosheng {
    padding: 50px 15px;
}

.news-list {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-tag {
    background: var(--primary);
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 10px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 14px;
    color: var(--dark);
}

.news-date {
    font-size: 12px;
    color: var(--gray);
    white-space: nowrap;
}

/* 招生动态状态标签 */
.news-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 8px;
    white-space: nowrap;
    vertical-align: middle;
}

.news-status-active {
    background: #e6f4ea;
    color: #1e8e3e;
}

.news-status-closed {
    background: #f1f3f4;
    color: #80868b;
}

/* 悬浮窗 */
.float-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 15px;
    bottom: 80px;
    z-index: 998;
}

.float-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

/* 页脚 */
footer {
    background: var(--dark);
    color: #fff;
    padding: 40px 15px 20px;
    margin-bottom: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-item h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-item p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer-item a {
    opacity: 0.8;
    font-size: 13px;
}

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

/* ====== 无障碍 Skip Link ====== */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 99999;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 0;
}
.skip-link:focus {
    top: 0;
    left: 0;
}

/* ===== 页面通用样式 ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 60px 15px 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.page-content {
    max-width: 1200px;
    margin: -50px auto 0;
    background: #fff;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 30px 15px;
    border-radius: 15px 15px 0 0;
    min-height: 60vh;
}

/* 招生页面 */
.zhaosheng-section {
    margin-bottom: 30px;
}

.zhaosheng-section h2 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.zhaosheng-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.zhaosheng-list .label {
    color: var(--gray);
}

.zhaosheng-list .value {
    color: var(--dark);
    font-weight: 500;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e63946;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* FAQ */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: var(--light);
    padding: 15px;
    font-weight: 500;
    cursor: pointer;
}

.faq-answer {
    padding: 15px;
    display: none;
    font-size: 14px;
    line-height: 1.8;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    display: block;
}

/* 联系页面 */
.contact-info {
    text-align: center;
    padding: 30px;
    background: var(--light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.map-container {
    width: 100%;
    height: 300px;
    background: #eee;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

/* PC端适配（平板端 768px - 1024px） */
@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }

    .pc-header {
        display: block;
    }

    .banner {
        padding: 120px 15px;
    }

    .banner h1 {
        font-size: 42px;
    }

    .data-section {
        padding: 30px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .entry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .chengguo-grid,
    .campus-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .float-contact {
        right: 20px;
        bottom: 20px;
    }

    footer {
        margin-bottom: 0;
    }

    .page-header {
        padding: 80px 15px 100px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-content {
        padding: 30px;
    }
}

/* 小桌面端（1024px - 1280px） */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }

    .banner {
        padding: 130px 15px;
    }

    .banner h1 {
        font-size: 46px;
    }

    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .entry-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .chengguo-grid,
    .campus-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .float-contact {
        right: 25px;
        bottom: 25px;
    }
}

/* 大桌面端（1280px+） */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    .banner {
        padding: 150px 15px;
    }

    .banner h1 {
        font-size: 52px;
    }

    .banner .subtitle {
        font-size: 18px;
    }

    .chengguo-grid,
    .campus-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-content {
        padding: 50px;
    }

    .float-contact {
        right: 30px;
        bottom: 30px;
    }
}

    @media (max-width: 767px) {
        .footer-item.quick-links {
            display: none;
        }
        /* 首页轮播区域 */
        section[style*="padding:50px 15px"] {
            padding: 10px 0 !important;
        }
        section[style*="padding:50px 15px"] > div > div:first-child {
            border-radius: 0 !important;
            box-shadow: none !important;
            margin: 0 !important;
        }
        #homeCarousel {
            aspect-ratio: 16/9 !important;
            max-height: 300px !important;
        }
        #homeCarousel img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
        }
    }

/* ===== 通知公告组件（tongzhi / 首页通知列表共用） ===== */
.page-header p {
    font-size: 14px;
    opacity: 0.9;
}

.notice-list {
    max-width: 800px;
    margin: -50px auto 0;
    position: relative;
    z-index: 10;
    padding: 0 15px 100px;
}

.notice-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
}

.notice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.notice-badge {
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.notice-badge.urgent {
    background: #ff4757;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.notice-time {
    color: var(--gray);
    font-size: 13px;
}

.notice-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.notice-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.notice-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--gray);
}

.notice-target {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.notice-class {
    background: var(--light);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    margin-top: -30px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-text {
    color: var(--gray);
}

@media (min-width: 768px) {
    .notice-list {
        padding: 0 15px 40px;
    }
}
