body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans', Arial, sans-serif;
    background: #f7f8fa;
    margin: 0;
    color: #222;
}
header {
    background: #fff;
    padding: 48px 0 28px 0;
    text-align: center;
    box-shadow: 0 2px 8px #eee;
}
.main-container {
    max-width: 1200px;
    margin: 0 auto;
}
.subtitle {
    font-size: 18px;
    color: #666;
}
.desc {
    color: #888;
    margin: 12px 0 24px 0;
}
.toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
#category-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.category-btn {
    background: #f4f6fa;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 7px 22px;
    font-size: 15px;
    cursor: pointer;
    color: #333;
    transition: background 0.18s, color 0.18s, border 0.18s;
    font-weight: 500;
}
.category-btn.active, .category-btn:hover {
    background: #e0e7ff;
    color: #2563eb;
    border: 1.5px solid #3b82f6;
}
#search-input {
    padding: 10px 20px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    font-size: 16px;
    outline: none;
    width: 260px;
    background: #fafbfc;
}
.fav-title {
    margin: 48px 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.fav-heart {
    color: #f44336;
}
.prompt-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}
.prompt-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(60,80,120,0.08), 0 1.5px 6px rgba(60,80,120,0.04);
    border: 1px solid #e5e7eb;
    width: 240px;
    min-height: 148px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 18px 18px 12px 18px;
    margin-bottom: 18px;
    transition: box-shadow 0.18s, transform 0.18s, border 0.18s;
}
.prompt-card:hover {
    box-shadow: 0 8px 32px #dbeafe, 0 2px 8px #b6c7e6;
    transform: translateY(-2px) scale(1.025);
    border: 1.5px solid #3b82f6;
}
.prompt-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #23272f;
    letter-spacing: 0.2px;
}
.prompt-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.prompt-category, .prompt-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #2563eb;
    border-radius: 7px;
    font-size: 12px;
    padding: 2px 9px;
    margin-bottom: 6px;
    font-weight: 500;
    margin-right: 5px;
    vertical-align: middle;
}
.prompt-tag {
    background: #f3f4f6;
    color: #888;
    margin-right: 3px;
}
.card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.action-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s;
    font-weight: 500;
    box-shadow: 0 1px 2px #e0e7ff;
}
.action-btn:hover {
    background: #1749b1;
}
.copy-btn {
    background: #f4f6fa;
    color: #2563eb;
    border: 1px solid #e0e7ff;
    border-radius: 7px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border 0.18s;
    font-weight: 500;
}
.copy-btn:hover {
    background: #e0e7ff;
    color: #1749b1;
    border: 1.5px solid #2563eb;
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 38px 24px 38px;
    min-width: 320px;
    max-width: 600px;
    width: 96vw;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px #b6c7e6;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    color: #666;
    font-size: 14px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    margin: 0 12px;
    border: 1.5px solid #e5e7eb;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 26px;
    color: #888;
    cursor: pointer;
    font-weight: bold;
}
.modal-divider {
    border: none;
    border-top: 1px solid #f0f1f5;
    margin: 18px 0 18px 0;
}
#copy-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: rgba(60,60,60,0.95);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 2000;
    box-shadow: 0 2px 8px #8882;
}
@media (max-width: 1100px) {
    .main-container {
        max-width: 100vw;
    }
    .prompt-list {
        max-width: 100vw;
        gap: 12px;
        justify-content: center;
    }
    .prompt-card {
        width: 45vw;
        min-width: 180px;
        max-width: 280px;
    }
    .fav-title {
        margin-left: 16px;
        max-width: 100vw;
    }
    .toolbar, #category-list {
        max-width: 100vw;
    }
}
@media (max-width: 700px) {
    header {
        padding: 28px 0 12px 0;
    }
    .main-container {
        max-width: 100vw;
    }
    .prompt-list {
        gap: 8px;
        justify-content: center;
    }
    .prompt-card {
        width: 98vw;
        min-width: 0;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
    .fav-title {
        margin-left: 8px;
        font-size: 18px;
        margin-top: 18px;
        max-width: 100vw;
    }
    .modal-content {
        min-width: unset;
        max-width: 98vw;
        width: 98vw;
        padding: 10px 4px 8px 4px;
        border-radius: 10px;
    }
    #search-input {
        width: 98vw;
        font-size: 15px;
        padding: 8px 10px;
    }
    .category-btn {
        padding: 6px 10px;
        font-size: 14px;
        border-radius: 12px;
    }
    .close-btn {
        top: 6px;
        right: 8px;
        font-size: 22px;
    }
    #copy-toast {
        right: 8px;
        bottom: 8px;
        font-size: 14px;
        padding: 7px 12px;
    }
}