
:root {
    --primary-color: #D4AF37; /* 金色 */
    --secondary-color: #B8860B; /* 深金色 */
    --dark-color: #1a1a1a; /* 深黑色 */
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #fff;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #1a1a1a;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background: #c19d1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #a0780a;
}


/* Header Styles */
header {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-main {
    display: flex;
}

.nav-main ul {
    display: flex;
}

.nav-main li {
    margin: 0 15px;
    position: relative;
}

.nav-main a {
    font-weight: 600;
    padding: 10px 0;
    transition: var(--transition);
    color: white;
}

.nav-main a:hover {
    color: var(--primary-color);
}

.nav-main a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.nav-utils {
    display: flex;
    align-items: center;
}

.lang-switcher {
    margin-right: 20px;
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #2a2a2a;
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.lang-btn i {
    margin-left: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2a2a2a;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    min-width: 120px;
    display: none;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 8px 15px;
    transition: var(--transition);
    color: white;
}

.lang-dropdown a:hover {
    background: #3a3a3a;
}

.cart-icon {
    position: relative;
    margin-right: 20px;
    font-size: 1.2rem;
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #1a1a1a;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.auth-buttons a {
    margin-left: 10px;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.auth-buttons .login {
    color: var(--primary-color);
}

.auth-buttons .register {
    background: var(--primary-color);
    color: #1a1a1a;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}
.auth-buttons{
    display: flex;
}
/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
}

.breadcrumb ul {
    display: flex;
    align-items: center;
}

.breadcrumb li {
    margin-right: 10px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
}

.breadcrumb a {
    color: var(--gray-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .current {
    color: var(--primary-color);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--gray-color);
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

.section-dark {
    background: #f8f9fa;
}

/* Courses Section */
.courses-section {
    background: #f8f9fa;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    /*overflow: hidden;*/
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

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

.course-image {
    /*height: 250px;*/
    /*overflow: hidden;*/
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: #1a1a1a;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: bold;
}

.course-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.course-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.course-features {
    margin-bottom: 25px;
}

.course-feature {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.course-feature i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.course-price {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 10px;
}

.price-original {
    font-size: 1.2rem;
    color: var(--gray-color);
    text-decoration: line-through;
}

.course-action {
    margin-top: auto;
}

.course-btn {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--primary-color);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #bbb;
    font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 992px) {

    .logo h1{
        display: none;
    }

    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #1a1a1a;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-main.active {
        display: flex;
    }

    .nav-main ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-main li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-main a {
        display: block;
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .auth-buttons {
        display: none;
    }

    .lang-switcher {
        margin-right: 10px;
    }

    .cart-icon {
        margin-right: 10px;
    }

    .section {
        padding: 60px 0;
    }

    .course-image {
        /*height: 200px;*/
    }

    .course-content {
        padding: 20px;
    }

    .course-title {
        font-size: 1.3rem;
    }
}
