/* ====================================
   中山职业技术学校 - 主样式文件
   域名: hfstgg.cn
   ==================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a4fa0;
    --primary-dark: #0d3278;
    --primary-light: #2d6fd4;
    --secondary: #c8a84b;
    --secondary-light: #e8c96a;
    --accent: #e85d26;
    --text-dark: #1a1a2e;
    --text-medium: #3d4466;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f4f7fc;
    --bg-section: #eef2fa;
    --border: #d1dae8;
    --shadow: 0 4px 20px rgba(26,79,160,0.12);
    --shadow-hover: 0 8px 32px rgba(26,79,160,0.22);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --font-main: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

/* ====================================
   顶部公告栏
   ==================================== */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 2px solid var(--secondary);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar a {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.top-bar a:hover {
    color: var(--secondary-light);
}

.top-bar .notice-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar .notice-text::before {
    content: "📢";
    font-size: 12px;
}

/* ====================================
   头部导航
   ==================================== */
.site-header {
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(26,79,160,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
}

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

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* 搜索框 */
.header-search {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.header-search form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,79,160,0.12);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 16px;
    font-size: 14px;
    font-family: var(--font-main);
    color: var(--text-dark);
    outline: none;
}

.header-search button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 9px 18px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.header-search button:hover {
    background: var(--primary-dark);
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-phone {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.header-phone-label {
    font-size: 12px;
    color: var(--text-light);
}

/* 主导航 */
.main-nav {
    background: var(--primary);
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 14px 20px;
    color: rgba(255,255,255,0.92);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-light);
    background: rgba(255,255,255,0.1);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    min-width: 180px;
    box-shadow: var(--shadow-hover);
    border-radius: 0 0 var(--radius) var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 100;
    border-top: 3px solid var(--secondary);
}

.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-medium);
    font-size: 14px;
    border-bottom: 1px solid var(--bg-light);
}

.dropdown-menu a:hover {
    background: var(--bg-section);
    color: var(--primary);
    padding-left: 24px;
}

/* 搜索框（导航下方） */
.nav-search-bar {
    background: var(--bg-section);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.nav-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.nav-search-inner form {
    display: flex;
    flex: 1;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 4px;
    overflow: hidden;
}

.nav-search-inner input {
    flex: 1;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
}

.nav-search-inner button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.nav-search-inner button:hover {
    background: var(--primary-dark);
}

/* ====================================
   容器
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   面包屑
   ==================================== */
.breadcrumb {
    background: var(--bg-light);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
}

.breadcrumb-list li::after {
    content: "›";
    color: var(--border);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--primary);
}

/* ====================================
   Hero Banner
   ==================================== */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/school-campus.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    width: 100%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 38px;
    font-weight: 900;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-text h1 span {
    color: var(--secondary-light);
}

.hero-text p {
    font-size: 17px;
    color: rgba(255,255,255,0.88);
    margin-bottom: 28px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,168,75,0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.6);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.hero-stat-card:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--secondary-light);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* ====================================
   通用区块样式
   ==================================== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--bg-section);
}

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

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

.section-tag {
    display: inline-block;
    background: rgba(26,79,160,0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-dark .section-tag {
    background: rgba(200,168,75,0.2);
    color: var(--secondary-light);
}

.section-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-dark .section-title {
    color: white;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-desc {
    color: rgba(255,255,255,0.75);
}

/* ====================================
   卡片样式
   ==================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-tag {
    display: inline-block;
    background: rgba(26,79,160,0.1);
    color: var(--primary);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--text-light);
}

/* ====================================
   视频卡片
   ==================================== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--primary-dark);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.06);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: var(--transition);
}

.video-card:hover .play-icon {
    transform: scale(1);
}

.play-icon::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent var(--primary);
    margin-left: 4px;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: white;
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 4px;
}

.video-stats {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
}

.video-stat {
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.video-info {
    padding: 14px 16px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* 视频播放弹窗 */
.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-inner {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.4);
}

.video-modal video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

/* ====================================
   专业介绍模块
   ==================================== */
.major-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.major-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

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

.major-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.major-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.major-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ====================================
   名师展示
   ==================================== */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.teacher-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.teacher-avatar {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
}

.teacher-info {
    padding: 20px;
}

.teacher-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.teacher-title {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.teacher-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 14px;
}

.teacher-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 14px;
}

.teacher-tag {
    background: var(--bg-section);
    color: var(--primary);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.teacher-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    border: 1.5px solid var(--primary);
}

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

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

.btn-sm-outline {
    background: transparent;
    color: var(--primary);
}

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

/* ====================================
   新闻列表
   ==================================== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.news-main .news-item-big {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.news-main .news-item-big:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.news-item-big .news-img {
    height: 200px;
    object-fit: cover;
}

.news-item-big .news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-side {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
}

.news-list-side h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.news-list-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-light);
    transition: var(--transition);
}

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

.news-list-item:hover {
    padding-left: 6px;
}

.news-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.news-list-item a {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-item a:hover {
    color: var(--primary);
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
    margin-top: 2px;
}

.news-category {
    display: inline-block;
    background: rgba(26,79,160,0.1);
    color: var(--primary);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.news-title-link {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====================================
   AI赋能模块
   ==================================== */
.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ai-feature-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.ai-feature-card:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-4px);
    border-color: var(--secondary);
}

.ai-icon {
    font-size: 44px;
    margin-bottom: 16px;
}

.ai-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.ai-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

/* ====================================
   社区功能
   ==================================== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.community-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

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

.community-icon {
    font-size: 40px;
    margin-bottom: 14px;
}

.community-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.community-desc {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ====================================
   FAQ
   ==================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(26,79,160,0.12);
}

.faq-question {
    padding: 18px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
    background: rgba(26,79,160,0.04);
}

.faq-icon {
    width: 24px;
    height: 24px;
    background: var(--bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.8;
    border-top: 1px solid var(--bg-section);
}

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

/* ====================================
   用户评价
   ==================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--transition);
    position: relative;
}

.review-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 60px;
    color: rgba(26,79,160,0.08);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.review-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.review-role {
    font-size: 12px;
    color: var(--text-light);
}

/* ====================================
   合作品牌
   ==================================== */
.partners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.partner-logo {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-medium);
    transition: var(--transition);
    min-width: 120px;
    text-align: center;
}

.partner-logo:hover {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ====================================
   联系我们
   ==================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
}

.contact-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
}

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

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(26,79,160,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.qrcode-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

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

.qrcode-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.qrcode-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

/* ====================================
   社交分享
   ==================================== */
.share-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 14px;
    color: var(--text-light);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.share-wechat { background: #07c160; color: white; }
.share-weibo { background: #e6162d; color: white; }
.share-douyin { background: #010101; color: white; }
.share-bilibili { background: #00a1d6; color: white; }

.share-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ====================================
   页脚
   ==================================== */
.site-footer {
    background: #0d1b3e;
    color: rgba(255,255,255,0.75);
    padding-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .site-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

.footer-bottom a {
    color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
    color: var(--secondary-light);
}

.update-time {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

/* ====================================
   页面标题横幅
   ==================================== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/school-campus.jpg') center/cover;
    opacity: 0.15;
}

.page-banner-content {
    position: relative;
    z-index: 1;
}

.page-banner h1 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.page-banner p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* ====================================
   内页内容
   ==================================== */
.page-content {
    padding: 48px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.content-main {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px;
}

.content-main h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-section);
}

.content-main h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 20px 0 10px;
}

.content-main p {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 14px;
}

.content-main ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 14px;
}

.content-main ul li {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 6px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-nav a {
    display: block;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-medium);
    border-radius: 6px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--primary);
    color: white;
    padding-left: 16px;
}

/* ====================================
   数据统计横幅
   ==================================== */
.stats-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 48px 0;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 44px;
    font-weight: 900;
    color: var(--secondary-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-text {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
}

/* ====================================
   直播模块
   ==================================== */
.live-section {
    background: #0a0e1a;
    padding: 56px 0;
}

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

.live-main {
    background: #111827;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1);
}

.live-player {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #1a1a2e, #0d3278);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.live-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #e85d26;
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1s infinite;
}

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

.live-play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.live-play-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.1);
}

.live-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent white;
    margin-left: 6px;
}

.live-info {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.live-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.live-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    display: flex;
    gap: 16px;
}

.live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.live-schedule {
    background: #111827;
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.live-schedule h3 {
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.schedule-time {
    font-size: 12px;
    color: var(--secondary-light);
    font-weight: 600;
    min-width: 60px;
}

.schedule-name {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

/* ====================================
   弹幕
   ==================================== */
.danmu-container {
    background: #111827;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    height: 200px;
    overflow: hidden;
    position: relative;
}

.danmu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.danmu-item {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.danmu-user {
    color: var(--secondary-light);
    font-weight: 600;
    min-width: 60px;
}

.danmu-input {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.danmu-input input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: white;
    outline: none;
    font-family: var(--font-main);
}

.danmu-input button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

/* ====================================
   移动端汉堡菜单
   ==================================== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ====================================
   响应式
   ==================================== */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ai-features {
        grid-template-columns: repeat(2, 1fr);
    }
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .live-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 4px;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .header-contact {
        display: none;
    }
    .main-nav {
        display: none;
    }
    .main-nav.mobile-open {
        display: block;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        background: rgba(255,255,255,0.05);
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-text h1 {
        font-size: 26px;
    }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .ai-features {
        grid-template-columns: 1fr;
    }
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .content-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 24px;
    }
    .major-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-main .news-item-big {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
    }
    .community-grid {
        grid-template-columns: 1fr;
    }
    .major-grid {
        grid-template-columns: 1fr;
    }
    .teacher-grid {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   工具类
   ==================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

/* 懒加载占位 */
img[data-src] {
    background: var(--bg-section);
    min-height: 100px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}
