@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

:root {
    --primary-color: #0f0;
    --secondary-color: #00ff9d;
    --bg-color: #000;
    --bg-dark: #111;
    --bg-light: #222;
    --text-color: #0f0;
    --border-color: #0f0;
    --highlight-color: #00ff9d;
    --error-color: #ff0033;
    --shadow-color: rgba(0, 255, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* 免责声明弹窗样式 */
.disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.disclaimer-content {
    background-color: var(--bg-dark);
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 0 30px var(--shadow-color);
    position: relative;
    animation: glitchIn 0.4s ease-out;
}

@keyframes glitchIn {
    0% {
        transform: translate(0);
        opacity: 0;
    }
    20% {
        transform: translate(-10px, 10px);
        opacity: 0.3;
    }
    40% {
        transform: translate(-10px, -10px);
        opacity: 0.6;
    }
    60% {
        transform: translate(10px, 10px);
        opacity: 0.8;
    }
    80% {
        transform: translate(10px, -10px);
        opacity: 0.9;
    }
    100% {
        transform: translate(0);
        opacity: 1;
    }
}

.terminal-header {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px var(--shadow-color);
    text-align: left;
    position: relative;
}

.typing-text-disclaimer {
    color: var(--error-color);
    position: relative;
    animation: typing 3s steps(14) 1;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: fit-content;
}

.disclaimer-content h2 {
    color: var(--error-color);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
}

.disclaimer-text {
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border-left: 3px solid var(--error-color);
}

.disclaimer-text ul {
    margin: 15px 0;
    padding-left: 20px;
}

.disclaimer-text li {
    margin-bottom: 8px;
    position: relative;
}

.disclaimer-text li::before {
    content: ">";
    position: absolute;
    left: -15px;
    color: var(--error-color);
}

.accept-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.accept-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

.accept-btn i {
    font-size: 1.2rem;
}

/* 购买提示弹窗样式 */
.purchase-modal {
    z-index: 1100;
}

.purchase-content {
    max-width: 500px;
    background-color: var(--bg-dark);
    border: 2px solid var(--primary-color);
    animation: purchaseGlitch 0.5s ease-out;
}

@keyframes purchaseGlitch {
    0% {
        transform: translate(0);
        opacity: 0;
    }
    20% {
        transform: translate(-5px, 5px);
        opacity: 0.5;
        box-shadow: 5px 5px 0 var(--primary-color);
    }
    40% {
        transform: translate(5px, -5px);
        opacity: 0.7;
        box-shadow: -5px 5px 0 var(--primary-color);
    }
    60% {
        transform: translate(-5px, -5px);
        opacity: 0.9;
        box-shadow: 5px -5px 0 var(--primary-color);
    }
    80% {
        transform: translate(5px, 5px);
        opacity: 1;
        box-shadow: -5px -5px 0 var(--primary-color);
    }
    100% {
        transform: translate(0);
        opacity: 1;
        box-shadow: 0 0 20px var(--shadow-color);
    }
}

.purchase-body {
    padding: 25px;
}

.purchase-body h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--shadow-color);
}

.purchase-text {
    color: var(--primary-color);
    position: relative;
    animation: typing 2s steps(13) 1;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: fit-content;
}

.purchase-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.purchase-icon {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.purchase-message {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.8;
}

.wechat-id {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.4rem;
    padding: 0 5px;
    text-shadow: 0 0 5px var(--shadow-color);
}

.confirm-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.confirm-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--shadow-color);
    transform: translateY(-2px);
}

.purchase-close:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: calc(100vh - 80px);
}

/* 头部样式 */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.logo {
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px;
}

.terminal {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 15px var(--shadow-color);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: linear-gradient(to right, var(--bg-light), var(--bg-dark));
    border-bottom: 1px solid var(--border-color);
}

.prompt {
    color: var(--secondary-color);
}

.typing-text {
    color: var(--primary-color);
    position: relative;
    animation: typing 3s steps(14) infinite;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    max-width: fit-content;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background-color: var(--primary-color);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes typing {
    0% { width: 0 }
    50% { width: 14ch }
    100% { width: 14ch }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

h1 {
    font-size: 2.5rem;
    margin: 10px 0;
    text-shadow: 0 0 10px var(--shadow-color);
    letter-spacing: 2px;
}

/* 音频控制样式 */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

#audio-toggle {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow-color);
    transition: all 0.3s ease;
}

#audio-toggle:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

#audio-toggle.muted {
    opacity: 0.6;
}

/* 搜索栏样式 */
.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px var(--shadow-color);
}

#search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 16px;
}

#search-input:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.8);
}

#search-btn {
    background-color: var(--bg-light);
    border: none;
    color: var(--primary-color);
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#search-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* 应用网格样式 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.app-card {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--shadow-color);
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 65%, rgba(0, 255, 0, 0.1) 100%);
    pointer-events: none;
}

.app-thumbnail {
    height: 150px;
    overflow: hidden;
    position: relative;
}

.app-thumbnail img, .app-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-thumbnail img,
.app-card:hover .app-thumbnail video {
    transform: scale(1.05);
}

.app-info-preview {
    padding: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
}

.app-name {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--shadow-color);
}

.app-meta-preview {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: auto;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 25px var(--shadow-color);
    position: relative;
    animation: glitch 0.3s ease-out;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-5px, 5px);
    }
    40% {
        transform: translate(-5px, -5px);
    }
    60% {
        transform: translate(5px, 5px);
    }
    80% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--error-color);
}

.modal-body {
    padding: 30px;
}

.app-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.app-media {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
}

.app-media img, .app-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.app-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-color);
}

.app-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.app-meta span {
    background-color: var(--bg-light);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.download-section {
    margin-top: auto;
}

.download-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
}

.download-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--shadow-color);
}

.download-progress {
    height: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: none;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-dark);
    font-weight: bold;
}

/* 页脚样式 */
footer {
    background-color: var(--bg-dark);
    padding: 20px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.matrix-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.1;
}

.footer-content {
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-details {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .audio-control {
        top: 10px;
        right: 10px;
    }
    
    .disclaimer-content {
        padding: 20px;
        width: 95%;
    }
    
    .purchase-message {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 20px auto;
        width: 95%;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .app-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    #audio-toggle {
        width: 35px;
        height: 35px;
    }
    
    .disclaimer-content {
        padding: 15px;
    }
    
    .disclaimer-text {
        padding: 10px;
    }
    
    .disclaimer-content h2 {
        font-size: 1.3rem;
    }
    
    .purchase-body {
        padding: 15px;
    }
    
    .purchase-info {
        padding: 15px 10px;
    }
    
    .purchase-message {
        font-size: 1rem;
    }
}

/* 黑客风格动画效果 */
@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 0.99;
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
    }
}

.glitch-effect {
    animation: flicker 0.3s infinite;
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading::after {
    content: "正在加载...";
    color: var(--primary-color);
    font-size: 1.2rem;
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "正在加载.  "; }
    40% { content: "正在加载.. "; }
    60% { content: "正在加载..."; }
    80%, 100% { content: "正在加载.  "; }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
} 

/* 全屏图片查看器 */
.fullscreen-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow: hidden;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 2010;
    text-shadow: 0 0 10px var(--shadow-color);
}

.fullscreen-close:hover {
    color: var(--error-color);
    transform: scale(1.2);
}

.fullscreen-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px var(--shadow-color);
}

/* 添加图片可点击的提示样式 */
.app-media img {
    cursor: zoom-in;
    transition: all 0.3s ease;
}

.app-media img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--shadow-color);
} 

/* 祝福语样式 */
.greeting-message {
    text-align: center;
    margin: 20px auto 25px;
    max-width: 600px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    box-shadow: 0 0 15px var(--shadow-color);
    animation: flicker 5s infinite;
}

.greeting-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--shadow-color);
    font-weight: bold;
    letter-spacing: 1px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .greeting-message {
        margin: 15px auto 20px;
        padding: 8px;
    }
    
    .greeting-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .greeting-message {
        margin: 10px auto 15px;
        padding: 6px;
    }
    
    .greeting-text {
        font-size: 1rem;
    }
} 