/* ========================================= */
/* 页面切换、标题及预留空间样式                 */
/* ========================================= */

.platform-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.platform-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.back-btn {
    background: rgba(255,255,255,0.1);
    color: var(--text-main);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.back-btn:hover { background: rgba(255,255,255,0.2); }

.personal-space-wrapper {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
}

.personal-space-content h3 {
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.personal-space-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.loading-text {
    text-align: center;
    width: 100%;
    color: var(--text-muted);
    padding: 2rem;
}

/* ========================================= */
/* 极简首页：横向排版按钮样式                  */
/* ========================================= */

.hero-section {
    padding: 3rem 1.5rem 1rem;
    text-align: center;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #882424;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.action-btn i { font-size: 1.4rem; }
.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.action-btn.outline {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    box-shadow: none;
}

.action-btn.outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn.highlight {
    border: 1px solid var(--primary-color);
    color: #c7d2fe;
}

.action-btn.small {
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
}

/* ========================================= */
/* 邮箱弹窗 (Modal) 核心隐藏与动画控制         */
/* ========================================= */

.modal-mask {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    display: none; 
    align-items: center; 
    justify-content: center;
    z-index: 1000;
}

.modal-mask.active { display: flex; }

.modal-container {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.small-modal { max-width: 320px; }

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f8fafc;
    font-size: 1.15rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover { color: #ef4444; }

/* 弹窗表单样式 */
.tab-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: #94a3b8;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom: 2px solid #6366f1;
}

.tab-content { display: none; flex-direction: column; gap: 1.2rem; }
#email-modal .tab-content.active { display: flex; }

.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { font-size: 0.85rem; color: #cbd5e1; }
.input-group input, .input-group select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
    outline: none;
    width: 100%;
}
.input-group input:focus, .input-group select:focus { border-color: #6366f1; }

.email-input-wrapper { display: flex; align-items: center; gap: 0.5rem; }
.email-input-wrapper input { flex: 1.2; }
.email-input-wrapper select { flex: 1; }

.submit-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}
.submit-btn:hover { background: #4f46e5; }

/* ========================================= */
/* 软件列表视图 (List View) 终极样式           */
/* ========================================= */

.app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-row:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(4px); 
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    flex-shrink: 0;
}

.app-text h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #f8fafc;
    font-weight: 600;
}

.app-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.version-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    outline: none;
    font-size: 0.85rem;
    cursor: pointer;
    max-width: 200px;
    text-overflow: ellipsis;
    transition: border-color 0.2s;
}

.version-select:focus, .version-select:hover { border-color: #6366f1; }

.file-size {
    font-size: 0.9rem;
    color: #94a3b8;
    min-width: 70px;
    text-align: right;
    font-family: monospace; 
}

.download-btn {
    background: #6366f1;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) {
    .app-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .app-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
    .version-select { flex-grow: 1; max-width: 100%; }
    .file-size { text-align: left; }
}