/* 基础样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #333;
}

/* 顶部通知栏 */
.header-top {
    background: #f8f9fa;
    padding: 8px 0;
    font-size: 14px;
}

.header-top p {
    margin: 0;
    color: #666;
}

.header-top a {
    color: var(--primary-color);
    text-decoration: none;
}

.header-right a {
    color: #666;
    text-decoration: none;
    margin-left: 15px;
    font-size: 14px;
}

/* 顶部通知栏网格布局优化 */
.header-top {
    display: flex;
    align-items: center;
    min-height: 40px;
}

.header-top .row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    width: 100%;
    min-height: 40px;
}

.header-top .col-lg-6,
.header-top .col-md-6 {
    display: flex;
    align-items: center;
    padding: 0 15px;
    flex: 1;
    min-width: 0;
    height: 40px;
}

.header-top .col-lg-6:first-child,
.header-top .col-md-6:first-child {
    justify-content: flex-start;
    flex: 1.2;
}

.header-top .col-lg-6:last-child,
.header-top .col-md-6:last-child {
    justify-content: flex-end;
    flex: 1;
}

.header-top p {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
}

.header-right a {
    font-size: 14px;
    white-space: nowrap;
}

.header-right span {
    font-size: 14px;
    white-space: nowrap;
}

/* 小屏幕下顶部导航栏单行布局 */
@media (max-width: 768px) {
    .header-top {
        min-height: 35px;
    }
    
    .header-top .row {
        flex-wrap: nowrap;
        min-height: 35px;
    }
    
    .header-top .col-lg-6,
    .header-top .col-md-6 {
        padding: 0 10px;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        height: 35px;
    }
    
    .header-top .col-lg-6:first-child,
    .header-top .col-md-6:first-child {
        flex: 1.2;
        justify-content: flex-start;
    }
    
    .header-top .col-lg-6:last-child,
    .header-top .col-md-6:last-child {
        flex: 1;
        justify-content: flex-end;
    }
    
    .header-top p {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.2;
    }
    
    .header-right {
        gap: 10px;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .header-right a {
        font-size: 11px;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .header-right span {
        font-size: 11px;
        white-space: nowrap;
        line-height: 1.2;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .header-top {
        padding: 6px 0;
        min-height: 30px;
    }
    
    .header-top .row {
        flex-wrap: nowrap;
        min-height: 30px;
    }
    
    .header-top .col-lg-6,
    .header-top .col-md-6 {
        padding: 0 5px;
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        height: 30px;
    }
    
    .header-top .col-lg-6:first-child,
    .header-top .col-md-6:first-child {
        flex: 1.2;
        justify-content: flex-start;
    }
    
    .header-top .col-lg-6:last-child,
    .header-top .col-md-6:last-child {
        flex: 1;
        justify-content: flex-end;
    }
    
    .header-top p {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 0;
        line-height: 1.2;
    }
    
    .header-right {
        gap: 6px;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }
    
    .header-right a {
        font-size: 10px;
        white-space: nowrap;
        line-height: 1.2;
    }
    
    .header-right span {
        font-size: 10px;
        white-space: nowrap;
        line-height: 1.2;
    }
}

.header-right a:hover {
    color: var(--primary-color);
}

/* 导航栏 */
.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 10px 15px !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.dropdown-item {
    padding: 8px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* 头部社交链接 */
.header-socials a {
    color: #666;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.header-socials a:hover {
    color: var(--primary-color);
}

/* 修复微信微博图标右下角短横线问题 */
.header-socials .fab,
.footer-socials .fab {
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 特别针对微信和微博图标 */
.header-socials .fa-weixin,
.header-socials .fa-weibo,
.footer-socials .fa-weixin,
.footer-socials .fa-weibo {
    font-weight: 400;
    font-style: normal;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
    text-underline-offset: 0 !important;
    text-underline-position: unset !important;
}

/* 确保链接本身也没有下划线 */
.header-socials a,
.footer-socials a {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

.header-socials a:hover,
.footer-socials a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    text-decoration-line: none !important;
    text-decoration-style: none !important;
    text-decoration-color: transparent !important;
}

/* 搜索表单 */
.header-form {
    display: flex;
    align-items: center;
}

.header-form .form-control {
    border-radius: 25px;
    border: 1px solid #ddd;
    padding: 8px 15px;
    font-size: 14px;
}

.header-form .btn {
    border-radius: 25px;
    margin-left: 5px;
}

/* 横幅区域 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.banner .subheading {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: block;
}

.banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* 按钮样式 */
.btn-main {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-main:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 页面头部 */
.page-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.page-header .list-inline {
    margin: 0;
}

.page-header .list-inline-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 区域标题 */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading .subheading {
    color: var(--primary-color);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
}

.section-heading h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

.section-heading p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.center-heading {
    text-align: center;
}

/* 特色功能 */
.feature-item {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.feature-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-text p {
    color: #666;
    line-height: 1.6;
}

/* 关于我们区域 */
.about-section {
    padding: 80px 0;
}

.video-block {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video-block img {
    width: 100%;
    height: auto;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.video-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.about-features i {
    color: var(--success-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-features h5 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

/* 课程卡片 */
.course-block {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.course-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.course-img {
    position: relative;
    overflow: hidden;
}

.course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-block:hover .course-img img {
    transform: scale(1.05);
}

.course-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.course-price2 {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.2rem;
}

.course-content {
    padding: 25px;
}

.course-cat {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-content h4 {
    margin: 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.course-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.course-content h4 a:hover {
    color: var(--primary-color);
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.course-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.course-label {
    background: var(--success-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* 课程底部区域 */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* 讲师信息 */
.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 讲师头像样式 */
.instructor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.course-instructor span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 统计数据 */
.counter-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.counter-item {
    text-align: center;
    padding: 20px;
}

.counter-item h6 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.counter-item .count {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-item p {
    opacity: 0.8;
    font-size: 14px;
}

/* 学员评价 */
.testimonial {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.testimonial-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.testionial-author {
    font-weight: 600;
    color: #333;
}

.testimonial-info-title h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.testimonial-info-desc p {
    color: #666;
    line-height: 1.6;
}

/* 博客文章 */
.blog-post-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.blog-post-item:hover {
    transform: translateY(-5px);
}

.post-thumb {
    overflow: hidden;
}

.post-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post-item:hover .post-thumb img {
    transform: scale(1.05);
}

.post-item {
    padding: 25px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.post-author a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-date i {
    margin-right: 5px;
    color: var(--primary-color);
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

/* 订阅区域 */
.subscribe {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form .form-control {
    flex: 1;
    border-radius: 25px;
    border: none;
    padding: 12px 20px;
}

.subscribe-form .btn {
    border-radius: 25px;
    padding: 12px 30px;
}

/* 页脚 */
.footer {
    background: #343a40;
    color: white;
    padding: 60px 0 0;
}

.footer-widget h5 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-socials {
    margin-top: 20px;
}

.footer-socials a {
    color: #adb5bd;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: var(--primary-color);
}

.footer-btm {
    border-top: 1px solid #495057;
    padding: 20px 0;
    margin-top: 40px;
}

.copyright p {
    margin: 0;
    color: #adb5bd;
    font-size: 14px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: inline-block;
    margin-right: 20px;
}

.footer-contact a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

/* 返回顶部按钮 */
.fixed-btm-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* 浮动元素响应式优化 */
@media (max-width: 768px) {
    .fixed-btm-top {
        bottom: 20px;
        right: 20px;
    }
    
    /* 浮动菜单或图标组优化 */
    .floating-menu,
    .floating-icons {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .floating-menu .floating-item,
    .floating-icons .floating-item {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }
    
    .floating-menu .floating-item:hover,
    .floating-icons .floating-item:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .fixed-btm-top {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-menu,
    .floating-icons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .floating-menu .floating-item,
    .floating-icons .floating-item {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.scroll-to-top {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

/* 课程详情页 */
.course-video {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.course-sidebar {
    position: sticky;
    top: 100px;
}

.course-price-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.course-features ul {
    list-style: none;
    padding: 0;
}

.course-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.course-stats .stat-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.course-stats h6 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* 登录注册页面 */
.card {
    border: none;
    border-radius: 15px;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }
    
    .banner p {
        font-size: 1rem;
    }
    
    .section-heading h3 {
        font-size: 2rem;
    }
    
    .header-right {
        text-align: center;
        margin-top: 10px;
    }
    
    .header-socials {
        text-align: center;
        margin-top: 15px;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .banner {
        padding: 60px 0;
    }
    
    .banner h1 {
        font-size: 1.8rem;
    }
    
    .section-heading h3 {
        font-size: 1.8rem;
    }
    
    .counter-item .count {
        font-size: 2.5rem;
    }
    
    .course-content {
        padding: 20px;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .course-instructor {
        gap: 8px;
    }
    
    .instructor-avatar {
        width: 35px;
        height: 35px;
    }
    
    .course-instructor span {
        font-size: 13px;
    }
    
    .testimonial-item {
        padding: 30px 20px;
    }
}
