:root {
    --primary-color: #4361ee;
    --secondary-color: #f8f9fa;
    --text-color: #2b2d42;
    --light-text: #6c757d;
    --light-text: #111;
    --accent-color: #ef476f;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --footer-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
}

.hero-content {
    width: 50%;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-color), #6a5af9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-image {
    width: 45%;
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(var(--shadow));
}

.download-section {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.download-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.4);
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.download-btn:active::after {
    animation: ripple 0.6s ease-out;
}

.download-btn.light {
    background-color: white;
    color: var(--primary-color);
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(67, 97, 238, 0.3);
}

.features {
    padding: 80px 0;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #6a5af9);
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.feature-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), transparent);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

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

.feature-card:focus-within {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.4);
    outline: none;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background-color: rgba(67, 97, 238, 0.15);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-desc {
    color: var(--light-text);
    font-size: 0.95rem;
}

.screenshots {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.screenshots::before,
.screenshots::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.screenshots::before {
    left: 0;
    /*background: linear-gradient(to right, var(--secondary-color), transparent);*/
}

.screenshots::after {
    right: 0;
    /*background: linear-gradient(to left, var(--secondary-color), transparent);*/
}

.screenshots-slider {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
}
.screenshots-slider-wrap{
    position: relative;
}
.screenshots-slider-wrap::before,
.screenshots-slider-wrap::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 100px;
    height: calc(100% - 40px);
    z-index: 2;
    pointer-events: none;
}

.screenshots-slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--secondary-color), transparent);
}

.screenshots-slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--secondary-color), transparent);
}
.screenshots-slider::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 220px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: var(--transition);
    transform: perspective(800px) rotateY(0deg);
    -webkit-tap-highlight-color: transparent;
}

.screenshot-item:hover {
    transform: perspective(800px) rotateY(5deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.testimonials {
    padding: 80px 0;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin: 40px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.testimonial-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 30px;
    position: relative;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

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

.quote {
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.1;
    color: var(--primary-color);
}

.testimonial-text {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card:hover .testimonial-author {
    transform: translateX(5px);
}

.testimonial-card:hover .author-avatar {
    border-color: var(--primary-color);
}

.author-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--light-text);
}

.cta {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #6a5af9);
    border-radius: var(--border-radius);
    color: white;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute; 
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(255,255,255,0.1), transparent 70%);
    opacity: 0.5;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.qr-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.qr-box {
    text-align: center;
    transition: var(--transition);
    transform: translateY(0);
}

.qr-box:hover {
    transform: translateY(-5px);
}

.qr-code {
    width: 150px;
    height: 150px;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.qr-code::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: qrShine 3s infinite;
}

@keyframes qrShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    20%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.qr-code img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.qr-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 8px;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--light-text);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-links a:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
    border-radius: 4px;
}

.copyright {
    font-size: 0.9rem;
}

/* 修改自动滚动动画 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-245px * var(--size))); /* 调整为图片宽度+间距 */
    }
}

.auto-scroll {
    --size:5;
    animation: scroll 40s linear infinite;
}

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

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

.animate-fadeIn {
    animation: fadeIn 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('bg.png');
  background-size: cover;
  z-index: -1;
}
      
/* 优化移动端响应式设计 */
@media (max-width: 768px) {
    
body::before {
  background-size: contain;}
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
    
    .hero-image {
        margin-top: 30px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-section {
        justify-content: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .qr-section {
        gap: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        background: linear-gradient(to right, var(--primary-color), #6a5af9);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

    .section-title::after {
        width: 60px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cta h2 {
        font-size: 2rem;
        padding: 0 20px;
    }

    .feature-card {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .footer-links {
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .testimonial-grid {
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
}

/* 添加小屏幕设备的优化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .download-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .feature-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .cta h2 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .qr-section {
        flex-direction: column;
    }
    
    .container {
        padding: 15px;
    }
    
    .testimonial-card {
        padding: 20px 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
}

/* 添加平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 优化触摸屏体验 */
@media (hover: none) {
    .download-btn:active {
        transform: scale(0.98);
    }
    
    .feature-card:active {
        transform: scale(0.98);
    }
    
    .screenshot-item:active {
        transform: scale(0.98);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #4cc9f0;
        --secondary-color: #1a1b26;
        --text-color: #e5e5e5;
        --light-text: #a0a0a0;
        --accent-color: #ff5e7d;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        --bg-color: #121212;
        --card-bg: #1e1e24;
        --footer-bg: #1a1b26;
    }
    
    body {
        background-color: var(--bg-color);
    }
    
    .features, .testimonials {
        background-color: var(--bg-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow);
        margin: 40px 0;
    }
    
    .feature-card {
        background-color: var(--secondary-color);
    }
    
    .testimonial-card {
        background-color: var(--secondary-color);
    }
    
    .logo-icon {
        background-color: var(--primary-color);
    }
    
    .download-btn.light {
        background-color: var(--card-bg);
        color: var(--primary-color);
    }
    
    .qr-code {
        background-color: var(--card-bg);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    footer {
        background-color: var(--footer-bg);
    }
    
    .screenshot-item {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* 调整暗色模式下的渐变效果 */
    .screenshots::before {
        background: linear-gradient(to right, var(--bg-color), transparent);
    }
    
    .screenshots::after {
        background: linear-gradient(to left, var(--bg-color), transparent);
    }
    
    /* 调整暗色模式下的文字渐变 */
    .hero-title {
        background: linear-gradient(to right, var(--primary-color), #7b78ff);
    }
    
    .section-title::after {
        background: linear-gradient(to right, var(--primary-color), #7b78ff);
    }
}

/* 全局焦点状态 */
a:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.4);
} 