/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 视口约束 - 确保在不同显示器上有一致的显示 */
html {
    /* 防止内容溢出 */
    overflow-x: hidden;
    /* 基础字体大小 - 使用相对单位 */
    font-size: 16px;
    /* 强制禁用滚动吸附 */
    scroll-snap-type: none !important;
    /* 平滑滚动 */
    scroll-behavior: smooth;
    /* 为固定导航栏预留空间 */
    scroll-padding-top: 70px;
}

/* 针对不同屏幕宽度调整基础字体大小 */
@media (min-width: 1920px) {
    html { font-size: 18px; }
}

@media (min-width: 2560px) {
    html { font-size: 20px; }
}

@media (max-width: 1366px) {
    html { font-size: 15px; }
}

@media (max-width: 1024px) {
    html { font-size: 14px; }
}

:root {
    --primary-color: #a92533;
    --secondary-color: #8b1e29;
    --accent-color: #c94d5c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f5f7fb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 
                 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    /* 防止水平溢出 */
    overflow-x: hidden;
    /* 最小宽度保证 */
    min-width: 320px;
    /* 强制禁用滚动吸附 */
    scroll-snap-type: none !important;
}

/* 全局图片和媒体元素响应式约束 */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 防止内容溢出 */
* {
    max-width: 100%;
}

/* 但允许特定元素超出 */
.hero,
.bg-cover,
.navbar,
.footer {
    max-width: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* 确保容器不会超出视口 */
    width: 100%;
}

/* 不同屏幕尺寸的容器宽度调整 */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo {
    font-size: 2rem;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero 区域 */
.hero {
    position: relative;
    height: 100vh !important;  /* 固定高度100vh，防止内容撑开容器 */
    display: flex;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;  /* 隐藏溢出内容，确保背景图完全填充视口 */
    margin-top: 0;
    /* 背景图直接设置在容器上，像rocco一样 */
    background-image: url('../images/hero-product.jpg');
    background-size: cover;  /* cover 填满整个屏幕 */
    background-position: center center;  /* 居中对齐 */
    background-repeat: no-repeat;
}

/* 针对不同屏幕比例调整背景图片 */
@media (min-aspect-ratio: 21/9) {
    /* 超宽屏幕 */
    .hero {
        background-position: center 40%;
    }
}

@media (max-aspect-ratio: 4/3) {
    /* 竖屏或接近方形的屏幕 */
    .hero {
        background-position: center center;
    }
}

.hero .container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.hero-content {
    color: var(--text-dark);
    max-width: 600px;
    text-align: left;
    margin-left: 5%;
    margin-top: 3%;
    margin-bottom: 5%;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw + 1rem, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(0.95rem, 0.4vw + 0.8rem, 1.1rem);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
    color: #ffffff;
}

/* Hide-on-scroll for hero content */
.hero-content.hidden {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.hero-content { transition: opacity 0.3s ease, transform 0.3s ease; }

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn {
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #a92533, #c94d5c);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Red button for Learn More */
.btn-danger {
    background: #a92533;
    color: #ffffff;
}
.btn-danger:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.hero-image {
    display: none;
}

.product-preview {
    display: none;
}

.preview-icon {
    display: none;
}

.hero-product-img {
    display: none;
}

.product-preview p {
    display: none;
}

/* Hero 显示控制 - 桌面端默认 */
.hero-desktop {
    display: block;
    position: relative;
    height: 100vh !important;
    display: flex;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    margin-top: 0;
    background-image: url('../images/hero-product.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 针对不同屏幕比例调整背景图片 - desktop */
@media (min-aspect-ratio: 21/9) {
    .hero-desktop {
        background-position: center 40%;
    }
}

@media (max-aspect-ratio: 4/3) {
    .hero-desktop {
        background-position: center center;
    }
}

.hero-desktop .container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.hero-mobile-large,
.hero-mobile-medium,
.hero-mobile-small {
    display: none;
}

/* 区块通用样式 */
section {
    padding: 5rem 0;
    /* 为锚点跳转预留导航栏空间 */
    scroll-margin-top: 5px;
}

/* 覆盖：整屏页面不使用通用内边距，以免超出 100vh */
.hero, .hero-desktop, .scenarios, .banner, .diagnosis {
    padding: 0 !important;
}

/* Compatibility 和 As-seen-on 需要内边距 */
.compatibility {
    padding: 2rem 0 !important;
}

.as-seen-on {
    padding: 2rem !important;
}

/* Ensure headings are not covered and bottom buttons not clipped */
.scenarios .container { 
    padding-top: 2rem; 
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.compatibility .container { 
    padding-top: 2rem; 
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.diagnosis .container { 
    padding-top: 2rem; 
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(0.95rem, 0.5vw + 0.7rem, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* 功能特点 */
.features {
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* 产品展示 */
.product-showcase {
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.highlight-text {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.showcase-list li:last-child {
    border-bottom: none;
}

.showcase-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-detail {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.detail-icon {
    font-size: 8rem;
    margin-bottom: 1rem;
}

.product-detail-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* 技术规格 */
.specs {
    background-color: #ffffff;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.spec-category {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.spec-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table tr {
    border-bottom: 1px solid var(--border-color);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 0.8rem 0;
    font-size: 0.95rem;
}

.spec-table td:first-child {
    color: var(--text-light);
    width: 40%;
}

.spec-table td:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

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

.about-content {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.about-image {
    display: flex;
    justify-content: center;
}

.company-img {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
}

.company-icon {
    font-size: 8rem;
    margin-bottom: 1rem;
}

.company-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.about-text h2 {
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--text-dark);
}

.about-tagline {
    font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.4rem);
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* 联系我们 */
.contact {
    background-color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.info-item .small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-form {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #ffffff;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* 页脚 */
.footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 2rem 0 1rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-app-info {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.footer-company {
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 2rem 0 1.5rem;
}

/* Footer Social Media Section - 只在移动端显示 */
.footer-social-section {
    display: none !important; /* 桌面端强制隐藏 */
}

/* 桌面端确保隐藏 */
@media (min-width: 769px) {
    .footer-social-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .footer-social-section {
        display: block;
        text-align: center;
        padding: 2rem 0 1rem;
    }

    .footer-social-section h4 {
        color: white;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        font-weight: 500;
    }

    .footer-social-icons {
        display: flex;
        justify-content: center;
        gap: 2rem;
    }

    .footer-social-item {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .footer-social-item:active {
        background: var(--primary-color);
        transform: scale(0.95);
    }

    .footer-social-item svg {
        width: 24px;
        height: 24px;
        fill: white;
    }
}

/* Footer QR Code Modal */
.footer-qr-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.footer-qr-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-qr-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    max-width: 90%;
    animation: slideUp 0.3s ease;
}

.footer-qr-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.footer-qr-content img {
    width: 250px;
    height: 250px;
    display: block;
    margin: 0 auto 15px;
}

.footer-qr-content span {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.social-icon:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   响应式设计 - 针对不同显示器分辨率
   ======================================== */

/* 超大屏幕 (2560px+) */
@media (min-width: 2560px) {
    .hero {
        height: 100vh !important;
    }
    
    .hero-content {
        max-width: 800px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* 大屏幕 (1920px - 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero {
        height: 100vh !important;
    }
    
    .hero-content {
        max-width: 700px;
    }
}

/* 中大屏幕 (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
    .hero {
        height: 100vh !important;
    }
    
    .hero-content {
        max-width: 650px;
    }
}

/* 中等屏幕 (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
    .hero {
        height: 100vh !important;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 小型桌面 (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
    .hero {
        height: 100vh !important;
    }
    
    .hero-content {
        max-width: 550px;
    }
    
    .showcase-content {
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* 平板和小笔记本 (769px - 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero {
        height: 100vh !important;  /* 确保桌面端hero填满视口 */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .showcase-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* 移动设备和小平板 (max-width: 968px) */
@media (max-width: 968px) {
    .navbar {
        z-index: 1000 !important;
        position: fixed !important;
        display: block !important;
    }
    
    .navbar .container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100% !important;
        text-align: center;
        padding: 0;
        display: block !important;
    }
    
    .nav-menu > li {
        display: block !important;
        position: relative !important;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .dropdown {
        position: relative !important;
        width: 100% !important;
        display: block !important;
    }
    
    .dropdown-menu {
        display: none !important;
        position: static !important;
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: rgba(0, 0, 0, 0.05) !important;
        overflow: visible !important;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    .dropdown-menu li {
        padding: 0 !important;
        width: 100% !important;
        display: block !important;
    }
    
    .dropdown-menu a {
        padding: 0.75rem 2rem !important;
        padding-left: 3rem !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        display: block !important;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 0.7em;
        margin-left: 0.3em;
        transition: transform 0.3s ease;
        display: inline-block;
    }
    
    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1001 !important;
    }
    
    .mobile-menu-toggle span {
        background-color: #1a1a1a !important;
    }
    
    .logo-img {
        pointer-events: auto !important;
    }
    
    .nav-brand {
        pointer-events: auto !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* ===== 移动端显示控制 ===== */
    .hero-desktop {
        display: none !important;
    }
    
    /* 默认隐藏所有移动端hero */
    .hero-mobile-large,
    .hero-mobile-medium,
    .hero-mobile-small {
        display: none !important;
    }
    
    /* 在max-width: 968px的断点中暂时不显示任何移动端hero */
    /* 具体显示规则由各个精确范围断点控制 */
    
    /* ===== 移动端大屏 Hero 样式 (770px-968px) ===== */
    .hero-mobile-large-image {
        width: 100%;
        height: 400px;
        background-image: url('../images/hero-product.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        padding: 0 2rem;
    }
    
    .hero-mobile-large-title {
        font-size: 2rem;
        font-weight: 800;
        line-height: 1.3;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        text-align: left;
        margin: 0;
        max-width: 70%;
    }
    
    .hero-mobile-large-content {
        background: var(--bg-white);
        padding: 2rem;
        margin: 0;
    }
    
    .hero-mobile-large-description {
        font-size: 1.1rem;
        line-height: 1.6;
        color: var(--text-dark);
        margin: 0 0 1.5rem 0;
        text-align: left;
    }
    
    .hero-mobile-large-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-mobile-large-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    
    /* 移动端取消所有页面的滚动吸附 */
    .hero, .scenarios, .banner, .diagnosis, .compatibility, .as-seen-on, .subscribe-section {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .showcase-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== 移动端大屏显示 (771px-968px) - 精确范围 ===== */
@media (min-width: 771px) and (max-width: 968px) {
    .hero-mobile-large {
        display: block !important;
        margin-top: 70px;
    }
}

/* ===== 移动端中屏显示 (481px-770px) ===== */
@media (min-width: 481px) and (max-width: 770px) {
    .hero-mobile-medium {
        display: block !important;
        margin-top: 70px;
    }
    
    /* 中屏 Hero 样式 */
    .hero-mobile-medium-image {
        width: 100%;
        height: 350px;
        background-image: url('../images/hero-product.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        padding: 0 1.5rem;
    }
    
    .hero-mobile-medium-title {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 1.3;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        text-align: left;
        margin: 0;
        max-width: 75%;
    }
    
    .hero-mobile-medium-content {
        background: var(--bg-white);
        padding: 1.5rem;
        margin: 0;
    }
    
    .hero-mobile-medium-description {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-dark);
        margin: 0 0 1.25rem 0;
        text-align: left;
    }
    
    .hero-mobile-medium-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-mobile-medium-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== 移动端小屏 (<=480px) ===== */
@media (max-width: 480px) {
    /* 隐藏大屏和中屏，只显示小屏 */
    .hero-mobile-large,
    .hero-mobile-medium {
        display: none !important;
    }
    
    .hero-mobile-small {
        display: block !important;
        margin-top: 70px;
    }
    
    /* 小屏 Hero 样式 */
    .hero-mobile-small-image {
        width: 100%;
        height: 280px;
        background-image: url('../images/hero-product.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        padding: 0 1.25rem;
    }
    
    .hero-mobile-small-title {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.3;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        text-align: left;
        margin: 0;
        max-width: 80%;
    }
    
    .hero-mobile-small-content {
        background: var(--bg-white);
        padding: 1.25rem;
        margin: 0;
    }
    
    .hero-mobile-small-description {
        font-size: 0.95rem;
        line-height: 1.6;
        color: var(--text-dark);
        margin: 0 0 1rem 0;
        text-align: left;
    }
    
    .hero-mobile-small-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
    }
    
    .hero-mobile-small-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo-img {
        height: 35px !important;
    }
    
    .nav-brand {
        flex-shrink: 0;
    }
    
    .navbar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar .container {
        padding: 0.75rem 20px !important;
    }
    
    .hero-product-img,
    .product-detail-img,
    .company-image {
        max-width: 100%;
    }
    
    /* About页面 - 标题和正文增加间隔 */
    .about-text h2 {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    .about-tagline {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    /* About页面 - logo section和content之间增加间隔 */
    .about-logo-section {
        margin-bottom: 2.5rem !important; /* Ultimate Journey Solution和下面段落加间隔 */
    }
}

/* Index页面 - 完全自由滚动 */
body.index-page {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important; /* 取消平滑滚动 */
    overflow-y: auto;
}

/* 所有section恢复为普通布局 - 不再限制高度和滚动 */
body.index-page .hero,
body.index-page .scenarios,
body.index-page .diagnosis,
body.index-page .compatibility,
body.index-page .as-seen-on {
    /* 完全取消所有特殊效果 */
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    min-height: auto; /* 不再限制最小高度 */
    height: auto; /* 高度由内容决定 */
    margin: 0;
    padding: 0;
    overflow: visible; /* 允许内容正常显示 */
    position: relative;
    box-sizing: border-box;
}

/* 桌面端scenarios占满视口（在@media中已设置100vh，此处不干扰） */
@media (min-width: 969px) {
    body.index-page .scenarios {
        height: 100vh !important;
        overflow-x: hidden !important;
        overflow-y: visible !important; /* 允许底部过渡区域显示 */
    }
}

/* Banner单独处理 - 需要保持高度才能显示背景图 */
body.index-page .banner {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    min-height: 100vh; /* Banner需要高度来显示背景图 */
    height: auto;
    margin: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
}

/* 所有section统一白色背景 */
body.index-page .scenarios {
    background: white;
}

body.index-page .diagnosis {
    background: white;
}

body.index-page .compatibility {
    background: white;
}

body.index-page .as-seen-on {
    background: white;
}

/* 容器恢复正常布局 - 不再限制高度和滚动 */
body.index-page .hero .container,
body.index-page .scenarios .container,
body.index-page .banner .container,
body.index-page .diagnosis .container,
body.index-page .compatibility .container,
body.index-page .as-seen-on .container {
    width: 100%;
    max-width: 1200px;
    height: auto; /* 高度自适应 */
    max-height: none; /* 不限制最大高度 */
    padding: 80px 20px 40px;
    box-sizing: border-box;
    overflow: visible; /* 不再有独立滚动 */
}

/* Hero保持左侧布局 */
body.index-page .hero .container {
    padding-bottom: 80px;
    padding-left: 40px;
}

body.index-page .hero .hero-content {
    text-align: left;
    max-width: 600px;
}

body.index-page .hero .hero-buttons {
    justify-content: flex-start;
}

/* Scenarios特殊处理 - 移动端使用固定padding，桌面端使用流式padding */
@media (max-width: 968px) {
    body.index-page .scenarios .container {
        padding: 144px 20px 72px;  /* 再增加20%: 120*1.2=144 */
    }
}

/* Banner特殊处理 */
body.index-page .banner {
    padding: 0 !important;
    isolation: isolate;
}

/* 第四页（Rocco）与第三页之间添加间隔 - 只在桌面端 */
@media (min-width: 769px) {
    body.index-page .banner.rocco {
        margin-top: 3rem; /* 添加间隔 */
    }
}

body.index-page .banner .container {
    padding: 0;
    max-width: 100%;
    height: 100vh; /* Banner需要固定高度来显示背景 */
    overflow: hidden; /* 保持内容在Banner范围内 */
}

/* 第四页标题不换行 - 只在桌面端生效 */
@media (min-width: 769px) {
    body.index-page .banner h2 {
        white-space: nowrap;
        font-size: 2.5rem !important;
    }
}

/* Diagnosis特殊处理 */
body.index-page .diagnosis .container {
    padding: 100px 20px 60px;
}

/* Compatibility特殊处理 */
body.index-page .compatibility .container {
    padding: 100px 20px 80px;
}

/* As Seen On特殊处理 */
body.index-page .as-seen-on .container {
    padding: 60px 20px;
}

/* 确保各section的标题和内容适当缩放 */
body.index-page .section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    margin-top: 0;
}

body.index-page .section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 2rem;
}

/* 轮播图高度限制 */
body.index-page .carousel-wrapper {
    max-height: 50vh;
    min-height: 400px;
}

/* 兼容性图片高度限制 */
body.index-page .compatibility-img {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
}

/* As Seen On图片高度限制 */
body.index-page .as-seen-img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
}

/* Diagnosis图片高度限制 */
body.index-page .diagnosis .steps-img {
    max-height: 60vh;
    width: auto;
    object-fit: contain;
}

/* Subscribe section不启用滚动吸附 */
body.index-page .subscribe-section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: auto;
    height: auto;
}

/* 移动端取消滚动吸附 */
@media (max-width: 768px) {
    body.index-page {
        scroll-snap-type: none !important;
    }
    
    body.index-page .hero,
    body.index-page .scenarios,
    body.index-page .banner,
    body.index-page .diagnosis,
    body.index-page .compatibility,
    body.index-page .as-seen-on {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    /* 移动端恢复容器正常样式 */
    body.index-page .hero .container,
    body.index-page .scenarios .container,
    body.index-page .banner .container,
    body.index-page .diagnosis .container,
    body.index-page .compatibility .container,
    body.index-page .as-seen-on .container {
        height: auto !important;
        max-height: none !important;
        padding: 2rem 20px !important;
        overflow: visible !important;
    }
    
    /* 移动端Hero特殊处理 - 图片在上，标题在图上，描述和按钮在下 */
    body.index-page .hero {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 70px !important; /* 加navbar高度，避免被盖住 */
    }
    
    body.index-page .hero::before {
        content: '' !important;
        display: block !important;
        width: 100% !important;
        padding-top: 75% !important; /* 图片区域高度 */
        min-height: 300px !important;
        margin-top: 0 !important;
    }
    
    body.index-page .hero .container {
        position: static !important;
        display: block !important;
        padding: 0 !important;
        order: 2 !important;
    }
    
    body.index-page .hero-content {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    body.index-page .hero-title {
        position: absolute !important;
        top: calc(70px + 1%) !important; /* hero的padding-top + 图片区域(75%)的一半 */
        left: 0 !important;
        transform: translateY(-50%) !important;
        z-index: 10 !important;
        padding: 1.5rem !important;
        margin: 0 !important;
        max-width: 70% !important;
        color: white !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    }
    
    body.index-page .hero-description {
        padding: 0 1.5rem 0 !important; /* 减少顶部padding，紧贴图片 */
        background: white !important;
        margin: 0 !important;
        color: var(--text-dark) !important;
        text-shadow: none !important;
        text-align: left !important;
    }
    
    body.index-page .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 1.5rem 1.5rem !important; /* 紧贴上面的description */
        padding-top: 0 !important;
        background: white !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin: 0 !important;
    }
    
    /* 移动端取消高度限制 */
    body.index-page .carousel-wrapper,
    body.index-page .compatibility-img,
    body.index-page .as-seen-img,
    body.index-page .diagnosis .steps-img {
        max-height: none !important;
        min-height: auto !important;
    }
}

/* Hide the hero-info to avoid extra partial section between pages */
.hero-info { display: none; }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Four-up image cards */
.four-up .image-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.four-up .image-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0.9);
}

/* Compatibility banner */
.compatibility {
    background: #ffffff; /* 统一白色背景 */
}
.compat-title {
    text-align: center;
    color: var(--text-dark);
    font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.compat-text {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;  /* 增加底部间距，从1rem改为2rem */
    font-size: clamp(0.95rem, 0.5vw + 0.7rem, 1.2rem);  /* 与section-subtitle统一 */
}

/* Compatibility image with counter */
.compatibility-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.compatibility-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transform: scale(1.2);  /* 适度放大以突出显示 */
}
.compatibility-counter {
    position: absolute;
    top: 40%; /* 往上移动10%，距离顶部40%，底部60% */
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6.048rem, 16.128vw, 12.096rem);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 桌面端：增大数字缩放范围，让它随屏幕大小更明显地变化（整体缩小10%） */
@media (min-width: 969px) {
    .compatibility-counter {
        /* 原本 5rem-14rem，缩小10%后：4.5rem-12.6rem */
        font-size: clamp(4.5rem, 12.6vw + 1.35rem, 12.6rem) !important;
    }
}

/* 超大屏幕：进一步放大（整体缩小10%） */
@media (min-width: 1920px) {
    .compatibility-counter {
        /* 原本 10rem-16rem，缩小10%后：9rem-14.4rem */
        font-size: clamp(9rem, 10.8vw, 14.4rem) !important;
    }
}

/* As Seen On Section */
.as-seen-on {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #ffffff;
    overflow: visible;
    /* 明确取消滚动吸附 */
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
    text-align: center; /* 确保子元素居中 */
}
.as-seen-header {
    background: var(--primary-color);
    color: white;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    padding: 0.75rem 1.5rem; /* 缩小内边距，让背景框更紧凑 */
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 8px;
    flex-shrink: 0;
    display: inline-block; /* 让背景框只包裹文字，不占满整行 */
}
.as-seen-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}
.as-seen-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Subscribe Section */
.subscribe-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 6rem;
    margin-top: 0;
    background: var(--bg-white);
    overflow: visible;
    /* 明确取消滚动吸附 */
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
}
.subscribe-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}
.subscribe-bg {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    display: block;
}
.subscribe-image-wrapper {
    position: relative;
    width: 100%;
}
.subscribe-title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #000000;
    margin: 0;
    white-space: nowrap;
    z-index: 2;
}
.subscribe-content {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 90%;
    text-align: center;
    z-index: 2;
}
.subscribe-form-main {
    display: flex;
    gap: 1rem;
    min-width: 300px;
    max-width: 90%;
    width: fit-content;
    margin: 0 auto;
    background: var(--text-dark);
    padding: 0.5rem;
    border-radius: 50px;
    transition: width 0.3s ease;
}
.subscribe-form-main input {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 2rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    border-radius: 50px;
}
.subscribe-form-main input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.subscribe-form-main input:-webkit-autofill,
.subscribe-form-main input:-webkit-autofill:hover,
.subscribe-form-main input:-webkit-autofill:focus,
.subscribe-form-main input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--text-dark) inset !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 0 0 30px var(--text-dark) inset !important;
    border-radius: 50px !important;
}
.subscribe-form-main button {
    border-radius: 50px;
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Product row images */
.row-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.show { display: flex; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.modal-dialog {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    width: 90%;
    max-width: 480px;
    color: var(--text-dark);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    text-align: center;
}
.modal-dialog h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}
.modal-close:hover {
    color: var(--text-dark);
}
.modal-subtitle { 
    color: var(--text-light); 
    margin: 0 0 1.5rem; 
    font-size: 1rem;
    line-height: 1.6;
}
.subscribe-form { 
    display: flex; 
    flex-direction: column;
    gap: 1rem; 
    margin-bottom: 1rem; 
}
.subscribe-form input { 
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.subscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.subscribe-form .btn-subscribe { 
    background: #000000; 
    color: #ffffff; 
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.subscribe-form .btn-subscribe:hover {
    background: #1f2937;
}
.btn-skip {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}
.btn-skip:hover {
    color: var(--text-dark);
}

/* Hero info under the hero image */
.hero-info {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
.hero-info .lead {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 1000px;
    margin: 0 auto;
}

/* Scenarios section with carousel */
.scenarios { 
    background: white; /* 统一白色背景 */
    scroll-margin-top: 70px; /* 跳转时考虑navbar高度 */
    position: relative;
}

/* ========================================
   第二页和第三页之间的空白间隔
   桌面端专用（移动端除外）
   ======================================== */
@media (min-width: 969px) {
    /* 第三页顶部添加一个 navbar 高度的空白间隔 */
    .scenarios + .banner {
        margin-top: 70px !important;
    }
}

/* ========================================
   第二页流式自适配 - 根据屏幕尺寸自动缩放
   桌面端专用（移动端除外）
   ======================================== */
@media (min-width: 969px) {
    /* 第二页占满整个视口，跳转后只显示第二页 */
    .scenarios {
        height: 100vh !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: stretch !important; /* 拉伸子元素 */
        justify-content: flex-start !important; /* 从顶部开始 */
        overflow-x: hidden !important; /* 只隐藏横向溢出 */
        overflow-y: visible !important; /* 允许底部过渡区域显示 */
    }
    
    /* 容器使用flex布局 */
    .scenarios .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* 从顶部开始 */
        align-items: center !important;
        width: 100% !important;
        min-height: 100% !important; /* 最小高度100%，允许超出 */
        /* 上边距：小屏8vh → 大屏15vh，根据视口高度动态调整 */
        /* 左右边距：根据视口宽度动态调整 */
        padding-top: clamp(8vh, 12vh, 15vh) !important;
        padding-bottom: clamp(2rem, 3vh, 4rem) !important;
        padding-left: clamp(1rem, 2vw, 3rem) !important;
        padding-right: clamp(1rem, 2vw, 3rem) !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* 标题：小屏 1.5rem → 大屏 3.5rem */
    .scenarios .section-title {
        font-size: clamp(1.5rem, 2.8vw, 3.5rem) !important;
        margin-bottom: clamp(0.3rem, 1vh, 1rem) !important;
        margin-top: 0 !important;
    }
    
    /* 副标题：小屏 0.85rem → 大屏 1.5rem */
    .scenarios .section-subtitle {
        font-size: clamp(0.85rem, 1.3vw, 1.5rem) !important;
        margin-bottom: clamp(0.8rem, 1.5vh, 1.8rem) !important;
        margin-top: 0 !important;
    }
    
    /* 轮播图片容器：根据视口宽度和高度调整 */
    .scenarios .carousel-wrapper {
        padding: 0 clamp(30px, 3vw, 80px) !important;
        max-width: clamp(700px, 85vw, 1600px) !important;
        margin: 0 auto !important;
        flex: 1 !important;
        display: flex !important;
        align-items: center !important;
        /* 最大高度：小屏45vh → 大屏65vh，为上边距留出空间 */
        max-height: clamp(350px, 55vh, 700px) !important;
    }
    
    /* 轮播图片高度：根据视口高度调整，大屏幕更大 */
    .scenarios .carousel-item img {
        max-height: clamp(250px, 45vh, 600px) !important;
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }
    
    /* 轮播按钮：根据屏幕尺寸调整 */
    .scenarios .carousel-controls button {
        width: clamp(35px, 3vw, 70px) !important;
        height: clamp(35px, 3vw, 70px) !important;
        font-size: clamp(1rem, 1.5vw, 2.2rem) !important;
    }
    
    /* 轮播项内边距：根据屏幕尺寸调整 */
    .scenarios .carousel-item {
        padding: clamp(0.5rem, 1.5vw, 2.5rem) !important;
    }
}

.scenarios .section-title {
    margin-bottom: 0.5rem;
    margin-top: 0;
}
.scenarios .section-subtitle { 
    margin-bottom: 1.5rem;
    margin-top: 0;
}
.carousel-wrapper {
    position: relative;
    padding: 0 60px;
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.carousel {
    overflow: hidden;
    width: 100%;
    height: 100%;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    will-change: transform;
    height: 100%;
    align-items: center;
}
.carousel-item {
    min-width: 33.333%;
    flex: 0 0 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 恢复正常内边距 */
    padding: 1rem;
    overflow: visible;
    position: relative;
    height: 100%;
}
.carousel-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* 恢复原始尺寸，不再放大 */
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 50%;
        flex: 0 0 50%;
        /* 移动端取消放大，恢复正常内边距 */
        padding: 1rem !important;
    }
    
    .carousel-item img {
        /* 移动端取消放大 */
        transform: scale(1) !important;
    }
}
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}
.carousel-controls button {
    pointer-events: all;
    background: rgba(169, 37, 51, 0.8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease; /* 只过渡背景色，不过渡transform */
    z-index: 10;
}
.carousel-controls button:hover {
    background: rgba(169, 37, 51, 1);
    transform: none; /* 禁用放大效果 */
}
.carousel-controls button:active,
.carousel-controls button:focus {
    transform: none !important; /* 点击和聚焦时也不放大 */
    outline: none;
}

/* Full-width banner sections with half overlays */
.banner {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}
.banner + .banner { margin-top: 0; }
.banner .bg-cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}
.banner .overlay {
    position: absolute; top: 0; bottom: 0; width: 50%;
    background: rgba(0,0,0,0.35);
    display: flex; align-items: flex-end;
    padding-bottom: 10%;
}
.banner .overlay.right { right: 0; justify-content: flex-start; }
.banner .overlay.left { 
    left: 0; 
    justify-content: flex-start; /* 文字内容靠左对齐 */
    width: 60%; /* 第四页左侧文字区域宽度改为60% */
}
.banner .overlay .content {
    padding: 1.5rem;
    max-width: 560px;
    max-height: calc(100vh - 180px);
    overflow: visible; /* 不使用滚动，让内容完全展示 */
}
.banner h2 { font-size: clamp(1.6rem, 2.2vw + 1rem, 2.2rem); margin-bottom: 0.75rem; font-weight: 800; }
.banner p { font-size: 1.05rem; line-height: 1.8; }
.banner .actions { margin-top: 1.25rem; }
.banner-actions { display: none; } /* 桌面版隐藏，只在mobile显示 */

/* Diagnosis page */
.diagnosis { 
    background: #ffffff;
}
.diagnosis .steps-img { 
    display: block; 
    margin: 0 auto; 
    width: 100%; 
    max-width: 1200px; 
    height: auto; 
    object-fit: contain; 
    transform-origin: center;
    max-height: calc(100vh - 250px);
}

/* Compatibility page */
.compat-grid { 
    display: grid; 
    place-items: center;
    gap: 2rem;
    flex: 1;
}
.compat-grid > div {
    width: 100%;
    max-width: 1000px;
}
.compat-grid img { 
    max-width: 100%; 
    width: 100%; 
    height: auto; 
    object-fit: contain; 
    max-height: calc(100vh - 250px);
}

@media (max-width: 968px) {
    .banner .overlay { width: 100%; background: rgba(0,0,0,0.4); justify-content: center; align-items: center; }
    .banner .overlay .content { max-width: 90%; }
    .carousel-item img { height: auto; aspect-ratio: 16 / 9; }
}

/* For short viewports, tighten spacing */
@media (max-height: 760px) {
    .scenarios .container { padding-top: 10px; padding-bottom: 70px; }
    .compatibility .container { padding-top: 10px; padding-bottom: 150px; }
    .diagnosis .container { padding-top: 110px; padding-bottom: 70px; }
    .banner .overlay .content { max-height: calc(100vh - 150px); }
}

/* ========== Product Page Styles ========== */

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* Product Video Section */
.product-video {
    margin-top: 70px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f5f7fb 0%, #ffffff 100%);
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: #000;
    aspect-ratio: 16 / 9;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.video-placeholder p {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #94a3b8;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.video-description h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.video-description .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--primary-color);
    font-weight: 600;
}

/* Product Hero Section */
.product-hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    text-align: center;
}

.product-hero .hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: white;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Product Details Section */
.product-details {
    padding: 5rem 0;
    background: white;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
    width: 100%;
}

.product-image-col {
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
}

.product-main-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
}

.product-info-col {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.product-info-col h3 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: bold;
}

.feature-content h4 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

.feature-content p {
    font-size: 1.26rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: left;
    margin: 0 auto;
    max-width: 90%;
}

/* Feature Carousel */
.feature-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-carousel {
    flex: 1;
    overflow: hidden;
}

.feature-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.feature-slide {
    min-width: 100%;
    display: flex;
    gap: 2rem;
    align-items: start;
    padding: 1rem 0;
}

.feature-carousel-btn {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.feature-carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.feature-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(1);
}

.feature-content h4 strong {
    font-weight: 700;
}

/* FAQ Section */
.product-faq {
    padding: 5rem 0;
    background: var(--bg-light);
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-banner {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.faq-header h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: var(--text-dark);
    font-weight: 700;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    transition: transform 0.3s ease;
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.privacy-notice {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.privacy-notice h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.privacy-notice p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Product Footer */
.product-footer {
    padding: 2rem 0;
    background: var(--text-dark);
    color: white;
    text-align: center;
}

.product-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive Design for Product Pages */
@media (max-width: 968px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-image-col {
        position: static;
    }
    
    .product-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .product-video {
        padding: 2rem 0;
    }
    
    .product-hero {
        padding: 3rem 0;
    }
    
    .product-details,
    .product-faq {
        padding: 3rem 0;
    }
    
    .feature-item {
        gap: 1rem;
    }
    
    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .feature-carousel-wrapper {
        gap: 0.5rem;
    }
    
    .feature-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
    
    .feature-slide {
        gap: 1rem;
    }
}

/* ========================================
   Notification Toast Styles
   ======================================== */

.notification-toast {
    position: fixed;
    top: 90px;
    right: 20px;
    min-width: 300px;
    max-width: 500px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    font-size: 15px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.notification-toast.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-left: 5px solid #047857;
}

.notification-toast.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-left: 5px solid #b91c1c;
}

.notification-toast.notification-info {
    background: linear-gradient(135deg, #c94d5c 0%, #a92533 100%);
    color: white;
    border-left: 5px solid #8b1e29;
}

@media (max-width: 640px) {
    .notification-toast {
        top: 80px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* Responsive styles for new sections */
@media (max-width: 768px) {
    .compatibility-img {
        width: 100%;
        max-width: 600px;
    }
    .compatibility-counter {
        font-size: clamp(2.4rem, 7.2vw, 4.8rem);
    }
    .as-seen-header {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        margin-bottom: 2rem;
    }
    .subscribe-title {
        font-size: 1.8rem;
    }
    .subscribe-form-main {
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 12px;
        padding: 0.5rem;
    }
    .subscribe-form-main input {
        padding: 0.8rem 1rem;
        padding-left: 1.5rem;
        border-radius: 12px;
    }
    .subscribe-form-main button {
        border-radius: 8px;
        width: 100%;
    }
}

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-sidebar-item {
    position: relative;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    overflow: visible;
    z-index: 1001;
}

.social-sidebar-item:first-child {
    border-top-left-radius: 6px;
}

.social-sidebar-item:last-child {
    border-bottom-left-radius: 6px;
}

.social-sidebar-item:hover {
    background: var(--secondary-color);
}

.social-sidebar-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.social-sidebar-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-sidebar-qrcode {
    position: absolute !important;
    right: 50px !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(20px) !important;
    width: 220px !important;
    min-width: 220px !important;
    min-height: 220px !important;
    height: auto !important;
    background: white !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    pointer-events: none;
    z-index: 1002 !important;
    box-sizing: border-box !important;
}

.social-sidebar-item:hover .social-sidebar-qrcode {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
    pointer-events: auto !important;
}

.social-sidebar-qrcode img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    max-width: 100%;
}

.social-sidebar-qrcode span {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
}

@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }
}

/* ========================================
   Mobile Optimization (手机端优化)
   ======================================== */

/* 针对手机端的全面优化 - 不影响桌面版 */
@media (max-width: 768px) {
    /* 确保所有图片都能响应式缩放 - 强制约束 */
    img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Navbar logo 例外 - 不要强制100%宽度 */
    .logo-img {
        width: auto !important;
        height: 35px !important;
    }
    
    /* Social sidebar 二维码图片例外 */
    .social-sidebar-qrcode img {
        width: 100% !important;
        height: auto !important;
        max-width: 150px !important;
    }
    
    .nav-brand {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .mobile-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 3px !important;
    }
    
    /* Hero样式已清空，等待重新编写 */
    
    /* 轮播画廊优化 */
    .carousel-wrapper {
        padding: 0 45px;
        overflow: hidden;
    }
    
    .carousel {
        overflow: visible;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.4s ease;
    }
    
    .carousel-item {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        padding: 0.5rem;
        box-sizing: border-box;
    }
    
    .carousel-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 280px !important;
        object-fit: contain !important;
        /* 移动端取消放大 */
        transform: scale(1) !important;
    }
    
    .carousel-controls button {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .carousel-controls button:hover,
    .carousel-controls button:active,
    .carousel-controls button:focus {
        transform: none !important; /* 移动端禁用所有放大效果 */
        background: rgba(169, 37, 51, 1) !important;
    }
    
    /* Banner 横幅图片优化 - 大标题在图上，小字和按钮在图下 */
    .banner {
        min-height: auto !important;
        height: auto !important;
        display: block !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .banner .bg-cover {
        position: relative !important;
        width: 100% !important;
        height: 45vh !important;
        min-height: 280px !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        flex-shrink: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .banner .overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: -2rem !important;  /* 调整这个值：增大下移，减小上移；同时影响index第3、4页的图中标题 */
        padding-bottom: 0 !important;
        pointer-events: none !important;
    }
    
    .banner .overlay .content {
        max-width: 90% !important;
        padding: 0 !important;
        text-align: center !important;
        width: 90% !important;
    }
    
    .banner .overlay .content h2 {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: white !important;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8) !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    
    .banner .overlay .content p {
        display: none !important;
    }
    
    /* 桌面端的按钮在mobile端隐藏 */
    .banner .overlay .content .actions {
        display: none !important;
    }
    
    /* Banner文字和按钮容器 - 只在mobile显示，放在图片下面 */
    .banner-actions {
        display: block !important;
        text-align: center !important;
        padding: 0 1rem !important;
        background: var(--bg-white) !important;
        margin-top: 0 !important;
    }
    
    .banner-actions::before {
        content: attr(data-description);
        display: block !important;
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        color: var(--text-dark) !important;
        margin-bottom: 0.25rem !important;
        text-align: center !important;
        padding-top: 0 !important;
    }
    
    .banner-actions .btn {
        display: inline-block !important;
        margin: 0 auto !important;
        min-width: 200px !important;
    }
    
    /* 兼容性图片优化 - 确保完整显示 */
    .compatibility-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: scale(1) !important;
        object-fit: contain !important;
    }
    
    .compatibility-counter {
        /* 原始 2rem-3.5rem，现在放大50%：3rem-5.25rem */
        font-size: clamp(3rem, 9vw, 5.25rem) !important;
        position: absolute !important;
        top: 40% !important; /* 往上移动10% */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .compatibility-image-wrapper {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .compat-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .compat-grid > div {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* 诊断步骤图片 - 完整显示 */
    .diagnosis .steps-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        transform: scale(1) !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    .diagnosis {
        min-height: auto !important;
        height: auto !important;
        padding: 3rem 0 !important;
    }
    
    /* As Seen On 图片 - 完整显示 */
    .as-seen-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .as-seen-on {
        min-height: auto !important;
        height: auto !important;
        padding: 3rem 1rem 3rem !important;
        margin-bottom: 0 !important;
    }
    
    .as-seen-header {
        margin-bottom: 2rem !important;
    }
    
    .as-seen-content {
        margin-bottom: 0 !important;
    }
    
    /* Subscribe 订阅区域 - Mobile端优化 */
    .subscribe-section {
        min-height: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin-top: 0 !important;
        background: var(--bg-white) !important;
    }
    
    .subscribe-container {
        display: block !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .subscribe-image-wrapper {
        position: relative !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 0 !important;
    }
    
    .subscribe-bg {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 250px !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
    }
    
    .subscribe-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #000 !important;
        position: absolute !important;
        top: 20% !important;  /* 调整这个值：增大下移，减小上移 */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        text-align: center !important;
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        white-space: normal !important;
        text-shadow: none !important;
        z-index: 2 !important;
    }
    
    .subscribe-content {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1.5rem 1rem !important;
        margin: 0 !important;
        margin-top: 0 !important;
        background: var(--bg-white) !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        z-index: 1 !important;
    }
    
    .subscribe-form-main {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        background: var(--bg-white) !important;
        border-radius: 12px !important;
        padding: 0 !important;
    }
    
    .subscribe-form-main input {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        background: var(--bg-white) !important;
        color: #000 !important;
    }
    
    .subscribe-form-main input::placeholder {
        color: #999 !important;
    }
    
    .subscribe-form-main button {
        width: 100% !important;
        padding: 0.75rem !important;
        border-radius: 8px !important;
    }
    
    /* 确保轮播图片完整显示 */
    .carousel-item img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 280px !important;
        object-fit: contain !important;
    }
    
    /* Scenarios section 优化 */
    .scenarios {
        min-height: auto !important;
        height: auto !important;
        padding: 2rem 0 !important;
        margin-top: 0 !important;  /* 移除额外间距，紧挨hero */
    }
    
    .scenarios .container {
        padding-top: 1rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Compatibility section 优化 */
    .compatibility {
        min-height: auto !important;
        height: auto !important;
        padding: 3rem 0 !important;
    }
    
    .compatibility .container {
        padding-top: 1rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* 产品详情图片 */
    .product-detail-img,
    .company-image,
    .product-main-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* 四格图片布局 */
    .row-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .four-up .image-card img {
        width: 100%;
        height: auto;
        min-height: 150px;
        max-height: 200px;
        object-fit: contain;
    }
    
    /* 功能特点网格 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* 全屏区域高度调整 */
    .hero,
    .scenarios,
    .banner,
    .diagnosis,
    .compatibility,
    .as-seen-on {
        min-height: auto;
        height: auto;
        scroll-snap-align: none;
    }
    
    /* 容器内边距优化 */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* 针对小屏手机（375px 以下）的额外优化 */
@media (max-width: 480px) {
    /* 所有图片进一步确保完整显示 */
    img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* 轮播画廊进一步优化 */
    .carousel-wrapper {
        padding: 0 35px !important;
    }
    
    .carousel-controls button {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    .carousel-item img {
        max-height: 250px !important;
    }
    
    /* Hero 区域优化 */
    .hero {
        min-height: 50vh !important;
        background-size: contain !important;
        background-position: center top !important;
    }
    
    .hero::before {
        padding-top: 100% !important; /* 小屏幕上增加高度比例，像rocco一样 */
    }
    
    /* Index页面小屏幕特定样式 */
    body.index-page .hero::before {
        padding-top: 100% !important; /* 小屏幕上图片区域更高 */
    }
    
    body.index-page .hero-title {
        top: calc(70px + 50%) !important; /* navbar高度 + 图片区域(100%)的一半 */
    }
    
    .hero-content {
        padding: 1rem !important;
        margin-left: 0 !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        top: calc(70px + 50%) !important; /* navbar高度 + 图片区域(100%)的一半 */
    }
    
    .hero-description {
        font-size: 0.95rem !important;
    }
    
    /* Banner 横幅进一步优化 */
    .banner {
        min-height: 50vh !important;
    }
    
    .banner .bg-cover {
        background-size: contain !important;
    }
    
    /* 诊断、兼容性等区域 */
    .diagnosis,
    .compatibility,
    .as-seen-on,
    .scenarios {
        padding: 2rem 0 !important;
    }
    
    /* 按钮优化 */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    /* 兼容性计数器 */
    .compatibility-counter {
        /* 原始 1.8rem-2.5rem，现在放大50%：2.7rem-3.75rem */
        font-size: clamp(2.7rem, 7.5vw, 3.75rem) !important;
        position: absolute !important;
        top: 40% !important; /* 往上移动10% */
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .compatibility-image-wrapper {
        margin: 0 auto !important;
    }
    
    /* 订阅表单 */
    .subscribe-title {
        font-size: 1.5rem;
        white-space: normal;
        top: 20% !important;  /* 与 768px 保持一致 */
    }
    
    .subscribe-form-main {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .subscribe-form-main input {
        border-radius: 8px;
    }
    
    .subscribe-form-main button {
        border-radius: 8px;
        width: 100%;
    }
    
    /* Section 标题优化 */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About页面 - 标题和正文增加间隔 */
    .about-text h2 {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    .about-tagline {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    /* About页面 - logo section和content之间增加间隔 */
    .about-logo-section {
        margin-bottom: 2.5rem !important; /* Ultimate Journey Solution和下面段落加间隔 */
    }
}

/* 横屏手机优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero,
    .scenarios,
    .banner,
    .diagnosis {
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .carousel-item img {
        max-height: 250px;
    }
}

/* ========================================
   Product Pages Mobile Optimization
   ======================================== */

/* 产品页面移动端优化 */
@media (max-width: 768px) {
    /* Rocco Hero 图片 */
    .rocco-hero {
        background-size: contain !important;
        background-position: center top !important;
        padding-top: 75% !important;
        margin-top: 0 !important;
    }
    
    /* 产品视频 */
    .video-wrapper {
        width: 100%;
        max-width: 100%;
    }
    
    .video-wrapper video {
        width: 100%;
        height: auto;
    }
    
    /* Feature 轮播优化 */
    .feature-slide {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 1rem !important;
    }
    
    .feature-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }
    
    /* FAQ Banner 图片 */
    .faq-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* 产品详情网格 */
    .details-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .product-image-col {
        position: static !important;
        width: 100%;
    }
    
    .product-main-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    
    /* Feature Carousel 按钮 - 移动端不重叠 */
    .feature-carousel-wrapper {
        display: block !important;
        position: relative !important;
        margin-bottom: 6rem !important;
    }
    
    .feature-carousel {
        width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .feature-carousel-btn {
        position: absolute !important;
        bottom: -60px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
        z-index: 10 !important;
    }
    
    .feature-carousel-btn:first-of-type {
        left: 50% !important;
        transform: translateX(calc(-100% - 0.5rem)) !important;
    }
    
    .feature-carousel-btn:last-of-type {
        right: 50% !important;
        transform: translateX(calc(100% + 0.5rem)) !important;
    }
    
    /* 产品标题 */
    .rocco-title-section {
        margin-top: 0 !important;
        padding-top: 1rem !important;
    }
    
    .rocco-title-section h1 {
        font-size: 2rem !important;
    }
    
    .rocco-title-section p {
        font-size: 1rem !important;
    }
    
    .video-description h1 {
        font-size: 2rem !important;
    }
    
    .video-description .subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* 更小屏幕的额外优化 */
    .rocco-hero {
        padding-top: 100% !important;
    }
    
    .feature-image {
        min-height: 180px !important;
        max-height: 250px !important;
    }
    
    .feature-content h3 {
        font-size: 1.4rem !important;
    }
    
    .feature-content p {
        font-size: 1rem !important;
    }
    
    .carousel-btn,
    .feature-carousel-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    /* 视频部分 */
    .product-video {
        padding: 2rem 0 !important;
    }
    
    /* FAQ 项目 */
    .faq-question {
        font-size: 1rem !important;
        padding: 1rem !important;
    }
    
    .faq-answer {
        font-size: 0.95rem !important;
    }
}

/* ========================================
   Subscribe Section - Desktop & Tablet Optimization
   ======================================== */

/* 平板和桌面端 (>770px) - 订阅区域全宽显示 */
@media (min-width: 771px) {
    .subscribe-section {
        padding: 0 !important;
    }
    
    .subscribe-container {
        max-width: 100% !important;
    }
    
    .subscribe-bg {
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .subscribe-image-wrapper {
        width: 100% !important;
    }
    
    /* 订阅表单随屏幕放大，从770px的基础尺寸到最大125% */
    .subscribe-form-main {
        /* 从500px (770px时) 到 625px (大屏时)，最大增长25% */
        min-width: clamp(300px, 300px + 5vw, 375px) !important;
        max-width: clamp(500px, 50vw, 800px) !important;
        width: fit-content !important;
        gap: clamp(1rem, 1rem + 0.25vw, 1.25rem) !important;
        padding: clamp(0.5rem, 0.5rem + 0.125vw, 0.625rem) !important;
    }
    
    .subscribe-form-main input {
        padding: clamp(1rem, 1rem + 0.25vw, 1.25rem) clamp(1.5rem, 1.5rem + 0.375vw, 1.875rem) !important;
        padding-left: clamp(2rem, 2rem + 0.5vw, 2.5rem) !important;
        font-size: clamp(1rem, 1rem + 0.25vw, 1.25rem) !important;
    }
    
    .subscribe-form-main button {
        padding: clamp(1rem, 1rem + 0.25vw, 1.25rem) clamp(2rem, 2rem + 0.5vw, 2.5rem) !important;
        font-size: clamp(1rem, 1rem + 0.25vw, 1.25rem) !important;
    }
    
    .subscribe-title {
        font-size: clamp(1.8rem, 4vw, 3.75rem) !important;
    }
}

/* 桌面端 (>968px) - 订阅区域全宽显示 */
@media (min-width: 969px) {
    .subscribe-section {
        padding: 0 !important;
    }
    
    .subscribe-container {
        max-width: 100% !important;
    }
    
    .subscribe-bg {
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .subscribe-image-wrapper {
        width: 100% !important;
    }
}

/* ========================================
   Other Pages Mobile Optimization
   ======================================== */

/* About、Contact、FAQ 等其他页面的移动端优化 */
@media (max-width: 768px) {
    /* About 页面 */
    .about-hero-image {
        background-size: cover !important;
        background-position: center !important;
        min-height: 250px !important;
        margin-top: -60px !important;
        margin-bottom: -10% !important;
    }
    
    .about-logo-section img {
        width: 80px !important;
    }
    
    .about-logo-section h1 {
        font-size: 1.3rem !important;
    }
    
    .about-content {
        padding: 0 15px 2rem 15px !important;
    }
    
    /* Contact 页面 */
    .contact-page {
        padding-top: 80px !important;
        padding-bottom: 2rem !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .contact-info {
        max-width: 100% !important;
    }
    
    .info-item {
        padding: 1rem !important;
    }
    
    /* 确保所有页面的图片都响应式 */
    .about-content img,
    .contact-content img,
    .faq-content img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .about-hero-image {
        min-height: 200px !important;
        margin-bottom: -5% !important;
    }
    
    .about-logo-section img {
        width: 60px !important;
    }
    
    .about-logo-section h1 {
        font-size: 1.1rem !important;
    }
    
    .contact-page {
        padding-top: 70px !important;
    }
    
    .info-item h4 {
        font-size: 1rem !important;
    }
    
    .info-item p {
        font-size: 0.9rem !important;
    }
    
    /* About页面 - 标题和正文增加间隔 */
    .about-text h2 {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    .about-tagline {
        margin-bottom: 2.5rem !important; /* 增加2-3行空行间隔 */
    }
    
    /* About页面 - logo section和content之间增加间隔 */
    .about-logo-section {
        margin-bottom: 2.5rem !important; /* Ultimate Journey Solution和下面段落加间隔 */
    }
}

