/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS变量定义 - 用于主题切换 */
:root {
    /* 浅色模式变量 */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #fafafa;
    --bg-tertiary-light: #f5f5f5;
    --text-primary-light: #1f2937;
    --text-secondary-light: #4b5563;
    --text-tertiary-light: #6b7280;
    --accent-color-light: #10b981;
    --accent-hover-light: #059669;
    --accent-light: #d1fae5;
    --border-light: #e5e7eb;
    --card-shadow-light: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --btn-shadow-light: 0 4px 6px -1px rgba(16, 185, 129, 0.1), 0 2px 4px -1px rgba(16, 185, 129, 0.06);
    
    /* 深色模式变量 */
    --bg-primary-dark: #0f172a;
    --bg-secondary-dark: #1e293b;
    --bg-tertiary-dark: #334155;
    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #cbd5e1;
    --text-tertiary-dark: #94a3b8;
    --accent-color-dark: #10b981;
    --accent-hover-dark: #34d399;
    --accent-light-dark: #059669;
    --border-dark: #475569;
    --card-shadow-dark: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --btn-shadow-dark: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}

/* 针对特定元素的过渡效果 - 提高性能 */
header, .nav-links a, .logo, .download-btn, .feature-card, .about-card, .contact-item, #backToTop {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* 浅色模式 */
.light-mode {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --bg-tertiary: var(--bg-tertiary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --text-tertiary: var(--text-tertiary-light);
    --accent-color: var(--accent-color-light);
    --accent-hover: var(--accent-hover-light);
    --accent-light: var(--accent-light);
    --border-color: var(--border-light);
    --card-shadow: var(--card-shadow-light);
    --btn-shadow: var(--btn-shadow-light);
}

/* 深色模式 */
.dark-mode {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-tertiary: var(--text-tertiary-dark);
    --accent-color: var(--accent-color-dark);
    --accent-hover: var(--accent-hover-dark);
    --accent-light: var(--accent-light-dark);
    --border-color: var(--border-dark);
    --card-shadow: var(--card-shadow-dark);
    --btn-shadow: var(--btn-shadow-dark);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode header {
    background-color: rgba(15, 23, 42, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
}

/* 确保在深色模式下图标也清晰可见 */
.dark-mode .logo-icon {
    filter: brightness(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

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

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

/* 主题切换按钮 */
.theme-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle button:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.1);
}

.theme-toggle button svg {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-sun {
    display: none;
}

.dark-mode .icon-moon {
    display: none;
}

.dark-mode .icon-sun {
    display: block;
}

/* 英雄区域样式 */
.hero-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--accent-light) 0%, transparent 50%);
    opacity: 0.2;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 8vw, 4rem);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: rgba(16, 185, 129, 0.1);
}

.light-mode .subtitle {
    background-color: rgba(16, 185, 129, 0.1);
}

.dark-mode .subtitle {
    background-color: rgba(16, 185, 129, 0.2);
}

.description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 95%;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    /* 移除所有过渡效果 */
    border: none;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    position: relative;
}

/* 移除按钮点击时的弹出动画 */
.download-btn::after {
    display: none;
}

.download-btn.primary {
    background-color: var(--accent-color);
    color: white;
    padding: 0.875rem 2rem; /* 增加左右padding以补偿移除的图标 */
    justify-content: center; /* 确保文本居中 */
}

.download-btn.primary:hover {
    background-color: var(--accent-hover);
    /* 移除悬停时的变换效果 */
}

.download-btn.secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
    gap: 0; /* 移除图标间距 */
}

/* 移除应用权限按钮的外部链接图标 */
.download-btn.secondary.external-link::after {
    display: none;
}

.download-btn.secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hero-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    animation: float 8s ease-in-out infinite;
    position: relative;
    /* 硬件加速 */
    transform: translateZ(0);
    will-change: transform;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 60%);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    /* 硬件加速 */
    transform: translateZ(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-1deg); }
}

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

/* 功能区域样式 */
.features-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background-color: var(--accent-color);
    border-radius: 9999px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card svg {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* 企业介绍区域样式 */
.about-section {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-content h3::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 1.5rem;
    background-color: var(--accent-color);
    border-radius: 4px;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* 联系我们区域样式 */
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-primary);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.5s, opacity 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.contact-item:hover::after {
    opacity: 0.3;
    transform: translateX(100%);
}

.contact-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-item:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.contact-item span {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* 页脚样式 */
footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 0 0 9999px 9999px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    margin-top: 1rem;
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3.25rem;
    height: 3.25rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transform: translateY(20px);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: var(--accent-hover);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#backToTop:active {
    transform: translateY(-3px) scale(0.98);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* 在移动设备上隐藏导航链接 */
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .description {
        max-width: 100%;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .about-content {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        padding: 1.25rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .download-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .hero-image svg {
        width: 200px;
        height: 200px;
    }
}

/* 安全增强样式 */
/* 防止内容被选择的样式，保护敏感信息 */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 链接安全提示 */
.external-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* 交错动画延迟 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

.slide-up-delay-1 {
    animation-delay: 0.1s;
}

.slide-up-delay-2 {
    animation-delay: 0.2s;
}

.slide-up-delay-3 {
    animation-delay: 0.3s;
}

/* 延迟动画 */
.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}