:root {
    --primary: #6C63FF;
    --secondary: #FF6584;
    --dark: #2A2A3C;
    --light: #F8F9FC;
    --gray: #7B7B8F;
    --stroke-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部Banner区域样式 */
header {
    padding: 100px 0 80px;
    background: #e3d7e6 var(--banner) no-repeat center center;
    background-size: cover;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: min(100%, 1600px);
    margin: 0 auto;
    padding: 40px;
}

.app-icon {
    width: 278px;
    height: 278px;
    display: block;
    object-fit: contain;
    border-radius: 25px;
    flex-shrink: 0;
}

.app-title {
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}

.app-title h1 {
    font-size: 6rem;
    margin-bottom: 10px;
    color: #020f49;
    line-height: 0.8;
    text-shadow:
        2px 2px 0 var(--stroke-white),
        -2px -2px 0 var(--stroke-white),
        2px -2px 0 var(--stroke-white),
        -2px 2px 0 var(--stroke-white);
}

.app-title p {
    font-size: 3rem;
    font-weight: 700;
    color: #020f49;
    margin-bottom: 10px;
    text-shadow:
        1px 1px 0 var(--stroke-white),
        -1px -1px 0 var(--stroke-white),
        1px -1px 0 var(--stroke-white),
        -1px 1px 0 var(--stroke-white);
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.download-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.download-btn img {
    height: auto;
    width: 167.5px;
    max-width: 100%;
}


/* 宣传图区域样式 */
.screenshots {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--light), #fff);
}

.screenshot-container {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding-inline: 20px;
    scroll-snap-type: x proximity;
    padding-bottom: 20px;
    scrollbar-width: thin;
}

.screenshot-item {
    flex: 0 0 auto;
    width: calc(25% - 12px);
    max-width: 400px;
    min-width: min(100%, 280px);
    scroll-snap-align: start;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
    position: relative;
}

.screenshot-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f0f0f0;
}

.screenshot-item::before {
    content: "";
    display: block;
    padding-bottom: 133.33%;
}

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

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    opacity: 0;
}

@media (min-width: 1025px) {
    .scroll-btn {
        opacity: 1;
    }
}

.screenshots:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn::before {
    content: "";
    width: 12px;
    height: 12px;
    border: solid var(--dark);
    border-width: 0 3px 3px 0;
    transform: translateX(-2px) rotate(-45deg);
}

.scroll-left::before {
    transform: translateX(2px) rotate(135deg);
}

.scroll-btn:disabled {
    opacity: 0;
    pointer-events: none;
}

.scroll-btn:focus-visible {
    opacity: 1;
}

[hidden] {
    display: none !important;
}

.scroll-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.screenshots .container {
    position: relative;
}

.screenshot-container::-webkit-scrollbar {
    height: 6px;
}

.screenshot-container::-webkit-scrollbar-thumb {
    background-color: rgba(108, 99, 255, 0.5);
    border-radius: 3px;
}

.screenshot-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .screenshot-item {
        width: calc(33.33% - 11px);
    }
    .app-title h1 {
        font-size: 3.8rem;
    }
    .app-title p {
        font-size: 1.8rem;
    }
    .header-content {
        gap: 40px;
    }
    .app-icon {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px;
    }
    .app-title {
        text-align: center;
    }
    .download-buttons {
        justify-content: center;
    }
    .app-title h1 {
        font-size: 3.2rem;
    }
    .app-title p {
        font-size: 1.6rem;
    }
    .app-icon {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .screenshot-item {
        width: calc(50% - 8px);
    }
    .app-title h1 {
        font-size: 2.8rem;
    }
    .app-title p {
        font-size: 1.4rem;
    }
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    .download-btn {
        width: 220px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .screenshot-item {
        width: 100%;
    }
    .app-title h1 {
        font-size: 2.2rem;
    }
    .app-title p {
        font-size: 1.2rem;
    }
    .app-icon {
        width: 160px;
        height: 160px;
    }
    .download-btn {
        padding: 12px 25px;
    }
}

/* 特色区域样式 */
.features {
    padding: 50px 0 100px;
    background-color: white;
}

.feature-content {
    text-align: left;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 0;
}

.feature-content h2 {
    font-size: clamp(1.875rem, 4.45vw, 4rem);
    line-height: 1.2;
    margin: -60px 0;
    margin-bottom: 30px;
    color: #020f49;
}

.feature-list {
    list-style: none;
    font-size: clamp(1.125rem, 2.25vw, 2rem);
    font-weight: 300;
}

.feature-item + .feature-item {
    margin-top: 20px;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to right, #2A2A3C, #1a1a2e);
    color: white;
    padding: 70px 0 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

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

.copyright {
    opacity: 0.8;
    font-size: 1rem;
    margin-top: 30px;
}

@media (max-width: 768px) {
    header {
        padding: 64px 0 48px;
    }

    .app-title h1 {
        line-height: 1.12;
    }

    .download-btn {
        max-width: 100%;
    }

    .screenshots {
        padding: 36px 0;
    }

    .features {
        padding: 24px 0 56px;
    }

    .feature-content h2 {
        margin: 0 0 20px;
    }

    .feature-item + .feature-item {
        margin-top: 12px;
    }

    footer {
        padding: 42px 0 26px;
    }

    .footer-links {
        gap: 12px 20px;
    }

    .footer-links li {
        margin: 0;
    }
}

@media (hover: none) and (pointer: coarse) {
    .scroll-btn {
        display: none;
    }

    .screenshot-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .screenshot-container {
        scroll-behavior: auto;
    }

    .screenshot-item,
    .scroll-btn {
        transition: none;
    }
}


/* 全站共用的品牌导航 */
.site-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px clamp(16px, 3vw, 56px);
    background: white;
    border-bottom: 1px solid #e3e3e9;
}
.site-brand img { display: block; width: 122px; height: auto; }
.site-navigation nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-navigation a { color: #1c2030; text-decoration: none; font-size: 1rem; font-weight: 650; }
.site-navigation nav a { display: inline-flex; align-items: center; min-height: 44px; }
a:focus-visible { outline: 3px solid #5525c2; outline-offset: 4px; }
