/* Global Styles */
* {
    box-sizing: border-box;
}

:root {
    --primary-color-start: #00C2FF;
    --primary-color-end: #0072FF;
    --secondary-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #f4f4f4;
    --border-radius: 15px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px; /* 调整到合适的高度 */
    margin-right: 10px; /* 图片和文字之间的间距 */
    vertical-align: middle; /* 垂直居中对齐 */
}

/* Header */
header {
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--secondary-color);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    max-width: 100vw;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    left: 0;
    right: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 30px;
}

header nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

header nav ul li a:hover {
    opacity: 0.8;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--secondary-color);
    padding: 200px 0 100px;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.btn {
    background-color: var(--secondary-color);
    color: var(--primary-color-end);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.features {
    padding: 80px 0;
}
.app-screenshots .container {
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
}

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

.feature-item {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item img {
    width: 80px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* App Screenshots */
.app-screenshots {
    padding: 80px 0;
    background-color: #e9f7ff;
}

.app-screenshots h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
}

.screenshot-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    gap: 15px;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(25% - 12px);
    max-width: calc(25% - 12px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: block;
}

/* Contact Us Section */
.contact-us {
    padding: 80px 0;
    background-color: var(--light-gray);
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-tagline {
    font-size: 1.2em;
    color: var(--text-color);
    margin: 0;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    min-width: 200px;
}

.contact-card h3 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.contact-card p {
    margin: 0;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-buttons {
    text-align: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary-color-end);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: #333;
    color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
}

.footer-links ul li {
    margin: 0 15px;
}

.footer-links ul li a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Inner Pages */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(90deg, var(--primary-color-start), var(--primary-color-end));
    color: var(--secondary-color);
    text-align: center;
}

.page-header h1 {
    font-size: 3em;
}

.content-section {
    padding: 80px 0;
}

.content-section .container {
    max-width: 800px;
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.intro-content h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: center;
}

.intro-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: var(--text-color);
    text-align: center;
}

.content-section p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
    text-align: justify;
}

/* Animations */
.animated {
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.fadeIn {
    opacity: 1;
}

.slideInFromLeft {
    opacity: 1;
    transform: translateX(0);
}

.slideInFromRight {
    opacity: 1;
    transform: translateX(0);
}

.zoomIn {
    opacity: 1;
    transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 70px;
        left: 0;
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        text-align: center;
        margin: 15px 0;
    }

    .hamburger-menu {
        display: block;
    }

    /* Hero 区域移动端优化 */
    .hero {
        padding: 120px 0 60px; /* 减少移动端 padding */
    }

    .hero h1 {
        font-size: 2.5em; /* 移动端减小字体 */
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1em; /* 移动端减小字体 */
        margin-bottom: 30px;
    }

    .screenshot-grid {
        justify-content: center;
        gap: 10px; /* 明确设置移动端间距 */
    }
    
    .screenshot-item {
        flex: 0 0 calc(50% - 10px); /* 调整宽度，留出更多间距 */
        max-width: calc(50% - 10px);
    }

    /* Contact Us 移动端优化 */
    .contact-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .contact-card {
        min-width: 280px;
        width: 100%;
        max-width: 400px;
    }

    .section-title {
        font-size: 2em;
    }

    /* About Us 移动端优化 */
    .intro-content h2 {
        font-size: 2em;
    }

    .intro-content p {
        font-size: 1em;
        text-align: left;
    }

    .content-section h2 {
        font-size: 1.8em;
    }

    .content-section p {
        font-size: 1em;
        text-align: left;
    }
}

/* 超小屏幕 - 单列显示 */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px; /* 进一步减少超小屏幕的 padding */
    }

    .hero h1 {
        font-size: 2em; /* 超小屏幕进一步减小字体 */
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9em; /* 超小屏幕进一步减小字体 */
        padding: 0 10px; /* 添加左右内边距 */
    }

    .screenshot-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .screenshot-item {
        flex: 0 0 auto;
        max-width: 300px;
        width: 100%;
    }
}