* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3B82F6;
    --secondary: #60A5FA;
    --dark: #F8FAFC;
    --light: #FFFFFF;
    --accent: #F97316;
    --success: #10B981;
}

html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark);
    min-height: 100vh;
    color: #1E293B;
    padding-bottom: 30px;
}

.hero {
    background: linear-gradient(135deg, #3B82F6 0%, #6366F1 50%, #8B5CF6 100%);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    font-size: 1.3rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #3B82F6, #8B5CF6);
    border-radius: 2px;
}

.top-three {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    align-items: end;
}

.top-card {
    background: var(--light);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.top-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.top-card.first {
    background: linear-gradient(135deg, #FFEA00 0%, #FFD700 30%, #FFA500 70%, #FF8C00 100%);
    padding: 25px 15px;
    box-shadow: 0 10px 35px rgba(255, 215, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 2px solid rgba(255, 215, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.top-card.first::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.top-card.second {
    background: linear-gradient(135deg, #FFE4B5 0%, #FFDAB9 30%, #FFA07A 60%, #FF8C42 100%);
    box-shadow: 0 8px 25px rgba(255, 160, 122, 0.5);
    border: 2px solid rgba(255, 160, 122, 0.6);
}

.top-card.third {
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 30%, #E8E8E8 70%, #D0D0D0 100%);
    box-shadow: 0 8px 25px rgba(200, 200, 200, 0.4);
    border: 2px solid rgba(200, 200, 200, 0.5);
}

.top-rank {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rank-num-badge {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.top-card.first .rank-num-badge {
    background: rgba(0,0,0,0.2);
    color: white;
}

.top-card.second .rank-num-badge {
    background: rgba(0,0,0,0.2);
    color: white;
}

.top-card.third .rank-num-badge {
    background: rgba(0,0,0,0.2);
    color: #333;
}

.top-card.third .top-name,
.top-card.third .top-earn {
    color: #333;
}

.top-card.third .top-btn {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: #333;
}

.top-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.top-earn {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

.top-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-btn:hover {
    background: rgba(255,255,255,0.3);
}

.ranking-list {
    background: var(--light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background-color 0.2s ease;
    cursor: pointer;
    background: var(--light);
    border-radius: 12px;
    margin-bottom: 10px;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: #EFF6FF;
}

.rank-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 15px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.rank-num.hot {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
    margin-right: 15px;
    flex-shrink: 0;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.app-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #DBEAFE, #EFF6FF);
}

.app-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.app-icon-img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.app-icon-img[src="#"] {
    opacity: 0;
}

.top-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 10px auto;
    position: relative;
    background: rgba(255,255,255,0.25);
}

.top-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.top-icon {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.top-icon[src="#"] {
    opacity: 0;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-right: 45px;
}

.app-name .corner-tag {
    position: absolute;
    top: -8px;
    right: 0;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.app-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.app-tag {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
}

.app-tag.hot {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.app-tag.fast {
    background: linear-gradient(135deg, #10B981, #059669);
}

.app-tag.official {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.app-tag.high {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.app-tag.new {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.app-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 6px;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-earn {
    color: #10B981;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.75rem;
}

.star {
    color: #ffc107;
}

.star-empty {
    color: #E2E8F0;
}

.visit-btn {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.intro-box {
    background: var(--light);
    border-radius: 16px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    position: relative;
    overflow: hidden;
}

.intro-box::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.1;
}

.intro-box h2 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #3B82F6;
}

.intro-box p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.tip-card {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
}

.tip-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tip-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.tip-desc {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.5;
}

.warning-box {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.warning-text strong {
    color: #D97706;
}

.accordion {
    background: var(--light);
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    cursor: pointer;
    background: var(--light);
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background: #F8FAFC;
}

.accordion-title {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #3B82F6;
}

.accordion-icon.open {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
    padding: 0 25px 20px;
    max-height: 500px;
}

.accordion-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
    margin-top: 15px;
}

.accordion-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.accordion-content li {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 8px;
}

.feature-section {
    margin: 30px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-card {
    background: var(--light);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 0.75rem;
    color: #666;
}

.download-feed {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 16px;
    padding: 15px 20px;
    margin: 25px 0;
    border: 1px solid #F59E0B;
}

.download-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.feed-icon {
    font-size: 1.2rem;
}

.feed-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #D97706;
}

.download-list {
    max-height: 150px;
    overflow: hidden;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.8rem;
    color: #666;
    animation: slideIn 0.5s ease-out;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
}

.download-item:last-child {
    border-bottom: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.download-app-name {
    font-weight: 600;
    color: #3B82F6;
}

.download-location {
    color: #10B981;
    font-weight: 500;
}

.download-time {
    color: #999;
    font-size: 0.75rem;
    margin-left: auto;
}

.faq-content {
    padding: 10px 0;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #3B82F6;
}

.faq-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
}

.intro-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #555;
    margin-top: 10px;
}

.warning-box-inner {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #888;
    font-size: 0.8rem;
    margin-top: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-links a:hover {
    color: #3B82F6;
}

.float-btn {
    position: fixed;
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.4rem;
    }

    .top-three {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .top-card.first {
        order: -1;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-item {
        padding: 14px 15px;
    }

    .app-icon {
        width: 45px;
        height: 45px;
    }

    .visit-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .app-name {
        padding-right: 0;
    }

    .app-name .corner-tag {
        position: static;
        display: inline;
        margin-left: 5px;
    }
}

@media (min-width: 601px) {
    .container {
        padding: 0 25px;
    }

    .float-btn {
        display: none;
    }
}