* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.header {
    text-align: center;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 26px;
    color: #1f2d3d;
    font-weight: 600;
}

.subtitle {
    margin-top: 6px;
    font-size: 14px;
    color: #8a94a6;
}

.search-box {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e6ed;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #4a90e2;
}

.search-box button {
    border: none;
    background: #4a90e2;
    color: #fff;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-box button:hover {
    background: #357abd;
}

.search-box button:disabled {
    background: #a9c7ec;
    cursor: not-allowed;
}

.tip {
    text-align: center;
    margin: 18px 0;
    color: #8a94a6;
    font-size: 14px;
    min-height: 20px;
}

.results {
    margin-top: 10px;
}

.order-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.order-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.order-time {
    font-size: 14px;
    color: #5a6573;
}

.order-time b {
    color: #1f2d3d;
}

.download-btn {
    border: none;
    background: #2ecc71;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.download-btn:hover {
    background: #27ae60;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
}

.image-grid img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    background: #f0f2f5;
    transition: transform 0.15s;
}

.image-grid img:active {
    transform: scale(0.97);
}

/* 大图查看遮罩 */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.show {
    display: flex;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 22px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 22px;
    }
    .image-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .image-grid img {
        height: 90px;
    }
}
