/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #f1f5f9;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--light-bg);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    transition: var(--transition);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: var(--shadow-medium);
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 4px;
}

.logo-text p {
    font-size: 14px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* Navigation Styles */
.nav {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 50px;
    opacity: 0.1;
    transition: var(--transition);
}

.nav-slider {
    position: absolute;
    top: 8px;
    bottom: 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    opacity: 0;
    width: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 40px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link.external-link {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-link.external-link:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-color: var(--accent-color);
}

.nav-link.external-link::after {
    content: ' ↗';
    font-size: 12px;
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* Main Content */
.main {
    margin-top: 100px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Company Introduction */
.intro-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.intro-text {
    width: 100%;
    max-width: 1000px;
}

.intro-video {
    width: 100%;
    max-width: 800px;
}

.intro-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-card h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.advantages, .achievements {
    margin-top: 40px;
}

.advantages h4, .achievements h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.advantage-grid {
    display: grid;
    gap: 24px;
}

.advantage-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.advantage-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.advantage-content h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.advantage-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.video-container {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.company-video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}

/* Teacher Cards */
.teacher-card {
    flex: 0 0 300px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    cursor: pointer;
}

.teacher-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large);
}

.teacher-card img {
    width: 100%;
    height: 200px;
    border-radius: var(--border-radius);
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.teacher-card:hover img {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.teacher-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.teacher-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Work Items */
.work-item {
    flex: 0 0 350px;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.work-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-large);
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 3;
}

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

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.work-item:hover::before {
    opacity: 1;
}

.work-item::after {
    content: '点击查看大图';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.work-item:hover::after {
    opacity: 1;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.carousel-btn.prev {
    margin-left: 20px;
}

.carousel-btn.next {
    margin-right: 20px;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 60px 0 40px;
    color: var(--text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo .logo {
    width: 50px;
    height: 50px;
}

.footer-text p {
    color: var(--accent-color);
    font-weight: 500;
    margin: 0;
}

.footer-text .company-name {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
    margin-top: 4px;
}

.footer-contact {
    flex: 1;
}

.footer-contact h4 {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-phone,
.contact-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.contact-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.contact-value {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 600;
}

.contact-phone .contact-value {
    color: var(--accent-color);
    font-size: 18px;
    font-weight: 700;
}

.phone-link {
    text-decoration: none;
    transition: var(--transition);
    padding: 12px 20px;
    border-radius: var(--border-radius);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: inline-block;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.phone-link:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.footer-info {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.beian-info {
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    margin-top: 8px !important;
    opacity: 0.8;
    font-weight: 400 !important;
}

.footer-slogan {
    color: var(--accent-color) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .intro-content {
        gap: 40px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .teacher-card {
        flex: 0 0 250px;
    }
    
    .teacher-card img {
        height: 180px;
    }
    
    .work-item {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 0;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .intro-card {
        padding: 24px;
    }
    
    .intro-card h3 {
        font-size: 24px;
    }
    
    .teacher-card {
        flex: 0 0 200px;
    }
    
    .teacher-card img {
        height: 150px;
    }
    
    .work-item {
        flex: 0 0 250px;
    }
    
    .work-item img {
        height: 200px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .contact-phone,
    .contact-company {
        align-items: center;
        text-align: center;
    }
    
    .carousel-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .main {
        margin-top: 80px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .teacher-card {
        flex: 0 0 180px;
    }
    
    .teacher-card img {
        height: 120px;
    }
    
    .work-item {
        flex: 0 0 200px;
    }
    
    .work-item img {
        height: 150px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    background: var(--gradient-secondary);
}

.back-to-top-icon {
    color: white;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top-icon {
        font-size: 16px;
    }
} 