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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #50c878;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

/* 手机端导航栏优化 - 不固定，可以滚动消失 */
@media (max-width: 768px) {
    .navbar {
        position: static;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .nav-menu li {
        flex: 1 1 auto;
    }
    
    .nav-menu a.nav-trial {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
    
    .nav-logo {
        height: 45px;
        max-width: 180px;
    }
    
    .nav-dropdown {
        position: static;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background: var(--light-bg);
        margin: 0.5rem 0 0 0;
        border-radius: 8px;
        padding: 0;
        transition: opacity 0.3s, max-height 0.3s, padding 0.3s;
    }
    
    .nav-dropdown.dropdown-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 200px;
        padding: 0.3rem 0;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        padding-left: 1rem;
    }
    
    /* 在移动端禁用hover效果，避免干扰点击 */
    .nav-dropdown:hover .dropdown-menu {
        transform: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-dropdown:hover .dropdown-arrow {
        transform: none;
    }
    
    /* 只通过dropdown-open类来控制显示 */
    .nav-dropdown.dropdown-open .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

/* 保留h1样式以防其他地方使用 */
.nav-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

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

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

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

.nav-menu a.nav-trial {
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.nav-menu a.nav-trial:hover {
    background: #357abd;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* 下拉菜单 */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
    display: inline-block;
    margin-left: 0.3rem;
    opacity: 0.8;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

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

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 0;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

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

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7ff 100%);
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

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

.hero-placeholder {
    width: 100%;
    max-width: 500px;
}

.hero-placeholder svg {
    width: 100%;
    height: auto;
}

/* 核心价值 */
.values {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.value-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* 产品亮点 */
.highlights {
    padding: 80px 0;
    background: var(--light-bg);
}

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

.highlights-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.highlights-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.highlight-list {
    list-style: none;
    padding: 0;
}

.highlight-list li {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.highlights-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visual-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.visual-card h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.visual-bar {
    height: 30px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    transition: width 1s ease;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #357abd);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 产品展示 */
.product-section {
    padding: 60px 0;
}

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

.product-info h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.product-tagline {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.product-image-placeholder svg {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* 产品图片展示 */
.product-images {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
}

.product-image-item {
    width: 250px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.product-img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-arrow {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 450px;
    animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.7;
        transform: translateX(5px);
    }
}

@keyframes arrowPulseVertical {
    0%, 100% {
        opacity: 1;
        transform: rotate(90deg) translateY(0);
    }
    50% {
        opacity: 0.7;
        transform: rotate(90deg) translateY(5px);
    }
}

/* 响应式设计 - 产品图片 */
@media (max-width: 768px) {
    .product-images {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-image-item {
        width: 200px;
        height: 360px;
    }
    
    .product-arrow {
        font-size: 2rem;
        transform: rotate(90deg);
        animation: arrowPulseVertical 2s ease-in-out infinite;
    }
}

/* 监测维度 */
.monitoring-dimensions {
    padding: 60px 0;
    background: var(--light-bg);
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.dimension-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.dimension-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.dimension-card h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.dimension-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* AI部分 */
.ai-section {
    padding: 60px 0;
}

.ai-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.ai-text h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.ai-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.ai-features {
    list-style: none;
    padding: 0;
}

.ai-features li {
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
    border-bottom: 1px solid #eee;
}

.ai-chart {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
}

.ai-chart h4 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
}

.flow-step {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

.flow-arrow {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

/* 功能卡片 */
.features-section {
    padding: 60px 0;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 技术栈 */
.tech-stack {
    padding: 60px 0;
    background: var(--light-bg);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.tech-item h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.tech-item p {
    color: #666;
    line-height: 1.6;
}

/* OSA介绍 */
.osa-intro {
    padding: 60px 0;
}

.intro-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 症状 */
.osa-symptoms {
    padding: 60px 0;
    background: var(--light-bg);
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.symptom-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.symptom-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.symptom-card ul {
    list-style: none;
    padding: 0;
}

.symptom-card li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
    font-size: 1.1rem;
}

.symptom-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* 风险因素 */
.osa-risk {
    padding: 60px 0;
}

.risk-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.risk-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    font-size: 1.1rem;
    color: var(--text-color);
}

.risk-item strong {
    color: var(--primary-color);
}

/* 重要性 */
.osa-importance {
    padding: 60px 0;
    background: var(--light-bg);
}

.importance-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.importance-content > p {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.importance-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.importance-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.importance-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.importance-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.importance-item p {
    color: #666;
    line-height: 1.6;
}

/* 页脚 */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero .container,
    .highlights-content,
    .product-showcase,
    .ai-content {
        grid-template-columns: 1fr;
    }
    
    .flow-diagram {
        flex-wrap: nowrap;
        gap: 0;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 1rem;
        scrollbar-width: thin;
    }
    
    .flow-diagram::-webkit-scrollbar {
        height: 4px;
    }
    
    .flow-diagram::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }
    
    .flow-step {
        font-size: 0.7rem;
        padding: 0.5rem 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
    }
    
    .flow-arrow {
        font-size: 1rem;
        margin: 0 0.15rem;
        flex-shrink: 0;
        min-width: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .dimensions-grid,
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}

