/* 额外的美化和动画效果 */

/* 全局动画变量 */
:root {
    --animation-duration: 0.3s;
    --animation-timing: ease;
    --hover-transform: translateY(-5px);
    --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

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

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* 导航栏增强效果 */
.navbar {
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.nav-brand h2 {
    position: relative;
    overflow: hidden;
}

.nav-brand h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.nav-brand:hover h2::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* 主页横幅增强效果 */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200"><rect width="200" height="200" fill="none"/><circle cx="100" cy="100" r="80" fill="rgba(74, 108, 247, 0.03)"/><circle cx="50" cy="50" r="30" fill="rgba(74, 108, 247, 0.04)"/><circle cx="150" cy="150" r="40" fill="rgba(74, 108, 247, 0.04)"/></svg>');
    background-size: 200px 200px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

.hero-title {
    position: relative;
    overflow: hidden;
}

.hero-title span {
    display: inline-block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }
.hero-title span:nth-child(4) { animation-delay: 0.4s; }
.hero-title span:nth-child(5) { animation-delay: 0.5s; }

/* 按钮增强效果 */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    transform: translateY(-3px);
}

.btn-outline {
    position: relative;
    background: transparent;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: transform 0.5s ease;
    transform: scale(0);
    border-radius: inherit;
}

.btn-outline:hover::before {
    transform: scale(1);
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    z-index: 1;
}

/* 功能卡片增强效果 */
.feature-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05), rgba(108, 99, 255, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    position: relative;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: rotate(5deg);
}

/* 下载卡片增强效果 */
.download-card {
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05), rgba(108, 99, 255, 0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.download-card:hover::before {
    opacity: 1;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.download-card.featured {
    position: relative;
    overflow: hidden;
}

.download-card.featured::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    z-index: 0;
}

.download-card.featured:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

.featured-badge {
    background: linear-gradient(135deg, var(--accent-color), #ff8787);
    animation: pulse 2s infinite;
}

/* 指南部分增强效果 */
.guide-section {
    position: relative;
    overflow: hidden;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.02), rgba(108, 99, 255, 0.02));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.guide-section:hover::before {
    opacity: 1;
}

.guide-section h3::before {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    animation: pulse 3s infinite;
}

.guide-section h4 i {
    transition: transform 0.3s ease;
}

.guide-section h4:hover i {
    transform: scale(1.2);
}

/* FAQ项目增强效果 */
.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item:hover::before {
    transform: scaleY(1);
}

.faq-item h4 {
    position: relative;
    transition: color 0.3s ease;
}

.faq-item:hover h4 {
    color: var(--primary-color);
}

/* 页脚增强效果 */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.02)"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-column h3::after {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: 40px;
    transition: width 0.3s ease;
}

.footer-column:hover h3::after {
    width: 60px;
}

.footer-column a {
    position: relative;
    transition: transform 0.3s ease;
}

.footer-column a:hover {
    transform: translateX(5px);
}

/* 返回顶部按钮增强效果 */
.back-to-top {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.4);
    transform: translateY(-5px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* 指南进度指示器增强效果 */
.guide-progress-dot {
    position: relative;
    overflow: hidden;
}

.guide-progress-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.guide-progress-dot.active::before {
    width: 20px;
    height: 20px;
}

.guide-progress-dot.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* 下载通知增强效果 */
.download-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    transform: translateX(400px);
    transition: transform 0.5s ease;
    z-index: 2000;
    border-left: 4px solid var(--primary-color);
}

.download-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
}

.notification-content i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}

.notification-content p {
    margin: 0;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero::before,
    .hero::after {
        display: none;
    }
    
    .feature-card:hover {
        transform: translateY(-5px);
    }
    
    .download-card:hover {
        transform: translateY(-5px);
    }
}

/* 页面加载动画 */
.page-loaded {
    overflow-x: hidden;
}

/* 主题切换按钮 */
.theme-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(180deg);
}

/* 深色主题 */
.dark-theme {
    background-color: #121212;
    color: #ffffff;
}

.dark-theme .navbar {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.dark-theme .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.dark-theme .feature-card,
.dark-theme .download-card,
.dark-theme .privacy-card,
.dark-theme .faq-item {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .section-header h2 {
    color: #ffffff;
}

.dark-theme .footer {
    background-color: #0f0f0f;
}

.dark-theme .modal-content {
    background-color: #1e1e1e;
    color: #ffffff;
}

/* 波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* FAQ项目展开/折叠效果 */
.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.expanded p {
    max-height: 500px;
}

.faq-item h4 i {
    transition: transform 0.3s ease;
}

.faq-item.expanded h4 i.fa-plus-circle {
    transform: rotate(45deg);
}

/* 下载选项活动状态 */
.download-option.active {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(74, 108, 247, 0.3);
}

/* 导航栏隐藏效果 */
.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* 页面加载动画增强 */
.hero-title {
    opacity: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .theme-toggle {
        margin-left: 0.5rem;
    }
}