body {
    font-family: "微软雅黑", sans-serif;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f0f2f5;
}

.container {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #1a73e8;
    text-align: center;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

#searchInput {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.nav-tabs .tab {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

.nav-tabs .tab:hover {
    background-color: #e0e0e0;
}

.nav-tabs .tab.active {
    background-color: #1a73e8;
    color: white;
}

.phone-group {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.group-title {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 15px;
}

.phone-info {
    background-color: white;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.phone-info:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.phone-info.copied {
    animation: copiedAnim 0.5s ease;
}

.phone-info .index {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    font-size: 16px;
}

.phone-info .phone {
    font-size: 18px;
    font-weight: bold;
}

.phone-info .max-images {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.upload-btn, .preview-btn, .delete-btn, .note-btn, .push-btn {
    padding: 8px 15px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
   /* min-width: 80px; */
    justify-content: center;
}

.upload-btn {
    background-color: #4caf50;
}

.upload-btn:hover {
    background-color: #45a049;
}

.upload-btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.preview-btn {
    background-color: #2196F3;
}

.preview-btn:hover {
    background-color: #0b7dda;
}

.delete-btn {
    background-color: #f44336;
}

.delete-btn:hover {
    background-color: #d32f2f;
}

.note-btn {
    background-color: #9c27b0;
}

.note-btn:hover {
    background-color: #7b1fa2;
}

.push-btn {
    background-color: #ff9800;
}

.push-btn:hover {
    background-color: #f57c00;
}

.action-icon {
    margin-right: 5px;
}

.image-count {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.note-display {
    padding: 8px 15px;
    background-color: #f5e6ff;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    border-left: 3px solid #9c27b0;
    white-space: pre-wrap;
    word-break: break-word;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: -30px;
    right: 0;
    color: white;
    font-size: 24px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
}

.preview-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.preview-item:hover {
    transform: translateY(-5px);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.preview-item img:hover {
    transform: scale(1.03);
}

.preview-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-item:hover .preview-actions {
    opacity: 1;
}

.preview-actions button {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
    margin: 0 5px;
}

.preview-actions button:hover {
    background-color: #d32f2f;
}

#noteModal .modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
}

#noteModal h3 {
    margin-top: 0;
    color: #9c27b0;
    text-align: center;
}

#noteInput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 15px;
    resize: vertical;
}

.quick-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.quick-tags .tag {
    padding: 5px 10px;
    background-color: #e1bee7;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.quick-tags .tag:hover {
    background-color: #ce93d8;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.save-btn {
    background-color: #9c27b0;
    color: white;
}

.save-btn:hover {
    background-color: #7b1fa2;
}

.cancel-btn {
    background-color: #f0f0f0;
    color: #333;
}

.cancel-btn:hover {
    background-color: #ddd;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    display: none;
}

.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #1a73e8;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes copiedAnim {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.footer {
    text-align: center;
    margin-top: 50px;
    color: #666;
    font-size: 0.9em;
}

.no-results {
    text-align: center;
    color: #888;
    padding: 20px;
    font-size: 18px;
}

.copy-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.copy-toast.show {
    opacity: 1;
}

.total-count {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    color: #333;
}

.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.password-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.password-modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.password-modal h3 {
    margin-top: 0;
    color: #1a73e8;
}

.password-modal input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.password-modal .btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.password-modal button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.password-modal .confirm-btn {
    background-color: #f44336;
    color: white;
}

.password-modal .confirm-btn:hover {
    background-color: #d32f2f;
}

.password-modal .cancel-btn {
    background-color: #f0f0f0;
    color: #333;
}

.password-modal .cancel-btn:hover {
    background-color: #ddd;
}

.control-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.control-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-width: 120px;
}

.control-buttons .clear-cache-btn {
    background-color: #ff9800;
    color: white;
}

.control-buttons .clear-cache-btn:hover {
    background-color: #f57c00;
}

.control-buttons .refresh-btn {
    background-color: #1a73e8;
    color: white;
}

.control-buttons .refresh-btn:hover {
    background-color: #0d5bb7;
}

.control-buttons .clear-all-btn {
    background-color: #f44336;
    color: white;
}

.control-buttons .clear-all-btn:hover {
    background-color: #d32f2f;
}

.control-buttons .push-btn {
    background-color: #9c27b0;
    color: white;
}

.control-buttons .push-btn:hover {
    background-color: #7b1fa2;
}

.push-content {
    margin: 15px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.push-phone {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a73e8;
}

.push-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.push-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}