/* ============================================
   香港柔嘉药业有限公司 - 柔和粉彩风格样式表
   主色调：粉色、薰衣草、薄荷绿
   字体：Quicksand
   ============================================ */

/* ========== CSS 变量定义 ========== */
:root {
    --color-pink-light: #FFB6C1;
    --color-pink: #FFC0CB;
    --color-pink-deep: #FF9FAE;
    --color-lavender: #E6E6FA;
    --color-lavender-deep: #D8BFD8;
    --color-mint: #98FB98;
    --color-mint-soft: #B5EAD7;
    --color-cream: #FFF0F5;
    --color-cyan: #E0FFFF;
    --color-white: #FFFFFF;
    --color-text: #5D4E6D;
    --color-text-light: #8B7BA0;
    --color-text-soft: #9B8AAE;
    
    /* 柔和渐变背景 */
    --gradient-soft: linear-gradient(135deg, #FFE4E1, #E6E6FA, #E0FFFF);
    --gradient-pink: linear-gradient(135deg, #FFB6C1, #FFC0CB);
    --gradient-lavender: linear-gradient(135deg, #E6E6FA, #D8BFD8);
    --gradient-mint: linear-gradient(135deg, #98FB98, #B5EAD7);
    
    /* 柔和阴影 */
    --shadow-soft: 0 4px 20px rgba(255, 182, 193, 0.25);
    --shadow-medium: 0 8px 30px rgba(230, 230, 250, 0.4);
    --shadow-deep: 0 12px 40px rgba(255, 182, 193, 0.35);
    --shadow-hover: 0 16px 50px rgba(216, 191, 216, 0.5);
    
    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 50px;
    
    /* 过渡 */
    --transition-soft: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gradient-soft);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== 通用容器 ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* ========== 通用按钮 ========== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border: none;
    border-radius: var(--radius-full);
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-pink);
    color: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-deep);
}

/* 波纹涟漪效果 */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== 模块1：导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-soft);
}

.navbar.scrolled {
    box-shadow: var(--shadow-medium);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 700;
    font-size: 22px;
    transition: var(--transition-soft);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 28px;
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

.logo-text {
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition-soft);
    position: relative;
}

.nav-link:hover {
    background: var(--gradient-pink);
    color: var(--color-white);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--gradient-pink);
    color: var(--color-white);
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gradient-pink);
    border-radius: 3px;
    transition: var(--transition-soft);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========== 模块2：全屏轮播图 ========== */
.hero {
    margin-top: 70px;
    height: calc(100vh - 70px);
    min-height: 500px;
    position: relative;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.carousel-slide.active.prev {
    transform: translateX(-100%);
}

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

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(230, 230, 250, 0.3));
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    z-index: 3;
    width: 90%;
    max-width: 700px;
    padding: 40px;
    text-shadow: 0 2px 20px rgba(93, 78, 109, 0.5);
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.3s both;
}

.carousel-caption .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播控制按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
    z-index: 4;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
    background: var(--gradient-pink);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.15);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

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

.indicator.active {
    background: var(--gradient-pink);
    width: 36px;
    border-radius: 6px;
}

/* ========== 章节标题通用样式 ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 20px;
    background: var(--gradient-lavender);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-pink);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ========== 模块3：关于我们 ========== */
.about {
    background: linear-gradient(180deg, rgba(255, 228, 225, 0.5), rgba(230, 230, 250, 0.5));
}

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

.about-text p {
    font-size: 17px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    background: var(--color-white);
    padding: 24px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-pink);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    transition: var(--transition-soft);
}

.about-image:hover {
    transform: scale(1.02);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ========== 模块4：服务介绍 ========== */
.services {
    background: linear-gradient(180deg, rgba(230, 230, 250, 0.5), rgba(224, 255, 255, 0.5));
}

.services-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-pink) transparent;
}

.services-slider::-webkit-scrollbar {
    height: 8px;
}

.services-slider::-webkit-scrollbar-thumb {
    background: var(--gradient-pink);
    border-radius: 4px;
}

.services-track {
    display: flex;
    gap: 24px;
    padding: 0 20px;
}

.service-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-pink);
    transform: scaleX(0);
    transition: var(--transition-soft);
    transform-origin: left;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 22px;
    color: var(--color-text);
    margin-bottom: 16px;
    font-weight: 600;
}

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

/* ========== 模块5：客户案例 ========== */
.cases {
    background: linear-gradient(180deg, rgba(224, 255, 255, 0.5), rgba(255, 228, 225, 0.5));
}

.cases-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-lavender-deep) transparent;
}

.cases-slider::-webkit-scrollbar {
    height: 8px;
}

.cases-slider::-webkit-scrollbar-thumb {
    background: var(--gradient-lavender);
    border-radius: 4px;
}

.cases-track {
    display: flex;
    gap: 24px;
    padding: 0 20px;
}

.case-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
}

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

.case-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 24px;
}

.case-quote {
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.case-author {
    color: var(--color-pink-deep);
    font-weight: 600;
    font-size: 14px;
}

/* ========== 模块6：新闻资讯 ========== */
.news {
    background: linear-gradient(180deg, rgba(255, 228, 225, 0.5), rgba(230, 230, 250, 0.5));
}

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

.news-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-soft);
    opacity: 0;
    transition: var(--transition-soft);
    z-index: 0;
}

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

.news-card:hover::before {
    opacity: 0.3;
}

.news-card > * {
    position: relative;
    z-index: 1;
}

.news-date {
    display: inline-block;
    padding: 4px 14px;
    background: var(--gradient-lavender);
    color: var(--color-text);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.news-title {
    font-size: 19px;
    color: var(--color-text);
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.news-excerpt {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.news-link {
    color: var(--color-pink-deep);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-soft);
}

.news-link:hover {
    letter-spacing: 1px;
    color: var(--color-text);
}

/* ========== 模块7：常见问题FAQ ========== */
.faq {
    background: linear-gradient(180deg, rgba(230, 230, 250, 0.5), rgba(224, 255, 255, 0.5));
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-soft);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Quicksand', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-soft);
}

.faq-question:hover {
    color: var(--color-pink-deep);
}

.faq-icon {
    font-size: 24px;
    color: var(--color-pink-deep);
    transition: var(--transition-bounce);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 28px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 22px;
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: 15px;
    line-height: 1.8;
}

/* ========== 模块8：联系我们 ========== */
.contact {
    background: linear-gradient(180deg, rgba(224, 255, 255, 0.5), rgba(255, 228, 225, 0.5));
}

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

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

.info-item {
    background: var(--color-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: var(--transition-bounce);
}

.info-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-item h4 {
    color: var(--color-text);
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 600;
}

.info-item p {
    color: var(--color-text-light);
    font-size: 15px;
}

/* 表单样式 */
.contact-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-lavender);
    border-radius: var(--radius-sm);
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-cream);
    transition: var(--transition-soft);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-pink-light);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #FF6B8A;
    background: #FFF5F5;
}

.error-msg {
    display: block;
    color: #FF6B8A;
    font-size: 13px;
    margin-top: 6px;
    min-height: 16px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 17px;
}

.form-success {
    display: none;
    text-align: center;
    color: var(--color-mint-soft);
    font-weight: 600;
    margin-top: 16px;
    padding: 14px;
    background: rgba(181, 234, 215, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* ========== 模块9：页脚 ========== */
.footer {
    background: linear-gradient(135deg, #5D4E6D, #8B7BA0);
    color: var(--color-white);
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--color-pink-light);
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-desc {
    margin-top: 16px;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-soft);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-pink-light);
    transform: translateX(6px);
}

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

/* ========== 回到顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-pink);
    border: none;
    font-size: 26px;
    cursor: pointer;
    box-shadow: var(--shadow-deep);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-bounce);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1) rotate(15deg);
}

/* ========== IntersectionObserver 滑入动画 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 响应式设计 ========== */
/* 平板设备 */
@media (max-width: 992px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .carousel-caption h1 {
        font-size: 38px;
    }
    
    .carousel-caption p {
        font-size: 17px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        transform: translateY(-150%);
        transition: var(--transition-soft);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-link {
        display: block;
        padding: 14px 20px;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .carousel-caption h1 {
        font-size: 28px;
    }
    
    .carousel-caption p {
        font-size: 15px;
    }
    
    .carousel-caption {
        padding: 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .service-card,
    .case-card {
        flex: 0 0 280px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .back-to-top {
        width: 48px;
        height: 48px;
        font-size: 22px;
        bottom: 20px;
        right: 20px;
    }
}

/* 小型移动设备 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .carousel-caption h1 {
        font-size: 22px;
    }
    
    .carousel-caption .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .case-card {
        flex: 0 0 85vw;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }
}
