/* 全局样式 */
:root {
    --primary-color: #28beb5;
    --primary-dark: #1e9d95;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f5f7;
    --white: #fff;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* 动画关键帧 - 更快的版本 */
@keyframes fadeInFast {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUpFast {
    from { 
        transform: translateY(20px); /* 减小移动距离 */
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from { 
        transform: translateX(-50px); 
        opacity: 0;
    }
    to { 
        transform: translateX(0); 
        opacity: 1;
    }
}

@keyframes slideInRight {
    from { 
        transform: translateX(50px); 
        opacity: 0;
    }
    to { 
        transform: translateX(0); 
        opacity: 1;
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* 容器样式 */
.nav-container, .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.5s ease-out;
}

.promo-banner {
    background-color: var(--bg-light);
    color: var(--text-color);
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    animation: fadeInFast 1s ease-out;
}

.promo-banner a {
    font-weight: 600;
    margin-left: 5px;
    transition: var(--transition);
}

.promo-banner a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

nav {
    padding: 15px 0;
}

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

/* Logo 样式更新 */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 32px; /* 调整图片高度 */
    margin-right: 10px; /* 图片和文字之间的间距 */
}

.logo h1, .logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    transition: var(--transition);
    margin: 0; /* 移除默认边距 */
}

.logo a:hover h1, .logo a:hover h2 {
    color: var(--primary-color);
}

.nav-links-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-grow: 1;
    margin-left: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

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

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    z-index: 1;
    padding: 10px 0;
    margin-top: 10px;
    left: -20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
    font-weight: 400;
}

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

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn, .trial-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.login-btn {
    color: var(--text-color);
}

.login-btn:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.trial-btn {
    background-color: var(--primary-color);
    color: var(--white);
    animation: pulse 2s infinite;
}

.trial-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    animation: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

/* 主要内容样式 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Lottie 动画容器样式 */
#lottie-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* 在移动设备上调整动画大小 */
@media (max-width: 768px) {
    #lottie-container {
        max-width: 300px;
    }
}

/* 英雄区域 - 更快的动画 */
.hero {
    padding: 80px 0;
    text-align: center;
    animation: fadeInFast 0.3s ease-out forwards; /* 更快的淡入 */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideUpFast 0.25s ease-out forwards; /* 更快的标题动画 */
    opacity: 0; /* 初始不可见 */
}

.hero p {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-light);
    animation: slideUpFast 0.25s ease-out forwards; /* 更快的段落动画 */
    animation-delay: calc(var(--i, 0) * 0.05s); /* 更短的延迟间隔 */
    opacity: 0; /* 初始不可见 */
}

.hero p:nth-child(2) {
    --i: 1; /* 第二段落延迟 0.05s */
}

.hero p:nth-child(3) {
    --i: 2; /* 第三段落延迟 0.1s */
}

.hero p:nth-child(4) {
    --i: 3; /* 第四段落延迟 0.15s */
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s; /* 更快的过渡 */
    animation: slideUpFast 0.25s ease-out forwards; /* 更快的按钮动画 */
    animation-delay: 0.2s; /* 更短的按钮延迟 */
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    opacity: 0; /* 初始不可见 */
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* 安全区域 */
.security {
    text-align: center;
    padding: 60px 0;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 40px 0;
    opacity: 0;
    transform: translateY(20px); /* 减小移动距离 */
    transition: opacity 0.4s, transform 0.4s; /* 更快的过渡 */
}

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

.security h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.security p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.devices {
    max-width: 800px;
    margin: 0 auto;
}

.devices img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s; /* 更快的过渡 */
    animation: float 4s ease-in-out infinite; /* 更快的浮动动画 */
}

.devices img:hover {
    transform: scale(1.02);
}

/* 功能区域 */
.features {
    padding: 80px 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s;
}

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

.features h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.features p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.feature-card.visible {
    animation: cardAppear 0.5s forwards;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.feature-card img {
    max-width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

/* 特性卡片内容在动画触发前完全不可见 */
.feature-card-content {
    opacity: 0; /* 整个内容区域默认不可见 */
    visibility: hidden; /* 确保完全不可见 */
    transition: opacity 0.3s, visibility 0.3s;
}

.feature-card.text-visible .feature-card-content {
    opacity: 1;
    visibility: visible;
}

/* 特性卡片文字元素初始状态 */
.feature-card h3,
.feature-card p {
    opacity: 0;
    transform: translateY(30px);
    transition: none; /* 移除过渡，使用动画代替 */
}

/* 特性卡片文字动画 */
.feature-card h3.element-visible {
    animation: featureSlideUp 0.8s ease-out forwards;
}

.feature-card p.element-visible {
    animation: featureSlideUp 0.8s ease-out forwards;
}

/* 保持图片的过渡效果 */
.feature-card img {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card img.element-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 添加特性卡片文字滑入动画 */
@keyframes featureSlideUp {
    from { 
        transform: translateY(40px); /* 更大的移动距离 */
        opacity: 0;
    }
    to { 
        transform: translateY(0); 
        opacity: 1;
    }
}

/* CTA 区域 */
.cta {
    text-align: center;
    padding: 80px 0;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    margin: 40px 0;
    opacity: 0;
    transform: translateY(20px); /* 减小移动距离 */
    transition: opacity 0.4s, transform 0.4s; /* 更快的过渡 */
}

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

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background-color: var(--bg-light);
    padding: 60px 0;
    opacity: 0;
    animation: fadeInFast 1s ease-out forwards;
    animation-delay: 0.5s;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
}

.footer-top .logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-top p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-section a {
    display: block;
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .hero h2 {
        font-size: 40px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links-container {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        margin-left: 0;
        z-index: 99;
    }
    
    .nav-links-container.active {
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-icon {
        width: 100px;
        height: 100px;
        margin-left: 5px;
    }
    
    .auth-buttons {
        margin-top: 20px;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0;
        margin-top: 10px;
    }
    
    .dropdown:hover .dropdown-content {
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .cta-button {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .security h2, .features h2, .cta h2 {
        font-size: 28px;
    }
}

/* 桌面端特性卡片网格垂直排布 - 图片都在左边 */
@media (min-width: 769px) {
    .feature-grid {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }
    
    .feature-card {
        display: flex;
        flex-direction: row; /* 所有卡片都是图片在左，文字在右 */
        align-items: center;
        padding: 30px;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        transition: transform 0.3s, box-shadow 0.3s;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .feature-card img {
        width: 45%;
        height: auto;
        border-radius: 12px;
        margin: 0;
        transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    /* 文字内容容器 */
    .feature-card-content {
        width: 50%;
        display: flex;
        flex-direction: column;
        padding-left: 30px; /* 所有卡片的文字内容都在右侧，左侧有内边距 */
        align-items: flex-start; /* 确保内容左对齐 */
        justify-content: flex-start; /* 内容靠上显示，不居中 */
        align-self: flex-start; /* 在父容器中靠上对齐 */
        padding-top: 20px; /* 顶部添加一些内边距 */
    }
    
    .feature-card h3 {
        font-size: 24px;
        margin-bottom: 20px;
        width: 100%;
        text-align: left; /* 确保文字左对齐 */
    }
    
    .feature-card p {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 5px; /* 从15px减小到5px */
        width: 100%;
        text-align: left;
    }
    
    /* 段落垂直排布 - 减小间距 */
    .feature-card .paragraphs-container {
        display: flex;
        flex-direction: column;
        gap: 2px; /* 减小段落之间的间距，从15px改为8px */
        width: 100%;
    }
    
    /* 确保最后一个段落没有底部边距 */
    .feature-card p:last-child {
        margin-bottom: 0;
    }
    
    /* 标题和段落容器之间的间距 */
    .feature-card h3 {
        margin-bottom: 15px; /* 从20px减小到15px */
    }
    
    /* 移除奇偶卡片的不同样式 */
    .feature-card:nth-child(even) .feature-card-content {
        padding-right: 0;
        align-items: flex-start; /* 左对齐文本内容 */
        text-align: left;
    }
}

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

/* 移动端保持原有的纵向布局 */
@media (max-width: 768px) {
    .feature-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        flex-direction: column;
        text-align: left;
    }
    
    .feature-card img {
        width: 100%;
    }
    
    .feature-card h3, 
    .feature-card p {
        width: 100%;
        padding: 0;
    }
}

/* 统一修改所有分辨率下的段落间距 */

/* 段落垂直排布 - 减小间距 (适用于所有分辨率) */
.feature-card .paragraphs-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 统一的段落间距 */
    width: 100%;
}

/* 减小段落之间的间距 (适用于所有分辨率) */
.feature-card p {
    font-size: 16px;
    line-height: 1.6; /* 稍微减小行高 */
    margin-bottom: 5px; /* 统一的底部边距 */
    width: 100%;
    text-align: left;
}

/* 确保最后一个段落没有底部边距 (适用于所有分辨率) */
.feature-card p:last-child {
    margin-bottom: 0;
}

/* 标题和段落容器之间的间距 (适用于所有分辨率) */
.feature-card h3 {
    margin-bottom: 15px; /* 统一的标题底部边距 */
}

/* 确保移动端也使用相同的间距 */
@media (max-width: 768px) {
    .feature-card .paragraphs-container {
        gap: 8px; /* 保持与桌面版相同 */
    }
    
    .feature-card p {
        margin-bottom: 5px; /* 保持与桌面版相同 */
    }
    
    .feature-card h3 {
        margin-bottom: 15px; /* 保持与桌面版相同 */
    }
} 