/* ============================================
   长江艺术工程职业学院继续教育学院
   官网样式表 v1.0
   教育类网站 - 蓝金典雅风格
   ============================================ */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    background-color: #f5f6fa;
}

a {
    color: #1a5ca8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #c59b3c;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

/* ============================================
   颜色变量
   ============================================ */
:root {
    --primary-blue: #1a5ca8;
    --primary-blue-dark: #124785;
    --primary-blue-light: #2d7bc4;
    --gold: #c59b3c;
    --gold-light: #d4af5a;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg-light: #f5f6fa;
    --bg-white: #ffffff;
    --border: #e0e6ed;
}

/* ============================================
   顶部信息栏
   ============================================ */
.top-bar {
    background: linear-gradient(90deg, #124785 0%, #1a5ca8 100%);
    color: #fff;
    font-size: 13px;
}

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

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

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

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

.top-bar-right a {
    color: #fff;
    opacity: 0.9;
}

.top-bar-right a:hover {
    opacity: 1;
    color: #ffd700;
}

/* ============================================
   主头部 - Logo + 导航
   ============================================ */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 25px 0 20px;
}

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

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

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-icon img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

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

.logo-divider {
    width: 1px;
    height: 30px;
    background: var(--gold);
    flex-shrink: 0;
}

.logo-text p {
    font-size: 18px;
    color: var(--gold);
    margin: 0;
    letter-spacing: 1px;
    font-weight: 500;
}

.header-contact {
    text-align: right;
}

.header-contact .phone {
    font-size: 28px;
    color: var(--primary-blue);
    font-weight: bold;
}

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

/* 主导航 */
.main-nav {
    background: linear-gradient(180deg, #1a5ca8 0%, #124785 100%);
}

.main-nav .container {
    display: flex;
}

.nav-list {
    display: flex;
    width: 100%;
}

.nav-item {
    flex: 1;
    position: relative;
    text-align: center;
}

.nav-item > a {
    display: block;
    padding: 0 20px;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-item:hover > a,
.nav-item.active > a {
    background: rgba(255,255,255,0.15);
    color: var(--gold-light);
}

.nav-item.active > a {
    border-bottom: 3px solid var(--gold);
}

/* 下拉菜单 */
.nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
    min-width: 180px;
}

.nav-item:hover .nav-submenu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-submenu li {
    border-bottom: 1px solid var(--border);
}

.nav-submenu li:last-child {
    border-bottom: none;
}

.nav-submenu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 14px;
    text-align: left;
}

.nav-submenu a:hover {
    background: #f0f5ff;
    color: var(--primary-blue);
}

/* ============================================
   轮播 Banner
   ============================================ */
.banner {
    position: relative;
    overflow: hidden;
    height: 480px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26,92,168,0.65) 0%, rgba(18,71,133,0.55) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 3px;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.banner-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--gold);
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #d4af5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(197,155,60,0.4);
}

/* Banner 指示器 */
.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dots li {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s;
}

.banner-dots li.active {
    background: var(--gold);
    width: 60px;
}

/* Banner 箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(0,0,0,0.5);
}

.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }

/* ============================================
   通用容器
   ============================================ */
.container {
    width: 1200px;
    max-width: 95%;
    margin: 0 auto;
}

/* ============================================
   快捷入口
   ============================================ */
.quick-access {
    background: #fff;
    padding: 50px 0;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.quick-item {
    display: block;
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fc;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.quick-item:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26,92,168,0.3);
}

.quick-item:hover .quick-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.quick-item:hover .quick-title {
    color: #fff;
}

.quick-icon {
    width: 70px;
    height: 70px;
    background: #e8f0fe;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 15px;
    transition: all 0.3s;
}

.quick-title {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s;
}

/* ============================================
   通用区块标题
   ============================================ */
.section {
    padding: 50px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: var(--primary-blue-dark);
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.section-title p {
    color: var(--text-gray);
    margin-top: 10px;
}

/* ============================================
   通知公告区
   ============================================ */
.news-section {
    background: #f5f6fa;
}

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

.news-column {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.news-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h3 {
    font-size: 16px;
    font-weight: 500;
}

.news-header a {
    color: #fff;
    font-size: 12px;
    opacity: 0.8;
}

.news-list {
    padding: 15px 20px;
}

.news-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.news-list a {
    color: var(--text-dark);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    padding-right: 10px;
}

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

.news-list .date {
    color: var(--text-light);
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================
   业务板块区
   ============================================ */
.business-section {
    background: #fff;
}

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

.business-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.business-header {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.business-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business-card:hover .business-header img {
    transform: scale(1.08);
}

.business-body {
    padding: 25px;
}

.business-body h3 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.business-body p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.business-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.business-tag {
    padding: 4px 12px;
    background: #e8f0fe;
    color: var(--primary-blue);
    border-radius: 15px;
    font-size: 12px;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 14px;
}

.business-link:hover {
    color: var(--gold);
}

/* ============================================
   学院简介区
   ============================================ */
.about-section {
    background: linear-gradient(135deg, #f5f6fa 0%, #e8f0fe 100%);
}

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

.about-image {
    position: relative;
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.08);
}

.about-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
    color: #fff;
}

.about-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
    border: none;
    padding: 0;
}

.about-overlay p {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.95;
    text-indent: 0;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-blue);
}

.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* ============================================
   页脚
   ============================================ */
.site-footer {
    background: #1a2332;
    color: #999;
    padding: 50px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2d3a4a;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-col p {
    font-size: 13px;
    line-height: 2;
    margin-bottom: 10px;
}

.footer-col a {
    color: #999;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 13px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

.footer-contact li span:first-child {
    color: var(--gold);
    flex-shrink: 0;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.footer-bottom a {
    color: #999;
    margin: 0 5px;
}

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

/* ============================================
   二级页面样式
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, rgba(26,92,168,0.85) 0%, rgba(21,41,92,0.85) 100%), url('../images/page-banner.jpg') center center / cover no-repeat;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.page-banner h1 {
    font-size: 36px;
    letter-spacing: 3px;
}

.page-main {
    padding: 40px 0;
    background: #f5f6fa;
    min-height: 600px;
}

.page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

/* 侧边栏 */
.sidebar-nav {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: #fff;
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
}

.sidebar-menu {
    padding: 10px 0;
}

.sidebar-menu li {
    border-bottom: 1px solid var(--border);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f0f5ff;
    color: var(--primary-blue);
    padding-left: 25px;
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
}

/* 页面内容区 */
.page-content {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.crumb-nav {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.crumb-nav a {
    color: var(--text-gray);
}

.crumb-nav a:hover {
    color: var(--primary-blue);
}

.crumb-nav span {
    margin: 0 8px;
    color: var(--text-light);
}

.page-title {
    font-size: 24px;
    color: var(--primary-blue-dark);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.page-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 25px;
}

.page-meta span {
    margin-right: 20px;
}

.page-body {
    line-height: 2;
    color: var(--text-dark);
}

.page-body h3 {
    font-size: 18px;
    color: var(--primary-blue);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--gold);
}

.page-body p {
    margin-bottom: 15px;
    text-indent: 2em;
}

.page-body ul,
.page-body ol {
    margin: 15px 0;
    padding-left: 2em;
}

.page-body li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-body table th,
.page-body table td {
    border: 1px solid var(--border);
    padding: 10px 15px;
    text-align: left;
}

.page-body table th {
    background: #f0f5ff;
    color: var(--primary-blue);
    font-weight: 500;
}

.page-body table tr:nth-child(even) {
    background: #fafbfc;
}

/* 列表页 */
.news-list-page .news-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px dashed var(--border);
    gap: 20px;
    transition: all 0.3s;
}

.news-list-page .news-item:hover {
    background: #fafbfc;
    margin: 0 -20px;
    padding: 20px;
    border-radius: 8px;
}

.news-item-thumb {
    width: 180px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.news-item-info {
    flex: 1;
}

.news-item-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.news-item-info h3 a:hover {
    color: var(--primary-blue);
}

.news-item-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.news-item-meta {
    font-size: 12px;
    color: var(--text-light);
}

.news-item-meta span {
    margin-right: 15px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.pagination .current {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* 资料下载 */
.download-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #fafbfc;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.download-item:hover {
    background: #f0f5ff;
    transform: translateX(5px);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    margin-right: 20px;
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.download-info p {
    font-size: 12px;
    color: var(--text-light);
}

.download-btn {
    padding: 10px 25px;
    background: var(--gold);
    color: #fff;
    border-radius: 5px;
    font-size: 13px;
    transition: all 0.3s;
}

.download-btn:hover {
    background: var(--gold-light);
    color: #fff;
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .news-grid { grid-template-columns: repeat(3, 1fr); }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    .logo-text h1 { font-size: 22px; }
    .logo-text p { font-size: 12px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-main .container { flex-direction: column; gap: 20px; }
    .logo-text { flex-direction: column; gap: 5px; }
    .logo-divider { width: 40px; height: 1px; }
    .logo-text h1 { font-size: 20px; }
    .header-contact { text-align: center; }
    .main-nav .container { flex-direction: column; }
    .nav-list { flex-direction: column; }
    .nav-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-item:hover .nav-submenu { display: none; }
    .banner { height: 280px; }
    .banner-content h2 { font-size: 26px; }
    .banner-content p { font-size: 14px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .business-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 300px; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: 1fr; }
    .news-item { flex-direction: column; }
    .news-item-thumb { width: 100%; height: 180px; }
    .page-content { padding: 20px; }
}
