/*
Theme Name: MissBake GZ
Theme URI: https://gz.imissbake.com
Author: 美斯烘焙广州校区
Author URI: https://gz.imissbake.com
Description: 美斯烘焙广州校区官方主题 - 响应式设计，SEO 优化，GEO 友好
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: missbake-gz
Tags: responsive, seo, geo, bakery, training, education
*/

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #D4A574;
    --secondary-color: #8B4513;
    --accent-color: #E8B46B;
    --text-color: #333333;
    --light-bg: #FDF8F3;
    --white: #FFFFFF;
    --border-color: #E5E5E5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 80px 0;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    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 {
    font-size: 18px;
    color: #666;
    margin-top: 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-top {
    background: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color);
}

.site-logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    padding: 10px 0;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.current::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
}

/* ===================================
   Hero Slider
   =================================== */
.hero-slider {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    height: 600px;
}

/* ===================================
   Page Header (所有页面顶部)
   =================================== */
.page-header {
    margin-top: 0 !important;
    padding-top: 150px !important;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
}

.slider-item.active {
    opacity: 1;
}

.slider-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    max-width: 800px;
}

.slider-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slider-content p {
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ===================================
   Core Advantages
   =================================== */
.core-advantages {
    background: var(--light-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.advantage-card p {
    color: #666;
    font-size: 14px;
}

/* ===================================
   Class Types
   =================================== */
.class-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.class-type-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.class-type-card:hover {
    transform: scale(1.05);
}

.class-type-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.class-type-card p {
    font-size: 13px;
    opacity: 0.9;
}

/* ===================================
   Professional Courses
   =================================== */
.professional-courses {
    background: var(--light-bg);
}

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

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

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

.course-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.course-content {
    padding: 25px;
}

.course-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.course-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.course-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-link::after {
    content: '→';
    transition: var(--transition);
}

.course-link:hover::after {
    transform: translateX(5px);
}

/* ===================================
   Lead Form
   =================================== */
.lead-form-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    padding: 60px 0;
}

.lead-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.lead-form-container h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--secondary-color);
}

/* ===================================
   Teacher Team
   =================================== */
.teacher-slider {
    position: relative;
    overflow: hidden;
}

.teacher-track {
    display: flex;
    transition: transform 0.5s ease;
}

.teacher-card {
    min-width: calc(25% - 20px);
    margin: 0 10px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.teacher-image {
    height: 280px;
    background-size: cover;
    background-position: center top;
}

.teacher-info {
    padding: 20px;
    text-align: center;
}

.teacher-info h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.teacher-info p {
    color: #666;
    font-size: 14px;
}

/* ===================================
   Training Scene & Environment
   =================================== */
.scene-grid,
.environment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.scene-card,
.environment-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    height: 250px;
}

.scene-card img,
.environment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.scene-card:hover img,
.environment-card:hover img {
    transform: scale(1.1);
}

/* ===================================
   Student Works
   =================================== */
.student-works-slider {
    position: relative;
    overflow: hidden;
}

.works-track {
    display: flex;
    transition: transform 0.5s ease;
}

.work-card {
    min-width: calc(33.333% - 20px);
    margin: 0 10px;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Industry Encyclopedia
   =================================== */
.industry-encyclopedia {
    background: var(--light-bg);
}

.encyclopedia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.encyclopedia-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.encyclopedia-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.encyclopedia-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

/* ===================================
   Footer
   =================================== */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

/* ===================================
   Mobile Responsive
   =================================== */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .class-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teacher-card {
        min-width: calc(33.333% - 20px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-slider {
        height: 400px;
        margin-top: 0;
    }
    
    .slider-content h1 {
        font-size: 28px;
    }
    
    .slider-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .advantages-grid,
    .class-types-grid,
    .courses-grid,
    .scene-grid,
    .environment-grid,
    .encyclopedia-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-card,
    .work-card {
        min-width: calc(100% - 20px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .lead-form-container {
        margin: 0 20px;
        padding: 30px 20px;
    }
}

/* ===================================
   Animation Classes
   =================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
