/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: auto;
}

/* Header section */
.win {
    width: 1300px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}

/* Scale down the page when viewport is smaller than 1300px */
@media (max-width: 1300px) {
    .win {
        transform-origin: top left;
        transform: scale(calc(100vw / 1300));
        width: 1300px;
        min-width: 1300px;
    }
    
    body {
        min-height: calc(100vh * (1300 / 100vw));
    }
}

.tt {
    width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* PDF container styles */
.sqb, .rws, .tzzy, .kcjj, .jsdw, .xxmb, .mkzy, .jxtj, .kcbz, .jxrl, .kcdx, .pjzb, .mkdx, .zdnd, .dzja {
    display: flex;
    flex-direction: column;
}

.sqb iframe, .rws iframe, .tzzy iframe, .kcjj iframe, .jsdw iframe, .xxmb iframe, .mkzy iframe, .jxtj iframe, .kcbz iframe, .jxrl iframe, .kcdx iframe, .pjzb iframe, .mkdx iframe, .zdnd iframe, .dzja iframe {
    flex: 1;
    min-height: calc(100vh - 40px);
}

.tt img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Horizontal menu */
.menuh {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b429c 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
}

.h ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 20px;
}

.h li {
    display: inline-block;
}

.h a {
    display: block;
    padding: 18px 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    text-align: center;
}

.h a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.h a.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

/* Main content area */
.xia {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Vertical menu */
.menuv {
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
    overflow-y: hidden;
}

.v1, .v2 {
    margin-bottom: 30px;
}

.v1 ul, .v2 ul {
    list-style: none;
}

.bt {
    padding: 18px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 25px;
    text-align: center;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: default;
}

.bt:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.v1 li:not(.bt), .v2 li:not(.bt) {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-align: center;
}

.v1 li:not(.bt):hover, .v2 li:not(.bt):hover {
    background: #f0f4ff;
    border-left: 3px solid #667eea;
    transform: translateX(2px);
}

.v1 li a, .v2 li a {
    text-decoration: none;
    color: #555;
    display: block;
    transition: color 0.3s ease;
    font-size: 22px;
}

.v1 li:not(.bt) a:hover, .v2 li:not(.bt) a:hover {
    color: #667eea;
}

.v1 li.active, .v2 li.active {
    background: #d7e3fc;
    border-left: 3px solid #667eea;
    color: #667eea;
    font-weight: bold;
}

/* Main content area */
.main {
    flex: 1;
    padding: 0;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

/* Content sections */
.sy, .sqb, .rws, .zysc, .kcjj, .jsdw, .kczy, .jxkj, .mkzy, .jxtj, .kcbz, .jxrl, .kcdx, .pjzb, .zjlx, .dzja {
    background: white;
    height: 100%;
    overflow-y: auto;
    padding: 0 30px 30px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sy:hover, .sqb:hover, .rws:hover, .tzzy:hover, .kcjj:hover, .jsdw:hover, .kczy:hover, .xxmb:hover, .mkzy:hover, .jxtj:hover, .kcbz:hover, .jxrl:hover, .kcdx:hover, .pjzb:hover, .mkdx:hover, .zdnd:hover, .dzja:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.sy img, .kcjj img, .jsdw img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}



/* Course resources section */
.kczy {
    background: #f9f9ff;
}

/* Video link styles */
.videolink {
    margin-bottom: 10px;
    padding: 12px 15px;
    background: #f0f4ff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid #667eea;
    text-align: left;
}

.videolink:hover {
    background: #e8f0fe;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.videolink p,
.videolink {
    margin: 0;
    font-size: 25px;
    color: #667eea;
    font-weight: 500;
}

/* Unit number styles */
.unit-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 3px;
    background: #667eea;
    color: white;
    font-weight: bold;
    font-size: 17px;
    margin-right: 5px;
}

/* Video container styles */
.videocontainer {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Video element styles */
.videocontainer video {
    height: 100% !important;
    min-height: calc(100vh - 200px);
}

.videocontainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.kczy strong {
    font-size: 27px;
    color: #333;
    display: block;
    margin-bottom: 20px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Unit title styles */
.kczyxz-li > span {
    font-size: 23px;
    font-weight: bold;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Course overview title styles */
.kczydiv .videolink {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.kczydiv {
    text-align: center;
    margin-bottom: 30px;
}

.kczysp {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.kczysp:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Expandable resource lists */
.kczyxz-ul {
    list-style: none;
    margin-top: 20px;
}

.jxkj ul li {
    padding: 15px;
    margin: 10px 0;
    background: #f0f4ff;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.jxkj ul li, .dzja ul li, .zjlx ul li, .zysc ul li {
    padding: 15px;
    margin: 10px 0;
    background: #f0f4ff;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.jxkj ul li:hover, .dzja ul li:hover, .zjlx ul li:hover, .zysc ul li:hover {
    background: #e8f0fe;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jxkj ul li a, .dzja ul li a, .zjlx ul li a, .zysc ul li a {
    text-decoration: none;
    color: #667eea;
    font-size: 22px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.jxkj ul li a:hover, .dzja ul li a:hover, .zjlx ul li a:hover, .zysc ul li a:hover {
    color: #764ba2;
}

.jxkj .kczyxz-li > span, .dzja .kczyxz-li > span, .zjlx .kczyxz-li > span, .zysc .kczyxz-li > span {
    text-align: center;
    justify-content: center;
}

.content-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.jxkj-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.jxkj-row {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 20px;
    transition: all 0.3s ease;
    border: 1px solid #e8f0fe;
}

.jxkj-row:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.jxkj-badge {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.jxkj-link {
    text-decoration: none;
    color: #333;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.jxkj-row:hover .jxkj-link {
    color: #667eea;
}

.zjlx-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.zjlx-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8f0fe;
}

.zjlx-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.zjlx-item a {
    text-decoration: none;
    color: #333;
    font-size: 22px;
    font-weight: 500;
    display: block;
}

.zjlx-item:hover a {
    color: #667eea;
}

.zysc-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.zysc-link {
    display: block;
    padding: 15px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #333;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8f0fe;
}

.zysc-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    color: #667eea;
}

.dzja-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dzja-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e8f0fe;
}

.dzja-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.dzja-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dzja-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dzja-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    padding: 0 10px;
}

.dzja-item:hover .dzja-title {
    color: #667eea;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e8f0fe;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.video-card-header {
    background: #f0f4ff;
    padding: 12px 16px;
    font-weight: 500;
    color: #667eea;
    font-size: 14px;
    border-bottom: 1px solid #e8f0fe;
}

.video-card-content {
    padding: 20px;
    text-align: center;
}

.video-card-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.video-card-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    position: relative;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 1001;
}

.close-button:hover {
    color: #000;
}

#modal-video-container {
    margin-top: 20px;
}

#modal-video {
    width: 100%;
    border-radius: 4px;
}

.kczyxz-li {
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.kczyxz-li > span {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 15px;
    transition: background 0.3s ease;
}

.kczyxz-li > span:hover {
    background: #f8f9ff;
}

.kczyxz-li > ul {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafbff;
}

.kczyxz-li.expanded > ul {
    max-height: 1000px;
}

.kczyxz-li ul li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s ease;
}

.kczyxz-li ul li:last-child {
    border-bottom: none;
}

.kczyxz-li ul li:hover {
    background: #f0f4ff;
}

.kczyxz-li ul li a {
    text-decoration: none;
    color: #555;
    display: block;
    transition: color 0.3s ease;
}

.kczyxz-li ul li a:hover {
    color: #667eea;
}

.kczyxz-li img:last-of-type {
    float: right;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.kczyxz-li.expanded img:last-of-type {
    transform: rotate(180deg);
}

/* Preformatted text styling */
pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, #5a6fd8 0%, #6b429c 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    width: 100%;
    padding: 0 20px;
}

.footer p {
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}