:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --accent: #0891b2;
    --dark: #ffffff;
    --dark-card: #f8f9fa;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --gradient-1: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-2: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100vw;
}

/* Mobile-first container */
.container {
    max-width: 480px;
    margin: 0 auto;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0.45rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.69rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 67px 1rem 1.5px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

.announcement {
    display: block;
    background: white;
    border: 1px solid var(--border);
    padding: 0.25rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.96rem;
    color: var(--text);
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.announcement::before {
    content: '📢';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    z-index: 2;
    background: white;
    padding-right: 0.5rem;
    animation: shake 2s ease-in-out infinite;
}

.announcement::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3rem;
    background: linear-gradient(to right, white 0%, white 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes shake {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: translateY(-50%) rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: translateY(-50%) rotate(10deg); }
}

.announcement-content {
    display: flex;
    align-items: center;
    padding-left: 0;
    white-space: nowrap;
    /*animation: scroll 10s linear infinite;
    gap: 3rem;*/
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.announcement-content:hover {
    animation-play-state: paused;
}

.announcement-item {
    display: inline-block;
    font-weight: 500;
    color: var(--text);
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    padding:0 15px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    position: relative;
    padding-bottom: 1rem;
}

.hero p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: #6643EC;
    border-radius: 2px;
}

/* Section Styles */
section {
    position: relative;
    padding: 1.5px 1rem 20px;
    max-width: 480px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    position: relative;
    color: var(--text);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.3rem;
}

/* App Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.app-card {
    position: relative;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1rem 1rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    opacity: 1 !important;
    visibility: visible !important;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

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

.app-card:active {
    transform: translateY(-2px);
}

.app-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.34rem;
    margin-bottom: 0.15rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1.3);
}

.app-card:hover .app-icon {
    transform: scale(1.5);
}

.app-icon.bounce {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1.3); }
    40% { transform: scale(1.82); }
    60% { transform: scale(1.625); }
    80% { transform: scale(1.755); }
    100% { transform: scale(1.3); }
}

.app-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.9rem;
    margin-bottom: -0.03rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    padding: 0.5rem 1.45rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    width: 80%;
    margin: 0.4rem auto 0 auto;
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.app-card.clicked {
    animation: cardPulse 0.6s ease;
}

@keyframes cardPulse {
    0%, 100% { transform: translateY(-5px) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.app-card.downloading {
    border-color: var(--primary);
}

/* Particle effect */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 0 8px currentColor;
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3);
        opacity: 0;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Stats */
.stats {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1rem;
    margin: 1rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 480px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-container {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: var(--primary);
    color: white;
}

.bottom-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1rem 5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}


/* 移动端APP名称优化 */
@media (max-width: 768px) {
    .app-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.9rem;
    margin-bottom: -0.03rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
}


/* 移动端APP名称优化 */
@media (max-width: 768px) {
    .app-name {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 分类副标题样式 */
.category-header {
    margin-bottom: 1.5rem;
}

.category-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .category-subtitle {
        font-size: 0.85rem;
    }
}
