:root {
    --primary-color: #4a6bff;
    --secondary-color: #5d7cf5;
    --accent-color: #ebf0ff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(74, 107, 255, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

/* 头部样式 */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 0.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(74, 107, 255, 0.15);
    transition: var(--transition);
}

.logo:hover {
    transform: rotate(5deg);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.slogan {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
}

/* 主要内容区域样式 */
main {
    margin-bottom: 3rem;
}

/* 英雄区域样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 107, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 6px 15px rgba(74, 107, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(74, 107, 255, 0.1);
}

.btn-secondary:hover {
    background-color: #dde5ff;
    box-shadow: 0 6px 15px rgba(74, 107, 255, 0.2);
    transform: translateY(-2px);
}

/* 禁用状态按钮样式 */
.btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 570px;
    background-color: #000;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: perspective(800px) rotateY(-5deg);
    transition: var(--transition);
}

.phone-mockup:hover {
    transform: perspective(800px) rotateY(0deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    overflow: hidden;
    position: relative;
}

.phone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), transparent);
}

/* 特性部分样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-item {
    background-color: #f8f9ff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(74, 107, 255, 0.1);
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: rgba(74, 107, 255, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: inline-block;
    background-color: var(--accent-color);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--primary-color);
}

.feature-item p {
    color: var(--text-light);
}

/* App信息部分样式 */
.app-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 1.5rem;
    background-color: var(--accent-color);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-info::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 107, 255, 0.1), transparent);
    top: -150px;
    left: -150px;
    border-radius: 50%;
}

.app-info::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(74, 107, 255, 0.1), transparent);
    bottom: -150px;
    right: -150px;
    border-radius: 50%;
}

.qr-code {
    text-align: center;
    position: relative;
    z-index: 1;
}

.qr-placeholder {
    width: 180px;
    height: 180px;
    background-color: white;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--primary-color);
    position: relative;
    box-shadow: 0 10px 20px rgba(74, 107, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 初始状态显示加载中提示 */
.qr-placeholder::before {
    content: '正在加载二维码...';
    color: var(--primary-color);
    font-size: 0.9rem;
    display: block;
    text-align: center;
}

/* 加载完成状态 */
.qr-placeholder.qr-loaded::before {
    display: none;
}

.qr-placeholder.qr-loaded {
    border-style: solid;
    border-width: 1px;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.app-version {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.app-version p {
    margin-bottom: 0.7rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.app-version p:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(74, 107, 255, 0.1);
}

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

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

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

/* 响应式设计 */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-content {
        margin-right: 0;
        margin-bottom: 1rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        margin-bottom: 2rem;
        font-size: 1.05rem;
    }
    
    .cta-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .btn {
        padding: 0.9rem 1.6rem;
        font-size: 1.05rem;
        border-radius: 8px;
    }
    
    .btn-primary {
        box-shadow: 0 6px 15px rgba(74, 107, 255, 0.35);
    }
    
    .btn-secondary {
        box-shadow: 0 6px 15px rgba(74, 107, 255, 0.15);
    }
    
    .app-info {
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .feature-item {
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    /* 手机端隐藏软件预览 */
    .phone-mockup {
        display: none;
    }
    
    /* 手机端hero-image也隐藏 */
    .hero-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 2rem;
    }
}

/* JavaScript相关样式 */
.highlight-btn {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

/* 动画效果 */
.hero-content, .phone-mockup, .feature-item, .app-info {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-item:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-item:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-item:nth-child(3) {
    transition-delay: 0.3s;
}

/* 新增样式 - 徽章 */
.badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

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

/* 应用预览 */
.app-preview {
    width: 100%;
    height: 100%;
    opacity: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.app-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* 用户反馈部分 */
.testimonials {
    margin-bottom: 4rem;
    text-align: center;
}

.testimonials h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.testimonials h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

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

.testimonial-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(74, 107, 255, 0.1);
    position: relative;
}

.testimonial-item::before {
    content: '\201C';
    font-size: 5rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--accent-color);
    font-family: serif;
    opacity: 0.6;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 107, 255, 0.1);
}

.testimonial-rating {
    color: #ffb100;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 500;
}

.author-name {
    color: var(--primary-color);
}

.author-title {
    color: var(--text-light);
}

/* 页脚内容 */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 浮动下载按钮 */
.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: none;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .testimonial-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .floating-cta {
        display: block;
    }
}

@media (max-width: 480px) {
    .badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .testimonials h2 {
        font-size: 1.5rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .floating-cta {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
    
    .floating-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 涟漪效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s linear;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

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

/* 活跃状态的特性卡片 */
.feature-item.active {
    background-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
}

.feature-item.active h3,
.feature-item.active p {
    color: white;
}

.feature-item.active .feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 暗色模式 */
.dark-mode {
    --text-color: #f0f0f0;
    --text-light: #a0a0a0;
    --bg-color: #121212;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dark-mode .container {
    background-color: #121212;
}

.dark-mode .feature-item {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .testimonial-item {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .app-info {
    background-color: rgba(74, 107, 255, 0.1);
}

.dark-mode .app-version {
    background-color: #1e1e1e;
}

.dark-mode .qr-placeholder {
    background-color: #2a2a2a;
    border-color: var(--primary-color);
}

.dark-mode .floating-cta {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* 浮动按钮过渡效果 */
.floating-cta {
    transition: transform 0.3s ease, opacity 0.3s ease, pointer-events 0s ease 0.3s;
}

/* 适配小屏幕触摸设备 */
@media (hover: none) {
    .btn::before {
        display: none;
    }
    
    .phone-mockup {
        transform: none !important;
    }
} 