/* 全局样式 */
:root {
    --primary-color: #01875f;
    --primary-hover: #017554;
    --secondary-color: #8f9194;
    --accent-color: #10b981;
    --text-color: #e0e0e0;
    --text-secondary: #9ca3af;
    --background-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #2c2c2c;
    --glow-color: rgba(1, 135, 95, 0.2);
    --gradient-1: linear-gradient(45deg, var(--primary-color), #129eaf);
    --gradient-2: linear-gradient(45deg, var(--accent-color), #3b82f6);
    --header-spacing: 2.5rem;
    --mobile-header-spacing: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;  /* Chrome, Safari, Opera */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer/Edge */
    user-select: none;          /* Non-prefixed version */
    -webkit-touch-callout: none;/* iOS Safari */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 主内容区域 */
.main-content {
    padding: var(--header-spacing) 0 2rem;
}

/* Google Play 风格的应用头部 */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.app-info {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.app-meta {
    display: flex;
    flex-direction: column;
    padding-top: 0.5rem;
}

.developer {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.ratings {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.app-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.app-size i {
    font-size: 1rem;
}

.downloads {
    font-size: 0.9rem;
}

.app-actions {
    margin-top: 1rem;
}

.download-btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.download-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.download-btn:hover:before {
    left: 100%;
}

.download-btn i {
    font-size: 1.1rem;
}

.platform-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 应用描述 */
.app-description {
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

.app-description p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.app-description p:last-child {
    margin-bottom: 0;
}

/* 应用预览区域 */
.app-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.preview-text {
    flex: 1;
}

.preview-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.preview-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 450px;
}

.device-preview {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.device {
    max-width: 100%;
    height: auto;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

/* 屏幕截图部分 */
.screenshots-section {
    margin-bottom: 3rem;
}

.zoom-hint {
    font-size: 0.85rem;
    font-weight: normal;
    color: var(--text-secondary);
    opacity: 0.8;
}

.screenshots-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--card-bg);
}

.screenshots-carousel::-webkit-scrollbar {
    height: 6px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background-color: var(--card-bg);
}

.screenshot {
    flex: 0 0 auto;
    width: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot:hover .zoom-overlay {
    opacity: 1;
}

.zoom-overlay i {
    color: #fff;
    font-size: 1.5rem;
    background: rgba(1, 135, 95, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lightbox 样式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    animation: zoom 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.image-transition {
    opacity: 0.5;
}

.nav-btn {
    position: absolute;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

.nav-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

.image-counter {
    position: absolute;
    bottom: -30px;
    color: white;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* 相似应用部分 */
.similar-apps {
    margin-bottom: 3rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 1rem;
}

.app-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(1, 135, 95, 0.4);
}

.app-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.app-card-details {
    flex: 1;
}

.app-card-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.app-card-rating i {
    color: #f59e0b;
}

/* 页脚 */
.site-footer {
    background-color: rgba(30, 30, 30, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 复制通知样式 */
.copy-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(1, 135, 95, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: bottom 0.3s ease;
    opacity: 0.9;
}

.copy-notification.show {
    bottom: 30px;
}

.copy-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-content i {
    color: #ffffff;
    font-size: 1.2rem;
}

.copy-content strong {
    font-weight: bold;
    margin-left: 3px;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .app-header {
        flex-direction: column;
        align-items: center;
    }
    
    .app-actions {
        align-self: center;
        margin-top: 1.5rem;
    }
    
    .app-preview {
        flex-direction: column;
    }
    
    .preview-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .preview-text p {
        margin: 0 auto;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .prev-btn {
        left: 10px;
    }
    
    .next-btn {
        right: 10px;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-spacing: var(--mobile-header-spacing);
    }
    
    .main-content {
        padding-top: var(--mobile-header-spacing);
    }
    
    .app-header {
        margin-bottom: 2.5rem;
        padding: 0.5rem;
    }
    
    .app-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    
    .app-meta {
        align-items: center;
        padding-top: 1rem;
    }
    
    .app-actions {
        margin-top: 1.5rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .download-btn-group {
        width: 80%;
        max-width: 320px;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .screenshots-carousel {
        gap: 0.75rem;
    }
    
    .screenshot {
        width: 160px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        opacity: 0.8;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .copy-notification {
        padding: 10px 18px;
        width: 90%;
        max-width: 300px;
    }
}

@media screen and (max-width: 576px) {
    :root {
        --mobile-header-spacing: 2rem;
    }
    
    body {
        padding-top: 0.5rem;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .app-header {
        gap: 1.5rem;
        padding: 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .download-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .app-description p {
        font-size: 0.95rem;
    }
    
    .screenshot {
        width: 140px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .zoom-overlay i {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }
    
    .close-lightbox {
        top: 10px;
        right: 15px;
        font-size: 28px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .copy-notification {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .copy-content i {
        font-size: 1rem;
    }
} 