.tool-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.tool-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 10px;
}

.tool-header p {
    font-size: 16px;
    color: #4e5969;
}

.color-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
    align-items: center;
}

.color-input {
    width: 100px;
    height: 50px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.color-input-text {
    height: 50px;
    padding: 0 16px;
    border: 1px solid #e5e6eb;
    border-radius: 8px;
    font-size: 16px;
    width: 220px;
    outline: none;
}

.color-input-text:focus {
    border-color: #1677ff;
}

.gen-btn {
    height: 50px;
    padding: 0 24px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.palette-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.color-item {
    height: 120px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    color: #fff;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.color-item span {
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.copy-btn {
    align-self: flex-end;
    padding: 4px 10px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.copy-btn:hover {
    background: rgba(255,255,255,0.4);
}