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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    padding: 20px 0 15px;
    text-align: center;
}

.logo h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.logo-highlight {
    color: #3498db;
    position: relative;
}

.logo-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 20px 0 30px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 450px;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.2;
}

.contact-info {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.wechat-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.wechat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.deer-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Gallery Section */
.gallery {
    padding: 20px 0;
    margin-bottom: 20px;
}

/* Hero Intro Card */
.hero-intro-card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 25px;
    color: #2c3e50;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    max-width: 450px;
    width: 100%;
}

.intro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23667eea" opacity="0.03"/><circle cx="75" cy="75" r="1" fill="%23764ba2" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23667eea" opacity="0.02"/><circle cx="10" cy="60" r="0.5" fill="%23764ba2" opacity="0.02"/><circle cx="90" cy="40" r="0.5" fill="%23667eea" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.intro-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.intro-avatar {
    margin-right: 12px;
}

.avatar-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.25);
    border: 2px solid rgba(78, 205, 196, 0.3);
    transition: all 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.25);
    border: 2px solid rgba(78, 205, 196, 0.3);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.avatar-placeholder:hover {
    animation: none;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.avatar-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-title h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.intro-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 500;
}

.intro-content {
    position: relative;
    z-index: 1;
}

.intro-section {
    margin-bottom: 15px;
}

.intro-section:last-child {
    margin-bottom: 0;
}

.section-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.intro-item {
    font-size: 0.85rem;
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.advisor-list, .community-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.advisor-tag, .community-tag {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #2c3e50;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.advisor-tag:hover, .community-tag:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design for Hero Intro Card */
@media (max-width: 768px) {
    .hero-intro-card {
        order: -1;
    }
    
    .intro-card {
        padding: 12px;
        max-width: 100%;
    }
    
    .intro-header {
        flex-direction: column;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .intro-avatar {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .avatar-image, .avatar-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .avatar-text {
        font-size: 1.3rem;
    }
    
    .intro-title h3 {
        font-size: 1.4rem;
    }
    
    .intro-subtitle {
        font-size: 0.9rem;
    }
    
    .advisor-list, .community-list {
        justify-content: center;
    }
    
    .advisor-tag, .community-tag {
        font-size: 0.65rem;
        padding: 2px 5px;
    }
}

@media (max-width: 480px) {
    .intro-card {
        padding: 10px;
    }
    
    .intro-header {
        margin-bottom: 6px;
    }
    
    .intro-avatar {
        margin-bottom: 6px;
    }
    
    .avatar-image, .avatar-placeholder {
        width: 40px;
        height: 40px;
    }
    
    .avatar-text {
        font-size: 1.1rem;
    }
    
    .intro-title h3 {
        font-size: 1.2rem;
    }
    
    .intro-subtitle {
        font-size: 0.8rem;
    }
    
    .intro-section {
        margin-bottom: 8px;
    }
    
    .section-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }
    
    .intro-item {
        font-size: 0.8rem;
    }
    
    .advisor-tag, .community-tag {
        font-size: 0.6rem;
        padding: 2px 4px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    padding: 5px 0;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Main Content */
.main-content {
    background: white;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.content-wrapper {
    max-width: 100%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.content-card:hover::before {
    transform: scaleX(1);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.card-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* Card Content */
.card-content {
    line-height: 1.6;
}

/* Course Items */
.course-item {
    margin-bottom: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.course-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

.course-title {
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

/* Style Sections */
.style-section {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.style-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.style-section p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project Items */
.project-item {
    margin-bottom: 15px;
}

.project-link {
    display: block;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.project-name {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.project-desc {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Course Intro Items */
.course-intro-item {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.course-intro-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.intro-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.course-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.course-link:hover {
    color: #764ba2;
}

/* Experience Items */
.experience-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.company-logo {
    font-size: 2.5rem;
    margin-right: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.experience-details {
    flex: 1;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.role {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* Client Categories */
.client-category {
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.client-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.client-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Project Cases */
.project-case {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.project-case:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.case-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.case-desc {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #764ba2;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 15px 0 10px;
    }
    
    .logo h1 {
        font-size: 2.2rem;
    }
    
    .hero {
        padding: 15px 0 20px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .gallery {
        padding: 15px 0;
        margin-bottom: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .main-content {
        padding: 20px 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        margin-bottom: 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }
    
    .content-card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .header {
        padding: 10px 0 8px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 10px 0 15px;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .gallery {
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
    }
    
    .main-content {
        padding: 15px 10px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .cards-grid {
        gap: 10px;
        margin-top: 10px;
    }
    
    .content-card {
        padding: 12px;
    }
    
    .card-header {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .card-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hero, .gallery, .main-content {
    animation: fadeIn 0.8s ease-out;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #2980b9, #27ae60);
}
