/* CSS Variables for consistent theming */
:root {
    --primary-color: #ec4899;
    --primary-dark: #be185d;
    --primary-light: #fce7f3;
    --secondary-color: #f9a8d4;
    --text-dark: #374151;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-800: #1f2937;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --transition: all 0.3s ease;
  }
  
  /* Reset and Base Styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, var(--primary-light), var(--white));
    min-height: 100vh;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Navigation */
  .navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--primary-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
  }
  
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .nav-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
  }
  
  .heart-icon {
    font-size: 2rem;
    color: var(--primary-color);
  }
  
  .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
  }
  
  .nav-menu {
    display: flex;
    gap: 2rem;
  }
  
  .nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  .nav-link::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-link:hover::after {
    width: 100%;
  }
  
  .cta-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  }
  
  .hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
  }
  
  /* Hero Section */
  .hero {
    padding: 6.5rem 1rem 5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
  }
  
  .highlight {
    color: var(--primary-color);
  }
  
  .hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
  }
  
  .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
  }
  
  .hero-image {
    position: relative;
  }
  
  .image-decoration {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    transform: rotate(3deg);
    z-index: -1;
  }
  
  .hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
  }
  
  /* Quick Contact */
  .quick-contact {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.5rem 1rem;
  }
  
  .quick-contact .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
  }
  
  .btn-white {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
  }
  
  /* Teacher Team Section */
  .teacher-team {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--primary-light), var(--white));
  }
  
  .teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
  }
  
  .teacher-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }
  
  .teacher-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
  }
  
  .teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  }
  
  .teacher-photo-frame {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(45deg, #f0f9ff, #e0e7ff, #fef3c7, #fed7d7);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
  }
  
  .teacher-photo-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #8b5cf6, #06b6d4, var(--secondary-color));
    z-index: -1;
    animation: rotate 4s linear infinite;
  }
  
  .teacher-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
  }
  
  .teacher-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
  }
  
  .teacher-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  .teacher-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Qualifications Section */
  .qualifications {
    padding: 4rem 0;
    background: var(--white);
  }
  
  .qualifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
  }
  
  .qualification-card {
    text-align: center;
    transition: var(--transition);
  }
  
  .qualification-card:hover {
    transform: translateY(-5px);
  }
  
  .qualification-frame {
    position: relative;
    margin: 0 auto 1.5rem;
    width: 280px;
    height: 200px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #f59e0b 100%);
    padding: 12px;
  }
  
  .qualification-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
  }
  
  .qualification-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(251, 191, 36, 0.5);
  }
  
  .qualification-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-top: 1rem;
  }
  
  /* About Section */
  .about {
    background: var(--primary-light);
    padding: 5rem 1rem;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
  }
  
  .section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  
  .about-item {
    margin-bottom: 2rem;
  }
  
  .about-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
  }
  
  .about-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  
  .credentials-list {
    list-style: none;
  }
  
  .credentials-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
  }
  
  .star {
    color: var(--primary-color);
  }
  
  .about-image {
    position: relative;
  }
  
  .image-decoration-left {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-light));
    border-radius: var(--border-radius-lg);
    transform: rotate(-3deg);
    z-index: -1;
  }
  
  .about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
  }
  
  /* Programs Section */
  .programs {
    padding: 5rem 1rem;
    background: var(--gray-50);
  }
  
  .programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
  
  .program-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid var(--primary-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .program-image {
    height: 200px;
    overflow: hidden;
  }
  
  .program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .program-card:hover .program-image img {
    transform: scale(1.05);
  }
  
  .program-content {
    padding: 1.5rem;
  }
  
  .program-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
  }
  
  .program-content p {
    color: var(--text-light);
    line-height: 1.7;
  }
  
  /* Testimonials Section */
  .testimonials {
    background: var(--primary-light);
    padding: 5rem 1rem;
  }
  
  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .stars {
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
  
  .testimonial-text {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-author {
    border-top: 1px solid var(--primary-light);
    padding-top: 1rem;
  }
  
  .testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.25rem;
  }
  
  .testimonial-author span {
    color: var(--text-lighter);
    font-size: 0.875rem;
  }
  
  /* Call to Action */
  .cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 1rem;
    text-align: center;
  }
  
  .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }
  
  .cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .btn-white-large {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .btn-white-large:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
  }
  
  .btn-outline-large {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-outline-large:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  /* Contact Form Section */
  .contact-form-section {
    padding: 5rem 1rem;
    background: var(--gray-50);
  }
  
  .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow);
  }
  
  .contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
  }
  
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
  }
  
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
  }
  
  .btn-primary-full {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .btn-primary-full:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--primary-light);
    box-shadow: var(--shadow);
  }
  
  .contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
  }
  
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-detail {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
  }
  
  .contact-detail h4 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
  }
  
  .contact-detail p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
  }
  
  .contact-detail small {
    color: var(--text-lighter);
    font-size: 0.875rem;
  }
  
  /* Friendly Links Section */
  .friendly-links {
    background: var(--gray-50);
    padding: 4rem 1rem 2rem;
    border-top: 1px solid var(--primary-light);
  }
  
  .links-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .links-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
  }
  
  .links-header p {
    color: var(--text-lighter);
    font-size: 0.875rem;
  }
  
  .links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
  }
  
  .links-category {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
  }
  
  .links-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
  
  .links-category h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
  }
  
  .links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .links-list li {
    position: relative;
  }
  
  .links-list a {
    color: var(--text-lighter);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-radius: 0.25rem;
  }
  
  .links-list a:hover {
    color: var(--text-light);
    background: var(--gray-50);
    padding-left: 0.5rem;
    transform: translateX(3px);
  }
  
  .links-list a::before {
    content: "🔗";
    margin-right: 0.5rem;
    font-size: 0.7rem;
    opacity: 0.3;
  }
  
  .links-list a:hover::before {
    opacity: 0.5;
  }
  
  .links-footer {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--primary-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .links-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin: 0;
  }
  
  .links-actions {
    display: flex;
    gap: 1rem;
  }
  
  .btn-link-exchange,
  .btn-partnership {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
  }
  
  .btn-link-exchange {
    background: var(--primary-light);
    color: var(--primary-color);
  }
  
  .btn-link-exchange:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
  }
  
  .btn-partnership {
    background: var(--primary-color);
    color: var(--white);
  }
  
  .btn-partnership:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
  }
  
  /* Responsive adjustments for friendly links */
  @media (max-width: 768px) {
    .friendly-links {
      padding: 3rem 1rem 1.5rem;
    }
  
    .links-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  
    .links-footer {
      flex-direction: column;
      text-align: center;
    }
  
    .links-actions {
      width: 100%;
      justify-content: center;
    }
  
    .links-header h3 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .links-category {
      padding: 1rem;
    }
  
    .links-actions {
      flex-direction: column;
      width: 100%;
    }
  
    .btn-link-exchange,
    .btn-partnership {
      width: 100%;
      padding: 0.75rem;
    }
  }
  
  /* Footer */
  .footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 3rem 1rem 1rem;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
  }
  
  .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .footer-brand .heart-icon {
    color: #f472b6;
  }
  
  .footer-contact p {
    margin-bottom: 0.5rem;
    color: #d1d5db;
  }
  
  .footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .nav-center,
    .nav-menu,
    .cta-button,
    .hamburger {
      display: none !important;
    }
    .nav-container {
      display: flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 0.7rem;
      padding: 0.5rem 0.5rem 0.5rem 0.5rem;
      height: 3.2rem;
    }
    .nav-brand {
      display: flex !important;
      align-items: center !important;
      flex-direction: row !important;
      gap: 0.4rem !important;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--text-dark);
    }
    .brand-text {
      font-size: 1.1rem !important;
      font-weight: 700 !important;
      color: var(--text-dark) !important;
      white-space: nowrap;
    }
    .nav-right {
      display: flex !important;
      align-items: center !important;
      gap: 0.4rem !important;
    }
    .nav-phone {
      display: inline-block !important;
      margin-left: 0.7rem !important;
      font-size: 1rem !important;
      color: #ec4899 !important;
      font-weight: 600 !important;
      letter-spacing: 1px;
      white-space: nowrap;
    }
    .navbar > div[style*="display: flex; align-items: center; gap: 1.2rem;"] {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 0.7rem !important;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .cta-button {
      width: 100%;
      text-align: center;
      margin-top: 0.3rem;
    }
    .nav-phone {
      width: 100%;
      text-align: left;
      font-size: 1.05rem;
    }
    .card-stack {
      width: 80vw !important;
      height: 80vw !important;
      min-width: 120px !important;
      min-height: 120px !important;
      max-width: 90vw !important;
      max-height: 90vw !important;
      position: relative !important;
      margin: 0 !important;
      left: 0 !important;
      right: 0 !important;
    }
    .card {
      width: 100% !important;
      height: 100% !important;
      position: absolute !important;
      inset: 0 !important;
      margin: 0 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .card-front img,
    .card-front video {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      border-radius: 2.5rem !important;
      display: block !important;
    }
    .hero-content {
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
  
    .hero-title {
      font-size: 2rem;
    }
  
    .about-content {
      grid-template-columns: 1fr !important;
      justify-items: center !important;
    }
  
    .contact-wrapper {
      grid-template-columns: 1fr;
    }
  
    .form-row {
      grid-template-columns: 1fr;
    }
  
    .contact-info {
      flex-direction: column;
    }
  
    .hero-buttons,
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
  
    .contact-info {
      flex-direction: column;
      gap: 1rem;
    }
  
    .section-header h2 {
      font-size: 2rem;
    }
  
    .cta-content h2 {
      font-size: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    .container {
      padding: 0 0.5rem;
    }
  
    .hero {
      padding: 6rem 0.5rem 3rem;
    }
  
    .hero-title {
      font-size: 1.75rem;
    }
  
    .hero-description {
      font-size: 1rem;
    }
  
    .teacher-team,
    .qualifications,
    .about,
    .programs,
    .testimonials,
    .cta,
    .contact-form-section {
      padding: 3rem 0.5rem;
    }
  
    .programs-grid {
      grid-template-columns: 1fr;
    }
  
    .testimonials-grid {
      grid-template-columns: 1fr;
    }
  
    .teachers-grid,
    .qualifications-grid {
      grid-template-columns: 1fr;
    }
  
    .card-stack {
      width: 96vw !important;
      height: 96vw !important;
      min-width: 100px !important;
      min-height: 100px !important;
      max-width: 98vw !important;
      max-height: 98vw !important;
      position: relative !important;
      margin: 0 !important;
      left: 0 !important;
      right: 0 !important;
    }
    .card {
      width: 80% !important;
      height: 80% !important;
      position: absolute !important;
      inset: 0 !important;
      margin: auto !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .card-front img,
    .card-front video {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover;
      border-radius: 2.5rem;
    }
    .navbar > div[style*="display: flex; align-items: center; gap: 1.2rem;"] {
      flex-direction: column;
      align-items: flex-start !important;
      gap: 0.7rem !important;
      margin-top: 0.5rem;
      margin-bottom: 0.5rem;
    }
    .cta-button {
      width: 100%;
      text-align: center;
      margin-top: 0.3rem;
    }
    .nav-phone {
      width: 100%;
      text-align: left;
      font-size: 1rem;
    }
  }
  
  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .teacher-card,
  .qualification-card,
  .program-card,
  .testimonial-card {
    animation: fadeInUp 0.6s ease-out;
  }
  
  /* Focus styles for accessibility */
  button:focus,
  input:focus,
  select:focus,
  textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Print styles */
  @media print {
    .navbar,
    .hamburger,
    .cta-buttons,
    .contact-form {
      display: none;
    }
  
    body {
      background: white;
    }
  
    .hero,
    .about,
    .testimonials {
      background: white;
    }
  }
  
  /* === 卡片叠放区域重构，保证前后卡片等比缩放、居中且不溢出 === */
  .card-stack {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }
  .card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 2.5rem;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15), 0 1.5px 6px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
    pointer-events: auto;
    left: 0;
    top: 0;
    margin: 0;
  }
  .card-back {
    background: #f9a8d4;
    transform: rotate(-5deg) scale(0.96);
    z-index: 1;
  }
  .card-front {
    background: #ededed;
    z-index: 2;
    transform: rotate(2deg) scale(0.98);
  }
  .card-front img,
  .card-front video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2.5rem;
    display: block;
  }
  
  /* 移动端等比缩放和居中 */
  @media (max-width: 768px) {
    .hero-content,
    .about-content {
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .hero-image,
    .about-image {
      width: 100vw !important;
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      padding: 0 !important;
      margin: 0 !important;
    }
    .card-stack {
      width: 80vw !important;
      height: 80vw !important;
      max-width: 90vw !important;
      max-height: 90vw !important;
      min-width: 120px !important;
      min-height: 120px !important;
      position: relative !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .card {
      width: 100% !important;
      height: 100% !important;
      left: 0 !important;
      top: 0 !important;
      margin: 0 !important;
      position: absolute !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
    }
    .card-back {
      transform: rotate(-5deg) scale(0.96) !important;
    }
    .card-front {
      transform: rotate(2deg) scale(0.98) !important;
    }
    .card-front img,
    .card-front video {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      border-radius: 2.5rem !important;
      display: block !important;
    }
  }
  
  @media (max-width: 480px) {
    .card-stack {
      width: 96vw !important;
      height: 96vw !important;
      max-width: 98vw !important;
      max-height: 98vw !important;
      min-width: 100px !important;
      min-height: 100px !important;
    }
  }
  
  /* 小程序弹窗样式 */
  .miniapp-modal {
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .miniapp-modal-content {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2.2rem 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.13), 0 1.5px 6px rgba(0,0,0,0.04);
    max-width: 92vw;
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.35s cubic-bezier(.4,1.6,.6,1) both;
  }
  .miniapp-modal-close {
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    font-size: 1.6rem;
    color: #ec4899;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
  }
  .miniapp-modal-close:hover {
    color: #be185d;
  }
  @media (max-width: 480px) {
    .miniapp-modal-content {
      padding: 1.2rem 0.5rem 1rem;
      min-width: 0;
      max-width: 98vw;
    }
  }
  
  /* 建联方式弹窗样式 */
  .contact-modal {
    position: fixed;
    z-index: 2100;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.32);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .contact-modal-content {
    background: #fff;
    border-radius: 1.2rem;
    padding: 2.2rem 2rem 1.5rem;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.13), 0 1.5px 6px rgba(0,0,0,0.04);
    max-width: 92vw;
    min-width: 260px;
    max-width: 340px;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.35s cubic-bezier(.4,1.6,.6,1) both;
  }
  .contact-modal-close {
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    font-size: 1.6rem;
    color: #ec4899;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
  }
  .contact-modal-close:hover {
    color: #be185d;
  }
  @media (max-width: 480px) {
    .contact-modal-content {
      padding: 1.2rem 0.5rem 1rem;
      min-width: 0;
      max-width: 98vw;
    }
  }

  /* Teacher and Qualification Animations */
  @keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
  }
  
  @keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Responsive styles for teacher and qualification sections */
  @media (max-width: 768px) {
    .teachers-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
    }
    
    .qualifications-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .qualification-frame {
      width: 100%;
      max-width: 320px;
    }
    
    .teacher-photo-frame {
      width: 100px;
      height: 100px;
    }
  }

  @media (max-width: 480px) {
    .teachers-grid {
      grid-template-columns: 1fr;
    }
    
    .teacher-card {
      padding: 1.5rem;
    }
    
    .qualification-frame {
      height: 180px;
    }
    
    .teacher-photo-frame {
      width: 90px;
      height: 90px;
    }
  }
  