/* 基础变量 */
:root {
  --main-color: #1890FF;
  --main-bg: #fff;
  --main-text: #222;
  --border-radius: 6px;
  --font-family: 'Source Han Sans SC', 'Microsoft YaHei', Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --main-bg: #181A1B;
  --main-text: #eee;
  --main-color: #1890FF;
}
body {
  font-family: var(--font-family);
  background: var(--main-bg);
  color: var(--main-text);
  transition: var(--transition);
}
button, .btn {
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5em 1.5em;
  font-size: 1em;
  cursor: pointer;
  transition: var(--transition);
}
button:hover, .btn:hover {
  background: #1765ad;
}
input, select, textarea {
  font-family: inherit;
  border: 1px solid #d9d9d9;
  border-radius: var(--border-radius);
  padding: 0.5em 1em;
  font-size: 1em;
  background: #fff;
  transition: var(--transition);
}
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  background: #23272E;
  color: #eee;
  border-color: #444;
}
.card, .news-card, .about-section {
  background: var(--main-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5em;
  margin-bottom: 1.5em;
  transition: var(--transition);
}
[data-theme="dark"] .card, [data-theme="dark"] .news-card, [data-theme="dark"] .about-section {
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.modal-content, .modal-body {
  background: var(--main-bg);
  color: var(--main-text);
  border-radius: var(--border-radius);
}
@media (max-width: 768px) {
  body, .container {
    font-size: 15px;
    padding: 0 8px;
  }
  .card, .news-card, .about-section {
    padding: 1em;
  }
}

/* 乌鲁木齐市一贯职业技能培训学校官网样式 */

/* 基础重置和设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* 顶部信息栏 */
.top-bar {
    background: linear-gradient(135deg, #8B0000, #A0000A);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.top-bar a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 50%, #8B0000 100%);
    color: white;
    padding: 25px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,215,0,0.15)"/></svg>');
    opacity: 0.7;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 90px;
    height: 90px;
    margin-right: 20px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.2);
    object-fit: cover;
}

.logo-text h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    line-height: 1.2;
}

.logo-text p {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 5px;
    backdrop-filter: blur(10px);
}

.search-box input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    width: 320px;
    font-size: 15px;
    outline: none;
    background: white;
    transition: all 0.3s;
}

.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.3);
}

.search-box button {
    background: #DC143C;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    margin-left: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.search-box button:hover {
    background: #B91C3C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #DC143C;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #DC143C;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-logo a:hover {
    color: #B91C3C;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #DC143C;
    background: rgba(220, 20, 60, 0.1);
    transform: translateY(-2px);
}

.nav-menu a.enrollment-btn {
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    color: white !important;
    border-radius: 25px;
    padding: 12px 25px;
    margin-left: 10px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.nav-menu a.enrollment-btn:hover {
    background: linear-gradient(135deg, #B91C3C, #A01B3A);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
    color: white !important;
}

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

.nav-login a {
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb .container {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb a {
    color: #DC143C;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #B91C3C;
    text-decoration: underline;
}

/* 主要内容区域 */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
    background: #f8f9fa;
}

/* 页面标题 */
.page-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    border-radius: 2px;
}

/* 通知栏 */
.notice-bar {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-label {
    background: #ffc107;
    color: #212529;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-text {
    flex: 1;
    color: #856404;
    font-weight: 500;
}

/* 网格布局 */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* 新闻区域 */
.news-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.section-header {
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0;
}

.more-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.more-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.news-list {
    padding: 20px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
}

.news-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 0 -15px;
}

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

.news-date {
    background: #DC143C;
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.news-date .day {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.news-date .month {
    font-size: 12px;
    opacity: 0.9;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news-content h3 a:hover {
    color: #DC143C;
}

.news-meta {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    gap: 15px;
}

/* 查询区域 */
.query-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.query-form {
    padding: 25px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #DC143C;
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #DC143C;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
    min-width: 120px;
}

.btn:hover {
    background: #B91C3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #DC143C, #B91C3C);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: #28a745;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 80px;
}

.btn-lg {
    padding: 16px 35px;
    font-size: 18px;
    min-width: 150px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: auto;
}

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

.footer-section h3 {
    color: #DC143C;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p,
.footer-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #DC143C;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #DC143C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .search-box {
        width: 100%;
        max-width: 400px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo-text h1 {
        font-size: 28px;
    }
    
    .logo-text p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #e9ecef;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .nav-menu a.enrollment-btn {
        margin: 10px 20px;
        border-radius: 25px !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        justify-content: center;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .logo-text h1 {
        font-size: 24px;
    }
    
    .logo-text p {
        font-size: 14px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 15px 0;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .search-box input {
        width: 200px;
        font-size: 14px;
    }
    
    .search-box button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); }
.shadow { box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); }
.shadow-lg { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); }

.rounded { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 50%; }

.text-primary { color: #DC143C; }
.text-secondary { color: #6c757d; }
.text-success { color: #28a745; }
.text-info { color: #17a2b8; }
.text-warning { color: #ffc107; }
.text-danger { color: #dc3545; }
.text-light { color: #f8f9fa; }
.text-dark { color: #343a40; }

.bg-primary { background-color: #DC143C; }
.bg-secondary { background-color: #6c757d; }
.bg-success { background-color: #28a745; }
.bg-info { background-color: #17a2b8; }
.bg-warning { background-color: #ffc107; }
.bg-danger { background-color: #dc3545; }
.bg-light { background-color: #f8f9fa; }
.bg-dark { background-color: #343a40; } 