/* ========================================
   成都玲丽化妆学校 - 主样式文件
   配色：玫金/裸粉/深棕 高端美妆风格
   ======================================== */

/* CSS Variables */
:root {
    --primary: #C4788E;
    --primary-dark: #A85D73;
    --primary-light: #E8B4C0;
    --gold: #C9A96E;
    --gold-light: #E5D4B0;
    --nude-pink: #F5E6E0;
    --nude-pink-light: #FFF8F5;
    --dark-brown: #3D2B2B;
    --dark-brown-light: #5C4444;
    --text-color: #4A3636;
    --text-light: #8B7070;
    --bg-white: #FFFFFF;
    --bg-cream: #FFFAF8;
    --bg-light: #FEF5F2;
    --border-color: #F0D9D2;
    --shadow: 0 4px 20px rgba(196, 120, 142, 0.12);
    --shadow-hover: 0 8px 30px rgba(196, 120, 142, 0.2);
    --radius: 12px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(61, 43, 43, 0.06);
    transition: var(--transition);
}

.header-top {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--dark-brown-light) 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

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

.header-top a {
    color: var(--gold-light);
}

.header-top a:hover {
    color: #fff;
}

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

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

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

.logo img {
    height: 50px;
    width: auto;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--dark-brown);
    font-weight: 700;
    line-height: 1.3;
}

.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav a {
    padding: 10px 18px;
    font-size: 15px;
    color: var(--dark-brown);
    font-weight: 500;
    position: relative;
    border-radius: 6px;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
    background: var(--nude-pink);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 60%;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(196, 120, 142, 0.35);
    transition: var(--transition);
}

.header-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 120, 142, 0.45);
    color: #fff;
}

.header-phone svg {
    width: 18px;
    height: 18px;
    animation: phone-ring 1.5s ease infinite;
}

@keyframes phone-ring {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-10deg); }
    30% { transform: rotate(8deg); }
    40% { transform: rotate(0); }
}

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

.mobile-toggle span {
    width: 25px;
    height: 2.5px;
    background: var(--dark-brown);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Banner / Slider
   ======================================== */
.banner {
    margin-top: 110px;
    position: relative;
    overflow: hidden;
    height: 550px;
}

.banner-slider {
    display: flex;
    transition: transform 0.6s ease;
    height: 100%;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(61,43,43,0.5) 0%, rgba(196,120,142,0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.banner-content .btn {
    display: inline-block;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark-brown);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201,169,110,0.4);
    transition: var(--transition);
}

.banner-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(201,169,110,0.5);
}

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.banner-dots span.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ========================================
   Section Common
   ======================================== */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 32px;
    color: var(--dark-brown);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header .subtitle {
    font-size: 15px;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 16px auto 0;
    border-radius: 2px;
}

.section-alt {
    background: var(--bg-light);
}

/* ========================================
   Page Banner (内页)
   ======================================== */
.page-banner {
    margin-top: 110px;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-banner .breadcrumb {
    font-size: 14px;
    opacity: 0.85;
}

.page-banner .breadcrumb a {
    color: var(--gold-light);
}

.page-banner .breadcrumb a:hover {
    color: #fff;
}

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

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

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.course-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.course-card:hover .course-card-img img {
    transform: scale(1.05);
}

.course-card-img .tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.course-card-body {
    padding: 24px;
}

.course-card-body h3 {
    font-size: 20px;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.course-card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-body .course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.course-card-body .course-meta span {
    font-size: 13px;
    color: var(--text-light);
}

.course-card-body .course-meta .more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

.course-card-body .course-meta .more:hover {
    color: var(--primary-dark);
}

/* ========================================
   Advantages
   ======================================== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.advantage-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.advantage-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--nude-pink), var(--nude-pink-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.advantage-card h3 {
    font-size: 17px;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   Teachers
   ======================================== */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.teacher-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.teacher-card-img {
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--nude-pink), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--primary);
}

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

.teacher-card-body {
    padding: 20px;
}

.teacher-card-body h3 {
    font-size: 18px;
    color: var(--dark-brown);
    margin-bottom: 6px;
}

.teacher-card-body .title {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.teacher-card-body p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   Works Gallery
   ======================================== */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.work-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.work-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

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

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

.work-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(61,43,43,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.work-item .overlay span {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

/* ========================================
   Statistics
   ======================================== */
.stats {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: #fff;
}

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

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.stat-item h3 span {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
}

.stat-item p {
    font-size: 15px;
    opacity: 0.85;
}

/* ========================================
   News
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-card-img {
    height: 200px;
    overflow: hidden;
}

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

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
}

.news-card-body .date {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 500;
}

.news-card-body h3 {
    font-size: 17px;
    color: var(--dark-brown);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body .read-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.news-card-body .read-more:hover {
    color: var(--primary-dark);
}

/* ========================================
   Employment / Cases
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.case-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.case-card h3 {
    font-size: 19px;
    color: var(--dark-brown);
    margin-bottom: 8px;
}

.case-card .case-tag {
    display: inline-block;
    background: var(--nude-pink);
    color: var(--primary);
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 14px;
    font-weight: 500;
}

.case-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   Content Pages
   ======================================== */
.content-area {
    padding: 60px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-main {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.content-main h2 {
    font-size: 26px;
    color: var(--dark-brown);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.content-main h3 {
    font-size: 20px;
    color: var(--dark-brown);
    margin: 25px 0 12px;
}

.content-main p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 16px;
}

.content-main ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-main ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.8;
}

.content-main ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 130px;
}

.sidebar-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-box h3 {
    font-size: 17px;
    color: var(--dark-brown);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.sidebar-contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
    border-radius: var(--radius);
    padding: 30px 25px;
    margin-bottom: 25px;
}

.sidebar-contact h3 {
    color: #fff;
    border-bottom: none;
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-contact .phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 12px 0;
    display: block;
}

.sidebar-contact p {
    font-size: 13px;
    opacity: 0.85;
}

.sidebar-links a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: var(--primary);
    padding-left: 20px;
    background: var(--nude-pink-light);
}

.sidebar-links a:last-child {
    border-bottom: none;
}

/* News list */
.news-list-item {
    display: flex;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    background: var(--nude-pink-light);
    padding-left: 10px;
    border-radius: 8px;
}

.news-list-img {
    width: 200px;
    min-width: 200px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.news-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-list-body h3 {
    font-size: 18px;
    color: var(--dark-brown);
    margin-bottom: 8px;
    transition: var(--transition);
}

.news-list-item:hover .news-list-body h3 {
    color: var(--primary);
}

.news-list-body p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-body .date {
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--nude-pink), var(--nude-pink-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-item-text h4 {
    font-size: 16px;
    color: var(--dark-brown);
    margin-bottom: 4px;
}

.contact-item-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-item-text .phone-highlight {
    font-size: 22px;
    color: var(--primary);
    font-weight: 700;
}

.map-area {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    height: 100%;
    min-height: 350px;
    background: linear-gradient(135deg, var(--nude-pink), var(--bg-light));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    color: var(--text-light);
}

.map-placeholder .icon {
    font-size: 50px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(135deg, var(--dark-brown) 0%, #2A1E1E 100%);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 16px;
    filter: brightness(1.2);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.footer-brand .footer-phone {
    font-size: 22px;
    color: var(--gold-light);
    font-weight: 700;
}

.footer h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links a {
    display: block;
    padding: 5px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ========================================
   Floating Phone Button
   ======================================== */
.float-phone {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-phone a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 14px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(196, 120, 142, 0.4);
    transition: var(--transition);
    white-space: nowrap;
}

.float-phone a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(196, 120, 142, 0.5);
    color: #fff;
}

.float-phone .float-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding: 0;
    justify-content: center;
}

/* Back to top */
.back-top {
    position: fixed;
    right: 25px;
    bottom: 90px;
    z-index: 999;
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    font-size: 18px;
    color: var(--primary);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-top:hover {
    background: var(--primary);
    color: #fff;
}

/* ========================================
   Course Detail Page
   ======================================== */
.course-detail-header {
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
    color: #fff;
}

.course-detail-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.course-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.course-tags span {
    background: rgba(255,255,255,0.15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 13px;
}

.course-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.course-info-item {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.course-info-item .label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

.course-info-item .value {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-light);
}

/* ========================================
   Timeline
   ======================================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--gold));
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: calc(50% + 40px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 15px;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-cream);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-section .cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-light);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.cta-section .cta-phone:hover {
    background: rgba(255,255,255,0.3);
    color: #fff;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .banner {
        height: 350px;
        margin-top: 80px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .page-banner {
        margin-top: 80px;
        padding: 40px 0;
    }
    
    .page-banner h1 {
        font-size: 26px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .courses-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-grid .footer-brand {
        grid-column: 1 / -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 32px;
    }
    
    .course-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .float-phone a.phone-text {
        display: none;
    }
    
    .float-phone a {
        padding: 14px;
        border-radius: 50%;
    }
    
    .header-phone {
        display: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-right: 0;
        padding-left: 50px;
        text-align: left;
        flex-direction: row;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .news-list-item {
        flex-direction: column;
    }
    
    .news-list-img {
        width: 100%;
        min-width: auto;
        height: 180px;
    }
    
    .content-main {
        padding: 25px;
    }
}

/* ========================================
   Mobile Nav Overlay
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 43, 43, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    color: #fff;
    font-size: 20px;
    padding: 12px 30px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--gold-light);
}

.mobile-nav .close-nav {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* ========================================
   Utility
   ======================================== */
.text-primary { color: var(--primary); }
.text-gold { color: var(--gold); }
.bg-white { background: var(--bg-white); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

.highlight-box {
    background: linear-gradient(135deg, var(--nude-pink), var(--nude-pink-light));
    border-left: 4px solid var(--primary);
    padding: 20px 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
}

.highlight-box p {
    color: var(--dark-brown);
    font-weight: 500;
    margin-bottom: 0;
}

.phone-inline {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
}

/* Print styles */
@media print {
    .header, .float-phone, .back-top, .footer { display: none; }
    body { background: #fff; }
    .banner, .page-banner { margin-top: 0; }
}

/* 备案号链接样式 */
.footer-bottom .beian-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom .beian-link:hover {
    color: #fff;
    text-decoration: underline;
}
