:root {
    --primary-color: #6f42c1;
    --secondary-color: #20c997;
}

body {
    /*background: linear-gradient(135deg, #f8f9fa, #e9ecef);*/
    min-height: 100vh;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    /*padding-top: 20px;*/
    /*padding-bottom: 50px;*/
}

.card {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.header {
    background: linear-gradient(135deg, var(--primary-color), #4b2e8f);
    color: white;
    padding: 30px 0;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #ced4da;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(111, 66, 193, 0.05);
}

.upload-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.color-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-top: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.color-info {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 15px;
}

.color-value {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px 10px;
    border-radius: 5px;
}

.color-value:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.color-chip {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.history-title {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #495057;
}

.history-item {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
}

.history-item:hover {
    transform: translateX(5px);
    background-color: #e9ecef;
}

.cursor-crosshair {
    cursor: crosshair;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #5a32a3;
    border-color: #5a32a3;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card {
    height: 100%;
}

.instruction-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgba(111, 66, 193, 0.05);
    border-radius: 10px;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.picked-colors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.picked-color {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.picked-color:hover::after {
    content: "复制";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 3px;
}

/* 放大镜样式 */
.magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 10;
    display: none;
    overflow: hidden;
}

.magnifier-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
}

.magnifier-center {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border: 1px solid #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 11;
}

.dominant-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.dominant-color {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
}

.dominant-color-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    text-align: center;
    padding: 2px;
    border-radius: 0 0 8px 8px;
}
