/* Reset & Base Variables */
:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0066cc;
    --card-bg: #ffffff;
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --section-spacing: 60px;
    --container-width: 980px;
    --footer-bg: #f5f5f7;
}

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

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: #333;
    text-decoration: underline;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 缩小版的容器，用于企业信息 */
.small-container {
    max-width: 800px;
}

/* Navigation */
.global-nav {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px; /* 灯野和点亮未来的间距 */
    text-decoration: none !important;
}

.brand-text {
    /* 灯野 保持原样 */
}

.brand-slogan {
    font-size: 18px; /* 与灯野一致 */
    color: #ff4000; /* 更浅的灰色，原为 #86868b */
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; /* 避免遮挡点击 */
}

/* 交互：仅当拥有 .show 类时显示（通过 JS 控制点击） */
.brand.show-slogan .brand-slogan {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    font-size: 12px;
    color: var(--text-primary);
    margin-left: 24px;
    opacity: 0.8;
    text-decoration: none !important;
}

.nav-links a:hover {
    opacity: 1;
}

/* Hero Section */
.hero-section {
    padding: 40px 0 30px; /* 再次减半，更紧凑 */
    text-align: center;
    background-color: var(--bg-color);
}

.hero-title {
    font-size: 64px;
    line-height: 1.0625;
    font-weight: 600;
    letter-spacing: -0.009em;
    margin-bottom: 8px;
    color: #1d1d1f;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    font-size: 24px;
    line-height: 1.125;
    font-weight: 400;
    letter-spacing: 0.004em;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards; /* 延迟 0.2s */
}

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

/* Product Section - App介绍 */
.product-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
    overflow: hidden; /* 防止横向滚动条 */
}

.product-title {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
}

.product-desc {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 400;
    letter-spacing: 0.009em;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 横向滚动容器 */
.product-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 20px 40px; /* 底部padding留给滚动条或阴影 */
    margin: 0 auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* 隐藏滚动条 */
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start; /* 左对齐，配合padding实现滚动 */
    flex-wrap: nowrap; /* 禁止换行，强制横向滚动 */
}

.product-scroll-container::-webkit-scrollbar {
    display: none;
}

/* 产品卡片样式 */
.product-card {
    background-color: #f5f5f7; /* 浅灰色背景 */
    border-radius: 28px;
    overflow: hidden;
    flex: 0 0 400px; /* 固定宽度 */
    height: 640px; /* 增加高度以容纳更多文案 */
    position: relative;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: scale(1.02);
}

.card-text {
    padding: 40px 40px 20px;
    text-align: left;
    z-index: 2;
}

.card-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.card-title {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-desc {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 300px; /* 限制宽度增加可读性 */
}

.card-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
    overflow: hidden;
}

.card-image {
    max-width: 95%;
    height: auto;
    max-height: 95%;
    object-fit: contain;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
    transform: none;
}




/* Footer & Contact - Apple Footer Style */
.global-footer {
    background-color: var(--footer-bg);
    padding: 40px 0 20px;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid #d2d2d7;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 40px; /* 减小列间距以适应三列 */
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 250px;
}

.footer-column.wide {
    flex: 2; /* 企业信息占更多宽度 */
}

.footer-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start; /* 顶部对齐，适应长文本 */
    line-height: 1.5;
}

.footer-label {
    margin-right: 8px;
    white-space: nowrap; /* 标签不换行 */
    min-width: 60px; /* 保证标签对齐 */
}

.footer-value {
    flex: 1; /* 占据剩余空间 */
    text-align: justify;
}

.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-list a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.footer-divider {
    height: 1px;
    background-color: #d2d2d7;
    margin: 20px 0;
}

.footer-copyright {
    text-align: left;
    color: #86868b;
}

/* Legal / Privacy Page */
.legal-page {
    background-color: var(--bg-color); /* 统一全站背景色 */
    padding: 60px 0 80px;
    min-height: calc(100vh - 44px); /* 确保内容少时也能撑开高度 */
}

.legal-container {
    max-width: 760px; /* 收窄阅读宽度，提升单行阅读体验 */
    margin: 0 auto;
    padding: 40px 60px; /* 增加内部留白 */
    background-color: #ffffff; /* 内容区白色背景 */
    border-radius: 24px; /* Apple风格圆角 */
    box-shadow: 0 4px 24px rgba(0,0,0,0.04); /* 轻微阴影，增加层次感 */
}

.legal-title {
    font-size: 36px; /* 增大主标题 */
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    text-align: center;
    border-bottom: none; /* 移除原来的下划线 */
    padding-bottom: 0;
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    border-left: none; /* 移除左侧黑线，改用更现代的排版 */
    padding-left: 0;
    margin: 40px 0 20px;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 25px 0 12px;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.6; /* 优化行高 */
    color: #333336; /* 稍微柔和的文本颜色 */
    margin: 16px 0; /* 增加段落间距 */
    text-align: justify; /* 两端对齐，显得更整齐 */
}

.legal-section ul,
.legal-section ol {
    margin: 16px 0 16px 24px;
    font-size: 16px;
    color: #333336;
    line-height: 1.6;
}

.legal-section li {
    margin: 8px 0; /* 增加列表项间距 */
    padding-left: 4px;
}

.legal-section ul li::marker {
    color: #86868b; /* 自定义列表圆点颜色 */
}

.legal-divider {
    border: none;
    height: 1px;
    background-color: #e5e5ea; /* Apple风格浅灰分割线 */
    margin: 40px 0;
}

.legal-footer {
    margin-top: 60px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }

    .product-title {
        font-size: 32px;
    }

    .product-desc {
        font-size: 17px;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    /* 移动端横向滚动优化 */
    .product-scroll-container {
        justify-content: flex-start; /* 移动端靠左开始，方便滚动 */
        flex-wrap: nowrap; /* 强制不换行，实现横向滚动 */
        padding-left: 20px; /* 左侧留白 */
        padding-right: 20px; /* 右侧留白 */
    }

    .product-card {
        flex: 0 0 300px; /* 移动端卡片宽度 */
        height: 560px;
    }
    
    .info-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .info-card {
        padding: 20px;
    }

    .footer-copyright {
        text-align: center;
    }
    
    /* 移动端 Legal / Privacy Page 适配 */
    .legal-page {
        padding: 20px 0 40px;
    }
    
    .legal-container {
        padding: 30px 20px;
        border-radius: 0; /* 移动端取消圆角，或者保留小圆角 border-radius: 16px; 根据喜好，这里用无圆角更贴边 */
        box-shadow: none; /* 移动端取消阴影 */
    }
    
    .legal-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .legal-section h2 {
        font-size: 20px;
        margin: 30px 0 16px;
    }
    
    .legal-section p, .legal-section ul, .legal-section ol {
        font-size: 15px; /* 移动端字号略微缩小 */
    }
}
