@charset "utf-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    margin: 0;
    margin-top: 70px;
}

.container {
    max-width: 750px;
    margin: 0 auto;
}

.header {
    background-color: #1f2937;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 750px;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.content-wrapper {
    background-color: #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    margin-top: 50px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 16px;
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 20px 16px;
    max-width: 750px;
    margin: 0 auto;
    background-color: #1f2937;
}

.mobile-menu a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

.mobile-menu a:hover {
    color: white;
}

.mobile-menu a:active {
    background-color: transparent;
    color: white;
}

* {
    -webkit-tap-highlight-color: transparent;
}

.hero {
    background: linear-gradient(90deg, #afb6d7 0%, #0ca387 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 16px;
}

.hero p {
    font-size: 16px;
    line-height: 1.5;
}

.hero-description {
    background-color: #f9fafb;
    font-size: 15px;
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    color: #817272;
}

.hero-button-container {
    display: flex;
    justify-content: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: white;
    color: #4361ee;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-2px);
}

.section {
    margin-bottom: 48px;
    scroll-margin-top: 100px;
}

.app-showcase,
.related-apps {
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 24px;
    color: #333;
}

.sub-section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}

.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 24px;
}

.app-info-container {
    width: 100%;
}

.app-info-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
}

.app-info-row:last-child {
    border-bottom: none;
}

.app-info-cell {
    padding: 12px 16px;
}

.label-cell {
    width: 100px;
    background-color: #f3f4f6;
}

.value-cell {
    flex: 1;
}

.app-info-label {
    font-weight: 500;
}

.app-info-value a {
    color: #ef4444;
    text-decoration: none;
}

.app-info-value a:hover {
    text-decoration: underline;
}

@media (min-width: 641px) {
    .app-info-container {
        display: flex;
        flex-wrap: wrap;
    }
    
    .app-info-row {
        width: 50%;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .app-info-row:nth-child(odd) {
        border-right: 1px solid #e5e7eb;
    }
    
    .app-info-row {
        display: flex;
    }
}

@media (max-width: 640px) {
    .app-info-container {
        display: block;
    }
    
    .app-info-row {
        width: 100%;
        display: flex;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .app-info-row:nth-child(odd) {
        border-right: none;
    }
    
    .label-cell {
        width: 120px;
        flex-shrink: 0;
        background-color: #f3f4f6;
    }
    
    .value-cell {
        flex: 1;
        margin-left: 16px;
        background-color: #fff;
    }
}

.app-showcase {
    position: relative;
    margin-bottom: 48px;
}

.scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    margin: 0 -15px;
    padding: 0 15px 16px;
}

.scroll-container::-webkit-scrollbar {
    height: 8px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-track {
    background-color: #f1f5f9;
}

.scroll-content {
    display: flex;
    gap: 16px;
    min-width: max-content;
}

.screenshot-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 250px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.screenshot-card img {
    width: 100%;
    flex: 1;
    object-fit: contain;
}

.screenshot-content {
    padding: 16px;
}

.screenshot-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.screenshot-desc {
    font-size: 12px;
    color: #666;
}

.related-apps {
    margin-bottom: 48px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 768px) {
    .app-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .app-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .app-card {
        display: flex;
        align-items: flex-start;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .app-card-content {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 0;
        flex: 1;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .app-info {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 4px 16px;
        flex: 1;
        align-items: center;
    }
    
    .app-name {
        font-size: 16px;
        margin: 0;
        line-height: 1.2;
        grid-column: 1;
        grid-row: 1;
    }
    
    .app-rating {
        margin: 0;
        line-height: 1.2;
        grid-column: 1;
        grid-row: 2;
    }
    
    .app-stats {
        display: block;
        font-size: 12px;
        color: #999;
        margin: 0;
        line-height: 1.2;
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }
    
    .app-update-time {
        display: block;
        font-size: 12px;
        color: #999;
        margin: 0;
        line-height: 1.2;
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }
}

.app-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 16px;
}

.app-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: block;
}

.app-info {
    flex: 1;
}

.app-info a {
    text-decoration: none;
    display: block;
}

.app-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #333;
}

.app-rating {
    display: flex;
    font-size: 12px;
    color: #f59e0b;
}

.app-stats {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.app-update-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.footer {
    background-color: #1f2937;
    color: white;
    padding: 16px 0;
}

.view-more-btn {
    display: block;
    width: 100%;
    background-color: #f97316;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    margin-top: 24px;
}

.view-more-btn:hover {
    background-color: #ea580c;
}

.footer-content {
    max-width: 750px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
}

.footer-text {
    font-size: 14px;
    color: #9ca3af;
}

.footer-text a {
    color: #4361ee;
    text-decoration: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3::before {
    content: "🔒";
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.5;
    color: #374151;
}

.modal-body ol {
    margin-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.4;
    color: #4b5563;
}

.modal-body strong {
    color: #111827;
}

.modal-footer {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.modal-footer .btn-primary {
    background-color: #06b6d4;
    color: white;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-footer .btn-primary:hover {
    background-color: #0891b2;
    transform: none;
}
