﻿/**
 * 鍓嶅彴鍏叡鏍峰紡锛堢豢鑹蹭富棰樼編鍖栫増锛? * 鏂囦欢璺緞: /assets/css/style.css
 * 娉ㄦ剰锛氬叧閿覆鏌揅SS宸插唴鑱斿埌header.php锛屾澶勪负瀹屾暣澧炲己鏍峰紡
 */

/* ===== 鍙橀噺瀹氫箟 - 缁胯壊涓婚 ===== */
:root {
    /* 涓昏壊璋?- 缁胯壊绯?*/
    --primary-color: #2e7d32;
    --primary-hover: #1b5e20;
    --primary-light: #4caf50;
    --primary-lighter: #81c784;
    --primary-lightest: #c8e6c9;
    --primary-dark: #1b5e20;
    
    /* 杈呭姪鑹?*/
    --success-color: #43a047;
    --warning-color: #ff9800;
    --danger-color: #e53935;
    
    /* 鏂囧瓧棰滆壊 */
    --text-color: #333;
    --text-muted: #757575;
    --text-light: #9e9e9e;
    
    /* 杈规鍜岃儗鏅?*/
    --border-color: #e8f5e9;
    --bg-light: #f8fdf8;
    --bg-white: #ffffff;
    
    /* 闃村奖 */
    --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.08);
    --shadow: 0 4px 16px rgba(46, 125, 50, 0.12);
    --shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.16);
    --shadow-hover: 0 8px 24px rgba(46, 125, 50, 0.2);
    
    /* 鍦嗚 */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    /* 杩囨浮 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-footer {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 30%, #1b5e20 70%, #0d3d12 100%);
    color: #fff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #4caf50, #81c784, #4caf50, transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent);
    backdrop-filter: blur(1px);
}
.circle-1 { width: 300px; height: 300px; top: -100px; right: -50px; opacity: 0.4; }
.circle-2 { width: 200px; height: 200px; bottom: 50px; left: -80px; opacity: 0.3; }
.circle-3 { width: 150px; height: 150px; top: 40%; right: 20%; opacity: 0.25; }
.circle-4 { width: 100px; height: 100px; bottom: 100px; right: 30%; opacity: 0.2; }
.circle-5 { width: 80px; height: 80px; top: 20%; left: 15%; opacity: 0.15; }

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    text-align: center;
    justify-items: center;
    justify-content: center;
    align-items: center;
}
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-section h4 {
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}


.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section li {
    margin: 0;
}
.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    position: relative;
}
.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
    transition: width 0.3s ease;
}
.footer-section a:hover::after {
    width: 100%;
}

.footer-section a:hover {
    color: #fff;
    transform: translateY(-2px);
}


/* 社交链接 - 纵向排列 */
.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.3s ease !important;
    color: rgba(255,255,255,0.85) !important;
    min-width: 120px;
}
.social-item:hover {
    background: rgba(129,199,132,0.25) !important;
    border-color: rgba(129,199,132,0.4) !important;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(129,199,132,0.2) !important;
}
.social-item .social-icon {
    font-size: 16px;
}

/* 底部信息 */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-company {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
}
.info-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
}
.footer-copyright {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.icp-link {
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transition: color 0.3s;
}
.icp-link:hover {
    color: #81c784 !important;
}

/* ===== 鍏ㄥ眬鍔ㄧ敾 ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(46, 125, 50, 0.3); }
    50% { box-shadow: 0 0 20px rgba(46, 125, 50, 0.6); }
}

/* ===== 鍏憡婊氬姩鍔ㄧ敾 ===== */
@keyframes annScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 鍏憡鏍忥紙绱ц创杞挱鍥句笅鏂癸級 */
.ann-bar { 
    margin-top: -1px; 
    padding: 0; 
    transition: var(--transition);
}
.ann-bar:hover {
    background: var(--primary-lightest) !important;
}
.ann-inner { 
    display: flex; 
    align-items: center; 
    height: 44px; 
}
.ann-icon { 
    position: absolute; 
    left: calc(50% - 190px); 
    font-size: 18px; 
    z-index: 2; 
    pointer-events: none;
    animation: pulse 2s ease-in-out infinite;
}
.ann-scroll { 
    position: absolute; 
    left: calc(50% - 150px); 
    width: 300px; 
    overflow: hidden; 
    white-space: nowrap; 
    z-index: 1; 
}
.ann-track { 
    display: inline-block; 
    white-space: nowrap; 
    animation: annScroll 30s linear infinite; 
}
.ann-track:hover { 
    animation-play-state: paused; 
}
.ann-item { 
    display: inline; 
    cursor: default;
    transition: var(--transition-fast);
}
.ann-item:hover {
    color: var(--primary-color) !important;
}

/* ===== 杞挱鍥?===== */
.hero-banner { 
    position: relative; 
    height: 420px; 
    overflow: hidden; 
    margin-bottom: 0; 
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}
.banner-slider { 
    height: 100%; 
}
.banner-item { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 0.8s ease; 
}
.banner-item.active { 
    opacity: 1; 
}
.banner-content { 
    position: absolute; 
    bottom: 60px; 
    left: 10%; 
    color: #fff; 
    text-shadow: 0 2px 20px rgba(0,0,0,0.4); 
    animation: fadeIn 0.8s ease;
}
.banner-content h2 { 
    font-size: 38px; 
    margin-bottom: 20px; 
    font-weight: 700;
}
.banner-link { 
    display: inline-block; 
    padding: 12px 36px; 
    background: var(--primary-light); 
    color: #fff; 
    border-radius: 30px; 
    transition: var(--transition);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.banner-link:hover { 
    background: var(--primary-hover); 
    color: #fff; 
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.banner-dots { 
    position: absolute; 
    bottom: 25px; 
    left: 0; transform: none; 
    display: flex; 
    gap: 12px; 
}
.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background: rgba(255,255,255,0.4); 
    cursor: pointer; 
    transition: var(--transition);
}
.dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}
.dot.active { 
    background: #fff; 
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ===== 鍒嗙被鍗＄墖 ===== */
.section { 
    padding: 50px 0; 
}
.section-title { 
    font-size: 26px; 
    margin-bottom: 35px; 
    text-align: center;
    position: relative;
    color: var(--primary-dark);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 12px auto 0;
    border-radius: 2px;
}
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
}
.category-card { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 35px 25px; 
    background: #fff; 
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: var(--transition);
}
.category-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-lighter);
}
.category-card:hover::before {
    transform: scaleX(1);
}
.category-card:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}
.category-icon { 
    font-size: 45px; 
    margin-bottom: 18px;
    transition: var(--transition);
}
.category-name { 
    font-size: 16px; 
    color: var(--text-color);
    font-weight: 500;
}

/* ===== 璇剧▼鍗＄墖 ===== */
.course-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px; 
}
.course-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fdf8 100%);
    border: 1px solid rgba(46,125,50,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(46,125,50,0.06);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(46,125,50,0.18);
    border-color: rgba(46,125,50,0.3);
}
.course-card:hover::after {
    height: 30%;
}
.course-cover { 
    position: relative; 
    height: 190px; 
    overflow: hidden; 
    background: linear-gradient(135deg, var(--bg-light), #e8f5e9);
}
.course-cover img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition);
}
.course-card:hover .course-cover img { 
    transform: scale(1.08); 
}
.tag-free { 
    position: absolute; 
    top: 12px; 
    left: 12px; 
    background: var(--success-color); 
    color: #fff; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}
.tag-recommend { 
    position: absolute; 
    top: 12px; 
    right: 12px; 
    background: linear-gradient(135deg, var(--warning-color), #ffb74d); 
    color: #fff; 
    padding: 5px 14px; 
    border-radius: 20px; 
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.course-info { 
    padding: 18px;
    position: relative;
    z-index: 1;
}
.course-title { 
    font-size: 16px; 
    margin-bottom: 12px; 
    height: 46px; 
    overflow: hidden; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition-fast);
}
.course-card:hover .course-title {
    color: var(--primary-color);
}
.course-meta { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 12px; 
    display: flex; 
    justify-content: space-between;
}
.course-price { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}
.price { 
    color: var(--danger-color); 
    font-size: 20px; 
    font-weight: bold;
}
.price-free { 
    color: var(--success-color); 
    font-size: 20px; 
    font-weight: bold;
}
.vip-price { 
    font-size: 13px; 
    color: var(--warning-color);
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ===== 鍖哄煙澶撮儴 ===== */
.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 30px; 
}
.section-header .section-title {
    margin-bottom: 0;
}
.more-link { 
    color: var(--text-muted); 
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}
.more-link:hover {
    color: var(--primary-color);
    gap: 8px;
}

/* ===== 璇剧▼鍒楄〃椤?===== */
.page-container { 
    padding: 35px 0; 
}
.page-header { 
    margin-bottom: 35px; 
}
.page-header h1 { 
    font-size: 30px; 
    margin-bottom: 12px;
    color: var(--primary-dark);
}
.breadcrumb { 
    color: var(--text-muted); 
    font-size: 14px; 
}
.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition-fast);
}
.breadcrumb a:hover {
    color: var(--primary-hover);
}
.filter-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: #fff; 
    padding: 18px 25px; 
    border-radius: var(--radius); 
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.filter-group { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}
.filter-group label { 
    color: var(--text-color); 
    font-size: 14px;
    font-weight: 500;
}
.filter-group select { 
    padding: 10px 18px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    font-size: 14px;
    transition: var(--transition-fast);
    background: #fff;
    cursor: pointer;
}
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lightest);
}
.sort-tabs { 
    display: flex; 
    gap: 24px; 
}
.sort-tabs a { 
    color: var(--text-muted); 
    font-size: 14px; 
    padding: 8px 0; 
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
    font-weight: 500;
}
.sort-tabs a:hover {
    color: var(--primary-color);
}
.sort-tabs a.active { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color); 
}
.search-result { 
    background: #fff; 
    padding: 18px 25px; 
    border-radius: var(--radius); 
    margin-bottom: 25px; 
    font-size: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

/* ===== 璇剧▼璇︽儏 ===== */
.course-detail-header { 
    display: flex; 
    gap: 35px; 
    background: #fff; 
    padding: 35px; 
    border-radius: var(--radius-lg); 
    margin-bottom: 35px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.course-detail-header .course-cover { 
    width: 420px; 
    height: 260px; 
    flex-shrink: 0; 
    border-radius: var(--radius); 
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.course-detail-header .course-cover img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: var(--transition);
}
.course-detail-header .course-cover:hover img {
    transform: scale(1.05);
}
.course-basic { 
    flex: 1; 
}
.course-basic h1 { 
    font-size: 28px; 
    margin-bottom: 18px; 
    line-height: 1.4;
    color: var(--text-color);
}
.course-basic .course-meta { 
    margin-bottom: 25px; 
}
.course-basic .course-meta .meta-item { 
    margin-right: 25px; 
    font-size: 14px;
    color: var(--text-muted);
}
.course-desc { 
    color: var(--text-muted); 
    margin-bottom: 25px; 
    font-size: 14px; 
    line-height: 1.9; 
}
.course-price-row { 
    margin-bottom: 25px; 
    font-size: 26px; 
}
.course-actions { 
    display: flex; 
    gap: 18px; 
}
.content-tabs { 
    display: flex; 
    background: #fff; 
    border-radius: var(--radius) var(--radius) 0 0; 
    margin-bottom: 0;
    border-bottom: 2px solid var(--border-color);
    overflow: hidden;
}
.tab-item { 
    padding: 18px 35px; 
    cursor: pointer; 
    color: var(--text-muted); 
    border-bottom: 3px solid transparent; 
    margin-bottom: -2px; 
    font-size: 15px; 
    transition: var(--transition-fast);
    font-weight: 500;
    position: relative;
}
.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}
.tab-item:hover { 
    color: var(--primary-color); 
    background: var(--primary-lightest);
}
.tab-item.active { 
    border-bottom-color: var(--primary-color); 
    color: var(--primary-color);
}
.tab-item.active::after {
    width: 100%;
}
.tab-content { 
    background: #fff; 
    padding: 35px; 
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow-sm);
}
.lesson-list { 
    display: flex; 
    flex-direction: column; 
}
.lesson-item { 
    display: flex; 
    align-items: center; 
    padding: 18px; 
    border-bottom: 1px solid var(--border-color); 
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
}
.lesson-item:hover { 
    background: var(--primary-lightest); 
}
.lesson-index { 
    width: 40px; 
    height: 40px; 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    align-items: center; 
    margin-right: 18px; 
    font-weight: bold; 
    font-size: 14px; 
    flex-shrink: 0;
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.lesson-info { 
    flex: 1; 
}
.lesson-info h4 { 
    margin: 0 0 6px; 
    font-size: 15px;
    color: var(--text-color);
}
.tag-free, .tag-progress { 
    font-size: 12px; 
    margin-left: 12px; 
    padding: 3px 10px; 
    border-radius: 12px; 
}
.tag-free { 
    background: var(--primary-lightest); 
    color: var(--success-color); 
}
.tag-progress { 
    background: #e3f2fd; 
    color: var(--primary-color); 
}
.lesson-action .btn-play { 
    padding: 8px 20px; 
    background: var(--primary-color); 
    color: #fff; 
    border-radius: 20px; 
    font-size: 13px; 
    border: none; 
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}
.lesson-action .btn-play:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}
.lesson-action .btn-locked { 
    color: var(--text-light); 
    font-size: 13px; 
}

/* ===== 璇勮 ===== */
.comment-form { 
    margin-bottom: 35px; 
    padding-bottom: 35px; 
    border-bottom: 1px solid var(--border-color); 
}
.comment-form h3 { 
    margin-bottom: 18px;
    color: var(--primary-dark);
}
.comment-form textarea { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius); 
    margin-bottom: 18px; 
    font-size: 14px; 
    resize: vertical;
    transition: var(--transition-fast);
}
.comment-form textarea:focus { 
    outline: none; 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 3px var(--primary-lightest);
}
.comment-list { 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}
.comment-item { 
    display: flex; 
    gap: 18px;
    animation: fadeIn 0.5s ease;
}
.comment-avatar img { 
    width: 55px; 
    height: 55px; 
    border-radius: 50%;
    border: 3px solid var(--primary-lighter);
    transition: var(--transition);
}
.comment-item:hover .comment-avatar img {
    border-color: var(--primary-color);
}
.comment-content { 
    flex: 1; 
}
.comment-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px; 
}
.comment-author { 
    font-weight: 600; 
    font-size: 14px;
    color: var(--text-color);
}
.comment-rating { 
    color: var(--warning-color); 
    font-size: 14px; 
}
.comment-body { 
    color: var(--text-muted); 
    margin-bottom: 12px; 
    font-size: 14px; 
    line-height: 1.9; 
}
.comment-time { 
    font-size: 13px; 
    color: var(--text-light); 
}

/* ===== 鎸夐挳绯荤粺 ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    box-shadow: 0 2px 8px rgba(46,125,50,0.25); 
    padding: 12px 24px; 
    border: none; 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    font-size: 14px; 
    text-align: center; 
    transition: var(--transition); 
    line-height: 1.5;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
}
.btn:active::after {
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    opacity: 0;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)); 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline { 
    background: #fff; 
    border: 2px solid var(--border-color); 
    color: var(--text-color);
}
.btn-outline:hover { 
    border-color: var(--primary-color); 
    color: var(--primary-color);
    background: var(--primary-lightest);
}
.btn-warning { 
    background: linear-gradient(135deg, #ffa726, var(--warning-color)); 
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-danger { 
    background: linear-gradient(135deg, #ef5350, var(--danger-color)); 
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-lg { 
    padding: 16px 36px; 
    font-size: 16px;
    border-radius: var(--radius);
}
.btn-sm { 
    padding: 6px 14px; 
    font-size: 13px; 
}

/* ===== 绌虹姸鎬?===== */
.empty-state { 
    text-align: center; 
    padding: 80px 25px; 
    color: var(--text-muted);
}
.empty-state p { 
    margin-bottom: 25px;
    font-size: 16px;
}

/* ===== 鍒嗛〉 ===== */
.pagination { 
    display: flex; 
    justify-content: center;
    align-items: center; 
    gap: 10px; 
    margin-top: 35px; 
}
.pagination a, .pagination span { 
    padding: 10px 16px; 
    border-radius: var(--radius-sm); 
    font-size: 14px;
    transition: var(--transition-fast);
}
.pagination a { 
    background: #fff; 
    border: 2px solid var(--border-color); 
    color: var(--text-color);
}
.pagination a:hover { 
    border-color: var(--primary-color); 
    color: var(--primary-color);
    background: var(--primary-lightest);
}
.pagination span.current { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    color: #fff;
    border: none;
    box-shadow: var(--shadow-sm);
}

/* ===== 寮圭獥 ===== */
.modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.6); 
    z-index: 1000; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.modal-content { 
    background: #fff; 
    border-radius: var(--radius-lg); 
    max-width: 500px; 
    width: 90%; 
    max-height: 80vh; 
    overflow: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}
.modal-header { 
    padding: 25px; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.modal-close { 
    font-size: 28px; 
    cursor: pointer; 
    color: var(--text-light);
    transition: var(--transition-fast);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}
.modal-close:hover { 
    color: var(--danger-color);
    background: var(--primary-lightest);
}
.modal-body { 
    padding: 25px; 
}

/* ===== Toast ===== */
#toast-container { 
    position: fixed; 
    top: 80px; 
    right: 25px; 
    z-index: 2000; 
}
.toast { 
    padding: 14px 24px; 
    background: linear-gradient(135deg, #424242, #616161); 
    color: #fff; 
    border-radius: var(--radius); 
    margin-bottom: 12px; 
    font-size: 14px; 
    animation: toast-in .4s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
}
.toast.success { 
    background: linear-gradient(135deg, #43a047, #66bb6a);
    border-left-color: #2e7d32;
}
.toast.error { 
    background: linear-gradient(135deg, #e53935, #ef5350);
    border-left-color: #b71c1c;
}
@keyframes toast-in { 
    from { 
        transform: translateX(100px); 
        opacity: 0; 
    } 
    to { 
        transform: translateX(0); 
        opacity: 1; 
    } 
}

/* ===== 纭妗?===== */
.confirm-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background: rgba(0,0,0,0.6); 
    z-index: 1500; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}
.confirm-box { 
    background: #fff; 
    padding: 35px; 
    border-radius: var(--radius-lg); 
    max-width: 420px; 
    width: 90%; 
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}
.confirm-title { 
    font-size: 20px; 
    margin-bottom: 18px;
    color: var(--primary-dark);
    font-weight: 600;
}
.confirm-message { 
    margin-bottom: 25px; 
    color: var(--text-muted); 
    font-size: 15px;
    line-height: 1.7;
}
.confirm-buttons { 
    display: flex; 
    gap: 18px; 
    justify-content: center;
    align-items: center; 
}
.confirm-buttons button { 
    padding: 10px 28px; 
    border: none; 
    border-radius: var(--radius-sm); 
    cursor: pointer; 
    font-size: 14px;
    transition: var(--transition);
    font-weight: 500;
}
.btn-cancel { 
    background: var(--bg-light); 
    color: var(--text-muted);
    border: 2px solid var(--border-color);
}
.btn-cancel:hover {
    background: #e0e0e0;
}
.btn-confirm { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===== 琛ㄥ崟 ===== */
.form-group { 
    margin-bottom: 20px; 
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-group label { 
    display: flex;
    align-items: center;
    min-width: 70px;
    font-weight: 500; 
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
    flex-shrink: 0;
}
.form-group input, .form-group select, .form-group textarea { 
    flex: 1;
    min-width: 0; 
    padding: 12px 16px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-sm); 
    font-size: 14px; 
    transition: var(--transition-fast);
    background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { 
    outline: none; 
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-lightest);
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-light);
}

/* ===== 搴曢儴 - 娣辩豢鑹蹭富棰?===== */
/* ===== Footer 深绿色主题 ===== */
.site-footer { 
    background: linear-gradient(180deg, #1b5e20 0%, #0d3d12 100%); 
    color: #fff; 
    padding: 50px 0 25px; 
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}
/* 顶部闪光条 */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--success-color), var(--primary-light));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
/* 装饰圆形 */
.footer-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.circle-1 { width: 300px; height: 300px; top: -100px; left: -80px; }
.circle-2 { width: 200px; height: 200px; bottom: 20px; right: 10%; }
.circle-3 { width: 150px; height: 150px; top: 30%; right: -50px; }
.circle-4 { width: 80px; height: 80px; bottom: 40%; left: 15%; }
.circle-5 { width: 120px; height: 120px; top: 50%; left: 40%; background: rgba(76,175,80,0.20); }
/* Footer内层 */
.footer-inner { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    margin-bottom: 30px; 
    position: relative;
    z-index: 1;

    justify-content: center;}
/* 每列纵向排列 */
.footer-section { 
    display: flex;
    flex-direction: column;
}
.footer-section h4 { 
    margin-bottom: 20px; 
    font-size: 17px;
    position: relative;
    padding-bottom: 12px;
}
.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: var(--transition);
}
.footer-section:hover h4::after {
    width: 60px;
}


.footer-section ul { 
    list-style: none; 
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.footer-section li { 
    margin: 0; 
}
.footer-section a { 
    color: rgba(255,255,255,0.75); 
    font-size: 14px;
    transition: var(--transition-fast);
    display: inline-block;
    position: relative;
}

.footer-section a:hover { 
    color: #fff;
    transform: translateX(5px);
}

/* 底部信息 - 横向排列 */
.footer-bottom { 
    text-align: center; 
    padding-top: 25px; 
    border-top: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 1;
}
.footer-company {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
    align-items: center;
        gap: 12px;
    }
.social-links a:hover {
    background: rgba(76,175,80,0.2);
    transform: translateX(5px);
}
.social-icon {
    font-size: 14px;
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 12px;
}
.social-links a:hover {
    background: rgba(76,175,80,0.2);
    transform: translateX(5px);
}
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: repeat(3, 1fr);
    
    justify-content: center;}; 
        gap: 30px;
    }
    .footer-section {
        width: 100%;
    }
    .footer-company {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
    align-items: center;
        gap: 12px;
    }
    .social-links {
        flex-direction: column;
    }
}

/* ===== 瑙嗛鎾斁椤?===== */
.video-player-wrap { 
    background: #000; 
    position: relative; 
}
.video-container { 
    position: relative; 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.video-js { 
    width: 100%; 
}
.course-play-page { 
    display: flex; 
    min-height: calc(100vh - 200px); 
}
.video-main { 
    flex: 1; 
    padding: 25px; 
}
.video-sidebar { 
    width: 320px; 
    background: var(--bg-light); 
    border-left: 1px solid var(--border-color);
}
.video-title { 
    font-size: 20px; 
    margin-bottom: 18px; 
    color: var(--text-color);
}
.lesson-list-sidebar { 
    max-height: 500px; 
    overflow-y: auto; 
}
.lesson-item-sidebar { 
    padding: 14px 18px; 
    border-bottom: 1px solid var(--border-color); 
    cursor: pointer; 
    font-size: 14px; 
    transition: var(--transition-fast);
}
.lesson-item-sidebar:hover { 
    background: var(--primary-lightest); 
}
.lesson-item-sidebar.active { 
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color)); 
    color: #fff;
}
.lesson-item-sidebar .lesson-status { 
    font-size: 12px; 
    color: var(--text-light); 
}
.lesson-item-sidebar.active .lesson-status { 
    color: rgba(255,255,255,0.8); 
}
.progress-bar { 
    height: 5px; 
    background: var(--border-color); 
    margin-top: 10px; 
    border-radius: 3px; 
    overflow: hidden; 
}
.progress-bar .progress-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color)); 
    border-radius: 3px; 
    transition: width .3s; 
}
.learn-progress { 
    margin: 25px 0; 
    padding: 18px; 
    background: #fff; 
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.learn-progress span { 
    font-size: 14px; 
    color: var(--text-muted); 
}
.video-extra { 
    margin-top: 35px; 
}
.extra-tabs { 
    display: flex; 
    gap: 25px; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 18px; 
}
.extra-tabs div { 
    padding: 12px 0; 
    cursor: pointer; 
    color: var(--text-muted); 
    border-bottom: 3px solid transparent; 
    font-size: 14px;
    transition: var(--transition-fast);
    font-weight: 500;
}
.extra-tabs div:first-child { 
    color: var(--primary-color); 
    border-bottom-color: var(--primary-color); 
}

/* ===== 璁よ瘉椤甸潰 ===== */
.auth-page { 
    padding: 80px 0; 
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-lightest) 100%); 
    min-height: calc(100vh - 200px); 
    display: flex; 
    align-items: center; 
    justify-content: center;
    align-items: center; 
}
.auth-card { 
    max-width: 420px; 
    width: 100%; 
    background: #fff; 
    padding: 45px; 
    border-radius: var(--radius-lg); 
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.auth-card h2 { 
    text-align: center; 
    margin-bottom: 35px; 
    font-size: 24px;
    color: var(--primary-dark);
}
.alert { 
    padding: 14px 18px; 
    border-radius: var(--radius-sm); 
    margin-bottom: 25px; 
    font-size: 14px;
}
.alert-error { 
    background: #ffebee; 
    color: #c62828;
    border-left: 4px solid var(--danger-color);
}
.alert-success { 
    background: var(--primary-lightest); 
    color: var(--primary-dark);
    border-left: 4px solid var(--primary-color);
}
.checkbox-label { 
    display: flex; 
    align-items: center; 
    font-weight: normal; 
    font-size: 14px;
    cursor: pointer;
}
.checkbox-label input { 
    margin-right: 10px;
    accent-color: var(--primary-color);
}
.btn-block { 
    display: block; 
    width: 100%; 
    text-align: center; 
}
.auth-footer { 
    text-align: center; 
    margin-top: 25px; 
    font-size: 14px; 
}
.auth-footer a { 
    color: var(--primary-color);
    transition: var(--transition-fast);
}
.auth-footer a:hover {
    color: var(--primary-hover);
}

/* ===== 涓汉涓績 ===== */
.user-page { 
    padding: 35px 0; 
    min-height: calc(100vh - 200px); 
    background: var(--bg-light); 
}
.user-layout { 
    display: flex; 
    gap: 25px; 
}
.user-sidebar { 
    width: 260px; 
    flex-shrink: 0; 
}
.user-content { 
    flex: 1; 
    min-width: 0; 
}
.user-info-card { 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    text-align: center; 
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.avatar-lg { 
    width: 90px; 
    height: 90px; 
    border-radius: 50%; 
    object-fit: cover; 
    margin-bottom: 15px;
    border: none;
    box-shadow: none;}
    transition: var(--transition);
}
.user-info-card:hover .avatar-lg {
    border-color: var(--primary-color);
    transform: scale(1.05);
}
.user-info-card h3 { 
    margin: 12px 0 6px; 
    font-size: 17px;
    color: var(--text-color);
}
.user-info-card p { 
    color: var(--text-muted); 
    font-size: 14px; 
    margin: 0; 
}
.vip-badge { 
    display: inline-block; 
    background: linear-gradient(135deg, #FFD700, #FFA500); 
    color: #fff; 
    padding: 5px 14px; 
    border-radius: 15px; 
    font-size: 12px; 
    margin-top: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.user-menu { 
    background: #fff; 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.user-menu a { 
    display: block; 
    padding: 16px 25px; 
    border-bottom: 1px solid var(--border-color); 
    color: var(--text-color); 
    font-size: 14px; 
    transition: var(--transition-fast);
    position: relative;
}
.user-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: var(--transition);
}
.user-menu a:hover, .user-menu a.active { 
    background: var(--primary-lightest); 
    color: var(--primary-color);
    border-bottom-color: var(--border-color);
}
.user-menu a:hover::before, .user-menu a.active::before {
    transform: scaleY(1);
}
.user-menu a:last-child { 
    border-bottom: none; 
}
.content-box { 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.content-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 25px; 
    padding-bottom: 18px; 
    border-bottom: 1px solid var(--border-color); 
}
.content-header h2 { 
    margin: 0; 
    font-size: 19px;
    color: var(--primary-dark);
}

/* ===== 璐墿杞?===== */
.cart-layout { 
    display: flex; 
    gap: 25px; 
}
.cart-list { 
    flex: 1; 
}
.cart-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: #fff; 
    border-radius: var(--radius-lg); 
    margin-bottom: 18px; 
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.cart-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-lighter);
}
.item-checkbox { 
    padding: 12px; 
}
.item-checkbox input { 
    width: 20px; 
    height: 20px;
    accent-color: var(--primary-color);
}
.item-cover { 
    width: 130px; 
    flex-shrink: 0; 
}
.item-cover img { 
    width: 100%; 
    height: 75px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.item-info { 
    flex: 1; 
    min-width: 0; 
}
.item-info h3 { 
    margin: 0 0 10px; 
    font-size: 16px;
    color: var(--text-color);
}
.item-meta { 
    font-size: 13px; 
    color: var(--text-muted); 
}
.item-meta .price { 
    color: var(--danger-color); 
    margin-left: 12px; 
}
.item-meta .price-free { 
    color: var(--success-color); 
    margin-left: 12px; 
}
.item-action { 
    flex-shrink: 0; 
}
.btn-remove { 
    background: none; 
    border: none; 
    color: var(--text-light); 
    cursor: pointer; 
    font-size: 13px; 
    padding: 8px 14px;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}
.btn-remove:hover { 
    color: var(--danger-color);
    background: #ffebee;
}
.cart-summary { 
    width: 320px; 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    height: fit-content; 
    position: sticky; 
    top: 90px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.summary-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 14px; 
}
.summary-row.total { 
    font-size: 20px; 
    font-weight: bold; 
    border-bottom: none; 
    padding-top: 18px;
    color: var(--text-color);
}
.total-price { 
    color: var(--danger-color); 
}

/* ===== 鏀粯椤?===== */
.pay-layout { 
    max-width: 620px; 
    margin: 0 auto; 
}
.order-summary { 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.order-no { 
    font-size: 14px; 
    color: var(--text-muted); 
    margin-bottom: 18px; 
    padding-bottom: 18px; 
    border-bottom: 1px solid var(--border-color); 
}
.order-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 0; 
    border-bottom: 1px solid var(--bg-light); 
    font-size: 14px; 
}
.order-item img { 
    width: 65px; 
    height: 40px; 
    object-fit: cover; 
    border-radius: 4px; 
}
.order-item span:first-of-type { 
    flex: 1; 
}
.order-item .price { 
    color: var(--danger-color); 
}
.order-total { 
    display: flex; 
    justify-content: space-between; 
    padding: 18px 0 0; 
    font-size: 20px; 
    font-weight: bold;
    color: var(--text-color);
}
.total-price { 
    color: var(--danger-color); 
}
.pay-methods { 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.method-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    margin-bottom: 25px; 
}
.method-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 18px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius); 
    cursor: pointer; 
    transition: var(--transition);
}
.method-item:hover { 
    border-color: var(--primary-light);
    background: var(--primary-lightest);
}
.method-item.selected { 
    border-color: var(--primary-color); 
    background: var(--primary-lightest);
    box-shadow: 0 0 0 3px var(--primary-lightest);
}
.method-item input { 
    display: none; 
}
.method-name { 
    font-size: 16px;
    color: var(--text-color);
}
.pay-tips { 
    margin-top: 25px; 
    padding: 18px; 
    background: var(--bg-light); 
    border-radius: var(--radius-sm); 
    font-size: 13px; 
    color: var(--text-muted);
    border-left: 4px solid var(--primary-color);
}
.pay-tips p { 
    margin: 6px 0; 
}

/* ===== 缁撶畻椤?===== */
.checkout-layout { 
    display: flex; 
    gap: 25px; 
}
.checkout-items { 
    flex: 1; 
}
.checkout-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: #fff; 
    border-radius: var(--radius-lg); 
    margin-bottom: 12px; 
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.checkout-item img { 
    width: 130px; 
    height: 75px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.checkout-item .item-info { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
}
.checkout-item h4 { 
    margin: 0 0 12px; 
    font-size: 16px;
    color: var(--text-color);
}
.checkout-summary { 
    width: 370px; 
    background: #fff; 
    padding: 25px; 
    border-radius: var(--radius-lg); 
    height: fit-content; 
    position: sticky; 
    top: 90px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.coupon-input { 
    display: flex; 
    gap: 12px; 
}
.coupon-input input { 
    flex: 1; 
    padding: 12px; 
    border: 2px solid var(--border-color); 
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.coupon-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* ===== 璁㈠崟 ===== */
.order-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: var(--bg-light); 
    border-radius: var(--radius-lg); 
    margin-bottom: 18px;
    transition: var(--transition);
}
.order-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.order-cover { 
    width: 110px; 
    flex-shrink: 0; 
}
.order-cover img { 
    width: 100%; 
    height: 65px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.order-info { 
    flex: 1; 
    min-width: 0; 
}
.order-info h3 { 
    margin: 0 0 10px; 
    font-size: 16px;
    color: var(--text-color);
}
.order-meta { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 6px; 
}
.order-meta span { 
    margin-right: 18px; 
}
.status-pending { 
    color: var(--warning-color);
    font-weight: 500;
}
.status-paid { 
    color: var(--success-color);
    font-weight: 500;
}
.status-cancelled { 
    color: var(--text-light);
}
.order-actions { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    justify-content: center;
    align-items: center; 
}

/* ===== 鎴戠殑璇剧▼ ===== */
.my-course-list { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}
.my-course-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: var(--bg-light); 
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.my-course-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.my-course-item .course-cover { 
    width: 100%; 
    flex-shrink: 0;
}
.my-course-item .course-cover {
    max-width: 280px;
    flex-shrink: 0;
}
.my-course-item .course-cover img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-sm);
.my-course-item .course-info { 
    flex: 1; 
    min-width: 0; 
}
.my-course-item .course-info h3 { 
    margin: 0 0 10px; 
    font-size: 17px; 
}
.my-course-item .course-info h3 a { 
    color: var(--text-color); 
    text-decoration: none;
    transition: var(--transition-fast);
}
.my-course-item .course-info h3 a:hover { 
    color: var(--primary-color); 
}
.course-meta-list { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 12px; 
}
.course-meta-list span { 
    margin-right: 18px; 
}
.progress-wrap { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 10px; 
}
.progress-wrap .progress-bar { 
    flex: 1; 
    height: 7px; 
    background: var(--border-color); 
    border-radius: 4px; 
    overflow: hidden; 
}
.progress-wrap .progress-fill { 
    height: 100%; 
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color)); 
    border-radius: 4px; 
}
.progress-wrap .progress-text { 
    font-size: 13px; 
    color: var(--primary-color);
    font-weight: 500;
}
.last-learn { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin: 0; 
}

/* ===== 鏀惰棌 ===== */
.fav-list { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}
.fav-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: var(--bg-light); 
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.fav-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.fav-cover { 
    width: 130px; 
    flex-shrink: 0; 
}
.fav-cover img { 
    width: 100%; 
    height: 75px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.fav-info { 
    flex: 1; 
    min-width: 0; 
}
.fav-info h3 { 
    margin: 0 0 10px; 
    font-size: 16px; 
}
.fav-info h3 a { 
    color: var(--text-color); 
    text-decoration: none;
    transition: var(--transition-fast);
}
.fav-info h3 a:hover { 
    color: var(--primary-color); 
}
.fav-meta { 
    font-size: 13px; 
    color: var(--text-muted); 
    margin-bottom: 6px; 
}
.fav-meta .price { 
    color: var(--danger-color); 
    margin-left: 12px; 
}
.fav-time { 
    font-size: 12px; 
    color: var(--text-light); 
}
.fav-action { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    justify-content: center;
    align-items: center; 
}

/* ===== 璇勮(鐢ㄦ埛) ===== */
.comment-user-list { 
    display: flex; 
    flex-direction: column; 
    gap: 18px; 
}
.comment-user-item { 
    display: flex; 
    gap: 18px; 
    padding: 18px; 
    background: var(--bg-light); 
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.comment-user-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.comment-user-cover { 
    width: 90px; 
    flex-shrink: 0; 
}
.comment-user-cover img { 
    width: 100%; 
    height: 55px; 
    object-fit: cover; 
    border-radius: var(--radius-sm);
}
.comment-user-info { 
    flex: 1; 
}
.comment-user-info h3 { 
    margin: 0 0 6px; 
    font-size: 15px;
    color: var(--text-color);
}
.comment-user-rating { 
    color: var(--warning-color); 
    font-size: 13px; 
    margin-bottom: 6px; 
}
.comment-user-text { 
    font-size: 14px; 
    color: var(--text-muted); 
    margin: 6px 0;
    line-height: 1.7;
}
.comment-user-time { 
    font-size: 12px; 
    color: var(--text-light); 
}

/* ===== 涓汉璧勬枡 ===== */
.profile-form { 
    max-width: 520px; 
}
.avatar-group .avatar-upload { 
    display: flex; 
    gap: 25px; 
    align-items: flex-start; 
}
.avatar-preview { 
    width: 110px; 
    height: 110px; 
    border-radius: 50%; 
    object-fit: cover;
    border: 4px solid var(--primary-lighter);
    transition: var(--transition);
}
.avatar-preview:hover {
    border-color: var(--primary-color);
}
.avatar-actions input[type="file"] { 
    display: none; 
}
.help-text { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 6px; 
}
.form-actions { 
    margin-top: 35px; 
}
.form-group input:disabled { 
    background: var(--bg-light); 
    color: var(--text-muted); 
}

/* ===== 婊氬姩鏉＄編鍖?===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-lighter);
    border-radius: 4px;
    transition: var(--transition);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ===== 閫夋嫨鏂囨湰棰滆壊 ===== */
::selection {
    background: var(--primary-light);
    color: #fff;
}

/* Footer 三列居中强制覆盖 */
.site-footer .footer-inner {
    justify-content: center !important;
    align-items: center !important;
}
.footer-section {
    align-items: center !important;
}
.footer-section ul {
    align-items: center !important;
}
.footer-section ul li {
    text-align: center;
}


/* ===== 用户中心页面渐变 + 微交互 ===== */
.user-page {
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 40%, #f1f8e9 70%, #eefdf0 100%) !important;
    background-attachment: fixed;
}
.user-info-card {
    background: linear-gradient(145deg, #ffffff, #f8fff8) !important;
    border: 1px solid rgba(46,125,50,0.10) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.user-info-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(46,125,50,0.15) !important;
}
.avatar-lg {
    border: 3px solid rgba(76,175,80,0.2);
    transition: transform 0.3s ease !important;
}
.avatar-lg:hover {
    transform: scale(1.08) rotate(3deg) !important;
}
.vip-badge {
    animation: vipGlow 2s ease-in-out infinite alternate;
}
@keyframes vipGlow {
    from { box-shadow: 0 0 5px rgba(255,215,0,0.3); }
    to { box-shadow: 0 0 16px rgba(255,215,0,0.6); }
}
.user-menu {
    background: linear-gradient(180deg, #ffffff, #fafafa) !important;
    transition: box-shadow 0.3s ease !important;
}
.user-menu:hover {
    box-shadow: 0 6px 24px rgba(46,125,50,0.12) !important;
}
.user-menu a {
    position: relative;
    overflow: hidden;
}
.user-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}
.user-menu a:hover::before {
    left: 100%;
}
.content-box {
    background: linear-gradient(145deg, #ffffff, #fcfffc) !important;
    border: 1px solid rgba(46,125,50,0.06) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(46,125,50,0.10) !important;
}


/* ===== 用户页面按钮/表单 渐变+微交互增强 ===== */

/* 按钮增强 */
.btn {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 40%, #2e7d32 100%) !important;
    background-size: 200% 200%;
    animation: btnGradientShift 3s ease infinite;
}
@keyframes btnGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46,125,50,0.35) !important;
    filter: brightness(1.05);
}
.btn:active {
    transform: translateY(0) scale(0.98);
}

/* 主要按钮 */
.btn-primary {
    background: linear-gradient(135deg, #81c784 0%, #4caf50 50%, #388e3c 100%) !important;
    background-size: 200% 200%;
    animation: btnGradientShift 4s ease infinite;
    box-shadow: 0 4px 15px rgba(76,175,80,0.3) !important;
}
.btn-primary:hover {
    box-shadow: 0 8px 28px rgba(76,175,80,0.45) !important;
    transform: translateY(-3px);
}

/* 表单输入框柔和化 */
.user-page .form-group input,
.user-page .form-group select,
.user-page .form-group textarea {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #ffffff, #fafafa);
    transition: all 0.3s ease !important;
}
.user-page .form-group input:focus,
.user-page .form-group textarea:focus,
.user-page .form-group select:focus {
    border-color: #66bb6a;
    box-shadow: 0 0 0 4px rgba(102,187,106,0.15), 0 2px 10px rgba(46,125,50,0.1) !important;
    transform: translateY(-1px);
}

/* 表单按钮区域 */
.form-actions .btn {
    padding: 14px 36px;
    font-size: 15px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* Coupon tabs 柔和化 */
.coupon-tabs .tab-item {
    border: 1px solid rgba(46,125,50,0.12) !important;
    transition: all 0.3s ease !important;
}
.coupon-tabs .tab-item:hover {
    background: linear-gradient(135deg, #f1f8e9, #e8f5e9) !important;
    border-color: rgba(46,125,50,0.25) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.1);
}
.coupon-tabs .tab-item.active {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(46,125,50,0.25);
}

/* Alert 柔和化 */
.alert-error {
    background: linear-gradient(135deg, #fce4ec, #f8d7da) !important;
    border-left: 4px solid #e57373;
    border-radius: 8px;
}
.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9) !important;
    border-left: 4px solid #81c784;
    border-radius: 8px;
}
