/* 全局样式 */
:root {
    --primary-color: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    --secondary-color: #10B981;
    --secondary-light: #34D399;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --background-light: #F9FAFB;
    --background-white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    padding-top: 76px; /* 为固定导航栏添加顶部内边距 */
}

/* 确保页面不会出现横向滚动 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* 导航栏样式 */
.navbar {
    padding: 1.25rem 0;
    background: linear-gradient(135deg, 
        rgba(79, 70, 229, 0.03) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        rgba(16, 185, 129, 0.03) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
    z-index: 1030;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(79, 70, 229, 0) 0%,
        rgba(79, 70, 229, 0.2) 50%,
        rgba(79, 70, 229, 0) 100%);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-brand:hover {
    color: var(--primary-light);
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--background-light);
}

.nav-link.active {
    color: var(--primary-color);
    background: var(--background-light);
}

#languageSelect {
    border: 2px solid var(--background-light);
    border-radius: 8px;
    padding: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

#languageSelect:hover {
    border-color: var(--primary-light);
    color: var(--primary-color);
}

#languageSelect:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
}

.language-option i {
    font-size: 1.2em;
}

/* 调整下拉选项的样式 */
#languageSelect option {
    padding: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    footer {
        padding: 3rem 0 2rem;
        margin-top: 4rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    #languageSelect {
        min-width: 120px;
        padding: 0.4rem;
    }
}

/* 主要内容区域样式 */
.display-4 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* 下载按钮样式 */
.download-buttons {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.download-buttons a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.download-buttons a i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.download-buttons .ios-download {
    background-color: #007AFF;
    color: white;
    border: none;
}

.download-buttons .android-download {
    background-color: transparent;
    color: #007AFF;
    border: 2px solid #007AFF;
}

.download-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 隐私政策链接样式 */
.privacy-link {
    margin-top: 1rem;
}

.privacy-link a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.privacy-link a:hover {
    color: #007AFF;
    text-decoration: underline;
}

/* 应用卡片样式 */
.app-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

.app-icon {
    width: 80px;
    height: 80px;
    margin: 1.5rem auto;
    object-fit: contain;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.03) 0%,
        rgba(99, 102, 241, 0.05) 50%,
        rgba(16, 185, 129, 0.03) 100%);
    padding: 5rem 0 3rem;
    margin-top: 6rem;
    position: relative;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(circle at top center,
        rgba(79, 70, 229, 0.05) 0%,
        rgba(99, 102, 241, 0.03) 30%,
        rgba(16, 185, 129, 0.02) 70%,
        transparent 100%);
    pointer-events: none;
}

/* 添加智能连接线效果 */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            transparent 0%,
            rgba(79, 70, 229, 0.2) 50%,
            transparent 100%);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 调整页脚标题样式 */
footer h5 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-color),
        var(--secondary-color));
    border-radius: 2px;
    opacity: 0.8;
}

footer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 页脚社交图标容器 */
.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* 社交图标链接 */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.1),
        rgba(16, 185, 129, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(79, 70, 229, 0.1);
    text-decoration: none;
}

.social-link i {
    font-size: 1.2rem;
    color: inherit;
}

.social-link:hover {
    background: linear-gradient(135deg,
        rgba(79, 70, 229, 0.9),
        rgba(16, 185, 129, 0.9));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* 页脚链接列表样式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-links i {
    font-size: 0.875rem;
    color: inherit;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    background: linear-gradient(180deg,
        transparent,
        rgba(79, 70, 229, 0.02));
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        rgba(79, 70, 229, 0) 0%,
        rgba(79, 70, 229, 0.2) 50%,
        rgba(79, 70, 229, 0) 100%);
}

/* 轮播图容器 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    overflow: hidden;
}

/* iPhone 手机壳样式 */
.iphone-frame {
    position: relative;
    width: 344px;
    aspect-ratio: 9/19.5;
    margin: 0 auto;
    background: var(--background-white);
    border-radius: 32px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 10px solid #000;
    overflow: hidden;
    z-index: 2;
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;  /* 调整刘海大小 */
    height: 20px;
    background: #000;
    border-radius: 0 0 12px 12px;
    z-index: 3;
}

.iphone-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;  /* 调整底部指示条大小 */
    height: 4px;
    background: #000;
    border-radius: 4px;
    z-index: 3;
}

/* 轮播图样式 */
.carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-items {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item {
    position: absolute;
    width: 200px;
    height: 432px;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-item.active {
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
    z-index: 1;
}

.carousel-item.prev {
    left: 50%;
    transform: translateX(-150%) scale(0.8);
    opacity: 0.6;
    z-index: 0;
}

.carousel-item.next {
    left: 50%;
    transform: translateX(50%) scale(0.8);
    opacity: 0.6;
    z-index: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* 添加淡入淡出效果 */
.active-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.active-image.fade-out {
    opacity: 0;
}

.active-image.fade-in {
    opacity: 1;
}

/* 轮播控制按钮样式 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.carousel-control:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

/* 添加图片加载动画 */
@keyframes imageLoading {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: imageLoading 0.3s ease forwards;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .carousel {
        width: 800px;
    }
    
    .carousel-item.prev {
        transform: translateX(-160%) scale(0.8);
    }
    
    .carousel-item.next {
        transform: translateX(60%) scale(0.8);
    }
}

@media (max-width: 992px) {
    .carousel {
        width: 700px;
    }
    
    .carousel-item.prev {
        transform: translateX(-140%) scale(0.8);
    }
    
    .carousel-item.next {
        transform: translateX(40%) scale(0.8);
    }
}

@media (max-width: 768px) {
    .iphone-frame {
        width: 280px;
        border-width: 8px;
    }
    
    .iphone-frame::before {
        width: 80px;
        height: 16px;
    }
    
    .iphone-frame::after {
        width: 60px;
        height: 4px;
    }
    
    .carousel {
        width: 100%;
        padding: 0 20px;
    }
    
    .carousel-item.prev {
        transform: translateX(-120%) scale(0.8);
    }
    
    .carousel-item.next {
        transform: translateX(20%) scale(0.8);
    }

    .footer-links {
        margin-bottom: 1rem;
    }
    
    .footer-links h6 {
        font-size: 0.95rem;
    }
}

/* 产品切换按钮样式 */
.product-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 20px 0;
}

.product-btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: var(--background-white);
    border: 2px solid #E5E7EB;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
}

.product-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
    background-color: var(--primary-light);
    color: white;
}

.product-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.product-btn.active:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.product-icon {
    width: 36px;
    height: 36px;
    margin-right: 10px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-btn:hover .product-icon,
.product-btn.active .product-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .product-switcher {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .product-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
}

/* 产品信息样式 */
#productInfo {
    padding: 2.5rem;
    transition: all 0.3s ease;
    opacity: 1;
    background: var(--background-white);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: linear-gradient(120deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* 下载按钮样式 */
.download-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.download-buttons .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.download-buttons .btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.download-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.download-buttons .btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.download-buttons .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    border: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.download-buttons .btn:hover {
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel {
        padding: 10px;
    }

    .product-switcher {
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    #productInfo {
        padding: 1rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn {
        width: 100%;
    }
}

/* 产品信息切换动画 */
#productInfo {
    transition: opacity 0.3s ease;
    opacity: 1;
}

#productInfo.fade-out {
    opacity: 0;
}

#productInfo.fade-in {
    opacity: 1;
}

/* 特性样式 */
.feature {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: white;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.feature p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-phone {
    margin: 0.25rem 0;
}

.contact-phone a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    color: var(--text-secondary);
}

.contact-phone i {
    margin-top: 3px;
}

.phone-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.phone-number {
    color: var(--text-secondary);
    font-size: 1em;
}

.contact-phone a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .contact-phone a {
        gap: 0.5rem !important;
    }
} 