/* ==========================================================================
   水晶药业 - 玻璃拟态风格 (Glassmorphism) 样式表
   主色调：粉紫蓝渐变 + 毛玻璃半透明卡片
   ========================================================================== */

/* CSS 变量定义 */
:root {
    --grad-bg: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-blur: blur(20px);
    --text-light: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.85);
    --text-dim: rgba(255, 255, 255, 0.7);
    --accent: #f093fb;
    --accent-2: #667eea;
    --shadow-glow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-hover: 0 20px 50px rgba(102, 126, 234, 0.5);
    --radius: 18px;
    --radius-lg: 24px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
    font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--grad-bg);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 链接基础样式 */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

/* 通用毛玻璃效果类 */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glow);
}

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

.container.narrow {
    max-width: 820px;
}

/* 通用 section 样式 */
.section {
    padding: 90px 0;
    position: relative;
    z-index: 2;
}

/* 章节标题 */
.section-head {
    text-align: center;
    margin-bottom: 55px;
}

.section-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    margin: 18px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   背景装饰光斑（视差层）
   ========================================================================== */
.bg-decor {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #f093fb;
    top: 10%;
    left: -80px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #667eea;
    top: 50%;
    right: -60px;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    bottom: 5%;
    left: 30%;
}

/* ==========================================================================
   模块1：导航栏
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 20px;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 8px 20px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 50px;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

/* 导航菜单 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

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

.hamburger span {
    width: 26px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

.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 {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

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

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

/* 轮播图玻璃覆盖层 */
.carousel-overlay {
    position: absolute;
    bottom: 12%;
    left: 8%;
    max-width: 560px;
    padding: 32px 38px;
    border-radius: var(--radius-lg);
    transform: translateX(40px);
    opacity: 0;
    transition: all 0.8s ease;
}

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

.carousel-tag {
    display: inline-block;
    padding: 5px 16px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.carousel-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
}

.carousel-desc {
    font-size: 1.05rem;
    color: var(--text-soft);
}

/* 轮播圆点 */
.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-light);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--text-light);
    transform: scale(1.2);
}

/* 轮播箭头 */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: var(--transition);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 25px;
}

.carousel-arrow.next {
    right: 25px;
}

/* ==========================================================================
   模块3：关于我们
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.about-text {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.about-text p {
    margin-bottom: 18px;
    color: var(--text-soft);
    font-size: 1.02rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    height: 360px;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* 统计数据 */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    padding: 32px 20px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

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

.stat-num {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   模块4：服务介绍（玻璃卡片滑动）
   ========================================================================== */
.service-slider {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px 30px;
}

.service-slider::-webkit-scrollbar {
    display: none;
}

.service-track {
    display: flex;
    gap: 26px;
    padding-bottom: 5px;
}

.service-card {
    min-width: 280px;
    flex: 0 0 calc(25% - 20px);
    scroll-snap-align: start;
    padding: 38px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.22);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.45);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    font-weight: 700;
}

.service-card p {
    color: var(--text-soft);
    font-size: 0.96rem;
}

/* 滑动进度条 */
.slider-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 20px;
}

.slider-progress span {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    border-radius: 2px;
    transition: transform 0.4s ease;
}

/* ==========================================================================
   模块5：客户案例（滑动展示）
   ========================================================================== */
.case-slider {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px 30px;
}

.case-slider::-webkit-scrollbar {
    display: none;
}

.case-track {
    display: flex;
    gap: 26px;
    padding-bottom: 5px;
}

.case-card {
    min-width: 280px;
    flex: 0 0 calc(25% - 20px);
    scroll-snap-align: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

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

/* 正方形图片（统一） */
.case-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.case-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.case-body {
    padding: 24px 22px;
}

.case-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: 600;
}

.case-body p {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-style: italic;
}

/* ==========================================================================
   模块6：新闻资讯
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
}

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

.news-date {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
}

.news-day {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.news-month {
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.9;
}

.news-card h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.news-card p {
    color: var(--text-soft);
    font-size: 0.93rem;
    margin-bottom: 18px;
}

.news-more {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.92rem;
}

.news-more:hover {
    letter-spacing: 1px;
}

/* ==========================================================================
   模块7：常见问题FAQ（手风琴）
   ========================================================================== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

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

.faq-question {
    width: 100%;
    padding: 22px 26px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-icon {
    font-size: 1.6rem;
    font-weight: 300;
    transition: transform 0.4s ease;
    color: var(--accent);
    flex-shrink: 0;
}

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

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

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-soft);
    font-size: 0.97rem;
}

/* ==========================================================================
   模块8：联系我们
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
}

/* 联系信息 */
.contact-info {
    padding: 40px 36px;
    border-radius: var(--radius-lg);
}

.contact-info h3 {
    font-size: 1.4rem;
    margin-bottom: 28px;
    font-weight: 700;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.info-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.info-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
    color: var(--text-dim);
    font-weight: 500;
}

.info-list p {
    font-size: 1.02rem;
    font-weight: 600;
}

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

/* 联系表单 */
.contact-form {
    padding: 40px 36px;
    border-radius: var(--radius-lg);
}

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

.form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-weight: 500;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.98rem;
    transition: var(--transition);
    resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(240, 147, 251, 0.25);
}

.form-row input.invalid,
.form-row textarea.invalid {
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.25);
}

.form-error {
    display: block;
    color: #ffb3d1;
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 16px;
}

.form-submit {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 22px rgba(240, 147, 251, 0.45);
    letter-spacing: 1px;
}

.form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(240, 147, 251, 0.6);
}

.form-success {
    margin-top: 16px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(76, 217, 149, 0.25);
    border: 1px solid rgba(76, 217, 149, 0.5);
    text-align: center;
    font-size: 0.95rem;
    display: none;
}

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

/* ==========================================================================
   模块9：友情链接 + 页脚
   ========================================================================== */
.footer {
    padding: 60px 0 30px;
    position: relative;
    z-index: 2;
}

.footer-top {
    padding: 40px;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand .logo-icon {
    font-size: 2.5rem;
}

.footer-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-en {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.footer-links h4 {
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--text-soft);
    padding: 4px 0;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-bottom {
    margin-top: 30px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 6px;
}

/* ==========================================================================
   回到顶部按钮
   ========================================================================== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

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

.back-top:hover {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    transform: translateY(-4px);
}

/* ==========================================================================
   滚动揭示动画（IntersectionObserver 配合）
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* 卡片滑入动画（依次延迟） */
.service-card.reveal,
.case-card.reveal,
.news-card.reveal,
.stat-card.reveal,
.faq-item.reveal {
    transition-delay: 0s;
}

/* ==========================================================================
   动画关键帧
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -40px);
    }
}

/* 光斑浮动动画 */
.blob-1 {
    animation: floatBlob 12s ease-in-out infinite;
}

.blob-2 {
    animation: floatBlob 14s ease-in-out infinite reverse;
}

.blob-3 {
    animation: floatBlob 16s ease-in-out infinite;
}

/* ==========================================================================
   响应式设计（移动优先）
   ========================================================================== */

/* 平板（<= 992px） */
@media (max-width: 992px) {
    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-img {
        height: 280px;
    }

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

    .service-card,
    .case-card {
        flex: 0 0 calc(33.333% - 18px);
    }

    .news-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

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

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links ul {
        justify-items: center;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-overlay {
        max-width: 460px;
        padding: 26px 30px;
    }
}

/* 移动端（<= 768px） */
@media (max-width: 768px) {
    /* 显示汉堡菜单 */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 75px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 22px;
        border-radius: var(--radius-lg);
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-glow);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 12px;
    }

    .nav-cta {
        margin-top: 5px;
    }

    /* 轮播图调整 */
    .carousel-overlay {
        left: 5%;
        right: 5%;
        bottom: 15%;
        max-width: none;
        padding: 22px 24px;
    }

    .carousel-title {
        font-size: 1.6rem;
    }

    .carousel-desc {
        font-size: 0.92rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-arrow.prev {
        left: 12px;
    }

    .carousel-arrow.next {
        right: 12px;
    }

    /* 服务与案例卡片移动端单列滑动 */
    .service-card,
    .case-card {
        flex: 0 0 80%;
    }

    .contact-info,
    .contact-form {
        padding: 30px 24px;
    }

    .footer-links ul {
        grid-template-columns: 1fr;
    }
}

/* 小屏手机（<= 480px） */
@media (max-width: 480px) {
    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .container {
        padding: 0 16px;
    }

    .nav-inner {
        padding: 10px 18px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-num {
        font-size: 2.3rem;
    }

    .carousel-title {
        font-size: 1.35rem;
    }

    .carousel-tag {
        font-size: 0.72rem;
    }

    .about-text {
        padding: 28px 22px;
    }

    .footer-top {
        padding: 28px 22px;
    }

    .back-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 支持减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
