/* 更新全局字体设置 */
body {
    margin: 0;
    padding-top: 80px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 更新标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 700;
}

/* 导航栏基础样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 容器样式，控制内容宽度和居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
}

.logo:hover {
    opacity: 0.8;
}

/* 导航链接列表样式 */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nav-links a:hover {
    color: #000;
}

/* 为了防止导航栏遮挡内容，给body添加上边距 */
body {
    margin: 0;
    padding-top: 80px; /* 根据导航栏高度调整 */
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: block;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 15px 0;
    }

    .container {
        position: relative;
    }

    /* 汉堡菜单激活状态 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hero部分样式优化 */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(to right, #fff 0%, #fff 50%, #fafafa 50%, #fafafa 100%);
}

.home-hero {
    background-color: #fafafa;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
    background-color: #fff;  /* 确保左侧内容区域是白色背景 */
}

/* Hero logo样式 */
.hero-logo {
    width: 300px; /* 增加logo尺寸 */
    height: auto;
}

/* Hero内容区域样式更新 */
.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    max-width: 540px;
    margin-bottom: 40px;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.first-line {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.avatar-group {
    display: inline-flex;
    align-items: center; /* 确保与文字垂直居中对齐 */
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-right: -10px; /* 使头像重叠 */
}

/* 下载按钮样式 */
.download-btn {
    background-color: #333;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.download-btn:hover {
    background-color: #444;
}

/* 右侧图片区域样式 */
.hero-image {
    flex: 1;
    position: relative;
    padding: 20px;
    background-color: #fafafa;  /* 确保右侧图片区域是灰色背景 */
}

.hero-image img {
    position: relative;
    z-index: 1;
}

/* 圆形装饰图标 */
/* .hero-image::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: url('path-to-your-camera-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
} */

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        background: #fff;  /* 移动端时统一使用白色背景 */
    }

    .hero .container {
        flex-direction: column;
        gap: 40px;
    }

    .hero-image {
        background-color: #fafafa;
        padding: 40px 20px;
        border-radius: 16px;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .hero-logo {
        width: 240px; /* 移动端也相应增大 */
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 40px;
        text-align: left;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .first-line {
        flex-direction: column;
        gap: 15px;
    }
    
    .avatar-group {
        margin: 15px 0;
    }
}

/* Templates 区域样式更新 */
.templates {
    padding: 20px 0 80px 0;
    background-color: #fff;
}

.templates .container {
    text-align: left;
    display: block;
}

.templates .container > h2,
.templates .container > .subtitle {
    text-align: center; /* 只有主标题和副标题居中 */
}

.templates h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.templates .subtitle {
    color: #a5a1a1;
    margin-bottom: 50px;
}

/* 模板部分样式 */
.template-category {
    margin-bottom: 100px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.template-category.animate-active {
    opacity: 1;
    transform: translateY(0);
}

.template-heading {
    text-align: left;
    margin-bottom: 30px;
}

.template-heading h3 {
    font-size: 2.5rem;
    margin-bottom: 0px;
    text-align: left;
    position: relative;
    display: inline-block;
}

.template-category.animate-active .template-heading h3::after {
    width: 100%;
}

.template-heading p {
    max-width: 70%;
    margin-bottom: 20px;
}

.template-number {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.template-examples {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    perspective: 1000px;
}

.template-example {
    flex: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    opacity: 0.5;
    transform: translateY(30px) rotateX(5deg);
    transition: opacity 0.4s ease-out, transform 0.6s ease-out;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.template-category.animate-active .template-example:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.template-category.animate-active .template-example:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.template-category.animate-active .template-example:nth-child(3) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.template-example::before {
    content: '';
    display: block;
    padding-top: 133.33%;
}

.template-example img,
.template-example picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

/* 为每个模板类别添加序号标记 */



.template-category.animate-active .template-heading::before {
    opacity: 1;
    transform: translateX(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .template-examples {
        flex-direction: column;
    }
    
    .template-heading p {
        max-width: 100%;
    }
}

/* Look more 按钮样式 */
.look-more {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.look-more::after {
    content: '→';
    margin-left: 8px;
}

.look-more:hover {
    background: #444;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
}

/* Features 区域样式 */
.features {
    padding: 100px 0;
    background-color: #fff;
}

.features .container {
    display: flex;
    flex-direction: column;
    gap: 120px; /* 两个功能模块之间的间距 */
}

/* 功能模块样式 */
.feature-item {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* 偶数项反向排列 */
.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* 文字内容样式 */
.feature-content {
    flex: 1;
}

.feature-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 图片容器样式 */
.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

/* 装饰元素样式 */
.feature-image .decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    top: -20px;
    right: -20px;
}

/* 社交媒体图标样式 */
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* background-color: #f5f5f5; */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .feature-content h2 {
        font-size: 28px;
    }

    .features .container {
        gap: 80px;
    }

    .feature-image {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .feature-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
    }
}

/* Contact 区域样式 */
.contact {
    padding: 100px 0;
    text-align: center;
    background-color: #F6F6F6;
}

.contact .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px; /* 控制内容区域宽度 */
}

.contact h2 {
    font-size: 36px;
    margin: 0;
}

.contact h3 {
    font-size: 28px;
    margin: 10px 0 10px 0;
}

.contact .description {
    color: #9A9DA2;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 480px;
}

/* 下载按钮样式 */
.contact .download-btn {
    background-color: #333;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 60px;
    transition: background-color 0.3s ease;
}

.contact .download-btn:hover {
    background-color: #444;
}

/* 用户样图网格 */
.user-samples {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.sample-image {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.sample-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.sample-image img:hover {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .contact h2 {
        font-size: 28px;
    }

    .contact h3 {
        font-size: 24px;
    }

    .user-samples {
        gap: 15px;
    }

    .sample-image {
        flex: 0 0 calc(50% - 8px);
        min-width: auto;
        max-width: none;
    }

    .sample-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: cover;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .user-samples {
        gap: 10px;
    }

    .sample-image {
        flex: 0 0 100%;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Footer 样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 40px 0;
    width: 100%;
}

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

/* 左侧内容区域 */
.footer-left {
    flex: 0 0 70%; /* 占据70%宽度 */
    display: flex;
    flex-direction: column;
}

/* 支持信息样式 */
.support-text {
    color: #fff;
    font-size: 14px;
}

/* 页脚链接样式更新 */
.footer-links {
    display: flex;
    gap: 20px;
    margin: 40px 0 0 0;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #666;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
}

/* 版权信息 */
.copyright {
    color: #666;
    font-size: 12px;
}

/* 右侧社交媒体图标 */
.social-links {
    flex: 0 0 30%; /* 占据30%宽度 */
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon img {
    width: 32px;
    height: 32px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        gap: 30px;
    }

    .footer-left {
        flex: 1;
        width: 100%;
        text-align: center;
    }

    .social-links {
        flex: 1;
        width: 100%;
        justify-content: center;
    }
}

/* 隐私政策页面样式 */
.privacy-content {
    padding: 80px 0;
    min-height: calc(100vh - 300px); /* 确保内容区域足够高 */
}

.privacy-content h1 {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
}

.policy-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.policy-text h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.policy-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .privacy-content {
        padding: 60px 0;
    }

    .privacy-content h1 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .policy-text h2 {
        font-size: 20px;
    }
}

/* 添加关键CSS预加载 */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
  }
  
  .slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.6s ease-out forwards;
  }
}

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

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

/* 添加动画效果的基础类 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animate-left {
    transform: translateX(-30px);
}

.animate-on-scroll.animate-right {
    transform: translateX(30px);
}

/* 动画激活时的状态 */
.animate-on-scroll.active {
    opacity: 1;
    transform: translate(0);
}

/* 确保动画选项尊重用户偏好 */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* Templates 区域的响应式优化 */
@media (max-width: 768px) {
    .template-row {
        flex-direction: column;
        gap: 20px;
    }

    .template-item {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        aspect-ratio: 16/9;
    }

    .template-item img {
        object-fit: cover;
        border-radius: 12px;
    }
}

/* Features 区域的响应式优化 */
@media (max-width: 768px) {
    .feature-item {
        flex-direction: column;
        gap: 40px;
    }

    .feature-image {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .feature-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 12px;
    }
}

/* 通用图片容器类 */
.img-container {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 12px;
}

.img-container::before {
    content: '';
    display: block;
    padding-top: 75%; /* 4:3 比例 */
}

.img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.img-container:hover img {
    transform: scale(1.05);
}

/* 法律文档样式 */
.legal-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.legal-content h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
}

.legal-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #333;
}

.legal-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
    color: #444;
}

.legal-content section {
    margin: 40px 0;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-content li {
    margin: 8px 0;
}

.legal-content p {
    margin: 15px 0;
}

@media (max-width: 768px) {
    .legal-content {
        margin: 20px auto;
    }
    
    .legal-content h1 {
        font-size: 28px;
    }
    
    .legal-content h2 {
        font-size: 22px;
    }
    
    .legal-content h3 {
        font-size: 18px;
    }
}

/* App Store 按钮效果 */
.app-store-btn {
    display: inline-block;
    margin: 15px 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.app-store-btn img {
    display: block;
    width: 240px;
    height: auto;
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.app-store-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-main-image {
    height: 600px !important;
    width: auto !important;
    max-height: 600px !important;
    object-fit: contain;
    transform-origin: center center;
    display: block;
}

/* 确保页面加载时从顶部开始显示 */
html {
    scroll-behavior: smooth;
}

/* 页面加载时自动滚动到顶部 */
html, body {
    scroll-padding-top: 80px; /* 与导航栏高度一致，确保锚点定位正确 */
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 添加以下类到您的 styles.css 文件 */

/* 用于替换 style="position: relative; overflow: hidden;" */
.hero-container {
    position: relative;
    overflow: hidden;
}

/* 用于替换 style="position: relative; z-index: 2;" */
.hero-content-container {
    position: relative;
    z-index: 2;
}

/* 用于替换 style="width: 200px; height: auto;" */
.app-store-badge {
    width: 200px;
    height: auto;
}

/* 用于替换 style="position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);" */
.scroll-down-button {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 用于替换 style="width: 40px; height: auto;" */

/* 添加更多替换内联样式的类 */

/* 用于替换联系我们部分的内联样式 */
.contact-app-store-badge {
    width: 200px;
    height: auto;
}

/* 用于替换其他可能的内联样式 */
.template-image-container {
    width: 100%;
    height: auto;
}

.template-image {
    width: 100%;
    height: 0;
    padding-bottom: 133%; /* 3:4 宽高比，可根据您的图片调整 */
    position: relative;
    object-fit: scale-down;
}


/* 用于替换社交图标的内联样式 */
.social-icon-image {
    width: 24px;
    height: 24px;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon img.icon {
    width: 32px;
    height: 32px;
}

/* 更新 value-card 样式 */
.value-card {
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.value-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
}

.value-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* 删除不再需要的图标相关样式 */
.card-icon,
.card-icon img.icon {
    display: none;
}

/* Vision部分样式优化 */
.company-intro {
    padding: 120px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 100px;  /* 增加与下方内容的间距 */
}

.section-title {
    font-size: 48px;  /* 增大标题字号 */
    font-weight: 800;
    margin-bottom: 24px;  /* 增加标题与副标题的间距 */
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 20px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.company-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;  /* 增加卡片之间的间距 */
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;  /* 添加两侧内边距 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .company-intro {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .company-values {
        gap: 24px;
    }
} 