/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFA500;
    --secondary: #FF8C42;
    --bg-light: #FFF9F5;
    --bg-gray: #F5F5F5;
    --text-dark: #333;
    --text-gray: #666;
    --text-light: #999;
    --border: #FFE8D6;
    --shadow: rgba(255, 107, 53, 0.1);
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ===== 头部导航 ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: all 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

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

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    font-size: 13px;
    color: var(--text-dark);
    padding: 8px 2px;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-trial {
    background: transparent;
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-trial:hover {
    background: var(--primary);
    color: #fff;
}

.btn-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.mobile-nav a {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav .btn-cta-mobile {
    background: var(--primary);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: none;
}

/* ===== Hero 区域 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #FFD700 100%);
    opacity: 0.95;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 60px 0 80px;
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.92;
    margin-bottom: 55px;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 55px;
    padding: 35px 40px;
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    display: block;
    font-size: 44px;
    font-weight: 900;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 6px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
    padding: 18px 48px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    padding: 18px 48px;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.7);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--primary);
}

/* ===== 课程分类导航 ===== */
.category-nav {
    background: #fff;
    padding: 28px 0;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 70px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-color: transparent;
}

/* ===== 通用区块标题 ===== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    padding-top: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
    line-height: 1.8;
}

/* ===== 课程中心 ===== */
.courses {
    padding: 100px 0;
    background: var(--bg-gray);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
}

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

.course-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
}

.course-body {
    padding: 20px;
}

.course-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.course-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.course-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.course-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.course-price span {
    font-size: 14px;
    font-weight: 400;
}

.course-days {
    font-size: 13px;
    color: var(--text-light);
}

.course-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.course-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f5f5f5;
    color: var(--text-gray);
}

.courses-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: var(--primary);
    color: #fff;
}

/* ===== 为什么选择我们 ===== */
.why-us {
    padding: 100px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.why-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.why-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 28px;
}

.why-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== 关于我们 ===== */
.about {
    padding: 100px 0;
    background: var(--bg-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 2;
}

.about-text strong {
    color: var(--primary);
    font-weight: 700;
}

.about-text .highlight {
    color: var(--primary);
    font-weight: 600;
    font-size: 18px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding: 15px 0 15px 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--border);
    border-radius: 50%;
}

.timeline-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--bg-light);
}

.timeline-year {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== 师资团队 ===== */
.teachers {
    padding: 100px 0;
    background: #fff;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.teacher-card {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

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

.teacher-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
}

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

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.teacher-title {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
}

.teacher-exp {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.teacher-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== 教学环境 ===== */
.environment {
    padding: 100px 0;
    background: var(--bg-gray);
}

.env-tags {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 45px;
    margin-bottom: 50px;
}

.env-tag {
    background: #fff;
    color: var(--text-gray);
    padding: 14px 28px;
    border-radius: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-tag i {
    color: var(--primary);
}

.env-gallery {
    position: relative;
    margin-bottom: 30px;
}

.env-gallery-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.env-gallery-track img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.env-gallery-track img:hover {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .env-gallery-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .env-gallery-track {
        grid-template-columns: repeat(2, 1fr);
    }
    .env-gallery-track img {
        height: 140px;
    }
}

.env-gallery-track img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.env-features {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.env-feature {
    font-size: 15px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.env-feature i {
    color: var(--primary);
    font-size: 18px;
}

/* ===== 联系我们 ===== */
.contact {
    padding: 100px 0;
    background: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-item {
    display: flex;
    gap: 20px;
    padding: 28px 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--shadow);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--shadow);
}

/* ===== 页脚 ===== */
.footer {
    background: #2d2d2d;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-brand img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.footer-slogan {
    font-size: 14px;
    opacity: 0.7;
}

.footer-links h4,
.footer-courses h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links a,
.footer-courses a {
    display: block;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
    transition: opacity 0.3s;
}

.footer-links a:hover,
.footer-courses a:hover {
    opacity: 1;
}

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

.footer-contact i {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.6;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 5px 20px var(--shadow);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== 页面Banner（子页面通用） ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #FFD700 100%);
    padding: 110px 0 50px;
    text-align: center;
    color: #fff;
    position: relative;
}

.page-banner h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-banner p {
    font-size: 16px;
    opacity: 0.92;
    margin-bottom: 15px;
}

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

.page-banner .breadcrumb a {
    color: #fff;
    transition: opacity 0.3s;
}

.page-banner .breadcrumb a:hover {
    opacity: 0.7;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 40px;
        letter-spacing: 1px;
    }
    
    .hero-stats {
        gap: 30px;
        padding: 25px 30px;
    }
    
    .hero-stat-num {
        font-size: 34px;
    }

    .hero-subtitle {
        margin-bottom: 40px;
    }

    .hero-btns {
        margin-bottom: 20px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav,
    .btn-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-nav.active {
        display: flex;
    }
    
    .hero-title {
        font-size: 30px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 35px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
        padding: 25px 20px;
    }
    
    .hero-stat {
        width: 45%;
    }

    .hero-stat-num {
        font-size: 28px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .teacher-card {
        flex-direction: column;
        text-align: center;
    }
    
    .teacher-avatar {
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand img {
        margin: 0 auto 15px;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 26px;
        letter-spacing: 0.5px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        padding: 20px 15px;
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .hero-stat-num {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .env-gallery-track img {
        width: 250px;
        height: 170px;
    }
}

/* ====== 微信二维码弹窗 ====== */
.qr-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.qr-modal.active {
    display: flex;
}

.qr-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    text-align: center;
    position: relative;
    max-width: 280px;
    width: auto;
    animation: qrFadeIn 0.3s ease;
}

@keyframes qrFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.qr-modal-content .close-modal {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.qr-modal-content .close-modal:hover {
    color: #333;
}

.qr-modal-content h3 {
    font-size: 17px;
    color: #333;
    margin-bottom: 14px;
}

.qr-modal-content img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid #eee;
}

.qr-modal-content p {
    font-size: 12px;
    color: #aaa;
}
