:root {
    --primary-color: #6a1b9a;
    --secondary-color: #9c27b0;
    --light-purple: #e1bee7;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-light: #f5f5f5;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1a1a1a, #3f3f3f);
    color: var(--text-light);
    line-height: 1.6;
}

header {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
}

.logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(to right, #e1bee7, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--light-purple);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    padding: 150px 5% 100px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1513364776144-60967b0f800f?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #e1bee7, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(106, 27, 154, 0.6);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.teachers-section {
    margin-bottom: 100px;
}

.search-container {
    text-align: center;
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid rgba(156, 39, 176, 0.3);
    border-radius: 30px;
    background: rgba(40, 40, 40, 0.8);
    color: var(--text-light);
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.3);
}

.search-input::placeholder {
    color: #999;
}

.teachers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.teacher-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
}

.teacher-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.teacher-info {
    padding: 30px;
}

.teacher-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--light-purple);
}

.teacher-info .specialty {
    color: var(--light-purple);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.teacher-content {
    margin-bottom: 20px;
}

.teacher-content p {
    margin-bottom: 1.5rem;
    color: #cccccc;
    line-height: 1.8;
}

.collapse-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    width: 100%;
}

.collapse-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.4);
}

.collapse-toggle i {
    transition: transform 0.3s ease;
}

.collapse-toggle.collapsed i {
    transform: rotate(-90deg);
}

.teacher-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.teacher-details.expanded {
    max-height: 500px;
    padding: 20px;
    border-top: 1px solid rgba(156, 39, 176, 0.2);
}

.teacher-details p {
    margin-bottom: 15px;
    color: #cccccc;
    line-height: 1.8;
}

.testimonials {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    overflow: hidden;
}

.testimonial {
    text-align: center;
    padding: 20px;
}

.testimonial-text {
    background: rgba(50, 50, 50, 0.6);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 4rem;
    color: rgba(156, 39, 176, 0.3);
    position: absolute;
}

.testimonial-text::before {
    top: 10px;
    left: 10px;
}

.testimonial-text::after {
    bottom: -30px;
    right: 10px;
}

.client-info {
    margin-top: 40px;
}

.client-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.client-info h4 {
    margin-top: 15px;
    font-size: 1.3rem;
}

.contact {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
}

.contact-info-text h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--light-purple);
}

.contact-info-text p {
    color: #cccccc;
}

footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px 5% 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
}

.copyright {
    margin-top: 30px;
    color: #888;
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2rem;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--light-purple);
    font-size: 1.2rem;
}

.loading i {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .contact {
        flex-direction: column;
        gap: 30px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .teachers {
        grid-template-columns: 1fr;
    }
}
