/* 应用中心页面样式 - app.css */

/* 统计卡片 */
.stats-section {
    margin-bottom: 32px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--el-color-primary-light-9) 0%, var(--el-color-primary-light-8) 100%);
    border: 1px solid var(--el-color-primary-light-7);
    transition: all 0.3s ease;
    cursor: default;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(64, 158, 255, 0.15);
    border-color: var(--el-color-primary-light-5);
}
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}
.stat-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}
.stat-content {
    flex: 1;
}
.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--el-color-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 13px;
    color: var(--el-text-color-secondary);
    margin-top: 4px;
}

/* 搜索表单 */
.search-form { margin-bottom: 24px; }

/* 标签页样式 */
.el-tabs__header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.el-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--el-border-color-light);
    border-radius: 20px;
    background: var(--el-bg-color);
    color: var(--el-text-color-regular);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.el-tabs__item:hover {
    border-color: var(--el-color-primary-light-5);
    color: var(--el-color-primary);
}
.el-tabs__item.is-active {
    background: var(--el-color-primary);
    color: white;
    border-color: var(--el-color-primary);
}
.tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.el-tabs__item.is-active .tab-count {
    background: rgba(255,255,255,0.5);
}

/* 应用卡片 */
.app-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.app-card:active {
    transform: translateY(-4px);
}

/* 分页样式 */
.el-pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--el-border-color-light);
}
.el-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.el-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--el-border-color-light);
    border-radius: 6px;
    background: var(--el-bg-color);
    color: var(--el-text-color-regular);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.el-pagination__btn:hover:not(.is-disabled):not(.is-active) {
    border-color: var(--el-color-primary-light-5);
    color: var(--el-color-primary);
}
.el-pagination__btn.is-active {
    background: var(--el-color-primary);
    color: white;
    border-color: var(--el-color-primary);
}
.el-pagination__btn.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.el-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    color: var(--el-text-color-secondary);
}
.el-pagination__pages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}
.el-pagination__info {
    font-size: 14px;
    color: var(--el-text-color-secondary);
}
.el-pagination__info strong {
    color: var(--el-color-primary);
    font-weight: 600;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--el-color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--el-color-primary-light-3);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.back-to-top:active {
    transform: translateY(-2px);
}

/* 统计卡片样式 */
.stats-section { margin-bottom: 20px; }
.stats-grid { display: flex; justify-content: space-between; gap: 12px; }
.stat-card {
    flex: 1;
    background: linear-gradient(135deg, var(--el-color-primary-light-9), var(--el-color-primary-light-8));
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--el-border-color-light);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}
.stat-content { display: flex; flex-direction: column; align-items: flex-start; }
.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--el-color-primary);
    line-height: 1.2;
}
.stat-label {
    font-size: 12px;
    color: var(--el-text-color-secondary);
    font-weight: 500;
}
@media (max-width: 768px) {
    .stat-card { 
        padding: 12px 8px; 
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .stat-icon { width: 36px; height: 36px; font-size: 14px; }
    .stat-content { align-items: center; }
    .stat-value { font-size: 18px; }
    .stat-label { font-size: 10px; }
}

/* 快捷操作按钮样式 */
.quick-actions { margin-bottom: 24px; }
.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: var(--el-bg-color);
    border: 1px solid var(--el-border-color-light);
}
.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--el-color-primary-light-5);
}
.action-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.action-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.action-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--el-text-color-primary);
    text-align: center;
}
@media (max-width: 480px) {
    .actions-grid { gap: 8px; }
    .action-icon-wrapper { width: 44px; height: 44px; }
    .action-label { font-size: 11px; }
}

/* 底部弹窗样式 */
.sheet-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: hidden;
    pointer-events: none;
}
.sheet-modal.active {
    visibility: visible;
    pointer-events: auto;
}
.sheet-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sheet-modal.active .sheet-modal-overlay { opacity: 1; }
.sheet-modal-container {
    position: relative;
    background: var(--el-bg-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.15);
}
.sheet-modal.active .sheet-modal-container { transform: translateY(0); }
.sheet-modal-handle-wrapper {
    padding: 12px 0;
    display: flex;
    justify-content: center;
}
.sheet-modal-handle {
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: var(--el-border-color);
}
.sheet-modal-content {
    padding: 0 20px 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.sheet-app-header {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--el-border-color-light);
}
.sheet-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-right: 16px;
}
.sheet-app-title-area { flex: 1; min-width: 0; }
.sheet-app-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--el-text-color-primary);
}
.sheet-app-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--el-text-color-secondary);
}
.sheet-app-body { padding: 16px 0; }
.sheet-app-description {
    font-size: 15px;
    color: var(--el-text-color-regular);
    line-height: 1.6;
}
.sheet-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    background: var(--el-color-primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}
.sheet-download-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(64,158,255,0.3); 
}
.sheet-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background: var(--el-fill-color-light);
    color: var(--el-text-color-primary);
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}
.sheet-close-button:hover { background: var(--el-fill-color); }

/* 签名工具选择弹窗 */
.sign-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 0;
}
.sign-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.sign-tool-item:hover { background: var(--el-fill-color-light); }
.sign-tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sign-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sign-tool-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--el-text-color-primary);
}
@media (max-width: 480px) {
    .sign-tools-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 应用卡片点击效果 */
.el-card { cursor: pointer; }
.el-card:hover { border-color: var(--el-color-primary-light-5); }

/* 分类标签样式优化 */
.el-tabs__header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.el-tabs__header::-webkit-scrollbar { display: none; }
.el-tabs__item {
    flex-shrink: 0;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--el-text-color-secondary);
    background: var(--el-fill-color-light);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.el-tabs__item:hover {
    background: var(--el-fill-color);
    color: var(--el-color-primary);
}
.el-tabs__item.is-active {
    background: var(--el-color-primary);
    color: white;
}

/* 应用卡片样式优化 */
.app-panel { animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
