:root {
    --primary: #e62c1b;
    --primary-hover: #c92214;
    --bg-page: #f5f5f5;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #eaeaea;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-page);
    color: var(--text-gray);
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Topbar */
.topbar {
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    height: 35px;
    line-height: 35px;
    font-size: 12px;
    color: #666;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
}

.tb-left span {
    margin-right: 15px;
}

.tb-left span i {
    color: var(--primary);
    font-style: normal;
    margin-right: 4px;
}

.tb-right a {
    margin-left: 15px;
}

.tb-right a.red {
    color: var(--primary);
}

/* Header */
.header {
    background: #fff;
    height: 110px;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
    font-family: impact, sans-serif;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.logo-text p {
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.search-wrap {
    display: flex;
    border: 2px solid var(--primary);
    border-radius: 20px;
    overflow: hidden;
    width: 420px;
    height: 40px;
    margin-left: 50px;
}

.search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 15px;
    font-size: 13px;
}

.search-wrap button {
    width: 90px;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.contact {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
}

.contact i {
    font-style: normal;
    font-size: 28px;
}

/* Main Nav */
.main-nav {
    background: var(--primary);
}

.main-nav .container {
    display: flex;
}

.nav-cate {
    width: 220px;
    background: #c92214;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 50px;
}

.nav-list {
    display: flex;
}

.nav-list a {
    display: block;
    padding: 0 30px;
    line-height: 50px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.nav-list a.active,
.nav-list a:hover {
    background: #b81b0e;
}

/* Hero Section */
.hero-wrap {
    background: #fff;
    margin-bottom: 25px;
    box-shadow: var(--box-shadow);
}

.hero-container {
    display: flex;
    height: 420px;
}

.hero-menu {
    width: 220px;
    background: #333333;
    padding: 10px 0;
}

.hero-menu li {
    padding: 0 20px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-menu li i {
    display: flex;
    align-items: center;
    color: #888;
}

.hero-menu li:hover {
    background: #fff;
    color: var(--primary);
    border-left-color: var(--primary);
}

.hero-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.hero-slider .slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots span.active,
.slider-dots span:hover {
    background: #fff;
    width: 20px;
    border-radius: 4px;
}

.hero-board {
    width: 260px;
    padding: 20px;
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.user-login-box {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.right-login-box {
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.rl-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.rl-title::before {
    content: "";
    width: 4px;
    height: 16px;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 3px;
}

.rl-form {
    display: flex;
    flex-direction: column;
}

.rl-input {
    height: 38px;
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
    transition: 0.3s;
}

.rl-input:focus {
    border-color: var(--primary);
}

.rl-opts {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.rl-opts label {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.rl-opts a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.rl-btn {
    height: 40px;
    margin-left:-0.5px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: 0.2s;
}

.rl-btn:hover {
    background: #c92214;
}

.rl-register {
    text-align: right;
    font-size: 12px;
    margin-top: 10px;
    color: #999;
}

.rl-register a {
    color: var(--primary);
    font-weight: bold;
    margin-left: 5px;
}

.u-ava {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f0f0f0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.u-ava svg {
    width: 34px;
    height: 34px;
    stroke: #bbb;
}

.u-welcome {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.u-btns {
    display: flex;
    gap: 10px;
}

.u-btn {
    flex: 1;
    height: 34px;
    line-height: 32px;
    border-radius: 17px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

.u-btn-red {
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.u-btn-red:hover {
    background: var(--primary-hover);
}

.u-btn-out {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.u-btn-out:hover {
    background: #fef0f0;
}

.notice-wrap {
    flex: 1;
    overflow: hidden;
}

.nt-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: baseline;
}

.nt-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
}

.nt-more {
    font-size: 12px;
    color: var(--text-light);
}

.nt-list li {
    line-height: 28px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 10px;
    position: relative;
}

.nt-list li::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--primary);
    position: absolute;
    left: 0;
    top: 12px;
    border-radius: 50%;
}

/* Flow Section */
.flow-bar {
    background: #fff;
    margin-bottom: 25px;
    padding: 25px 0;
    display: flex;
    justify-content: space-around;
    box-shadow: var(--box-shadow);
    border-radius: 4px;
}

.fb-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fb-icon {
    font-size: 32px;
    color: var(--primary);
}

.fb-text h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
}

.fb-text p {
    font-size: 13px;
    color: var(--text-light);
}

/* Section Generic */
.sec {
    margin-bottom: 40px;
}

.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
}

.sec-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-title::before {
    content: "";
    width: 6px;
    height: 22px;
    background: var(--primary);
    border-radius: 3px;
}

.sec-tabs {
    display: flex;
    gap: 20px;
}

.sec-tabs span {
    font-size: 15px;
    cursor: pointer;
    padding-bottom: 5px;
}

.sec-tabs span.active {
    color: var(--primary);
    font-weight: bold;
}

/* Course Grid */
.c-grid {
    display: grid;
    width:1200px;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.c-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.c-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.c-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #fafafa;
}

.c-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.c-card:hover .c-img img {
    transform: scale(1.05);
}

.c-tag {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    font-weight: bold;
    font-family:ºÚÌå;
    padding: 10px;
    padding-top: 80px;
    text-align: center;
    border-bottom-right-radius: 8px;
}

.c-tag0 {color: #f19b12;}
.c-tag1 {color: #e62c1b;}
.c-tag2 {color: #03c40b;}
.c-tag3 {color: #1c5ff7;}

.c-info {
    padding: 12px;
}

.c-title {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: bold;
    line-height: 1.4;
    height: 40px;
    margin-bottom: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.c-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.c-bot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dotted #eee;
    padding-top: 10px;
}

.c-price {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.c-price span {
    font-size: 12px;
    font-weight: normal;
    color: #666;
}

.c-num {
    font-size: 12px;
    color: var(--text-light);
}

/* Middle Ad */
.ad-banner {
    width: 100%;
    height: 120px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 40px;
    display: block;
}

.ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background: #333333;
    color: #ccc;
    padding: 10px 0 10px;
    font-size: 13px;
}

.f-links {
    text-align: center;
    margin-bottom: 20px;
}

.f-links a {
    color: #ccc;
    margin: 0 10px;
}

.f-links a:hover {
    color: #fff;
}

.f-copy {
    text-align: center;
    line-height: 2;
    border-top: 1px solid #444;
    padding-top: 20px;
}



/* Learning Center Specifics */
.lc-layout {
    /*background: #f5f5f5;*/
    min-height: 100vh;
    padding-bottom: 40px;
}

.lc-container {
    display: flex;
    gap: 20px;
}

.lc-sider {
    width: 180px;
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    align-self: flex-start;
}

.lc-uinfo {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px dotted #eee;
    background: #fffaf9;
    border-top: 4px solid var(--primary);
}

.lc-uava {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(230, 44, 27, 0.2);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.lc-uava svg {
    width: 38px;
    height: 38px;
    stroke: #fff;
}

.lc-uname {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
}

.lc-role {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 5px;
}

.lc-menu {
    padding: 10px 0;
}

.lm-title {
    font-size: 12px;
    color: #999;
    padding: 10px 20px;
}

.lm-item {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-dark);
    position: relative;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.lm-item::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #ccc;
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 19px;
    transition: 0.3s;
}

.lm-item:hover {
    color: var(--primary);
    background: #fef5f4;
}

.lm-item:hover::before {
    background: var(--primary);
}

.lm-item.active {
    color: var(--primary);
    background: #fef5f4;
    border-left-color: var(--primary);
    font-weight: bold;
}

.lm-item.active::before {
    background: var(--primary);
}

.lc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lc-panel {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: var(--box-shadow);
}

.lp-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--primary);
}

.lc-stats {
    display: flex;
    border: 1px solid #eee;
    border-radius: 4px;
}

.ls-item {
    flex: 1;
    text-align: center;
    padding: 25px 0;
    position: relative;
}

.ls-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25px;
    bottom: 25px;
    width: 1px;
    background: #eee;
}

.ls-num {
    font-size: 32px;
    color: var(--primary);
    font-family: Tahoma, Arial;
    font-weight: bold;
    margin-bottom: 5px;
}

.ls-num span {
    font-size: 14px;
    font-weight: normal;
    color: #666;
}

.ls-label {
    font-size: 13px;
    color: #666;
}

.lc-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.lt-item {
    padding: 0 25px;
    height: 45px;
    line-height: 45px;
    font-size: 15px;
    cursor: pointer;
    position: relative;
}

.lt-item.active {
    color: var(--primary);
    font-weight: bold;
}

.lt-item.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
}

.lc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.lc-table th {
    background: #f9f9f9;
    padding: 12px 15px;
    font-weight: normal;
    color: #666;
    border-bottom: 1px solid #eee;
}

.lc-table td {
    padding: 15px;
    border-bottom: 1px dashed #eee;
    vertical-align: middle;
}

.lc-table tr:hover td {
    background: #fcfcfc;
}

.ct-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.ct-meta {
    font-size: 12px;
    color: #999;
}

.ct-prog-wrap {
    width: 100%;
    background: #eee;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 5px;
    overflow: hidden;
}

.ct-prog {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.ct-status {
    font-size: 12px;
    color: var(--primary);
}

.tb-btn {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 2px;
    font-size: 12px;
    transition: 0.2s;
    cursor: pointer;
}

.tb-btn:hover {
    background: var(--primary);
    color: #fff;
}