/* ============================================================
   2026年世界职业院校技能大赛 - 前台样式
   严格还原原站 https://web.hnhcy.cn/addons/yb_jianzhan/pcdiy/103/
   顶部透明叠层(Logo+标题左/导航右) + Hero大图 + 内容区块 + 深青色页脚
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; list-style: none; }
html { height: 100%; }
body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
    min-width: 1200px;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: rgba(10, 88, 202, 1); }
img { max-width: 100%; display: block; }

/* ---------- 容器 ---------- */
.container { width: 1200px; max-width: 100%; margin: 0 auto; padding: 0 10px; }

/* ============================================================
   顶部透明叠层头部 (固定/绝对定位，叠在Hero大图上)
   ============================================================ */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 1500;
    width: 100%;
}
/* 顶部深色渐变蒙版，提升白字可读性 */
.site-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(40,42,50,0.69) 0%, rgba(47,47,51,0) 100%);
    z-index: -1;
    pointer-events: none;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 10px;
    position: relative;
    z-index: 2;
}
/* 左侧: Logo + 标题 */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    text-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.brand-zh {
    font-size: 26px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
}
.brand-en {
    font-size: 12px;
    color: #fff;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: .92;
}
/* 右侧: 主导航 */
.main-nav { flex-shrink: 0; }
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
}
.main-nav li { position: relative; }
.main-nav a {
    display: inline-block;
    padding: 8px 0;
    margin: 0 15px;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    border-bottom: 2px solid transparent;
    transition: all .2s ease;
    line-height: 1.4;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #fff;
}

/* ============================================================
   Hero 大图 Banner (首页)
   ============================================================ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 760px;
    overflow: hidden;
    background: #1a3a6e;
}
.hero-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.12) translate(-1.5%, -1%); }
}
/* Hero 渐变蒙版(增强底部文字可读性) */
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40,42,50,.45) 0%, rgba(40,42,50,0) 35%, rgba(40,42,50,.55) 100%);
    pointer-events: none;
}
/* Hero 光斑漂浮装饰 */
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 18% 28%, rgba(255,255,255,.10) 0, transparent 9%),
        radial-gradient(circle at 78% 22%, rgba(255,255,255,.08) 0, transparent 7%),
        radial-gradient(circle at 62% 70%, rgba(255,255,255,.07) 0, transparent 11%),
        radial-gradient(circle at 32% 78%, rgba(255,255,255,.06) 0, transparent 8%);
    pointer-events: none;
    z-index: 2;
    animation: floatLights 14s ease-in-out infinite alternate;
}
@keyframes floatLights {
    0%   { transform: translate(0, 0); opacity: .7; }
    50%  { transform: translate(2%, -1.5%); opacity: 1; }
    100% { transform: translate(-1.5%, 2%); opacity: .75; }
}
.hero-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 3;
    width: 90%;
    text-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.hero-content > * {
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}
.hero-content .hero-logo  { animation-delay: .2s; }
.hero-content .hero-title { animation-delay: .5s; }
.hero-content .hero-subtitle { animation-delay: .8s; }
.hero-content .hero-track { animation-delay: 1.1s; }
@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(28px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin: 0 auto 24px;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.35));
}
.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 14px;
}
.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: .95;
    margin-bottom: 22px;
}
.hero-track {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
}
.hero-tagline {
    font-size: 18px;
    letter-spacing: 6px;
    margin-top: 18px;
    opacity: .9;
}
/* Hero 底部装饰波纹 */
.hero-waves {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 4;
    pointer-events: none;
    animation: waveFloat 6s ease-in-out infinite alternate;
}
@keyframes waveFloat {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-6px); }
}

/* 列表/详情页用的小banner (页面标题区) */
.page-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #0a58ca 0%, #1a3a6e 100%);
}
.page-banner .page-banner-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .6;
}
.page-banner .page-banner-title {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
    z-index: 2;
    text-align: center;
}
.page-banner .page-banner-en {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    opacity: .9;
}

/* ============================================================
   主体内容
   ============================================================ */
.page-main {
    position: relative;
    z-index: 1000;
    padding: 60px 0;
    background: #fff;
}
.section-divider {
    text-align: center;
    margin: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.section-divider .deco-line {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #0a58ca, transparent);
}
.section-divider .deco-text {
    font-size: 30px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

/* ============================================================
   通用区块 (栏目)
   ============================================================ */
.section-block {
    margin-bottom: 50px;
    background: #fff;
}
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid #e8eef5;
    padding: 0 0 14px;
    margin-bottom: 24px;
}
.section-head .title-wrap { display: flex; flex-direction: column; }
.section-head .title-zh {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    position: relative;
    padding-left: 16px;
    line-height: 1.2;
}
.section-head .title-zh::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 6px; height: 26px;
    background: linear-gradient(180deg, #0a58ca 0%, #1e5fb0 100%);
    border-radius: 2px;
}
.section-head .title-en {
    font-size: 13px;
    color: #a0a8b3;
    margin-top: 6px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-left: 16px;
}
.section-head .more {
    font-size: 14px;
    color: #888;
    transition: color .2s;
}
.section-head .more:hover { color: #0a58ca; }

/* ============================================================
   文章列表
   ============================================================ */
.news-list { padding: 4px 0; }
.news-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 6px;
    border-bottom: 1px dashed #e8eef5;
    transition: background .2s;
}
.news-list li:last-child { border-bottom: none; }
.news-list li:hover { background: #f7faff; }
.news-list li .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    position: relative;
    font-size: 16px;
    color: #333;
}
.news-list li .title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    background: #0a58ca;
    border-radius: 50%;
}
.news-list li:hover .title { color: #0a58ca; }
.news-list li .date {
    color: #999;
    font-size: 14px;
    padding-left: 20px;
    flex-shrink: 0;
}

/* 公告单条大图 */
.announce-single {
    display: block;
    text-align: center;
}
.announce-single img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 4px;
}
.announce-single .a-title {
    font-size: 18px;
    font-weight: 600;
    padding: 14px 0 4px;
    color: #333;
}

/* ============================================================
   首页布局: 两列行 / 图文列表 / 空提示
   ============================================================ */
.home-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.home-row-2col .section-block { margin-bottom: 0; }
.empty-tip {
    color: #999;
    padding: 36px 0;
    text-align: center;
    font-size: 14px;
}
/* 大赛动态 图文列表 */
.image-text-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.it-item {
    display: block;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    overflow: hidden;
    transition: all .25s;
}
.it-item:hover {
    box-shadow: 0 8px 20px rgba(10,88,202,.12);
    transform: translateY(-4px);
    border-color: #0a58ca;
}
.it-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f0f4ff;
    line-height: 0;
}
.it-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.it-item:hover .it-thumb img { transform: scale(1.06); }
.it-thumb-ph {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a8b3;
    font-size: 32px;
    background: linear-gradient(135deg, #f0f4ff, #e8eef5);
}
.it-info { padding: 12px 14px; }
.it-title {
    font-size: 15px;
    color: #2a2a2a;
    font-weight: 600;
    line-height: 1.5;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}
.it-item:hover .it-title { color: #0a58ca; }
.it-date {
    font-size: 13px;
    color: #999;
}

/* ============================================================
   视频列表
   ============================================================ */
.video-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.video-item {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 6px;
    overflow: hidden;
    transition: all .25s;
    display: block;
}
.video-item:hover {
    box-shadow: 0 6px 16px rgba(10,88,202,.12);
    transform: translateY(-3px);
}
.video-thumb {
    position: relative;
    width: 100%;
    height: 130px;
    background: #1a3a6e;
    overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 视频播放器(首页可直接播放) */
.video-player {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    line-height: 0;
}
.video-player video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 200px;
    object-fit: cover;
    background: #000;
    outline: none;
}
.video-player img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.video-thumb .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    background: rgba(0,0,0,.25);
    transition: background .25s;
}
.video-item:hover .video-thumb .play-icon { background: rgba(10,88,202,.4); }
.video-info { padding: 12px 14px; }
.video-info .v-title {
    font-size: 15px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}
.video-info .v-date { font-size: 13px; color: #999; }

/* ============================================================
   列表页(栏目页)
   ============================================================ */
.list-header {
    background: #fff;
    padding: 28px 24px;
    margin-bottom: 24px;
    border-radius: 4px;
    border-left: 6px solid #0a58ca;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.list-header .lh-zh {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
}
.list-header .lh-en {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
    letter-spacing: 1px;
}
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    min-width: 34px; height: 34px;
    line-height: 34px;
    text-align: center;
    padding: 0 8px;
    border: 1px solid #e0e6ee;
    color: #555;
    border-radius: 4px;
    font-size: 14px;
}
.pagination a:hover { background: #f0f4ff; border-color: #0a58ca; color: #0a58ca; }
.pagination .current { background: #0a58ca; color: #fff; border-color: #0a58ca; }

/* ============================================================
   文章详情
   ============================================================ */
.article-detail {
    background: #fff;
    padding: 36px 40px 40px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.article-detail h1.art-title {
    font-size: 26px;
    color: #1a1a1a;
    text-align: center;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 18px;
}
.art-meta {
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: 12px 0;
    border-top: 1px dashed #e8eef5;
    border-bottom: 1px dashed #e8eef5;
    margin-bottom: 24px;
}
.art-meta .meta-item { margin: 0 12px; }
.art-content {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    min-height: 200px;
}
.art-content p { margin-bottom: 16px; }
.art-content img { max-width: 100%; height: auto; margin: 16px auto; border-radius: 4px; }
.art-content h2, .art-content h3 { margin: 20px 0 12px; color: #0a58ca; }
.art-content a { color: #0a58ca; text-decoration: underline; }
.art-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid #e8eef5;
    font-size: 14px;
}
.art-nav a {
    color: #0a58ca;
    display: inline-block;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   页脚 (深绿色)
   ============================================================ */
.site-footer {
    background: rgba(26, 58, 110, 1);
    color: #e2e2e2;
    padding: 20px 0;
    text-align: center;
}
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.9;
}
.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.site-footer .footer-links a {
    color: #e2e2e2;
    margin: 0 20px 0 0;
    transition: color .2s;
}
.site-footer .footer-links a:last-child { margin-right: 0; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-copy { color: #eee; }

/* ============================================================
   视频容器
   ============================================================ */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}
.video-embed iframe, .video-embed video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============================================================
   仪表盘统计
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: linear-gradient(135deg, #0a58ca, #1e5fb0);
    color: #fff;
    padding: 20px 24px;
    border-radius: 6px;
}
.stat-card.alt { background: linear-gradient(135deg, #c8161d, #e8424a); }
.stat-card .stat-label { font-size: 14px; opacity: .9; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; margin-top: 6px; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 991px) {
    .container { width: 100%; }
    .video-list { grid-template-columns: repeat(2, 1fr); }
    .brand-zh { font-size: 16px; }
    .brand-en { font-size: 10px; }
    .brand-logo { width: 50px; height: 50px; }
    .main-nav a { margin: 0 10px; font-size: 16px; }
    .hero-banner { height: 400px; }
    .hero-logo { width: 90px; height: 90px; margin-bottom: 16px; }
    .hero-title { font-size: 32px; letter-spacing: 2px; }
    .hero-subtitle { font-size: 14px; }
    .hero-track { font-size: 20px; }
    .page-banner { height: 200px; }
    .page-banner .page-banner-title { font-size: 28px; }
}
@media (max-width: 575px) {
    body { min-width: 100%; }
    .header-inner { height: auto; padding: 8px 12px; }
    .brand-zh { font-size: 16px; }
    .brand-en { display: none; }
    .brand-logo { width: 40px; height: 40px; }
    .hero-logo { width: 70px; height: 70px; margin-bottom: 12px; }
    .main-nav ul { flex-wrap: wrap; }
    .main-nav a { margin: 0 8px; font-size: 14px; padding: 6px 0; }
    .hero-banner { height: 240px; }
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 12px; }
    .hero-track { font-size: 16px; }
    .video-list { grid-template-columns: 1fr; }
    .image-text-list { grid-template-columns: 1fr; }
    .section-head .title-zh { font-size: 20px; }
    .article-detail { padding: 24px 16px; }
    .article-detail h1.art-title { font-size: 20px; }
    .news-list li .date { display: none; }
    .section-divider .deco-text { font-size: 22px; }
}
