/* APP 中心页面样式 */
.empty-state {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

/* 提交说明 - 折叠面板 */
.submit-section {
    margin-top: 4rem;
}

.submit-toggle {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: var(--shadow);
}

.submit-toggle:hover {
    box-shadow: var(--shadow-lg);
}

.toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s;
}

.submit-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.submit-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--bg-secondary);
    border-radius: 0 0 12px 12px;
    padding: 0 3rem;
}

.submit-content.open {
    max-height: 2000px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.submit-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.submit-steps {
    list-style: none;
    counter-reset: step-counter;
}

.submit-steps > li {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.submit-steps > li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.submit-steps strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.submit-steps p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.submit-steps pre {
    margin-top: 1rem;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
}

.tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.tips h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.2;
}

/* APP 中心页面样式 */
.apps-main {
    padding-top: 80px;
    padding-bottom: 60px;
    min-height: calc(100vh - 160px);
}

.apps-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.apps-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* APP 网格 */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.app-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.app-header {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: contain;
    background-color: var(--bg-secondary);
    flex-shrink: 0;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.app-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-description {
    padding: 1.5rem;
    flex: 1;
}

.app-description p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-footer {
    padding: 1rem 1.5rem;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-author {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-author-icon {
    font-size: 1rem;
}

.app-links {
    display: flex;
    gap: 0.5rem;
}

.app-link {
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap;
    min-width: fit-content;
}

.app-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.app-link.primary {
    background-color: var(--primary-color);
    color: white;
}

.app-link.primary:hover {
    background-color: var(--primary-dark);
}

/* 分类过滤器 */
.apps-filter {
    margin-bottom: 2rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: white;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .apps-header h1 {
        font-size: 1.75rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-links {
        width: 100%;
        justify-content: flex-start;
    }
}
