/* 全局样式 */
:root {
    --primary-color: #e77ea9;
    --secondary-color: #f4c2d7;
    --accent-color: #8e4585;
    --text-color: #333;
    --light-text: #fff;
    --light-bg: #f9f9f9;
    --dark-bg: #333;
    --border-color: #eaeaea;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.18); /* 加重阴影 */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

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

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

ul {
    list-style: none;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

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

.section-header h2 {
    font-size: 36px;
    color: var(--accent-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 18px;
    color: #777;
}

section {
    padding: 80px 0;
}

/* 轮播图section不需要顶部内边距 */
section.hero-slider {
    padding-top: 0;
}

/* 顶部导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(-100%);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 280px; /* 确保logo区域有足够宽度 */
    margin-right: 20px; /* 增加与导航区的间距 */
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 22px; /* 稍微减小字体大小 */
    color: var(--accent-color);
    font-weight: 700;
    white-space: nowrap; /* 防止文字换行 */
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    font-size: 24px;
    color: var(--accent-color);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

nav {
    transition: var(--transition);
}

nav.nav-collapsed {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

nav.nav-expanded {
    max-height: 500px;
}

nav ul {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

nav ul li {
    margin: 10px 0;
    text-align: center;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    display: inline-block;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 响应式导航栏 */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    nav.nav-collapsed {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: none;
        background-color: transparent;
    }
    
    nav ul {
        flex-direction: row;
        padding: 0;
    }
    
    nav ul li {
        margin: 0 15px;
    }
}

/* 首页轮播图 */
.hero-slider {
    height: 100vh;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    width: 50%;
    padding: 0 50px;
    position: relative;
    z-index: 10;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    transition: var(--transition);
}

.slider-controls button:hover {
    color: var(--primary-color);
}

.dots {
    display: flex;
    margin: 0 20px;
}

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

.dot.active {
    background-color: var(--primary-color);
}

/* 关于我们 */
.about-section {
    background-color: var(--light-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.feature i {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.feature p {
    font-size: 14px;
    color: #777;
}

/* 服务项目 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 36px;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 22px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-card ul {
    text-align: left;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
    color: #666;
    position: relative;
    padding-left: 12px;
    white-space: nowrap;          /* 单行显示 */
    overflow: hidden;             /* 超出隐藏 */
    text-overflow: ellipsis;      /* 超出省略号 */
}

.service-card ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 环境展示 */
.environment-section {
    background-color: var(--light-bg);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--light-text);
    transition: var(--transition);
}

.gallery-caption h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.gallery-caption p {
    font-size: 14px;
    opacity: 0.8;
}

.virtual-tour {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.virtual-tour h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.virtual-tour p {
    margin-bottom: 20px;
    color: #666;
}

/* 专业团队 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-member {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-image {
    height: 250px;
    overflow: hidden;
}

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

.team-member:hover .member-image img {
    transform: scale(1.1);
}

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

.member-info h3 {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.member-info .position {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.member-info .description {
    font-size: 14px;
    color: #666;
}

/* 妈妈心声 */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.quote {
    position: relative;
    padding: 20px 0;
}

.quote i.fa-quote-left {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 24px;
    color: var(--secondary-color);
}

.quote i.fa-quote-right {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 24px;
    color: var(--secondary-color);
}

.quote p {
    padding: 0 30px;
    color: #666;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.testimonial-author h4 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 14px;
    color: #777;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonial-controls .dot {
    background-color: rgba(0, 0, 0, 0.2);
}

.testimonial-controls .dot.active {
    background-color: var(--primary-color);
}

/* 套餐价格 */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 手机端：套餐横向滚动（中间卡片完整显示，两侧露边） */
@media (max-width: 768px) {
  .packages-grid {
    display: flex;                 /* 改为flex避免被拉伸 */
    gap: 16px;
    overflow-x: auto;              /* 仅横向滚动 */
    overflow-y: hidden;            /* 禁止纵向滚动 */
    scroll-snap-type: x mandatory; /* 强制吸附 */
    -webkit-overflow-scrolling: touch;
    padding: 10px 10vw;            /* 两侧留白，形成露边效果 */
  }
  .package-card {
    flex: 0 0 80vw;                /* 单卡片宽度占屏宽80%，左右各露10% */
    scroll-snap-align: center;     /* 居中吸附 */
    height: auto;                  /* 避免内部内容影响容器产生纵向滚动 */
  }
  .package-card.featured {         /* 移动端取消放大，避免宽度不齐 */
    transform: none;
    border-width: 1px;
  }
  /* 可选：隐藏滚动条（兼容大多数移动端） */
  .packages-grid::-webkit-scrollbar { display: none; }
}

.package-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-card.featured {
    transform: scale(1.05);
    z-index: 1;
    border: 2px solid var(--primary-color);
}

.package-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.package-header {
    background-color: var(--accent-color);
    color: var(--light-text);
    padding: 20px;
    text-align: center;
}

.package-card.featured .package-header {
    background-color: var(--primary-color);
}

.package-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.price {
    font-size: 18px;
}

.price .amount {
    font-size: 36px;
    font-weight: 700;
}

.package-body {
    padding: 30px;
}

.package-body ul li {
    margin-bottom: 15px;
    color: #666;
    display: flex;
    align-items: center;
}

.package-body ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

.package-footer {
    padding: 20px;
    text-align: center;
    background-color: #fff; /* 与卡片背景保持一致 */
}

/* 常见问题 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    background-color: #fff;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--accent-color);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    background-color: #f9f9f9;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* 联系我们 */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-info-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info-item h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.contact-info-item p {
    color: #666;
}

.social-media {
    margin-top: 30px;
}

.social-media h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-align: center; /* 标题也居中 */
}

.social-icons {
    display: flex;
    justify-content: center; /* 居中显示微信抖音 */
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-form-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-form-container h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: 500;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(231, 126, 169, 0.2);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.map-container {
    background-color: #fff;
    border-radius: 10px;
    padding: 16px; /* 缩小内边距，让图片更贴合容器 */
    box-shadow: var(--shadow);
}

.map-container h3 {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.map {
    width: 100%;
    aspect-ratio: 1 / 1; /* 方形容器 */
    border-radius: 12px;
    overflow: hidden;
}

.map-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #555; /* 更醒目一点 */
    margin-top: 12px;
}
.map-address i { color: var(--primary-color); }

/* 地图图片保持不变形，填满容器 */
.map img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 充满容器不变形，四边自动裁切一点点 */
    display: block;
}

/* 底部区域 */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-around;
    gap: 16px;
}

.footer-links-column h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
}

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

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #aaa;
    transition: var(--transition);
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links-column ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

/* 个人中心-变动明细卡片样式（沿用全站风格） */
.logs-card { background:#fff; border-radius:10px; box-shadow: var(--shadow); padding:16px; }
.logs-list { display:flex; flex-direction:column; gap:10px; }
.log-item { display:flex; justify-content:space-between; align-items:center; padding:12px; border:1px solid var(--border-color); border-radius:8px; }
.log-left { display:flex; align-items:center; gap:10px; color:#666; }
.log-tag { padding:4px 8px; border-radius:12px; font-size:12px; color:#fff; }
.log-tag.increase { background:#49c66e; }
.log-tag.decrease { background:#e57373; }
.log-amount { font-weight:700; color: var(--accent-color); }
.log-time { color:#999; font-size:12px; }

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

/* 预约悬浮按钮 */
.floating-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
}

.floating-button .btn {
    box-shadow: var(--shadow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 126, 169, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 126, 169, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 126, 169, 0);
    }
}

/* 二维码弹窗样式 */

.qr-modal {
    display: none; /* 打开时用 flex 以实现完全居中 */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 16px; /* 防止小屏幕贴边 */
    box-sizing: border-box;
}

.qr-modal-content {
    position: relative;
    background-color: #fff;
    margin: 0; /* 居中由父容器 flex 控制 */
    padding: 20px;
    border-radius: 10px;
    width: 320px;
    max-width: 90%;
    max-height: 85vh;
    overflow: visible; /* 允许下拉选单溢出显示，避免被裁切 */
    text-align: center;
    animation: slideIn 0.3s ease;
    z-index: 2001; /* 确保弹窗内容在最顶层 */
}

/* 弹窗内表单控件宽度自适应，避免选择条溢出 */
.qr-modal-content input,
.qr-modal-content select {
    width: 100%;
    max-width: 100%;
}

/* 移动端弹窗与选择器优化 */
@media (max-width: 576px) {
    .qr-modal { padding: 12px; }
    .qr-modal-content {
        width: 92vw;         /* 基础：接近全屏宽度 */
        max-width: 92vw;
        padding: 16px;
    }
    .qr-modal-content input,
    .qr-modal-content select {
        width: 100%;
        max-width: 100%;
        font-size: 16px;     /* 避免 iOS 聚焦缩放 */
    }
}

/* 更宽覆盖：常见手机（≤768px）下彻底防止横向溢出 */
@media (max-width: 768px) {
    /* 移动端弹窗结构调整 */
    .qr-modal { 
        padding: 12px;
    }
    .qr-modal-content {
        width: 92vw;
        max-width: 92vw;
        border-radius: 10px;
        overflow-x: hidden;            /* 禁止横向溢出 */
        overflow-y: auto;              /* 纵向内容可滚动 */
        max-height: 80vh;
        margin: auto;
        animation: slideIn 0.3s ease;
        padding: 16px;
    }
    
    /* 移动端下拉菜单特殊处理 - 改为原生样式 */
    .qr-modal-content select {
        -webkit-appearance: menulist;  /* 使用原生下拉样式 */
        -moz-appearance: menulist;
        appearance: menulist;
        padding: 10px;
        height: 44px;                  /* 增大点击区域 */
    }
    
    /* 移动端弹窗关闭按钮位置调整 */
    .qr-modal .qr-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        z-index: 2002;
    }
}

.qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.qr-close:hover {
    color: var(--primary-color);
}

.qr-image-container {
    margin-top: 20px;
}

.qr-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* 全局中文提示弹窗 */
.dialog-title { margin: 6px 0 10px; font-size: 18px; color: var(--accent-color); }
.dialog-message { color:#666; line-height:1.7; margin-bottom: 16px; }
.dialog-actions { display:flex; justify-content:center; }
.dialog-actions .btn { padding: 10px 18px; border-radius: 22px; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .services-grid,
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container { grid-template-columns: 1fr; }
    .contact-form-container { order: 1; }
    .contact-info-container { order: 2; }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: row; /* 保持水平布局 */
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 1; /* 让logo占据剩余空间 */
        margin-bottom: 0; /* 移除底部边距 */
    }
    
    .logo h1 {
        font-size: 20px; /* 在小屏幕上稍微减小字体 */
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .contact-info {
        margin-top: 15px;
    }

    .hero-slider {
        height: 70vh;
    }

    .slide-content {
        width: 100%;
        text-align: center;
        padding: 0 20px;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    /* 服务项目与关于我们要在手机端 2 列排列 */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .service-card { padding: 16px; }
    .service-icon { width: 56px; height: 56px; margin: 0 auto 10px; }
    .service-icon i { font-size: 28px; }
    .service-card h3 { font-size: 18px; margin-bottom: 10px; }
    .service-card ul { padding-left: 8px; }
    .service-card ul li { padding-left: 8px; font-size: 13px; }
    .gallery { grid-template-columns: 1fr; }
    .packages-grid { grid-template-columns: 1fr; }

    .about-features {
        grid-template-columns: 1fr;
    }

    /* 页脚链接在手机端横向滚动显示（更紧凑） */
    .footer-links {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding: 0 6vw;                /* 两侧露边，提示可滑动 */
        scroll-snap-type: x proximity;  /* 轻度吸附，滑动更自然 */
    }
    .footer-links-column {
        min-width: 35%;                /* 更紧凑，更多内容可见 */
        scroll-snap-align: start;
    }
    .footer-links-column h3 { margin-bottom: 12px; }
    .footer-links-column ul li { margin-bottom: 6px; }
}

@media (max-width: 576px) {
    header .container {
        padding: 10px 15px; /* 减少内边距以节省空间 */
    }
    
    .logo {
        min-width: auto; /* 移除最小宽度限制 */
        margin-right: 10px; /* 减少右边距 */
    }
    
    .logo img {
        height: 40px; /* 减小logo图片尺寸 */
    }
    
    .logo h1 {
        font-size: 18px; /* 进一步减小字体 */
    }
    
    .menu-toggle {
        font-size: 22px; /* 稍微减小菜单按钮尺寸 */
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 16px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .contact-form { grid-template-columns: 1fr; }
    /* 联系我们表单：手机端更紧凑 */
    .contact-form-container { padding: 20px; }
    .contact-form-container h3 { margin-bottom: 12px; }
    .form-group { margin-bottom: 12px; }
    .form-group label { margin-bottom: 3px; font-size: 14px; }
    .form-group input,
    .form-group textarea { padding: 10px 12px; font-size: 15px; }
    /* 关于我们特色卡片在更小屏仍维持 2 列 → 调整为 2 列布局 */
    .about-features { grid-template-columns: repeat(2, 1fr); }
}