
: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-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{
    display: flex;
}
.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;
}

/* Hero Section with Image and Overlay */
.hero {
    position: relative;
    height: 50vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/home_banner.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    margin: 0 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #ddd;
}

/* Brand Positioning Section */
.brand-positioning {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.brand-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.brand-item {
    display: flex;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.brand-item.reverse {
    flex-direction: row-reverse;
}

.brand-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
    position: relative;
}

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

.brand-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.brand-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.brand-image {
    flex: 1;
    position: relative;
    height: 540px;
    overflow: hidden;
    transform: skew(0);
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.brand-item.reverse .brand-image {
    transform: skew(0);
}

.brand-image:hover {
    /*transform: skew(-5deg) scale(1.02);*/
    transform: skew(0) scale(1.02);
}

.brand-item.reverse .brand-image:hover {
    /*transform: skew(5deg) scale(1.02);*/
    transform: skew(0) scale(1.02);
}

.brand-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 26, 26, 0.7), rgba(212, 175, 55, 0.3));
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.brand-image:hover::before {
    opacity: 1;
}

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

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

.brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.brand-feature {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.brand-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.brand-feature h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.brand-feature p {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin: 0;
}


/* 品牌定位区域样式 */
.brand-positioning {
    background: #f8f9fa;
}

.brand-container {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.brand-item {
    display: flex;
    align-items: center;
    position: relative;
}

.brand-item.reverse {
    flex-direction: row-reverse;
}

.brand-content {
    flex: 1;
    padding: 40px;
    z-index: 2;
    position: relative;
}

.brand-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.brand-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.brand-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 25px;
}

/* 图片墙样式 */
.image-wall {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    height: 550px;
    position: relative;
    perspective: 1000px;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transform: scale(0);
    opacity: 0;
    animation: imageLoad 0.8s forwards;
    transition: var(--transition);
}

.image-item:nth-child(1) {
    animation-delay: 0.2s;
}

.image-item:nth-child(2) {
    animation-delay: 0.4s;
}

.image-item:nth-child(3) {
    animation-delay: 0.6s;
}

.image-item:nth-child(4) {
    animation-delay: 0.8s;
}
@keyframes imageLoad {
    0% {
        transform: scale(0) rotateY(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
}

.image-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.image-item:hover img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.image-caption {
    color: white;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: var(--transition);
}

.image-item:hover .image-caption {
    transform: translateY(0);
}

.brand-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.brand-feature {
    flex: 1;
    min-width: 200px;
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.brand-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.brand-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.brand-feature h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.brand-feature p {
    font-size: 0.95rem;
    color: var(--gray-color);
    margin: 0;
}


/* 核心项目区域样式 */
.core-projects {
    background: #f8f9fa;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-item {
    display: flex;
    /*align-items: center;*/
    object-fit: cover;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }

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

.project-item.reverse {
    flex-direction: row-reverse;
}

.project-image {
    flex: 1;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

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

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: var(--transition);
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-number {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 2;
}

.project-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.project-title i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 2rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 25px;
}

.project-options {
    margin-bottom: 30px;
}

.project-option {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray-color);
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.project-option:last-child {
    border-bottom: none;
}

.project-option:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.project-option i {
    margin-right: 10px;
    color: var(--primary-color);
}

.project-action {
    margin-top: 20px;
}

.project-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--dark-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.project-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}


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

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

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

.section-dark {
    background: #f8f9fa;
}

/* Course Section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

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

.course-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #3a3a3a, #1a1a1a);
}

.course-content {
    padding: 20px;
    color: #ffffff;
}

.course-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.course-content p {
    /*color: var(--gray-color);*/

    margin-bottom: 15px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.about-img {
    border-radius: var(--border-radius);
    /*overflow: hidden;*/
    background-image: url("../img/about.png");
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: var(--box-shadow);
    height: 350px;

}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eaeaea;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #1a1a1a;
    font-size: 1.8rem;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--gray-color);
}

/* Certificate Section */
.certificate-search {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #eaeaea;
}

.certificate-search h2 {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    margin-top: 20px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.search-box button {
    background: var(--primary-color);
    color: #1a1a1a;
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
}

/* 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: var(--primary-color);
    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;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .stat-item {
        margin: 10px;
    }

    .brand-item {
        flex-direction: column;
        min-height: auto;
    }

    .brand-item.reverse {
        flex-direction: column;
    }

    .brand-image {
        transform: none;
        height: 300px;
        margin-top: 30px;
    }

    .brand-item.reverse .brand-image {
        transform: none;
    }

    .brand-image:hover {
        transform: scale(1.02);
    }

    .brand-item.reverse .brand-image:hover {
        transform: scale(1.02);
    }

    .brand-item {
        flex-direction: column;
    }

    .brand-item.reverse {
        flex-direction: column;
    }

    .image-wall {
        height: 300px;
        margin-top: 30px;
    }

    .brand-content {
        padding: 20px 0;
    }

    /*.projects-grid {*/
    /*    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    /*}*/
    .project-item {
        flex-direction: column;
    }

    .project-item.reverse {
        flex-direction: column;
    }

    .project-image {
        min-height: 300px;
        width: 100%;
    }

    .project-content {
        padding: 30px;
    }
}

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

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

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

    .section {
        padding: 50px 0;
    }

    .certificate-search {
        padding: 20px;
    }

    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .brand-content h2 {
        font-size: 2rem;
    }

    .brand-feature {
        min-width: 100%;
    }

    .brand-content h2 {
        font-size: 1.8rem;
    }

    .image-wall {
        height: 250px;
        gap: 10px;
    }

    .brand-feature {
        min-width: 100%;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: auto;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-title i {
        font-size: 1.5rem;
    }

    .project-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
