/* 基本样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(315deg, #fdfdfd, #fff8f8, #fdfdfd);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

h1, h2 {
    color: #c0392b;
}

/* 头部和导航 */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #c0392b;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

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

header ul li a {
    text-decoration: none;
    color: #555;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

header ul li a:hover {
    color: #c0392b;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(to right, #ffffff, #fff5f5);
    text-align: left;
}

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

.hero-text {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    max-height: 500px;
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #e74c3c;
    color: #fff;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}


/* 特色功能/应用展示 */
.features {
    padding: 4rem 0;
    text-align: center;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 下载区域 */
.download-section {
    background-color: #c0392b;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.download-section h2 {
    color: #fff;
}

.download-buttons {
    margin-top: 2rem;
}

.btn-download-apple, .btn-download-android {
    background-color: #fff;
    color: #c0392b;
    padding: 15px 30px;
    margin: 0 10px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.btn-download-apple:hover, .btn-download-android:hover {
    background-color: transparent;
    color: #fff;
}


/* Modal Styles Removed and replaced with QR Popup Styles */
.download-buttons-container {
    position: relative;
    display: inline-block;
}

.qr-popup {
    display: none;
    position: absolute;
    bottom: 120%; /* Position above the buttons */
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qr-popup::after { /* The small arrow pointing down */
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.qr-popup img {
    max-width: 100%;
    height: auto;
    display: block;
}

.qr-popup p {
    font-size: 0.9rem;
    color: #555;
    margin: 10px 0 0;
}


/* 页脚 */
footer {
    background-color: #333;
    color: #ccc;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    header ul {
        margin-top: 1rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-image {
        margin-top: 2rem;
    }
} 