:root {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-primary: #121212;
    --bg-secondary: #1f2937;
    --white: #f9fafb;
    --card-bg: #1e1e1e;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-dark: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-primary);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: rgba(17, 24, 39, 0.9);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background-color: var(--bg-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0f172a 0%, #1e293b 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.svg') repeat;
    opacity: 0.05;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #333333;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #333333;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: #333333;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.primary-button, .secondary-button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--white);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.hero-image {
    position: relative;
    z-index: 2;
    margin-right: 5%; /* 向中间移动，减少右侧距离 */
}

.hero-image img {
    max-width: 100%;
    width: 320px; /* 固定宽度 */
    height: 600px; /* 固定高度 */
    object-fit: cover; /* 确保图片内容适当填充固定尺寸 */
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 320px;
    height: 600px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.carousel-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    /* 移除display:none，避免图片完全不显示 */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1; /* 确保活动的幻灯片在最上层 */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    display: block; /* 确保图片显示 */
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    margin: 0 10px;
}

.carousel-control:hover {
    opacity: 1;
    background-color: var(--primary-color);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}
/* 移除重复的轮播样式，避免冲突 */

/* 轮播控制按钮样式已在上方定义，这里移除重复定义 */

/* Features Section */

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
    position: relative;
    background: linear-gradient(120deg, #111827 0%, #1e293b 100%);
    border-top: 2px solid #1e293b;
    border-bottom: 2px solid #1e293b;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.features h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card img {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Advantages Section */
.advantages {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
    background: #0f172a;
    border-bottom: 2px solid #1e293b;
}

.advantages h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.advantage-card:hover::before {
    opacity: 1;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    color: #60a5fa;
}

.advantage-icon path,
.advantage-icon circle {
    fill: currentColor;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    color: #93c5fd;
}

.advantage-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
    background: linear-gradient(90deg, #111827 0%, #1e293b 100%);
    border-bottom: 2px solid #1e293b;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
}

.quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.user-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

/* Team Section */
.team {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
    background: #0f172a;
    border-bottom: 2px solid #1e293b;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Download Section */
.download {
    padding: 6rem 2rem;
    background-color: var(--bg-secondary);
    color: var(--text-color);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #111827 0%, #1e293b 100%);
    border-bottom: 2px solid #1e293b;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.svg') repeat;
    opacity: 0.1;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.download-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.app-store-button, .play-store-button {
    transition: transform 0.3s ease;
}

.app-store-button:hover, .play-store-button:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #505050;
    color: var(--white);
    padding: 3rem 2rem;
    background: linear-gradient(90deg, #000000 0%, #0f172a 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 80px;
    /* filter: brightness(10) invert(2); */
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        margin-bottom: 2rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 装饰性分割线 */
section:not(:first-child) {
    position: relative;
}
section:not(:first-child)::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 2px;
    background: linear-gradient(90deg, #e0e7ff 0%, #f0f9ff 100%);
    opacity: 0.5;
    z-index: 0;
}


/* 英雄区域特殊处理，设置半透明背景 */
main .hero {
    background-image: url('images/bgtop3.webp') ;
    background-color: rgba(255, 255, 255, 0.7); /* 添加半透明白色背景 */
    background-size: cover; /* 确保背景图片覆盖整个区域 */
    box-shadow: none;
    position: relative;
}

/* 添加一个额外的半透明遮罩层 */
main .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(240, 249, 255, 0.5); 淡蓝色半透明遮罩 */
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.5) 50%, rgba(240, 249, 255, 0.3) 100%); /* 从左到右的渐变，左侧更白 */
    z-index: 1;
    pointer-events: none; /* 确保不影响交互 */
}

/* 确保内容在遮罩层之上 */
main .hero .hero-content,
main .hero .hero-image {
    position: relative;
    z-index: 2;
}